diff --git a/dist-gha/run.cjs b/dist-gha/run.cjs index 2b0884d4c..dc1548b39 100644 --- a/dist-gha/run.cjs +++ b/dist-gha/run.cjs @@ -1,5 +1,5 @@ #!/usr/bin/env node -"use strict";var e=require("node:url"),t=require("node:fs"),n=require("node:fs/promises"),r=require("node:util"),i=require("node:path"),o=require("fs"),a=require("path"),s=require("os"),c=require("node:os"),l=require("tty"),u=require("util"),_=require("inspector"),d=require("node:perf_hooks"),p=require("stream"),f=require("events"),m=require("url"),g=require("node:readline"),h="undefined"!=typeof document?document.currentScript:null;function y(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function v(){for(var e=[],t=0;t{e&&"string"==typeof e&&console.log(e)}))}();var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var S,k={},T={};function C(){if(S)return T;function e(t,n){if(t=void 0===t?0:t,n=void 0===n?0:n,Array.isArray(t)&&Array.isArray(n)){if(0===t.length&&0===n.length)return 0;const r=e(t[0],n[0]);return 0!==r?r:e(t.slice(1),n.slice(1))}return tn?1:0}return S=1,Object.defineProperty(T,"__esModule",{value:!0}),T.pickBy=function(e,t){return Object.entries(e).reduce(((e,[n,r])=>(t(r)&&(e[n]=r),e)),{})},T.compact=function(e){return e.filter((e=>Boolean(e)))},T.uniqBy=function(e,t){return e.filter(((n,r)=>{const i=t(n);return!e.some(((e,n)=>n>r&&t(e)===i))}))},T.last=function(e){if(!e)return;return e.at(-1)},T.sortBy=function(t,n){return t.sort(((t,r)=>e(n(t),n(r))))},T.castArray=function(e){return void 0===e?[]:Array.isArray(e)?e:[e]},T.isProd=function(){return!["development","test"].includes(process.env.NODE_ENV??"")},T.maxBy=function(e,t){if(0===e.length)return;return e.reduce(((e,n)=>t(n)>t(e)?n:e))},T.sumBy=function(e,t){return e.reduce(((e,n)=>e+t(n)),0)},T.capitalize=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""},T.isTruthy=function(e){return["1","true","y","yes"].includes(e.toLowerCase())},T.isNotFalsy=function(e){return!["0","false","n","no"].includes(e.toLowerCase())},T.uniq=function(e){return[...new Set(e)].sort()},T.mapValues=function(e,t){return Object.entries(e).reduce(((e,[n,r])=>(e[n]=t(r,n),e)),{})},T.mergeNestedObjects=function(e,t){return Object.fromEntries(e.flatMap((e=>Object.entries(function(e,t){return t.split(".").reduce(((e,t)=>e?.[t]),e)}(e,t)??{}))).reverse())},T}var D,w,E,F,N,P,A,I,O,L,R,j,M,B,J,z,$,q,U,V,W,H,G,K,X,Q,Y,Z,ee,te,ne,re,ie,oe,ae,se,ce,le,ue,_e,de,pe,fe,me,ge,he,ye,ve,be,xe,Se,ke,Te,Ce,De,we,Ee,Fe,Ne,Pe,Ae,Ie,Oe,Le,Re,je,Me,Be,Je,ze,$e,qe,Ue,Ve,We,He,Ge,Ke,Xe,Qe,Ye,Ze,et,tt,nt,rt,it,ot,at,st={exports:{}};function ct(){if(w)return D;w=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return D={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function lt(){if(F)return E;F=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return E=e}function ut(){return N||(N=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=ct(),o=lt(),a=(t=e.exports={}).re=[],s=t.safeRe=[],c=t.src=[],l=t.t={};let u=0;const _="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[_,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of d)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=u++;o(e,i,t),l[e]=i,c[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_}*`),p("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${_}+`),p("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),p("FULL",`^${c[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),p("LOOSE",`^${c[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),p("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?`+`(?:${c[l.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",c[l.COERCE],!0),p("COERCERTLFULL",c[l.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(st,st.exports)),st.exports}function _t(){if(A)return P;A=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return P=n=>n?"object"!=typeof n?e:n:t}function dt(){if(O)return I;O=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:tt(n,e)}}function pt(){if(R)return L;R=1;const e=lt(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=ct(),{safeRe:r,t:i}=ut(),o=_t(),{compareIdentifiers:a}=dt();class s{constructor(a,c){if(c=o(c),a instanceof s){if(a.loose===!!c.loose&&a.includePrerelease===!!c.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",a,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const l=a.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!l)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return L=s}function ft(){if(M)return j;M=1;const e=pt();return j=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(e){if(!r)return null;throw e}},j}function mt(){if(ne)return te;ne=1;const e=pt();return te=(t,n,r)=>new e(t,r).compare(new e(n,r))}function gt(){if(ce)return se;ce=1;const e=pt();return se=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)}}function ht(){if(fe)return pe;fe=1;const e=mt();return pe=(t,n,r)=>e(t,n,r)>0}function yt(){if(ge)return me;ge=1;const e=mt();return me=(t,n,r)=>e(t,n,r)<0}function vt(){if(ye)return he;ye=1;const e=mt();return he=(t,n,r)=>0===e(t,n,r)}function bt(){if(be)return ve;be=1;const e=mt();return ve=(t,n,r)=>0!==e(t,n,r)}function xt(){if(Se)return xe;Se=1;const e=mt();return xe=(t,n,r)=>e(t,n,r)>=0}function St(){if(Te)return ke;Te=1;const e=mt();return ke=(t,n,r)=>e(t,n,r)<=0}function kt(){if(De)return Ce;De=1;const e=vt(),t=bt(),n=ht(),r=xt(),i=yt(),o=St();return Ce=(a,s,c,l)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof c&&(c=c.version),a===c;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof c&&(c=c.version),a!==c;case"":case"=":case"==":return e(a,c,l);case"!=":return t(a,c,l);case">":return n(a,c,l);case">=":return r(a,c,l);case"<":return i(a,c,l);case"<=":return o(a,c,l);default:throw new TypeError(`Invalid operator: ${s}`)}}}function Tt(){if(Ae)return Pe;Ae=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(m,w(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[c.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(s[c.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[c.CARETTRIM],_),o("caret trim",e);let g=e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>D(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[c.COMPARATORLOOSE]))))),o("range list",g);const y=new Map,v=g.map((e=>new i(e,this.options)));for(const e of v){if(f(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const b=[...y.values()];return n.set(t,b),b}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=_t(),i=Ct(),o=lt(),a=pt(),{safeRe:s,t:c,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:_}=ut(),{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=ct(),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},h=(e,t)=>(o("comp",e,t),e=x(e,t),o("caret",e),e=v(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{const n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),y(n)?s="":y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{o("caret",e,t);const n=t.loose?s[c.CARETLOOSE]:s[c.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let c;return o("caret",e,t,n,i,a,s),y(n)?c="":y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),c="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),c="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",c),c}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,((n,r,i,a,s,c)=>{o("xRange",e,n,r,i,a,s,c);const l=y(i),u=l||y(a),_=u||y(s),d=_;return"="===r&&d&&(r=""),c=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(c="-0"),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:_&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[c.STAR],"")),D=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),w=e=>(t,n,r,i,o,a,s,c,l,u,_,d)=>`${n=y(r)?"":y(i)?`>=${r}.0.0${e?"-0":""}`:y(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(_)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${_}-${d}`:e?`<${l}.${u}.${+_+1}-0`:`<=${c}`}`.trim(),E=(e,t,n)=>{for(let n=0;n0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Pe}function Ct(){if(Oe)return Ie;Oe=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,r).test(this.value):""===e.operator?""===e.value||new c(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}Ie=t;const n=_t(),{safeRe:r,t:i}=ut(),o=kt(),a=lt(),s=pt(),c=Tt();return Ie}function Dt(){if(Re)return Le;Re=1;const e=Tt();return Le=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},Le}function wt(){if(We)return Ve;We=1;const e=Tt();return Ve=(t,n)=>{try{return new e(t,n).range||"*"}catch(e){return null}},Ve}function Et(){if(Ge)return He;Ge=1;const e=pt(),t=Ct(),{ANY:n}=t,r=Tt(),i=Dt(),o=ht(),a=yt(),s=St(),c=xt();return He=(l,u,_,d)=>{let p,f,m,g,h;switch(l=new e(l,d),u=new r(u,d),_){case">":p=o,f=s,m=a,g=">",h=">=";break;case"<":p=a,f=c,m=o,g="<",h="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(l,u,d))return!1;for(let e=0;e{e.semver===n&&(e=new t(">=0.0.0")),i=i||e,o=o||e,p(e.semver,i.semver,d)?i=e:m(e.semver,o.semver,d)&&(o=e)})),i.operator===g||i.operator===h)return!1;if((!o.operator||o.operator===g)&&f(l,o.semver))return!1;if(o.operator===h&&m(l,o.semver))return!1}return!0},He}function Ft(){if(at)return ot;at=1;const e=ut(),t=ct(),n=pt(),r=dt(),i=ft(),o=function(){if(J)return B;J=1;const e=ft();return B=(t,n)=>{const r=e(t,n);return r?r.version:null},B}(),a=function(){if($)return z;$=1;const e=ft();return z=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null},z}(),s=function(){if(U)return q;U=1;const e=pt();return q=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(e){return null}},q}(),c=function(){if(W)return V;W=1;const e=ft();return V=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const a=o>0,s=a?r:i,c=a?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"}}(),l=function(){if(G)return H;G=1;const e=pt();return H=(t,n)=>new e(t,n).major}(),u=function(){if(X)return K;X=1;const e=pt();return K=(t,n)=>new e(t,n).minor}(),_=function(){if(Y)return Q;Y=1;const e=pt();return Q=(t,n)=>new e(t,n).patch}(),d=function(){if(ee)return Z;ee=1;const e=ft();return Z=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null},Z}(),p=mt(),f=function(){if(ie)return re;ie=1;const e=mt();return re=(t,n,r)=>e(n,t,r)}(),m=function(){if(ae)return oe;ae=1;const e=mt();return oe=(t,n)=>e(t,n,!0)}(),g=gt(),h=function(){if(ue)return le;ue=1;const e=gt();return le=(t,n)=>t.sort(((t,r)=>e(t,r,n))),le}(),y=function(){if(de)return _e;de=1;const e=gt();return _e=(t,n)=>t.sort(((t,r)=>e(r,t,n))),_e}(),v=ht(),b=yt(),x=vt(),S=bt(),k=xt(),T=St(),C=kt(),D=function(){if(Ee)return we;Ee=1;const e=pt(),t=ft(),{safeRe:n,t:r}=ut();return we=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i=String(i)),"string"!=typeof i)return null;let a=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!a||a.index+a[0].length!==i.length);)a&&t.index+t[0].length===a.index+a[0].length||(a=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else a=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);if(null===a)return null;const s=a[2],c=a[3]||"0",l=a[4]||"0",u=o.includePrerelease&&a[5]?`-${a[5]}`:"",_=o.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${s}.${c}.${l}${u}${_}`,o)},we}(),w=Ct(),E=Tt(),F=Dt(),N=function(){if(Me)return je;Me=1;const e=Tt();return je=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" "))),je}(),P=function(){if(Je)return Be;Je=1;const e=pt(),t=Tt();return Be=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&-1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},Be}(),A=function(){if($e)return ze;$e=1;const e=pt(),t=Tt();return ze=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},ze}(),I=function(){if(Ue)return qe;Ue=1;const e=pt(),t=Tt(),n=ht();return qe=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;t{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":a&&!n(r,a)||(a=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||o&&!n(o,a)||(o=a)}return o&&r.test(o)?o:null},qe}(),O=wt(),L=Et(),R=function(){if(Xe)return Ke;Xe=1;const e=Et();return Ke=(t,n,r)=>e(t,n,">",r),Ke}(),j=function(){if(Ye)return Qe;Ye=1;const e=Et();return Qe=(t,n,r)=>e(t,n,"<",r),Qe}(),M=function(){if(et)return Ze;et=1;const e=Tt();return Ze=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),te=function(){if(nt)return tt;nt=1;const e=Dt(),t=mt();return tt=(n,r,i)=>{const o=[];let a=null,s=null;const c=n.sort(((e,n)=>t(e,n,i)));for(const t of c)e(t,r,i)?(s=t,a||(a=t)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const l=[];for(const[e,t]of o)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const u=l.join(" || "),_="string"==typeof r.raw?r.raw:String(r);return u.length<_.length?u:r},tt}(),ne=function(){if(it)return rt;it=1;const e=Tt(),t=Ct(),{ANY:n}=t,r=Dt(),i=mt(),o=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],s=(e,t,s)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=s.includePrerelease?o:a}if(1===t.length&&t[0].semver===n){if(s.includePrerelease)return!0;t=a}const u=new Set;let _,d,p,f,m,g,h;for(const t of e)">"===t.operator||">="===t.operator?_=c(_,t,s):"<"===t.operator||"<="===t.operator?d=l(d,t,s):u.add(t.semver);if(u.size>1)return null;if(_&&d){if(p=i(_.semver,d.semver,s),p>0)return null;if(0===p&&(">="!==_.operator||"<="!==d.operator))return null}for(const e of u){if(_&&!r(e,String(_),s))return null;if(d&&!r(e,String(d),s))return null;for(const n of t)if(!r(e,String(n),s))return!1;return!0}let y=!(!d||s.includePrerelease||!d.semver.prerelease.length)&&d.semver,v=!(!_||s.includePrerelease||!_.semver.prerelease.length)&&_.semver;y&&1===y.prerelease.length&&"<"===d.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(h=h||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,_)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(f=c(_,e,s),f===e&&f!==_)return!1}else if(">="===_.operator&&!r(_.semver,String(e),s))return!1;if(d)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(m=l(d,e,s),m===e&&m!==d)return!1}else if("<="===d.operator&&!r(d.semver,String(e),s))return!1;if(!e.operator&&(d||_)&&0!==p)return!1}return!(_&&g&&!d&&0!==p||d&&h&&!_&&0!==p||v||y)},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return rt=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=s(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return ot={parse:i,valid:o,clean:a,inc:s,diff:c,major:l,minor:u,patch:_,prerelease:d,compare:p,rcompare:f,compareLoose:m,compareBuild:g,sort:h,rsort:y,gt:v,lt:b,eq:x,neq:S,gte:k,lte:T,cmp:C,coerce:D,Comparator:w,Range:E,satisfies:F,toComparators:N,maxSatisfying:P,minSatisfying:A,minVersion:I,validRange:O,outside:L,gtr:R,ltr:j,intersects:M,simplifyRange:te,subset:ne,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}var Nt,Pt,At={},It={};function Ot(){if(Nt)return It;Nt=1,Object.defineProperty(It,"__esModule",{value:!0}),It.fileExists=It.dirExists=void 0,It.readJson=s,It.safeReadJson=async function(e,t=!0){try{return await s(e,t)}catch{}},It.existsSync=function(t){return(0,e.existsSync)(t)};const e=t,r=n,i=C();It.dirExists=async e=>{let t;try{t=await(0,r.stat)(e)}catch{throw new Error(`No directory found at ${e}`)}if(!t.isDirectory())throw new Error(`${e} exists but is not a directory`);return e};It.fileExists=async e=>{let t;try{t=await(0,r.stat)(e)}catch{throw new Error(`No file found at ${e}`)}if(!t.isFile())throw new Error(`${e} exists but is not a file`);return e};class o extends Map{set(e,t){return(0,i.isProd)()&&super.set(e,t),this}}const a=new o;async function s(e,t=!0){if(t&&a.has(e))return JSON.parse(a.get(e));const n=await(0,r.readFile)(e,"utf8");return a.set(e,n),JSON.parse(n)}return It}var Lt,Rt={},jt={};function Mt(){if(Lt)return jt;Lt=1,Object.defineProperty(jt,"__esModule",{value:!0});const e=t,n=i;class r extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return r.instance||(r.instance=new r),r.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:require("@oclif/core/package.json").version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,e.readFileSync)((0,n.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}}return jt.default=r,jt}var Bt,Jt={},zt={exports:{}},$t={},qt={};var Ut,Vt="3.1.10";function Wt(){return Ut||(Ut=1,function(e){ +"use strict";var e=require("node:url"),t=require("node:fs"),n=require("node:fs/promises"),r=require("node:util"),i=require("node:path"),o=require("fs"),a=require("path"),s=require("os"),c=require("node:os"),l=require("tty"),u=require("util"),_=require("inspector"),d=require("node:perf_hooks"),p=require("stream"),f=require("events"),m=require("node:readline"),g="undefined"!=typeof document?document.currentScript:null;function h(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function y(){for(var e=[],t=0;t{e&&"string"==typeof e&&console.log(e)}))}();var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var x,S={},k={};function T(){if(x)return k;function e(t,n){if(t=void 0===t?0:t,n=void 0===n?0:n,Array.isArray(t)&&Array.isArray(n)){if(0===t.length&&0===n.length)return 0;const r=e(t[0],n[0]);return 0!==r?r:e(t.slice(1),n.slice(1))}return tn?1:0}return x=1,Object.defineProperty(k,"__esModule",{value:!0}),k.pickBy=function(e,t){return Object.entries(e).reduce(((e,[n,r])=>(t(r)&&(e[n]=r),e)),{})},k.compact=function(e){return e.filter((e=>Boolean(e)))},k.uniqBy=function(e,t){return e.filter(((n,r)=>{const i=t(n);return!e.some(((e,n)=>n>r&&t(e)===i))}))},k.last=function(e){if(!e)return;return e.at(-1)},k.sortBy=function(t,n){return t.sort(((t,r)=>e(n(t),n(r))))},k.castArray=function(e){return void 0===e?[]:Array.isArray(e)?e:[e]},k.isProd=function(){return!["development","test"].includes(process.env.NODE_ENV??"")},k.maxBy=function(e,t){if(0===e.length)return;return e.reduce(((e,n)=>t(n)>t(e)?n:e))},k.sumBy=function(e,t){return e.reduce(((e,n)=>e+t(n)),0)},k.capitalize=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""},k.isTruthy=function(e){return["1","true","y","yes"].includes(e.toLowerCase())},k.isNotFalsy=function(e){return!["0","false","n","no"].includes(e.toLowerCase())},k.uniq=function(e){return[...new Set(e)].sort()},k.mapValues=function(e,t){return Object.entries(e).reduce(((e,[n,r])=>(e[n]=t(r,n),e)),{})},k.mergeNestedObjects=function(e,t){return Object.fromEntries(e.flatMap((e=>Object.entries(function(e,t){return t.split(".").reduce(((e,t)=>e?.[t]),e)}(e,t)??{}))).reverse())},k}var C,D,w,E,F,N,P,A,I,O,L,R,j,M,B,J,z,$,q,U,V,W,H,G,K,X,Q,Y,Z,ee,te,ne,re,ie,oe,ae,se,ce,le,ue,_e,de,pe,fe,me,ge,he,ye,ve,be,xe,Se,ke,Te,Ce,De,we,Ee,Fe,Ne,Pe,Ae,Ie,Oe,Le,Re,je,Me,Be,Je,ze,$e,qe,Ue,Ve,We,He,Ge,Ke,Xe,Qe,Ye,Ze,et,tt,nt,rt,it,ot,at={exports:{}};function st(){if(D)return C;D=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return C={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function ct(){if(E)return w;E=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return w=e}function lt(){return F||(F=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=st(),o=ct(),a=(t=e.exports={}).re=[],s=t.safeRe=[],c=t.src=[],l=t.t={};let u=0;const _="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[_,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of d)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=u++;o(e,i,t),l[e]=i,c[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_}*`),p("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${_}+`),p("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),p("FULL",`^${c[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),p("LOOSE",`^${c[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),p("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?`+`(?:${c[l.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",c[l.COERCE],!0),p("COERCERTLFULL",c[l.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(at,at.exports)),at.exports}function ut(){if(P)return N;P=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return N=n=>n?"object"!=typeof n?e:n:t}function _t(){if(I)return A;I=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:tt(n,e)}}function dt(){if(L)return O;L=1;const e=ct(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=st(),{safeRe:r,t:i}=lt(),o=ut(),{compareIdentifiers:a}=_t();class s{constructor(a,c){if(c=o(c),a instanceof s){if(a.loose===!!c.loose&&a.includePrerelease===!!c.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",a,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const l=a.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!l)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return O=s}function pt(){if(j)return R;j=1;const e=dt();return R=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(e){if(!r)return null;throw e}},R}function ft(){if(te)return ee;te=1;const e=dt();return ee=(t,n,r)=>new e(t,r).compare(new e(n,r))}function mt(){if(se)return ae;se=1;const e=dt();return ae=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)}}function gt(){if(pe)return de;pe=1;const e=ft();return de=(t,n,r)=>e(t,n,r)>0}function ht(){if(me)return fe;me=1;const e=ft();return fe=(t,n,r)=>e(t,n,r)<0}function yt(){if(he)return ge;he=1;const e=ft();return ge=(t,n,r)=>0===e(t,n,r)}function vt(){if(ve)return ye;ve=1;const e=ft();return ye=(t,n,r)=>0!==e(t,n,r)}function bt(){if(xe)return be;xe=1;const e=ft();return be=(t,n,r)=>e(t,n,r)>=0}function xt(){if(ke)return Se;ke=1;const e=ft();return Se=(t,n,r)=>e(t,n,r)<=0}function St(){if(Ce)return Te;Ce=1;const e=yt(),t=vt(),n=gt(),r=bt(),i=ht(),o=xt();return Te=(a,s,c,l)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof c&&(c=c.version),a===c;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof c&&(c=c.version),a!==c;case"":case"=":case"==":return e(a,c,l);case"!=":return t(a,c,l);case">":return n(a,c,l);case">=":return r(a,c,l);case"<":return i(a,c,l);case"<=":return o(a,c,l);default:throw new TypeError(`Invalid operator: ${s}`)}}}function kt(){if(Pe)return Ne;Pe=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,m=a?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(m,w(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[c.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(s[c.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[c.CARETTRIM],_),o("caret trim",e);let g=e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>D(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[c.COMPARATORLOOSE]))))),o("range list",g);const y=new Map,v=g.map((e=>new i(e,this.options)));for(const e of v){if(f(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const b=[...y.values()];return n.set(t,b),b}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=ut(),i=Tt(),o=ct(),a=dt(),{safeRe:s,t:c,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:_}=lt(),{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=st(),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},h=(e,t)=>(o("comp",e,t),e=x(e,t),o("caret",e),e=v(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{const n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),y(n)?s="":y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{o("caret",e,t);const n=t.loose?s[c.CARETLOOSE]:s[c.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let c;return o("caret",e,t,n,i,a,s),y(n)?c="":y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),c="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),c="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",c),c}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,((n,r,i,a,s,c)=>{o("xRange",e,n,r,i,a,s,c);const l=y(i),u=l||y(a),_=u||y(s),d=_;return"="===r&&d&&(r=""),c=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(c="-0"),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:_&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[c.STAR],"")),D=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),w=e=>(t,n,r,i,o,a,s,c,l,u,_,d)=>`${n=y(r)?"":y(i)?`>=${r}.0.0${e?"-0":""}`:y(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(_)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${_}-${d}`:e?`<${l}.${u}.${+_+1}-0`:`<=${c}`}`.trim(),E=(e,t,n)=>{for(let n=0;n0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Ne}function Tt(){if(Ie)return Ae;Ie=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,r).test(this.value):""===e.operator?""===e.value||new c(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}Ae=t;const n=ut(),{safeRe:r,t:i}=lt(),o=St(),a=ct(),s=dt(),c=kt();return Ae}function Ct(){if(Le)return Oe;Le=1;const e=kt();return Oe=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},Oe}function Dt(){if(Ve)return Ue;Ve=1;const e=kt();return Ue=(t,n)=>{try{return new e(t,n).range||"*"}catch(e){return null}},Ue}function wt(){if(He)return We;He=1;const e=dt(),t=Tt(),{ANY:n}=t,r=kt(),i=Ct(),o=gt(),a=ht(),s=xt(),c=bt();return We=(l,u,_,d)=>{let p,f,m,g,h;switch(l=new e(l,d),u=new r(u,d),_){case">":p=o,f=s,m=a,g=">",h=">=";break;case"<":p=a,f=c,m=o,g="<",h="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(l,u,d))return!1;for(let e=0;e{e.semver===n&&(e=new t(">=0.0.0")),i=i||e,o=o||e,p(e.semver,i.semver,d)?i=e:m(e.semver,o.semver,d)&&(o=e)})),i.operator===g||i.operator===h)return!1;if((!o.operator||o.operator===g)&&f(l,o.semver))return!1;if(o.operator===h&&m(l,o.semver))return!1}return!0},We}function Et(){if(ot)return it;ot=1;const e=lt(),t=st(),n=dt(),r=_t(),i=pt(),o=function(){if(B)return M;B=1;const e=pt();return M=(t,n)=>{const r=e(t,n);return r?r.version:null},M}(),a=function(){if(z)return J;z=1;const e=pt();return J=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null},J}(),s=function(){if(q)return $;q=1;const e=dt();return $=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(e){return null}},$}(),c=function(){if(V)return U;V=1;const e=pt();return U=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const a=o>0,s=a?r:i,c=a?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"}}(),l=function(){if(H)return W;H=1;const e=dt();return W=(t,n)=>new e(t,n).major}(),u=function(){if(K)return G;K=1;const e=dt();return G=(t,n)=>new e(t,n).minor}(),_=function(){if(Q)return X;Q=1;const e=dt();return X=(t,n)=>new e(t,n).patch}(),d=function(){if(Z)return Y;Z=1;const e=pt();return Y=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null},Y}(),p=ft(),f=function(){if(re)return ne;re=1;const e=ft();return ne=(t,n,r)=>e(n,t,r)}(),m=function(){if(oe)return ie;oe=1;const e=ft();return ie=(t,n)=>e(t,n,!0)}(),g=mt(),h=function(){if(le)return ce;le=1;const e=mt();return ce=(t,n)=>t.sort(((t,r)=>e(t,r,n))),ce}(),y=function(){if(_e)return ue;_e=1;const e=mt();return ue=(t,n)=>t.sort(((t,r)=>e(r,t,n))),ue}(),v=gt(),b=ht(),x=yt(),S=vt(),k=bt(),T=xt(),C=St(),D=function(){if(we)return De;we=1;const e=dt(),t=pt(),{safeRe:n,t:r}=lt();return De=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i=String(i)),"string"!=typeof i)return null;let a=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!a||a.index+a[0].length!==i.length);)a&&t.index+t[0].length===a.index+a[0].length||(a=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else a=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);if(null===a)return null;const s=a[2],c=a[3]||"0",l=a[4]||"0",u=o.includePrerelease&&a[5]?`-${a[5]}`:"",_=o.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${s}.${c}.${l}${u}${_}`,o)},De}(),w=Tt(),E=kt(),F=Ct(),N=function(){if(je)return Re;je=1;const e=kt();return Re=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" "))),Re}(),P=function(){if(Be)return Me;Be=1;const e=dt(),t=kt();return Me=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&-1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},Me}(),A=function(){if(ze)return Je;ze=1;const e=dt(),t=kt();return Je=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},Je}(),I=function(){if(qe)return $e;qe=1;const e=dt(),t=kt(),n=gt();return $e=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;t{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":a&&!n(r,a)||(a=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||o&&!n(o,a)||(o=a)}return o&&r.test(o)?o:null},$e}(),O=Dt(),L=wt(),R=function(){if(Ke)return Ge;Ke=1;const e=wt();return Ge=(t,n,r)=>e(t,n,">",r),Ge}(),j=function(){if(Qe)return Xe;Qe=1;const e=wt();return Xe=(t,n,r)=>e(t,n,"<",r),Xe}(),ee=function(){if(Ze)return Ye;Ze=1;const e=kt();return Ye=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),te=function(){if(tt)return et;tt=1;const e=Ct(),t=ft();return et=(n,r,i)=>{const o=[];let a=null,s=null;const c=n.sort(((e,n)=>t(e,n,i)));for(const t of c)e(t,r,i)?(s=t,a||(a=t)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const l=[];for(const[e,t]of o)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const u=l.join(" || "),_="string"==typeof r.raw?r.raw:String(r);return u.length<_.length?u:r},et}(),ae=function(){if(rt)return nt;rt=1;const e=kt(),t=Tt(),{ANY:n}=t,r=Ct(),i=ft(),o=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],s=(e,t,s)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=s.includePrerelease?o:a}if(1===t.length&&t[0].semver===n){if(s.includePrerelease)return!0;t=a}const u=new Set;let _,d,p,f,m,g,h;for(const t of e)">"===t.operator||">="===t.operator?_=c(_,t,s):"<"===t.operator||"<="===t.operator?d=l(d,t,s):u.add(t.semver);if(u.size>1)return null;if(_&&d){if(p=i(_.semver,d.semver,s),p>0)return null;if(0===p&&(">="!==_.operator||"<="!==d.operator))return null}for(const e of u){if(_&&!r(e,String(_),s))return null;if(d&&!r(e,String(d),s))return null;for(const n of t)if(!r(e,String(n),s))return!1;return!0}let y=!(!d||s.includePrerelease||!d.semver.prerelease.length)&&d.semver,v=!(!_||s.includePrerelease||!_.semver.prerelease.length)&&_.semver;y&&1===y.prerelease.length&&"<"===d.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(h=h||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,_)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(f=c(_,e,s),f===e&&f!==_)return!1}else if(">="===_.operator&&!r(_.semver,String(e),s))return!1;if(d)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(m=l(d,e,s),m===e&&m!==d)return!1}else if("<="===d.operator&&!r(d.semver,String(e),s))return!1;if(!e.operator&&(d||_)&&0!==p)return!1}return!(_&&g&&!d&&0!==p||d&&h&&!_&&0!==p||v||y)},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return nt=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=s(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return it={parse:i,valid:o,clean:a,inc:s,diff:c,major:l,minor:u,patch:_,prerelease:d,compare:p,rcompare:f,compareLoose:m,compareBuild:g,sort:h,rsort:y,gt:v,lt:b,eq:x,neq:S,gte:k,lte:T,cmp:C,coerce:D,Comparator:w,Range:E,satisfies:F,toComparators:N,maxSatisfying:P,minSatisfying:A,minVersion:I,validRange:O,outside:L,gtr:R,ltr:j,intersects:ee,simplifyRange:te,subset:ae,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}var Ft,Nt,Pt={},At={};function It(){if(Ft)return At;Ft=1,Object.defineProperty(At,"__esModule",{value:!0}),At.fileExists=At.dirExists=void 0,At.readJson=s,At.safeReadJson=async function(e,t=!0){try{return await s(e,t)}catch{}},At.existsSync=function(t){return(0,e.existsSync)(t)};const e=t,r=n,i=T();At.dirExists=async e=>{let t;try{t=await(0,r.stat)(e)}catch{throw new Error(`No directory found at ${e}`)}if(!t.isDirectory())throw new Error(`${e} exists but is not a directory`);return e};At.fileExists=async e=>{let t;try{t=await(0,r.stat)(e)}catch{throw new Error(`No file found at ${e}`)}if(!t.isFile())throw new Error(`${e} exists but is not a file`);return e};class o extends Map{set(e,t){return(0,i.isProd)()&&super.set(e,t),this}}const a=new o;async function s(e,t=!0){if(t&&a.has(e))return JSON.parse(a.get(e));const n=await(0,r.readFile)(e,"utf8");return a.set(e,n),JSON.parse(n)}return At}var Ot,Lt={},Rt={};function jt(){if(Ot)return Rt;Ot=1,Object.defineProperty(Rt,"__esModule",{value:!0});const e=t,n=i;class r extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return r.instance||(r.instance=new r),r.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:require("@oclif/core/package.json").version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,e.readFileSync)((0,n.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}}return Rt.default=r,Rt}var Mt,Bt={},Jt={exports:{}},zt={},$t={};var qt,Ut="3.1.10";function Vt(){return qt||(qt=1,function(e){ /** * @file Embedded JavaScript templating engine. {@link http://ejs.co} * @author Matthew Eernisse @@ -7,7 +7,7 @@ * @project EJS * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0} */ -var t=o,n=a,r=(Bt||(Bt=1,function(e){var t=/[|\\{}()[\]^$+*?.]/g,n=Object.prototype.hasOwnProperty,r=function(e,t){return n.apply(e,[t])};e.escapeRegExpChars=function(e){return e?String(e).replace(t,"\\$&"):""};var i={"&":"&","<":"<",">":">",'"':""","'":"'"},o=/[&<>'"]/g;function a(e){return i[e]||e}function s(){return Function.prototype.toString.call(this)+';\nvar _ENCODE_HTML_RULES = {\n "&": "&"\n , "<": "<"\n , ">": ">"\n , \'"\': """\n , "\'": "'"\n }\n , _MATCH_HTML = /[&<>\'"]/g;\nfunction encode_char(c) {\n return _ENCODE_HTML_RULES[c] || c;\n};\n'}e.escapeXML=function(e){return null==e?"":String(e).replace(o,a)};try{"function"==typeof Object.defineProperty?Object.defineProperty(e.escapeXML,"toString",{value:s}):e.escapeXML.toString=s}catch(e){console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}e.shallowCopy=function(e,t){if(t=t||{},null!=e)for(var n in t)r(t,n)&&"__proto__"!==n&&"constructor"!==n&&(e[n]=t[n]);return e},e.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},null!=e)for(var i=0;i1;if(t.cache){if(!i)throw new Error("cache option requires a filename");if(r=e.cache.get(i))return r;o||(n=m(i).toString().replace(_,""))}else if(!o){if(!i)throw new Error("Internal EJS error: no file name or template provided");n=m(i).toString().replace(_,"")}return r=e.compile(n,t),t.cache&&e.cache.set(i,r),r}function m(t){return e.fileLoader(t)}function g(n,i){var o=r.shallowCopy(r.createNullProtoObjWherePossible(),i);if(o.filename=function(n,r){var i,o,a=r.views,s=/^[A-Za-z]+:\\|^\//.exec(n);if(s&&s.length)n=n.replace(/^\/*/,""),i=Array.isArray(r.root)?p(n,r.root):e.resolveInclude(n,r.root||"/",!0);else if(r.filename&&(o=e.resolveInclude(n,r.filename),t.existsSync(o)&&(i=o)),!i&&Array.isArray(a)&&(i=p(n,a)),!i&&"function"!=typeof r.includer)throw new Error('Could not find the include file "'+r.escapeFunction(n)+'"');return i}(n,o),"function"==typeof i.includer){var a=i.includer(n,o.filename);if(a&&(a.filename&&(o.filename=a.filename),a.template))return f(o,a.template)}return f(o)}function h(e,t,n,r,i){var o=t.split("\n"),a=Math.max(r-3,0),s=Math.min(o.length,r+3),c=i(n),l=o.slice(a,s).map((function(e,t){var n=t+a+1;return(n==r?" >> ":" ")+n+"| "+e})).join("\n");throw e.path=c,e.message=(c||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e}function y(e){return e.replace(/;(\s*$)/,"$1")}function v(t,n){var i=r.hasOwnOnlyObject(n),o=r.createNullProtoObjWherePossible();this.templateText=t,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",o.client=i.client||!1,o.escapeFunction=i.escape||i.escapeFunction||r.escapeXML,o.compileDebug=!1!==i.compileDebug,o.debug=!!i.debug,o.filename=i.filename,o.openDelimiter=i.openDelimiter||e.openDelimiter||"<",o.closeDelimiter=i.closeDelimiter||e.closeDelimiter||">",o.delimiter=i.delimiter||e.delimiter||"%",o.strict=i.strict||!1,o.context=i.context,o.cache=i.cache||!1,o.rmWhitespace=i.rmWhitespace,o.root=i.root,o.includer=i.includer,o.outputFunctionName=i.outputFunctionName,o.localsName=i.localsName||e.localsName||c,o.views=i.views,o.async=i.async,o.destructuredLocals=i.destructuredLocals,o.legacyInclude=void 0===i.legacyInclude||!!i.legacyInclude,o.strict?o._with=!1:o._with=void 0===i._with||i._with,this.opts=o,this.regex=this.createRegex()}e.cache=r.cache,e.fileLoader=t.readFileSync,e.localsName=c,e.promiseImpl=new Function("return this;")().Promise,e.resolveInclude=function(e,t,r){var i=n.dirname,o=n.extname,a=(0,n.resolve)(r?t:i(t),e);return o(e)||(a+=".ejs"),a},e.compile=function(e,t){return t&&t.scope&&(i||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),i=!0),t.context||(t.context=t.scope),delete t.scope),new v(e,t).compile()},e.render=function(e,t,n){var i=t||r.createNullProtoObjWherePossible(),o=n||r.createNullProtoObjWherePossible();return 2==arguments.length&&r.shallowCopyFromList(o,i,l),f(o,e)(i)},e.renderFile=function(){var t,n,i,o=Array.prototype.slice.call(arguments),a=o.shift(),s={filename:a};return"function"==typeof arguments[arguments.length-1]&&(t=o.pop()),o.length?(n=o.shift(),o.length?r.shallowCopy(s,o.pop()):(n.settings&&(n.settings.views&&(s.views=n.settings.views),n.settings["view cache"]&&(s.cache=!0),(i=n.settings["view options"])&&r.shallowCopy(s,i)),r.shallowCopyFromList(s,n,u)),s.filename=a):n=r.createNullProtoObjWherePossible(),function(t,n,r){var i;if(!r){if("function"==typeof e.promiseImpl)return new e.promiseImpl((function(e,r){try{e(i=f(t)(n))}catch(e){r(e)}}));throw new Error("Please provide a callback function")}try{i=f(t)(n)}catch(e){return r(e)}r(null,i)}(s,n,t)},e.Template=v,e.clearCache=function(){e.cache.reset()},v.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},v.prototype={createRegex:function(){var e="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",t=r.escapeRegExpChars(this.opts.delimiter),n=r.escapeRegExpChars(this.opts.openDelimiter),i=r.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(//g,i),new RegExp(e)},compile:function(){var e,t,i,o=this.opts,a="",s="",c=o.escapeFunction,l=o.filename?JSON.stringify(o.filename):"undefined";if(!this.source){if(this.generateSource(),a+=' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n',o.outputFunctionName){if(!d.test(o.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");a+=" var "+o.outputFunctionName+" = __append;\n"}if(o.localsName&&!d.test(o.localsName))throw new Error("localsName is not a valid JS identifier.");if(o.destructuredLocals&&o.destructuredLocals.length){for(var u=" var __locals = ("+o.localsName+" || {}),\n",_=0;_0&&(u+=",\n "),u+=p+" = __locals."+p}a+=u+";\n"}!1!==o._with&&(a+=" with ("+o.localsName+" || {}) {\n",s+=" }\n"),s+=" return __output;\n",this.source=a+this.source+s}e=o.compileDebug?"var __line = 1\n , __lines = "+JSON.stringify(this.templateText)+"\n , __filename = "+l+";\ntry {\n"+this.source+"} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n":this.source,o.client&&(e="escapeFn = escapeFn || "+c.toString()+";\n"+e,o.compileDebug&&(e="rethrow = rethrow || "+h.toString()+";\n"+e)),o.strict&&(e='"use strict";\n'+e),o.debug&&console.log(e),o.compileDebug&&o.filename&&(e=e+"\n//# sourceURL="+l+"\n");try{if(o.async)try{i=new Function("return (async function(){}).constructor;")()}catch(e){throw e instanceof SyntaxError?new Error("This environment does not support async/await"):e}else i=Function;t=new i(o.localsName+", escapeFn, include, rethrow",e)}catch(e){throw e instanceof SyntaxError&&(o.filename&&(e.message+=" in "+o.filename),e.message+=" while compiling ejs\n\n",e.message+="If the above error is not helpful, you may want to try EJS-Lint:\n",e.message+="https://github.com/RyanZim/EJS-Lint",o.async||(e.message+="\n",e.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),e}var f=o.client?t:function(e){return t.apply(o.context,[e||r.createNullProtoObjWherePossible(),c,function(t,n){var i=r.shallowCopy(r.createNullProtoObjWherePossible(),e);return n&&(i=r.shallowCopy(i,n)),g(t,o)(i)},h])};if(o.filename&&"function"==typeof Object.defineProperty){var m=o.filename,y=n.basename(m,n.extname(m));try{Object.defineProperty(f,"name",{value:y,writable:!1,enumerable:!1,configurable:!0})}catch(e){}}return f},generateSource:function(){this.opts.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,t=this.parseTemplateText(),n=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter;t&&t.length&&t.forEach((function(o,a){var s;if(0===o.indexOf(r+n)&&0!==o.indexOf(r+n+n)&&(s=t[a+2])!=n+i&&s!="-"+n+i&&s!="_"+n+i)throw new Error('Could not find matching close tag for "'+o+'".');e.scanLine(o)}))},parseTemplateText:function(){for(var e,t=this.templateText,n=this.regex,r=n.exec(t),i=[];r;)0!==(e=r.index)&&(i.push(t.substring(0,e)),t=t.slice(e)),i.push(r[0]),t=t.slice(r[0].length),r=n.exec(t);return t&&i.push(t),i},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/"/g,'\\"'),this.source+=' ; __append("'+e+'")\n'},scanLine:function(e){var t,n=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter;switch(t=e.split("\n").length-1,e){case r+n:case r+n+"_":this.mode=v.modes.EVAL;break;case r+n+"=":this.mode=v.modes.ESCAPED;break;case r+n+"-":this.mode=v.modes.RAW;break;case r+n+"#":this.mode=v.modes.COMMENT;break;case r+n+n:this.mode=v.modes.LITERAL,this.source+=' ; __append("'+e.replace(r+n+n,r+n)+'")\n';break;case n+n+i:this.mode=v.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+i,n+i)+'")\n';break;case n+i:case"-"+n+i:case"_"+n+i:this.mode==v.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=0===e.indexOf("-")||0===e.indexOf("_");break;default:if(this.mode){switch(this.mode){case v.modes.EVAL:case v.modes.ESCAPED:case v.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf("\n")&&(e+="\n")}switch(this.mode){case v.modes.EVAL:this.source+=" ; "+e+"\n";break;case v.modes.ESCAPED:this.source+=" ; __append(escapeFn("+y(e)+"))\n";break;case v.modes.RAW:this.source+=" ; __append("+y(e)+")\n";break;case v.modes.COMMENT:break;case v.modes.LITERAL:this._addOutput(e)}}else this._addOutput(e)}this.opts.compileDebug&&t&&(this.currentLine+=t,this.source+=" ; __line = "+this.currentLine+"\n")}},e.escapeXML=r.escapeXML,e.__express=e.renderFile,e.VERSION=s,e.name="ejs","undefined"!=typeof window&&(window.ejs=e)}($t)),$t}var Ht,Gt,Kt,Xt={exports:{}};function Qt(){if(Gt)return Ht;Gt=1;const e=o;let t;return Ht=()=>(void 0===t&&(t=function(){try{return e.statSync("/.dockerenv"),!0}catch(e){return!1}}()||function(){try{return e.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch(e){return!1}}()),t)}var Yt,Zt,en,tn,nn,rn={},on={},an={},sn={exports:{}},cn={exports:{}};function ln(){if(Zt)return Yt;Zt=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,o=365.25*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return Yt=function(s,c){c=c||{};var l=typeof s;if("string"===l&&s.length>0)return function(a){if((a=String(a)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===l&&isFinite(s))return c.long?function(i){var o=Math.abs(i);if(o>=r)return a(i,o,r,"day");if(o>=n)return a(i,o,n,"hour");if(o>=t)return a(i,o,t,"minute");if(o>=e)return a(i,o,e,"second");return i+" ms"}(s):function(i){var o=Math.abs(i);if(o>=r)return Math.round(i/r)+"d";if(o>=n)return Math.round(i/n)+"h";if(o>=t)return Math.round(i/t)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function un(){if(tn)return en;return tn=1,en=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,o=0;for(;n"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=ln(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in r))||"codeship"===r.CI_NAME?1:l;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=Number.parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:l}function a(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o(e,{streamIsTTY:e&&e.isTTY,...t}))}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?i=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(i=1),pn={supportsColor:a,stdout:a({isTTY:t.isatty(1)}),stderr:a({isTTY:t.isatty(2)})}}function xn(){return mn||(mn=1,function(e,t){const n=l,r=u;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=bn();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=un()(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(yn,yn.exports)),yn.exports}function Sn(){return gn||(gn=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?sn.exports=(nn||(nn=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=un()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(cn,cn.exports)),cn.exports):sn.exports=xn()),sn.exports}function kn(){if(hn)return an;hn=1;var e=an.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(an,"__esModule",{value:!0}),an.getLogger=o,an.makeDebug=function(e){return(t,...n)=>o(e).debug(t,...n)},an.setLogger=function(e){e&&"string"!=typeof e&&"logger"in e&&e.logger?a(e.logger):a(r(n))},an.clearLoggers=function(){i.clear()};const t=e(Sn()),n="oclif";function r(e=n){const i=(0,t.default)(e);return{child:(t,n)=>r(`${e}${n??":"}${t}`),debug:i,error:(t,...n)=>r(`${e}:error`).debug(t,...n),info:i,namespace:e,trace:i,warn:i}}const i=new Map;function o(e){let t=i.get("root");if(t||a(r(n)),t=i.get("root"),e){const n=i.get(e);if(n)return n;const r=t.child(e);return i.set(e,r),r}return t}function a(e){i.has(e.namespace)||i.has("root")||(!function(e){return"function"==typeof e.child&&"function"==typeof e.debug&&"function"==typeof e.error&&"function"==typeof e.info&&"function"==typeof e.trace&&"function"==typeof e.warn&&"string"==typeof e.namespace}(e)?process.emitWarning("Logger does not match the Logger interface. Using default logger."):(i.set(e.namespace,e),i.set("root",e)))}return an}var Tn,Cn={};function Dn(){if(Tn)return Cn;Tn=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.stderr=Cn.stdout=void 0;const e=r;Cn.stdout=(t,...n)=>{!t&&n?console.log((0,e.format)(...n)):t?"string"==typeof t?console.log((0,e.format)(t,...n)):console.log((0,e.format)(...t,...n)):console.log()};return Cn.stderr=(t,...n)=>{!t&&n?console.error((0,e.format)(...n)):t?"string"==typeof t?console.error((0,e.format)(t,...n)):console.error((0,e.format)(...t,...n)):console.error()},Cn}var wn,En,Fn,Nn,Pn,An,In={};function On(){return En||(En=1,wn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),wn}function Ln(){if(Nn)return Fn;Nn=1;const e=s,t=On(),n=/\s+at.*[(\s](.*)\)?/,r=/^(?:(?:(?:node|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,i=void 0===e.homedir?"":e.homedir();return Fn=(e,{pretty:o=!1,basePath:a}={})=>{const s=a&&new RegExp(`(at | \\()${t(a)}`,"g");return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(n);if(null===t||!t[1])return!0;const i=t[1];return!i.includes(".app/Contents/Resources/electron.asar")&&!i.includes(".app/Contents/Resources/default_app.asar")&&!r.test(i)})).filter((e=>""!==e.trim())).map((e=>(s&&(e=e.replace(s,"$1")),o&&(e=e.replace(n,((e,t)=>e.replace(t,t.replace(i,"~"))))),e))).join("\n")},Fn}function Rn(){return An||(An=1,Pn=(e,t=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof n.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(0===t)return e;const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}),Pn}var jn,Mn,Bn,Jn,zn={exports:{}};function $n(){return Mn||(Mn=1,jn=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}),jn}function qn(){if(Jn)return Bn;Jn=1;const e=$n();return Bn=t=>"string"==typeof t?t.replace(e(),""):t,Bn}var Un,Vn,Wn,Hn,Gn={exports:{}};function Kn(){if(Un)return Gn.exports;Un=1;const e=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));return Gn.exports=e,Gn.exports.default=e,Gn.exports}function Xn(){return Wn?Vn:(Wn=1,Vn=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g})}function Qn(){if(Hn)return zn.exports;Hn=1;const e=qn(),t=Kn(),n=Xn(),r=r=>{if("string"!=typeof r||0===r.length)return 0;if(0===(r=e(r)).length)return 0;r=r.replace(n()," ");let i=0;for(let e=0;e=127&&n<=159||(n>=768&&n<=879||(n>65535&&e++,i+=t(n)?2:1))}return i};return zn.exports=r,zn.exports.default=r,zn.exports}var Yn,Zn,er,tr,nr,rr,ir,or,ar,sr,cr,lr={exports:{}};function ur(){if(tr)return er;tr=1;const e=Zn?Yn:(Zn=1,Yn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};er=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:r})}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,c;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const l=(i+o)/2;return c=o===i?0:l<=.5?a/(o+i):a/(2-o-i),[s,100*c,100*l]},n.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(a,s,c),u=l-Math.min(a,s,c),_=function(e){return(l-e)/6/u+.5};return 0===u?(i=0,o=0):(o=u/l,t=_(a),n=_(s),r=_(c),a===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},n.rgb.hwb=function(e){const t=e[0],r=e[1];let i=e[2];const o=n.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[o,100*a,100*i]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},n.rgb.keyword=function(n){const r=t[n];if(r)return r;let i,o=1/0;for(const t of Object.keys(e)){const r=e[t],c=(s=r,((a=n)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);c.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let r=t[0],i=t[1],o=t[2];r/=95.047,i/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*i-16,500*(r-i),200*(i-o)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,c[e]=255*a;return c},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;return[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),c=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,c,a];case 1:return[s,r,a];case 2:return[a,r,c];case 3:return[a,s,r];case 4:return[c,a,r];case 5:return[r,a,s]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,1&a&&(o=1-o);const c=n+o*(s-n);let l,u,_;switch(a){default:case 6:case 0:l=s,u=c,_=n;break;case 1:l=c,u=s,_=n;break;case 2:l=n,u=s,_=c;break;case 3:l=n,u=c,_=s;break;case 4:l=c,u=n,_=s;break;case 5:l=s,u=n,_=c}return[255*l,255*u,255*_]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},n.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},n.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,a=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},n.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(n*n+r*r),i]},n.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},n.rgb.ansi16=function(e,t=null){const[r,i,o]=e;let a=null===t?n.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,c;return s=a<1?o/(1-a):0,c=a<=0?0:i===t?(n-r)/a%6:i===n?2+(r-t)/a:4+(t-n)/a,c/=6,c%=1,[360*c,100*a,100*s]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[255*(n*i[0]+c),255*(n*i[1]+c),255*(n*i[2]+c)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},er}function _r(){if(rr)return nr;rr=1;const e=ur();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,r=0;r{n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});const i=t(r);Object.keys(i).forEach((e=>{const t=i[e];n[r][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),ir=n}function pr(){return ar||(ar=1,function(e){const t=(e,t)=>(...n)=>`[${e(...n)+t}m`,n=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},r=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},i=e=>e,o=(e,t,n)=>[e,t,n],a=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let s;const c=(e,t,n,r)=>{void 0===s&&(s=dr());const i=r?10:0,o={};for(const[r,a]of Object.entries(s)){const s="ansi16"===r?"ansi":r;r===t?o[s]=e(n,i):"object"==typeof a&&(o[s]=e(a[t],i))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[t,n]of Object.entries(s)){for(const[t,r]of Object.entries(n))s[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=s[t],e.set(r[0],r[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",a(s.color,"ansi",(()=>c(t,"ansi16",i,!1))),a(s.color,"ansi256",(()=>c(n,"ansi256",i,!1))),a(s.color,"ansi16m",(()=>c(r,"rgb",o,!1))),a(s.bgColor,"ansi",(()=>c(t,"ansi16",i,!0))),a(s.bgColor,"ansi256",(()=>c(n,"ansi256",i,!0))),a(s.bgColor,"ansi16m",(()=>c(r,"rgb",o,!0))),s}})}(lr)),lr.exports}function fr(){if(cr)return sr;cr=1;const e=Qn(),t=qn(),n=pr(),r=new Set(["","›"]),i="]8;;",o=e=>`${r.values().next().value}[${e}m`,a=e=>`${r.values().next().value}${i}${e}`,s=(n,o,a)=>{const s=[...o];let c=!1,l=!1,u=e(t(n[n.length-1]));for(const[t,o]of s.entries()){const _=e(o);u+_<=a?n[n.length-1]+=o:(n.push(o),u=0),r.has(o)&&(c=!0,l=s.slice(t+1).join("").startsWith(i)),c?l?""===o&&(c=!1,l=!1):"m"===o&&(c=!1):(u+=_,u===a&&t0&&n.length>1&&(n[n.length-2]+=n.pop())},c=t=>{const n=t.split(" ");let r=n.length;for(;r>0&&!(e(n[r-1])>0);)r--;return r===n.length?t:n.slice(0,r).join(" ")+n.slice(r).join("")},l=(t,l,u={})=>{if(!1!==u.trim&&""===t.trim())return"";let _,d,p="";const f=(t=>t.split(" ").map((t=>e(t))))(t);let m=[""];for(const[n,r]of t.split(" ").entries()){!1!==u.trim&&(m[m.length-1]=m[m.length-1].trimStart());let t=e(m[m.length-1]);if(0!==n&&(t>=l&&(!1===u.wordWrap||!1===u.trim)&&(m.push(""),t=0),(t>0||!1===u.trim)&&(m[m.length-1]+=" ",t++)),u.hard&&f[n]>l){const e=l-t,i=1+Math.floor((f[n]-e-1)/l);Math.floor((f[n]-1)/l)l&&t>0&&f[n]>0){if(!1===u.wordWrap&&tl&&!1===u.wordWrap?s(m,r,l):m[m.length-1]+=r}}!1!==u.trim&&(m=m.map(c));const g=[...m.join("\n")];for(const[e,t]of g.entries()){if(p+=t,r.has(t)){const{groups:t}=new RegExp(`(?:\\[(?\\d+)m|\\${i}(?.*))`).exec(g.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);_=39===e?void 0:e}else void 0!==t.uri&&(d=0===t.uri.length?void 0:t.uri)}const s=n.codes.get(Number(_));"\n"===g[e+1]?(d&&(p+=a("")),_&&s&&(p+=o(s))):"\n"===t&&(_&&s&&(p+=o(_)),d&&(p+=a(d)))}return p};return sr=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>l(e,t,n))).join("\n"),sr}var mr,gr,hr={},yr={};function vr(){return mr||(mr=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.settings=void 0,b.oclif||(b.oclif={}),yr.settings=b.oclif),yr}function br(){if(gr)return hr;gr=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.errtermwidth=hr.stdtermwidth=void 0;const e=vr();function t(e){if(!e.isTTY)return 80;const t=e.getWindowSize()[0];return t<1?80:t<40?40:t}const n=Number.parseInt(process.env.OCLIF_COLUMNS,10)||e.settings.columns;return hr.stdtermwidth=n||t(process.stdout),hr.errtermwidth=n||t(process.stderr),hr}var xr,Sr={},kr={exports:{}},Tr=kr.exports;function Cr(){if(xr)return kr.exports;xr=1,Object.defineProperty(Tr,"__esModule",{value:!0});let{round:e,floor:t,max:n}=Math,r=e=>{let[,t]=/([a-f\d]{3,6})/i.exec(e)||[],n=t?t.length:0;if(3===n)t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2];else if(6!==n)return[0,0,0];let r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]},i=(t,n,r)=>t===n&&n===r?t<8?16:t>248?231:e((t-8)/247*24)+232:16+36*e(t/51)+6*e(n/51)+e(r/51),o=r=>{let i,o,a,s,c;return r<8?30+r:r<16?r-8+90:(r>=232?i=o=a=(10*(r-232)+8)/255:(c=(r-=16)%36,i=t(r/36)/5,o=t(c/6)/5,a=c%6/5),s=2*n(i,o,a),s?30+(e(a)<<2|e(o)<<1|e(i))+(2===s?60:0):30)},a=(e,t,n)=>o(i(e,t,n)),s=(()=>{let e=e=>!!s.find((t=>e.test(t))),t=globalThis,n=t.Deno,r=null!=n,i=t.process||n||{},o=i.stdout,a="win32"===(r?n.build.os:i.platform),s=i.argv||i.args||[],c=i.env||{},l=-1;if(r)try{c=c.toObject()}catch(e){l=0}let u="FORCE_COLOR",_=c[u],d=parseInt(_),p="false"===_?0:isNaN(d)?3:d,f=!!c.NO_COLOR||0===p||e(/^-{1,2}(no-color|color=(false|never))$/),m=u in c&&p||e(/^-{1,2}color=?(true|always)?$/),g=(c.NEXT_RUNTIME||"").includes("edge"),h=!!c.PM2_HOME&&!!c.pm_id||g||(r?n.isatty(1):o&&!!o.isTTY);return f?0:(l<0&&(l=((e,t,n)=>{let{TERM:r,COLORTERM:i}=e;return"truecolor"===i||"24bit"===i?3:"ansi256"===i?2:"ansi"===i||e.TF_BUILD?1:e.TEAMCITY_VERSION?2:e.CI?["GITHUB_ACTIONS","GITEA_ACTIONS"].some((t=>t in e))?3:1:!t||/-mono|dumb/i.test(r)?0:n||/^xterm-(kitty|direct)$/i.test(r)?3:/-256(colou?r)?$/i.test(r)?2:/^screen|^tmux|^xterm|^vt[1-5][0-9]([0-9])?|^ansi|color|cygwin|linux|mintty|rxvt/i.test(r)?1:3})(c,h,a)),m&&0===l?3:l)})(),c=s>0,l={open:"",close:""},u=c?(e,t)=>({open:`[${e}m`,close:`[${t}m`}):()=>l,_=39,d=49,p=e=>(t,n,r)=>e(i(t,n,r)),f=e=>t=>{let[n,i,o]=r(t);return e(n,i,o)},m=e=>u(`38;5;${e}`,_),g=e=>u(`48;5;${e}`,d),h=(e,t,n)=>u(`38;2;${e};${t};${n}`,_),y=(e,t,n)=>u(`48;2;${e};${t};${n}`,d);1===s?(m=e=>u(o(e),_),g=e=>u(o(e)+10,d),h=(e,t,n)=>u(a(e,t,n),_),y=(e,t,n)=>u(a(e,t,n)+10,d)):2===s&&(h=p(m),y=p(g));let v,b,x={ansi256:m,bgAnsi256:g,fg:m,bg:g,rgb:h,bgRgb:y,hex:f(h),bgHex:f(y),visible:l,reset:u(0,0),bold:u(1,22),dim:u(2,22),italic:u(3,23),underline:u(4,24),inverse:u(7,27),hidden:u(8,28)},S="black,red,green,yellow,blue,magenta,cyan,white".split(","),k="Bright",T=30;for(v of S)b="bg"+v[0].toUpperCase()+v.slice(1),x[v]=u(T,_),x[v+k]=u(T+60,_),x[b]=u(T+10,d),x[b+k]=u(T+70,d),T++;x.grey=x.gray=u(90,_),x.bgGrey=x.bgGray=u(100,d),x.strikethrough=x.strike=u(9,29);let C,{create:D,defineProperty:w,setPrototypeOf:E}=Object,F=/[›][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,N=/(\r?\n)/g,P={},A=({_p:e},{open:t,close:n})=>{let r=(e,...t)=>{if(!e)return"";let n=r._p,{_a:i,_b:o}=n,a=e.raw?String.raw(e,...t):""+e;if(a.includes(""))for(;n;){let e,t,r=n.close,i=n.open,o=r.length,s="";if(o){for(e=0;~(t=a.indexOf(r,e));e=t+o)s+=a.slice(e,t)+i;e&&(a=s+a.slice(e))}n=n._p}return a.includes("\n")&&(a=a.replace(N,o+"$1"+i)),i+a+o},i=t,o=n;return e&&(i=e._a+t,o=n+e._b),E(r,C),r._p={open:t,close:n,_a:i,_b:o,_p:e},r.open=i,r.close=o,r};const I=function(){let e={isSupported:()=>c,strip:e=>e.replace(F,""),extend(t){for(let e in t){let n=t[e],i=(typeof n)[0],o="s"===i?h(...r(n)):n;P[e]="f"===i?{get(){return(...e)=>A(this,n(...e))}}:{get(){let t=A(this,o);return w(this,e,{value:t}),t}}}return C=D({},P),E(e,C),e}};return e.extend(x)},O=new I;return kr.exports=O,kr.exports.Ansis=I,O.default=O,kr.exports}var Dr,wr={};var Er,Fr,Nr,Pr={};function Ar(){if(Fr)return Sr;Fr=1;var e=Sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.colorize=function(e,n){if(!e)return n;if(!(0,r.supportsColor)())return n;if(i(e))return t.default[e](n);if(e.startsWith("#"))return t.default.hex(e)(n);if(e.startsWith("rgb")){const[r,i,o]=e.slice(4,-1).split(",").map((e=>Number.parseInt(e.trim(),10)));return t.default.rgb(r,i,o)(n)}return n},Sr.parseTheme=function e(t){return Object.fromEntries(Object.entries(t).map((([t,n])=>{return[t,"string"==typeof n?(r=n,r.startsWith("#")||r.startsWith("rgb")||i(r)?r:void 0):e(n)];var r})).filter((([e,t])=>t)))};const t=e(Cr()),n=(Dr||(Dr=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.STANDARD_ANSI=void 0,wr.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]),wr),r=function(){if(Er)return Pr;Er=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.supportsColor=function(){return Boolean(e.stdout)&&Boolean(e.stderr)};const e=bn();return Pr}();function i(e){return n.STANDARD_ANSI.includes(e)}return Sr}function Ir(){if(Nr)return In;Nr=1;var e=In.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(In,"__esModule",{value:!0}),In.CLIError=void 0,In.addOclifExitCode=c;const t=e(Ln()),n=e(Rn()),r=e(fr()),i=e(Mt()),o=br(),a=vr(),s=Ar();function c(e,t){return"oclif"in e||(e.oclif={}),e.oclif.exit=void 0===t?.exit?i.default.getInstance().get("exitCodes")?.default??2:t.exit,e}class l extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,t={}){super(e instanceof Error?e.message:e),c(this,t),this.code=t.code,this.suggestions=t.suggestions}get bang(){try{return(0,s.colorize)("red","win32"===process.platform?"»":"›")}catch{}}get stack(){return(0,t.default)(super.stack,{pretty:!0})}render(){if(a.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,r.default)(e,o.errtermwidth-6,{hard:!0,trim:!1}),e=(0,n.default)(e,3),e=(0,n.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,n.default)(e,1),e}}return In.CLIError=l,function(e){e.Warn=class extends e{constructor(e){super(e instanceof Error?e.message:e),this.name="Warning"}get bang(){try{return(0,s.colorize)("yellow","win32"===process.platform?"»":"›")}catch{}}}}(l),In}var Or,Lr,Rr={};function jr(){if(Or)return Rr;Or=1;var e=Rr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.applyPrettyPrintOptions=function(e,t){const n=["message","code","ref","suggestions"];for(const r of n){!(r in e)&&t[r]&&(e[r]=t[r])}return e},Rr.default=function(e){if(i.settings.debug)return e.stack;const{bang:a,code:s,message:c,name:l,ref:u,suggestions:_}=e,d=c?`${l||"Error"}: ${c}`:void 0,p=s?`Code: ${s}`:void 0,f=o(_),m=u?`Reference: ${u}`:void 0,g=[d,p,f,m].filter(Boolean).join("\n");let h=(0,n.default)(g,r.errtermwidth-6,{hard:!0,trim:!1});return h=(0,t.default)(h,3),h=(0,t.default)(h,1,{includeEmptyLines:!0,indent:a||""}),h=(0,t.default)(h,1),h};const t=e(Rn()),n=e(fr()),r=br(),i=vr();const o=e=>{const n="Try this:";if(!e||0===e.length)return;if(1===e.length)return`${n} ${e[0]}`;const r=e.map((e=>`* ${e}`)).join("\n");return`${n}\n${(0,t.default)(r,2)}`};return Rr}function Mr(){if(Lr)return on;Lr=1;var e,t=on.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=on.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=on.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var o=e(r),a=0;a>>=5)>0&&(n|=32),r+=e.encode(n)}while(i>0);return r},si.decode=function(t,n,r){var i,o,a,s,c=t.length,l=0,u=0;do{if(n>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=e.decode(t.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+t.charAt(n-1));i=!!(32&o),l+=(o&=31)<>1,1&~a?s:-s),r.rest=n},si}var _i,di={};function pi(){return _i||(_i=1,function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(t){var n=t,o=r(t);if(o){if(!o.path)return t;n=o.path}for(var a,s=e.isAbsolute(n),c=n.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(a=c[u])?c.splice(u,1):".."===a?l++:l>0&&(""===a?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(n=c.join("/"))&&(n=s?"/":"."),o?(o.path=n,i(o)):n}function a(e,t){""===e&&(e="."),""===t&&(t=".");var a=r(t),s=r(e);if(s&&(e=s.path||"/"),a&&!a.scheme)return s&&(a.scheme=s.scheme),i(a);if(a||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,i(s)):c}e.urlParse=r,e.urlGenerate=i,e.normalize=o,e.join=a,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function c(e){return e}function l(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 n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=s?c:function(e){return l(e)?"$"+e:e},e.fromSetString=s?c:function(e){return l(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=u(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:u(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=u(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=u(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var s=r(n);if(!s)throw new Error("sourceMapURL could not be parsed");if(s.path){var c=s.path.lastIndexOf("/");c>=0&&(s.path=s.path.substring(0,c+1))}t=a(i(s),t)}return o(t)}}(di)),di}var fi,mi={};function gi(){if(fi)return mi;fi=1;var e=pi(),t=Object.prototype.hasOwnProperty,n="undefined"!=typeof Map;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,i=0,o=e.length;i=0)return i}else{var o=e.toSetString(r);if(t.call(this._set,o))return this._set[o]}throw new Error('"'+r+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&ei||o==i&&s>=a||e.compareByGeneratedPositionsInflated(n,r)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},vi.MappingList=t,vi}function xi(){if(yi)return ai;yi=1;var e=ui(),t=pi(),n=gi().ArraySet,r=bi().MappingList;function i(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(e){var n=e.sourceRoot,r=new i({file:e.file,sourceRoot:n});return e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=n&&(i.source=t.relative(n,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),r.addMapping(i)})),e.sources.forEach((function(i){var o=i;null!==n&&(o=t.relative(n,i)),r._sources.has(o)||r._sources.add(o);var a=e.sourceContentFor(i);null!=a&&r.setSourceContent(i,a)})),r},i.prototype.addMapping=function(e){var n=t.getArg(e,"generated"),r=t.getArg(e,"original",null),i=t.getArg(e,"source",null),o=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,r,i,o),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:i,name:o})},i.prototype.setSourceContent=function(e,n){var r=e;null!=this._sourceRoot&&(r=t.relative(this._sourceRoot,r)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(e,r,i){var o=r;if(null==r){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');o=e.file}var a=this._sourceRoot;null!=a&&(o=t.relative(a,o));var s=new n,c=new n;this._mappings.unsortedForEach((function(n){if(n.source===o&&null!=n.originalLine){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=i&&(n.source=t.join(i,n.source)),null!=a&&(n.source=t.relative(a,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}var l=n.source;null==l||s.has(l)||s.add(l);var u=n.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(n){var r=e.sourceContentFor(n);null!=r&&(null!=i&&(n=t.join(i,n)),null!=a&&(n=t.relative(a,n)),this.setSourceContent(n,r))}),this)},i.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(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&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},i.prototype._serializeMappings=function(){for(var n,r,i,o,a=0,s=1,c=0,l=0,u=0,_=0,d="",p=this._mappings.toArray(),f=0,m=p.length;f0){if(!t.compareByGeneratedPositionsInflated(r,p[f-1]))continue;n+=","}n+=e.encode(r.generatedColumn-a),a=r.generatedColumn,null!=r.source&&(o=this._sources.indexOf(r.source),n+=e.encode(o-_),_=o,n+=e.encode(r.originalLine-1-l),l=r.originalLine-1,n+=e.encode(r.originalColumn-c),c=r.originalColumn,null!=r.name&&(i=this._names.indexOf(r.name),n+=e.encode(i-u),u=i)),d+=n}return d},i.prototype._generateSourcesContent=function(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},i.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},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},ai.SourceMapGenerator=i,ai}var Si,ki={},Ti={};function Ci(){return Si||(Si=1,function(e){function t(n,r,i,o,a,s){var c=Math.floor((r-n)/2)+n,l=a(i,o[c],!0);return 0===l?c:l>0?r-c>1?t(c,r,i,o,a,s):s==e.LEAST_UPPER_BOUND?r1?t(n,c,i,o,a,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(n,r,i,o){if(0===r.length)return-1;var a=t(-1,r.length,n,r,i,o||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===i(r[a],r[a-1],!0);)--a;return a}}(Ti)),Ti}var Di,wi,Ei={};function Fi(){if(Di)return Ei;function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(n,r,i,o){if(i=0){var s=this._originalMappings[a];if(void 0===n.column)for(var c=s.originalLine;s&&s.originalLine===c;)o.push({line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)o.push({line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return o},ki.SourceMapConsumer=o,a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.prototype._findSourceIndex=function(t){var n,r=t;if(null!=this.sourceRoot&&(r=e.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(n=0;n1&&(o.source=m+c[1],m+=c[1],o.originalLine=p+c[2],p=o.originalLine,o.originalLine+=1,o.originalColumn=f+c[3],f=o.originalColumn,c.length>4&&(o.name=g+c[4],g+=c[4])),S.push(o),"number"==typeof o.originalLine&&x.push(o)}i(S,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,i(x,e.compareByOriginalPositions),this.__originalMappings=x},a.prototype._findMapping=function(e,n,r,i,o,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return t.search(e,n,o,a)},a.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=e.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=e.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=e.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:a,line:e.getArg(i,"originalLine",null),column:e.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},a.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i,o=t;if(null!=this.sourceRoot&&(o=e.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=e.urlParse(this.sourceRoot))){var a=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(n)return null;throw new Error('"'+o+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(t){var n=e.getArg(t,"source");if((n=this._findSourceIndex(n))<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(t,"bias",o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:e.getArg(a,"generatedLine",null),column:e.getArg(a,"generatedColumn",null),lastColumn:e.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ki.BasicSourceMapConsumer=a,c.prototype=Object.create(o.prototype),c.prototype.constructor=o,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var e=[],t=0;t=0;t--)this.prepend(e[t]);else{if(!e[r]&&"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},i.prototype.walk=function(e){for(var t,n=0,i=this.children.length;n0){for(t=[],n=0;n>>=0;var i=e.byteLength-n;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=i;else if((r>>>=0)>i)throw new RangeError("'length' is out of bounds");return t?Buffer.from(e.slice(n,n+r)):new Buffer(new Uint8Array(e.slice(n,n+r)))}(n,r,i):"string"==typeof n?function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!Buffer.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');return t?Buffer.from(e,n):new Buffer(e,n)}(n,r):t?Buffer.from(n):new Buffer(n);var o},Ai}function Ji(){return Oi||(Oi=1,function(e,t){var n,r=Mi().SourceMapConsumer,i=a;try{(n=require("fs")).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=Bi();function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,_="auto",d={},p={},f=/^data:application\/json[^,]+base64,/,m=[],g=[];function h(){return"browser"===_||"node"!==_&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function y(e){return function(t){for(var n=0;n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var i="",o=this.getFunctionName(),a=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();o?(c&&0!=o.indexOf(c)&&(i+=c+"."),i+=o,l&&o.indexOf("."+l)!=o.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"")}else s?i+="new "+(o||""):o?i+=o:(i+=t,a=!1);return a&&(i+=" ("+t+")"),i}function C(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]})),t.toString=T,t}function D(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=e.getLineNumber(),i=e.getColumnNumber()-1,o=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===r&&i>o&&!h()&&!e.isEval()&&(i-=o);var a=S({source:n,line:r,column:i});t.curPosition=a;var s=(e=C(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},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 c=e.isEval()&&e.getEvalOrigin();return c?(c=k(c),(e=C(e)).getEvalOrigin=function(){return c},e):e}function w(e,t){u&&(d={},p={});for(var n=(e.name||"Error")+": "+(e.message||""),r={nextPosition:null,curPosition:null},i=[],o=t.length-1;o>=0;o--)i.push("\n at "+D(t[o],r)),r.nextPosition=r.curPosition;return r.curPosition=r.nextPosition=null,n+i.reverse().join("")}function E(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],o=+t[3],a=d[r];if(!a&&n&&n.existsSync(r))try{a=n.readFileSync(r,"utf8")}catch(e){a=""}if(a){var s=a.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(o).join(" ")+"^"}}return null}function F(e){var t=E(e),n=function(){if("object"==typeof process&&null!==process)return process.stderr}();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),function(e){if("object"==typeof process&&null!==process&&"function"==typeof process.exit)process.exit(e)}(1)}g.push((function(e){var t,n=function(e){var t;if(h())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(e){}t=v(e);for(var i,o,a=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;o=a.exec(t);)i=o;return i?i[1]:null}(e);if(!n)return null;if(f.test(n)){var r=n.slice(n.indexOf(",")+1);t=o(r,"base64").toString(),n=e}else n=b(e,n),t=v(n);return t?{url:n,map:t}:null}));var N=m.slice(0),P=g.slice(0);t.wrapCallSite=D,t.getErrorSource=E,t.mapSourcePosition=S,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(_=t.environment,-1===["node","browser","auto"].indexOf(_)))throw new Error("environment "+_+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(m.length=0),m.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(g.length=0),g.unshift(t.retrieveSourceMap)),t.hookRequire&&!h()){var n=s(e,"module"),r=n.prototype._compile;r.__sourceMapSupport||(n.prototype._compile=function(e,t){return d[t]=e,p[t]=void 0,r.call(this,e,t)},n.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=w),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,o=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,n=this.listeners(e).length>0;if(t&&!n)return F(arguments[1])}return o.apply(this,arguments)})}var o},t.resetRetrieveHandlers=function(){m.length=0,g.length=0,m=N.slice(0),g=P.slice(0),x=y(g),v=y(m)}}(ii,ii.exports)),ii.exports} +var t=o,n=a,r=(Mt||(Mt=1,function(e){var t=/[|\\{}()[\]^$+*?.]/g,n=Object.prototype.hasOwnProperty,r=function(e,t){return n.apply(e,[t])};e.escapeRegExpChars=function(e){return e?String(e).replace(t,"\\$&"):""};var i={"&":"&","<":"<",">":">",'"':""","'":"'"},o=/[&<>'"]/g;function a(e){return i[e]||e}function s(){return Function.prototype.toString.call(this)+';\nvar _ENCODE_HTML_RULES = {\n "&": "&"\n , "<": "<"\n , ">": ">"\n , \'"\': """\n , "\'": "'"\n }\n , _MATCH_HTML = /[&<>\'"]/g;\nfunction encode_char(c) {\n return _ENCODE_HTML_RULES[c] || c;\n};\n'}e.escapeXML=function(e){return null==e?"":String(e).replace(o,a)};try{"function"==typeof Object.defineProperty?Object.defineProperty(e.escapeXML,"toString",{value:s}):e.escapeXML.toString=s}catch(e){console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}e.shallowCopy=function(e,t){if(t=t||{},null!=e)for(var n in t)r(t,n)&&"__proto__"!==n&&"constructor"!==n&&(e[n]=t[n]);return e},e.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},null!=e)for(var i=0;i1;if(t.cache){if(!i)throw new Error("cache option requires a filename");if(r=e.cache.get(i))return r;o||(n=m(i).toString().replace(_,""))}else if(!o){if(!i)throw new Error("Internal EJS error: no file name or template provided");n=m(i).toString().replace(_,"")}return r=e.compile(n,t),t.cache&&e.cache.set(i,r),r}function m(t){return e.fileLoader(t)}function g(n,i){var o=r.shallowCopy(r.createNullProtoObjWherePossible(),i);if(o.filename=function(n,r){var i,o,a=r.views,s=/^[A-Za-z]+:\\|^\//.exec(n);if(s&&s.length)n=n.replace(/^\/*/,""),i=Array.isArray(r.root)?p(n,r.root):e.resolveInclude(n,r.root||"/",!0);else if(r.filename&&(o=e.resolveInclude(n,r.filename),t.existsSync(o)&&(i=o)),!i&&Array.isArray(a)&&(i=p(n,a)),!i&&"function"!=typeof r.includer)throw new Error('Could not find the include file "'+r.escapeFunction(n)+'"');return i}(n,o),"function"==typeof i.includer){var a=i.includer(n,o.filename);if(a&&(a.filename&&(o.filename=a.filename),a.template))return f(o,a.template)}return f(o)}function h(e,t,n,r,i){var o=t.split("\n"),a=Math.max(r-3,0),s=Math.min(o.length,r+3),c=i(n),l=o.slice(a,s).map((function(e,t){var n=t+a+1;return(n==r?" >> ":" ")+n+"| "+e})).join("\n");throw e.path=c,e.message=(c||"ejs")+":"+r+"\n"+l+"\n\n"+e.message,e}function y(e){return e.replace(/;(\s*$)/,"$1")}function v(t,n){var i=r.hasOwnOnlyObject(n),o=r.createNullProtoObjWherePossible();this.templateText=t,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",o.client=i.client||!1,o.escapeFunction=i.escape||i.escapeFunction||r.escapeXML,o.compileDebug=!1!==i.compileDebug,o.debug=!!i.debug,o.filename=i.filename,o.openDelimiter=i.openDelimiter||e.openDelimiter||"<",o.closeDelimiter=i.closeDelimiter||e.closeDelimiter||">",o.delimiter=i.delimiter||e.delimiter||"%",o.strict=i.strict||!1,o.context=i.context,o.cache=i.cache||!1,o.rmWhitespace=i.rmWhitespace,o.root=i.root,o.includer=i.includer,o.outputFunctionName=i.outputFunctionName,o.localsName=i.localsName||e.localsName||c,o.views=i.views,o.async=i.async,o.destructuredLocals=i.destructuredLocals,o.legacyInclude=void 0===i.legacyInclude||!!i.legacyInclude,o.strict?o._with=!1:o._with=void 0===i._with||i._with,this.opts=o,this.regex=this.createRegex()}e.cache=r.cache,e.fileLoader=t.readFileSync,e.localsName=c,e.promiseImpl=new Function("return this;")().Promise,e.resolveInclude=function(e,t,r){var i=n.dirname,o=n.extname,a=(0,n.resolve)(r?t:i(t),e);return o(e)||(a+=".ejs"),a},e.compile=function(e,t){return t&&t.scope&&(i||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),i=!0),t.context||(t.context=t.scope),delete t.scope),new v(e,t).compile()},e.render=function(e,t,n){var i=t||r.createNullProtoObjWherePossible(),o=n||r.createNullProtoObjWherePossible();return 2==arguments.length&&r.shallowCopyFromList(o,i,l),f(o,e)(i)},e.renderFile=function(){var t,n,i,o=Array.prototype.slice.call(arguments),a=o.shift(),s={filename:a};return"function"==typeof arguments[arguments.length-1]&&(t=o.pop()),o.length?(n=o.shift(),o.length?r.shallowCopy(s,o.pop()):(n.settings&&(n.settings.views&&(s.views=n.settings.views),n.settings["view cache"]&&(s.cache=!0),(i=n.settings["view options"])&&r.shallowCopy(s,i)),r.shallowCopyFromList(s,n,u)),s.filename=a):n=r.createNullProtoObjWherePossible(),function(t,n,r){var i;if(!r){if("function"==typeof e.promiseImpl)return new e.promiseImpl((function(e,r){try{e(i=f(t)(n))}catch(e){r(e)}}));throw new Error("Please provide a callback function")}try{i=f(t)(n)}catch(e){return r(e)}r(null,i)}(s,n,t)},e.Template=v,e.clearCache=function(){e.cache.reset()},v.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},v.prototype={createRegex:function(){var e="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",t=r.escapeRegExpChars(this.opts.delimiter),n=r.escapeRegExpChars(this.opts.openDelimiter),i=r.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(//g,i),new RegExp(e)},compile:function(){var e,t,i,o=this.opts,a="",s="",c=o.escapeFunction,l=o.filename?JSON.stringify(o.filename):"undefined";if(!this.source){if(this.generateSource(),a+=' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n',o.outputFunctionName){if(!d.test(o.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");a+=" var "+o.outputFunctionName+" = __append;\n"}if(o.localsName&&!d.test(o.localsName))throw new Error("localsName is not a valid JS identifier.");if(o.destructuredLocals&&o.destructuredLocals.length){for(var u=" var __locals = ("+o.localsName+" || {}),\n",_=0;_0&&(u+=",\n "),u+=p+" = __locals."+p}a+=u+";\n"}!1!==o._with&&(a+=" with ("+o.localsName+" || {}) {\n",s+=" }\n"),s+=" return __output;\n",this.source=a+this.source+s}e=o.compileDebug?"var __line = 1\n , __lines = "+JSON.stringify(this.templateText)+"\n , __filename = "+l+";\ntry {\n"+this.source+"} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n":this.source,o.client&&(e="escapeFn = escapeFn || "+c.toString()+";\n"+e,o.compileDebug&&(e="rethrow = rethrow || "+h.toString()+";\n"+e)),o.strict&&(e='"use strict";\n'+e),o.debug&&console.log(e),o.compileDebug&&o.filename&&(e=e+"\n//# sourceURL="+l+"\n");try{if(o.async)try{i=new Function("return (async function(){}).constructor;")()}catch(e){throw e instanceof SyntaxError?new Error("This environment does not support async/await"):e}else i=Function;t=new i(o.localsName+", escapeFn, include, rethrow",e)}catch(e){throw e instanceof SyntaxError&&(o.filename&&(e.message+=" in "+o.filename),e.message+=" while compiling ejs\n\n",e.message+="If the above error is not helpful, you may want to try EJS-Lint:\n",e.message+="https://github.com/RyanZim/EJS-Lint",o.async||(e.message+="\n",e.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),e}var f=o.client?t:function(e){return t.apply(o.context,[e||r.createNullProtoObjWherePossible(),c,function(t,n){var i=r.shallowCopy(r.createNullProtoObjWherePossible(),e);return n&&(i=r.shallowCopy(i,n)),g(t,o)(i)},h])};if(o.filename&&"function"==typeof Object.defineProperty){var m=o.filename,y=n.basename(m,n.extname(m));try{Object.defineProperty(f,"name",{value:y,writable:!1,enumerable:!1,configurable:!0})}catch(e){}}return f},generateSource:function(){this.opts.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,t=this.parseTemplateText(),n=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter;t&&t.length&&t.forEach((function(o,a){var s;if(0===o.indexOf(r+n)&&0!==o.indexOf(r+n+n)&&(s=t[a+2])!=n+i&&s!="-"+n+i&&s!="_"+n+i)throw new Error('Could not find matching close tag for "'+o+'".');e.scanLine(o)}))},parseTemplateText:function(){for(var e,t=this.templateText,n=this.regex,r=n.exec(t),i=[];r;)0!==(e=r.index)&&(i.push(t.substring(0,e)),t=t.slice(e)),i.push(r[0]),t=t.slice(r[0].length),r=n.exec(t);return t&&i.push(t),i},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/"/g,'\\"'),this.source+=' ; __append("'+e+'")\n'},scanLine:function(e){var t,n=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter;switch(t=e.split("\n").length-1,e){case r+n:case r+n+"_":this.mode=v.modes.EVAL;break;case r+n+"=":this.mode=v.modes.ESCAPED;break;case r+n+"-":this.mode=v.modes.RAW;break;case r+n+"#":this.mode=v.modes.COMMENT;break;case r+n+n:this.mode=v.modes.LITERAL,this.source+=' ; __append("'+e.replace(r+n+n,r+n)+'")\n';break;case n+n+i:this.mode=v.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+i,n+i)+'")\n';break;case n+i:case"-"+n+i:case"_"+n+i:this.mode==v.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=0===e.indexOf("-")||0===e.indexOf("_");break;default:if(this.mode){switch(this.mode){case v.modes.EVAL:case v.modes.ESCAPED:case v.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf("\n")&&(e+="\n")}switch(this.mode){case v.modes.EVAL:this.source+=" ; "+e+"\n";break;case v.modes.ESCAPED:this.source+=" ; __append(escapeFn("+y(e)+"))\n";break;case v.modes.RAW:this.source+=" ; __append("+y(e)+")\n";break;case v.modes.COMMENT:break;case v.modes.LITERAL:this._addOutput(e)}}else this._addOutput(e)}this.opts.compileDebug&&t&&(this.currentLine+=t,this.source+=" ; __line = "+this.currentLine+"\n")}},e.escapeXML=r.escapeXML,e.__express=e.renderFile,e.VERSION=s,e.name="ejs","undefined"!=typeof window&&(window.ejs=e)}(zt)),zt}var Wt,Ht,Gt,Kt={exports:{}};function Xt(){if(Ht)return Wt;Ht=1;const e=o;let t;return Wt=()=>(void 0===t&&(t=function(){try{return e.statSync("/.dockerenv"),!0}catch(e){return!1}}()||function(){try{return e.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch(e){return!1}}()),t)}var Qt,Yt,Zt,en,tn,nn={},rn={},on={},an={exports:{}},sn={exports:{}};function cn(){if(Yt)return Qt;Yt=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,o=365.25*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return Qt=function(s,c){c=c||{};var l=typeof s;if("string"===l&&s.length>0)return function(a){if((a=String(a)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===l&&isFinite(s))return c.long?function(i){var o=Math.abs(i);if(o>=r)return a(i,o,r,"day");if(o>=n)return a(i,o,n,"hour");if(o>=t)return a(i,o,t,"minute");if(o>=e)return a(i,o,e,"second");return i+" ms"}(s):function(i){var o=Math.abs(i);if(o>=r)return Math.round(i/r)+"d";if(o>=n)return Math.round(i/n)+"h";if(o>=t)return Math.round(i/t)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function ln(){if(en)return Zt;return en=1,Zt=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in r))||"codeship"===r.CI_NAME?1:l;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=Number.parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:l}function a(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o(e,{streamIsTTY:e&&e.isTTY,...t}))}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?i=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(i=1),dn={supportsColor:a,stdout:a({isTTY:t.isatty(1)}),stderr:a({isTTY:t.isatty(2)})}}function bn(){return fn||(fn=1,function(e,t){const n=l,r=u;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=vn();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=ln()(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(hn,hn.exports)),hn.exports}function xn(){return mn||(mn=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?an.exports=(tn||(tn=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=ln()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(sn,sn.exports)),sn.exports):an.exports=bn()),an.exports}function Sn(){if(gn)return on;gn=1;var e=on&&on.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(on,"__esModule",{value:!0}),on.getLogger=o,on.makeDebug=function(e){return(t,...n)=>o(e).debug(t,...n)},on.setLogger=function(e){e&&"string"!=typeof e&&"logger"in e&&e.logger?a(e.logger):a(r(n))},on.clearLoggers=function(){i.clear()};const t=e(xn()),n="oclif";function r(e=n){const i=(0,t.default)(e);return{child:(t,n)=>r(`${e}${n??":"}${t}`),debug:i,error:(t,...n)=>r(`${e}:error`).debug(t,...n),info:i,namespace:e,trace:i,warn:i}}const i=new Map;function o(e){let t=i.get("root");if(t||a(r(n)),t=i.get("root"),e){const n=i.get(e);if(n)return n;const r=t.child(e);return i.set(e,r),r}return t}function a(e){i.has(e.namespace)||i.has("root")||(!function(e){return"function"==typeof e.child&&"function"==typeof e.debug&&"function"==typeof e.error&&"function"==typeof e.info&&"function"==typeof e.trace&&"function"==typeof e.warn&&"string"==typeof e.namespace}(e)?process.emitWarning("Logger does not match the Logger interface. Using default logger."):(i.set(e.namespace,e),i.set("root",e)))}return on}var kn,Tn={};function Cn(){if(kn)return Tn;kn=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.stderr=Tn.stdout=void 0;const e=r;Tn.stdout=(t,...n)=>{!t&&n?console.log((0,e.format)(...n)):t?"string"==typeof t?console.log((0,e.format)(t,...n)):console.log((0,e.format)(...t,...n)):console.log()};return Tn.stderr=(t,...n)=>{!t&&n?console.error((0,e.format)(...n)):t?"string"==typeof t?console.error((0,e.format)(t,...n)):console.error((0,e.format)(...t,...n)):console.error()},Tn}var Dn,wn,En,Fn,Nn,Pn,An={};function In(){return wn||(wn=1,Dn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Dn}function On(){if(Fn)return En;Fn=1;const e=s,t=In(),n=/\s+at.*[(\s](.*)\)?/,r=/^(?:(?:(?:node|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,i=void 0===e.homedir?"":e.homedir();return En=(e,{pretty:o=!1,basePath:a}={})=>{const s=a&&new RegExp(`(at | \\()${t(a)}`,"g");return e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(n);if(null===t||!t[1])return!0;const i=t[1];return!i.includes(".app/Contents/Resources/electron.asar")&&!i.includes(".app/Contents/Resources/default_app.asar")&&!r.test(i)})).filter((e=>""!==e.trim())).map((e=>(s&&(e=e.replace(s,"$1")),o&&(e=e.replace(n,((e,t)=>e.replace(t,t.replace(i,"~"))))),e))).join("\n")},En}function Ln(){return Pn||(Pn=1,Nn=(e,t=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof n.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(0===t)return e;const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}),Nn}var Rn,jn,Mn,Bn,Jn={exports:{}};function zn(){return jn||(jn=1,Rn=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}),Rn}function $n(){if(Bn)return Mn;Bn=1;const e=zn();return Mn=t=>"string"==typeof t?t.replace(e(),""):t,Mn}var qn,Un,Vn,Wn,Hn={exports:{}};function Gn(){if(qn)return Hn.exports;qn=1;const e=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));return Hn.exports=e,Hn.exports.default=e,Hn.exports}function Kn(){return Vn?Un:(Vn=1,Un=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g})}function Xn(){if(Wn)return Jn.exports;Wn=1;const e=$n(),t=Gn(),n=Kn(),r=r=>{if("string"!=typeof r||0===r.length)return 0;if(0===(r=e(r)).length)return 0;r=r.replace(n()," ");let i=0;for(let e=0;e=127&&n<=159||(n>=768&&n<=879||(n>65535&&e++,i+=t(n)?2:1))}return i};return Jn.exports=r,Jn.exports.default=r,Jn.exports}var Qn,Yn,Zn,er,tr,nr,rr,ir,or,ar,sr,cr={exports:{}};function lr(){if(er)return Zn;er=1;const e=Yn?Qn:(Yn=1,Qn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Zn=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:r})}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,c;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const l=(i+o)/2;return c=o===i?0:l<=.5?a/(o+i):a/(2-o-i),[s,100*c,100*l]},n.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(a,s,c),u=l-Math.min(a,s,c),_=function(e){return(l-e)/6/u+.5};return 0===u?(i=0,o=0):(o=u/l,t=_(a),n=_(s),r=_(c),a===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},n.rgb.hwb=function(e){const t=e[0],r=e[1];let i=e[2];const o=n.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[o,100*a,100*i]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},n.rgb.keyword=function(n){const r=t[n];if(r)return r;let i,o=1/0;for(const t of Object.keys(e)){const r=e[t],c=(s=r,((a=n)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);c.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let r=t[0],i=t[1],o=t[2];r/=95.047,i/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*i-16,500*(r-i),200*(i-o)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,c[e]=255*a;return c},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;return[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),c=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,c,a];case 1:return[s,r,a];case 2:return[a,r,c];case 3:return[a,s,r];case 4:return[c,a,r];case 5:return[r,a,s]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,1&a&&(o=1-o);const c=n+o*(s-n);let l,u,_;switch(a){default:case 6:case 0:l=s,u=c,_=n;break;case 1:l=c,u=s,_=n;break;case 2:l=n,u=s,_=c;break;case 3:l=n,u=c,_=s;break;case 4:l=c,u=n,_=s;break;case 5:l=s,u=n,_=c}return[255*l,255*u,255*_]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},n.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},n.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,a=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},n.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(n*n+r*r),i]},n.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},n.rgb.ansi16=function(e,t=null){const[r,i,o]=e;let a=null===t?n.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,c;return s=a<1?o/(1-a):0,c=a<=0?0:i===t?(n-r)/a%6:i===n?2+(r-t)/a:4+(t-n)/a,c/=6,c%=1,[360*c,100*a,100*s]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[255*(n*i[0]+c),255*(n*i[1]+c),255*(n*i[2]+c)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},Zn}function ur(){if(nr)return tr;nr=1;const e=lr();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,r=0;r{n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});const i=t(r);Object.keys(i).forEach((e=>{const t=i[e];n[r][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),rr=n}function dr(){return or||(or=1,function(e){const t=(e,t)=>(...n)=>`[${e(...n)+t}m`,n=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},r=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},i=e=>e,o=(e,t,n)=>[e,t,n],a=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let s;const c=(e,t,n,r)=>{void 0===s&&(s=_r());const i=r?10:0,o={};for(const[r,a]of Object.entries(s)){const s="ansi16"===r?"ansi":r;r===t?o[s]=e(n,i):"object"==typeof a&&(o[s]=e(a[t],i))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[t,n]of Object.entries(s)){for(const[t,r]of Object.entries(n))s[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=s[t],e.set(r[0],r[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",a(s.color,"ansi",(()=>c(t,"ansi16",i,!1))),a(s.color,"ansi256",(()=>c(n,"ansi256",i,!1))),a(s.color,"ansi16m",(()=>c(r,"rgb",o,!1))),a(s.bgColor,"ansi",(()=>c(t,"ansi16",i,!0))),a(s.bgColor,"ansi256",(()=>c(n,"ansi256",i,!0))),a(s.bgColor,"ansi16m",(()=>c(r,"rgb",o,!0))),s}})}(cr)),cr.exports}function pr(){if(sr)return ar;sr=1;const e=Xn(),t=$n(),n=dr(),r=new Set(["","›"]),i="]8;;",o=e=>`${r.values().next().value}[${e}m`,a=e=>`${r.values().next().value}${i}${e}`,s=(n,o,a)=>{const s=[...o];let c=!1,l=!1,u=e(t(n[n.length-1]));for(const[t,o]of s.entries()){const _=e(o);u+_<=a?n[n.length-1]+=o:(n.push(o),u=0),r.has(o)&&(c=!0,l=s.slice(t+1).join("").startsWith(i)),c?l?""===o&&(c=!1,l=!1):"m"===o&&(c=!1):(u+=_,u===a&&t0&&n.length>1&&(n[n.length-2]+=n.pop())},c=t=>{const n=t.split(" ");let r=n.length;for(;r>0&&!(e(n[r-1])>0);)r--;return r===n.length?t:n.slice(0,r).join(" ")+n.slice(r).join("")},l=(t,l,u={})=>{if(!1!==u.trim&&""===t.trim())return"";let _,d,p="";const f=(t=>t.split(" ").map((t=>e(t))))(t);let m=[""];for(const[n,r]of t.split(" ").entries()){!1!==u.trim&&(m[m.length-1]=m[m.length-1].trimStart());let t=e(m[m.length-1]);if(0!==n&&(t>=l&&(!1===u.wordWrap||!1===u.trim)&&(m.push(""),t=0),(t>0||!1===u.trim)&&(m[m.length-1]+=" ",t++)),u.hard&&f[n]>l){const e=l-t,i=1+Math.floor((f[n]-e-1)/l);Math.floor((f[n]-1)/l)l&&t>0&&f[n]>0){if(!1===u.wordWrap&&tl&&!1===u.wordWrap?s(m,r,l):m[m.length-1]+=r}}!1!==u.trim&&(m=m.map(c));const g=[...m.join("\n")];for(const[e,t]of g.entries()){if(p+=t,r.has(t)){const{groups:t}=new RegExp(`(?:\\[(?\\d+)m|\\${i}(?.*))`).exec(g.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);_=39===e?void 0:e}else void 0!==t.uri&&(d=0===t.uri.length?void 0:t.uri)}const s=n.codes.get(Number(_));"\n"===g[e+1]?(d&&(p+=a("")),_&&s&&(p+=o(s))):"\n"===t&&(_&&s&&(p+=o(_)),d&&(p+=a(d)))}return p};return ar=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>l(e,t,n))).join("\n"),ar}var fr,mr,gr={},hr={};function yr(){return fr||(fr=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.settings=void 0,v.oclif||(v.oclif={}),hr.settings=v.oclif),hr}function vr(){if(mr)return gr;mr=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.errtermwidth=gr.stdtermwidth=void 0;const e=yr();function t(e){if(!e.isTTY)return 80;const t=e.getWindowSize()[0];return t<1?80:t<40?40:t}const n=Number.parseInt(process.env.OCLIF_COLUMNS,10)||e.settings.columns;return gr.stdtermwidth=n||t(process.stdout),gr.errtermwidth=n||t(process.stderr),gr}var br,xr={},Sr={exports:{}},kr=Sr.exports;function Tr(){if(br)return Sr.exports;br=1,Object.defineProperty(kr,"__esModule",{value:!0});const{round:e,floor:t,max:n}=Math,r=e=>{let[,t]=/([a-f\d]{3,6})/i.exec(e)||[],n=t?t.length:0;if(3===n)t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2];else if(6!==n)return[0,0,0];let r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]},i=(t,n,r)=>t===n&&n===r?t<8?16:t>248?231:e((t-8)/247*24)+232:16+36*e(t/51)+6*e(n/51)+e(r/51),o=r=>{let i,o,a,s,c,l;return r<8?30+r:r<16?r-8+90:(r>=232?i=o=a=(10*(r-232)+8)/255:(l=(r-=16)%36,i=t(r/36)/5,o=t(l/6)/5,a=l%6/5),s=2*n(i,o,a),0===s?30:(c=30+(e(a)<<2|e(o)<<1|e(i)),2===s?c+60:c))},a=(e,t,n)=>o(i(e,t,n)),s=(()=>{const e=e=>!!s.find((t=>e.test(t))),t=globalThis,n=t.Deno,r=null!=n,i=t.process||n||{},o=i.stdout,a="win32"===(r?n.build.os:i.platform),s=i.argv||i.args||[];let c=i.env||{},l=-1;if(r)try{c=c.toObject()}catch(e){l=0}const u="FORCE_COLOR",_=c[u],d=parseInt(_),p="false"===_?0:isNaN(d)?3:d,f="NO_COLOR"in c||0===p||e(/^-{1,2}(no-color|color=(false|never))$/),m=u in c&&p||e(/^-{1,2}color=?(true|always)?$/),g=(c.NEXT_RUNTIME||"").indexOf("edge")>-1||"PM2_HOME"in c&&"pm_id"in c||(r?n.isatty(1):o&&"isTTY"in o);return f?0:(l<0&&(l=((e,t,n)=>{const{TERM:r,COLORTERM:i}=e;return"TF_BUILD"in e?1:"TEAMCITY_VERSION"in e?2:"CI"in e?["GITHUB_ACTIONS","GITEA_ACTIONS"].some((t=>t in e))?3:1:!t||/-mono|dumb/i.test(r)?0:n||"truecolor"===i||"24bit"===i||"xterm-kitty"===r?3:/-256(colou?r)?$/i.test(r)?2:/^screen|^tmux|^xterm|^vt[1-5][0-9]([0-9])?|^ansi|color|cygwin|linux|mintty|rxvt/i.test(r)?1:3})(c,g,a)),m&&0===l?3:l)})(),c=s>0,l={open:"",close:""},u=c?(e,t)=>({open:`[${e}m`,close:`[${t}m`}):()=>l,_=39,d=49,p=e=>(t,n,r)=>e(i(t,n,r)),f=e=>t=>{let[n,i,o]=r(t);return e(n,i,o)};let m=e=>u(`38;5;${e}`,_),g=e=>u(`48;5;${e}`,d),h=(e,t,n)=>u(`38;2;${e};${t};${n}`,_),y=(e,t,n)=>u(`48;2;${e};${t};${n}`,d);1===s?(m=e=>u(o(e),_),g=e=>u(o(e)+10,d),h=(e,t,n)=>u(a(e,t,n),_),y=(e,t,n)=>u(a(e,t,n)+10,d)):2===s&&(h=p(m),y=p(g));let v,b,x={ansi256:m,bgAnsi256:g,fg:m,bg:g,rgb:h,bgRgb:y,hex:f(h),bgHex:f(y),visible:l,reset:u(0,0),inverse:u(7,27),hidden:u(8,28),bold:u(1,22),dim:u(2,22),italic:u(3,23),underline:u(4,24),strikethrough:u(9,29),strike:u(9,29),grey:u(90,_),gray:u(90,_),bgGrey:u(100,d),bgGray:u(100,d)},S=["black","red","green","yellow","blue","magenta","cyan","white"],k="Bright",T=30;for(v of S)b="bg"+v[0].toUpperCase()+v.slice(1),x[v]=u(T,_),x[v+k]=u(T+60,_),x[b]=u(T+10,d),x[b+k]=u(T+70,d),T++;const{defineProperty:C,defineProperties:D,setPrototypeOf:w}=Object,E=/[›][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,F=/(\r?\n)/g,N={},P=({_p:e},{open:t,close:n})=>{const r=(e,...t)=>{if(!e)return"";let n=r._p,{_a:i,_b:o}=n,a=null!=e.raw?String.raw(e,...t):""+e;if(a.includes(""))for(;null!=n;){let e=n.close,t=e.length;if(t){let r,i=0,o="";for(;~(r=a.indexOf(e,i));)o+=a.slice(i,r)+n.open,i=r+t;i&&(a=o+a.slice(i))}n=n._p}return a.includes("\n")&&(a=a.replace(F,o+"$1"+i)),i+a+o};let i=t,o=n;return null!=e&&(i=e._a+t,o=n+e._b),w(r,I),r._p={open:t,close:n,_a:i,_b:o,_p:e},r.open=i,r.close=o,r},A=function(){const e=e=>""+e;return e.isSupported=()=>c,e.strip=e=>e.replace(E,""),e.extend=t=>{for(let e in t){let n=t[e],i=typeof n,o="string"===i?h(...r(n)):n;N[e]="function"===i?{get(){return(...e)=>P(this,n(...e))}}:{get(){let t=P(this,o);return C(this,e,{value:t}),t}}}I=D({},N),w(e,I)},e.extend(x),e};let I;const O=new A;return Sr.exports=O,Sr.exports.Ansis=A,Sr.exports}var Cr,Dr={};var wr,Er,Fr,Nr={};function Pr(){if(Er)return xr;Er=1;var e=xr&&xr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xr,"__esModule",{value:!0}),xr.colorize=function(e,n){if(!e)return n;if(!(0,r.supportsColor)())return n;if(i(e))return t.default[e](n);if(e.startsWith("#"))return t.default.hex(e)(n);if(e.startsWith("rgb")){const[r,i,o]=e.slice(4,-1).split(",").map((e=>Number.parseInt(e.trim(),10)));return t.default.rgb(r,i,o)(n)}return n},xr.parseTheme=function e(t){return Object.fromEntries(Object.entries(t).map((([t,n])=>{return[t,"string"==typeof n?(r=n,r.startsWith("#")||r.startsWith("rgb")||i(r)?r:void 0):e(n)];var r})).filter((([e,t])=>t)))};const t=e(Tr()),n=(Cr||(Cr=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.STANDARD_ANSI=void 0,Dr.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]),Dr),r=function(){if(wr)return Nr;wr=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.supportsColor=function(){return Boolean(e.stdout)&&Boolean(e.stderr)};const e=vn();return Nr}();function i(e){return n.STANDARD_ANSI.includes(e)}return xr}function Ar(){if(Fr)return An;Fr=1;var e=An&&An.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(An,"__esModule",{value:!0}),An.CLIError=void 0,An.addOclifExitCode=c;const t=e(On()),n=e(Ln()),r=e(pr()),i=e(jt()),o=vr(),a=yr(),s=Pr();function c(e,t){return"oclif"in e||(e.oclif={}),e.oclif.exit=void 0===t?.exit?i.default.getInstance().get("exitCodes")?.default??2:t.exit,e}class l extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,t={}){super(e instanceof Error?e.message:e),c(this,t),this.code=t.code,this.suggestions=t.suggestions}get bang(){try{return(0,s.colorize)("red","win32"===process.platform?"»":"›")}catch{}}get stack(){return(0,t.default)(super.stack,{pretty:!0})}render(){if(a.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,r.default)(e,o.errtermwidth-6,{hard:!0,trim:!1}),e=(0,n.default)(e,3),e=(0,n.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,n.default)(e,1),e}}return An.CLIError=l,function(e){e.Warn=class extends e{constructor(e){super(e instanceof Error?e.message:e),this.name="Warning"}get bang(){try{return(0,s.colorize)("yellow","win32"===process.platform?"»":"›")}catch{}}}}(l||(An.CLIError=l={})),An}var Ir,Or,Lr={};function Rr(){if(Ir)return Lr;Ir=1;var e=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.applyPrettyPrintOptions=function(e,t){const n=["message","code","ref","suggestions"];for(const r of n){!(r in e)&&t[r]&&(e[r]=t[r])}return e},Lr.default=function(e){if(i.settings.debug)return e.stack;const{bang:a,code:s,message:c,name:l,ref:u,suggestions:_}=e,d=c?`${l||"Error"}: ${c}`:void 0,p=s?`Code: ${s}`:void 0,f=o(_),m=u?`Reference: ${u}`:void 0,g=[d,p,f,m].filter(Boolean).join("\n");let h=(0,n.default)(g,r.errtermwidth-6,{hard:!0,trim:!1});return h=(0,t.default)(h,3),h=(0,t.default)(h,1,{includeEmptyLines:!0,indent:a||""}),h=(0,t.default)(h,1),h};const t=e(Ln()),n=e(pr()),r=vr(),i=yr();const o=e=>{const n="Try this:";if(!e||0===e.length)return;if(1===e.length)return`${n} ${e[0]}`;const r=e.map((e=>`* ${e}`)).join("\n");return`${n}\n${(0,t.default)(r,2)}`};return Lr}function jr(){if(Or)return rn;Or=1;var e,t=rn&&rn.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=rn&&rn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=rn&&rn.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var o=e(r),a=0;a>>=5)>0&&(n|=32),r+=e.encode(n)}while(i>0);return r},ai.decode=function(t,n,r){var i,o,a,s,c=t.length,l=0,u=0;do{if(n>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=e.decode(t.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+t.charAt(n-1));i=!!(32&o),l+=(o&=31)<>1,1&~a?s:-s),r.rest=n},ai}var ui,_i={};function di(){return ui||(ui=1,function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(t){var n=t,o=r(t);if(o){if(!o.path)return t;n=o.path}for(var a,s=e.isAbsolute(n),c=n.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(a=c[u])?c.splice(u,1):".."===a?l++:l>0&&(""===a?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(n=c.join("/"))&&(n=s?"/":"."),o?(o.path=n,i(o)):n}function a(e,t){""===e&&(e="."),""===t&&(t=".");var a=r(t),s=r(e);if(s&&(e=s.path||"/"),a&&!a.scheme)return s&&(a.scheme=s.scheme),i(a);if(a||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,i(s)):c}e.urlParse=r,e.urlGenerate=i,e.normalize=o,e.join=a,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function c(e){return e}function l(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 n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=s?c:function(e){return l(e)?"$"+e:e},e.fromSetString=s?c:function(e){return l(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=u(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:u(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=u(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=u(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var s=r(n);if(!s)throw new Error("sourceMapURL could not be parsed");if(s.path){var c=s.path.lastIndexOf("/");c>=0&&(s.path=s.path.substring(0,c+1))}t=a(i(s),t)}return o(t)}}(_i)),_i}var pi,fi={};function mi(){if(pi)return fi;pi=1;var e=di(),t=Object.prototype.hasOwnProperty,n="undefined"!=typeof Map;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,i=0,o=e.length;i=0)return i}else{var o=e.toSetString(r);if(t.call(this._set,o))return this._set[o]}throw new Error('"'+r+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&ei||o==i&&s>=a||e.compareByGeneratedPositionsInflated(n,r)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},yi.MappingList=t,yi}function bi(){if(hi)return oi;hi=1;var e=li(),t=di(),n=mi().ArraySet,r=vi().MappingList;function i(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(e){var n=e.sourceRoot,r=new i({file:e.file,sourceRoot:n});return e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=n&&(i.source=t.relative(n,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),r.addMapping(i)})),e.sources.forEach((function(i){var o=i;null!==n&&(o=t.relative(n,i)),r._sources.has(o)||r._sources.add(o);var a=e.sourceContentFor(i);null!=a&&r.setSourceContent(i,a)})),r},i.prototype.addMapping=function(e){var n=t.getArg(e,"generated"),r=t.getArg(e,"original",null),i=t.getArg(e,"source",null),o=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,r,i,o),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:i,name:o})},i.prototype.setSourceContent=function(e,n){var r=e;null!=this._sourceRoot&&(r=t.relative(this._sourceRoot,r)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(e,r,i){var o=r;if(null==r){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');o=e.file}var a=this._sourceRoot;null!=a&&(o=t.relative(a,o));var s=new n,c=new n;this._mappings.unsortedForEach((function(n){if(n.source===o&&null!=n.originalLine){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=i&&(n.source=t.join(i,n.source)),null!=a&&(n.source=t.relative(a,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}var l=n.source;null==l||s.has(l)||s.add(l);var u=n.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(n){var r=e.sourceContentFor(n);null!=r&&(null!=i&&(n=t.join(i,n)),null!=a&&(n=t.relative(a,n)),this.setSourceContent(n,r))}),this)},i.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(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&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},i.prototype._serializeMappings=function(){for(var n,r,i,o,a=0,s=1,c=0,l=0,u=0,_=0,d="",p=this._mappings.toArray(),f=0,m=p.length;f0){if(!t.compareByGeneratedPositionsInflated(r,p[f-1]))continue;n+=","}n+=e.encode(r.generatedColumn-a),a=r.generatedColumn,null!=r.source&&(o=this._sources.indexOf(r.source),n+=e.encode(o-_),_=o,n+=e.encode(r.originalLine-1-l),l=r.originalLine-1,n+=e.encode(r.originalColumn-c),c=r.originalColumn,null!=r.name&&(i=this._names.indexOf(r.name),n+=e.encode(i-u),u=i)),d+=n}return d},i.prototype._generateSourcesContent=function(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},i.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},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},oi.SourceMapGenerator=i,oi}var xi,Si={},ki={};function Ti(){return xi||(xi=1,function(e){function t(n,r,i,o,a,s){var c=Math.floor((r-n)/2)+n,l=a(i,o[c],!0);return 0===l?c:l>0?r-c>1?t(c,r,i,o,a,s):s==e.LEAST_UPPER_BOUND?r1?t(n,c,i,o,a,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(n,r,i,o){if(0===r.length)return-1;var a=t(-1,r.length,n,r,i,o||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===i(r[a],r[a-1],!0);)--a;return a}}(ki)),ki}var Ci,Di,wi={};function Ei(){if(Ci)return wi;function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(n,r,i,o){if(i=0){var s=this._originalMappings[a];if(void 0===n.column)for(var c=s.originalLine;s&&s.originalLine===c;)o.push({line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)o.push({line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return o},Si.SourceMapConsumer=o,a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.prototype._findSourceIndex=function(t){var n,r=t;if(null!=this.sourceRoot&&(r=e.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(n=0;n1&&(o.source=m+c[1],m+=c[1],o.originalLine=p+c[2],p=o.originalLine,o.originalLine+=1,o.originalColumn=f+c[3],f=o.originalColumn,c.length>4&&(o.name=g+c[4],g+=c[4])),S.push(o),"number"==typeof o.originalLine&&x.push(o)}i(S,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,i(x,e.compareByOriginalPositions),this.__originalMappings=x},a.prototype._findMapping=function(e,n,r,i,o,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return t.search(e,n,o,a)},a.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=e.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=e.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=e.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:a,line:e.getArg(i,"originalLine",null),column:e.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},a.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i,o=t;if(null!=this.sourceRoot&&(o=e.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=e.urlParse(this.sourceRoot))){var a=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(n)return null;throw new Error('"'+o+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(t){var n=e.getArg(t,"source");if((n=this._findSourceIndex(n))<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(t,"bias",o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:e.getArg(a,"generatedLine",null),column:e.getArg(a,"generatedColumn",null),lastColumn:e.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Si.BasicSourceMapConsumer=a,c.prototype=Object.create(o.prototype),c.prototype.constructor=o,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var e=[],t=0;t=0;t--)this.prepend(e[t]);else{if(!e[r]&&"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},i.prototype.walk=function(e){for(var t,n=0,i=this.children.length;n0){for(t=[],n=0;n>>=0;var i=e.byteLength-n;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=i;else if((r>>>=0)>i)throw new RangeError("'length' is out of bounds");return t?Buffer.from(e.slice(n,n+r)):new Buffer(new Uint8Array(e.slice(n,n+r)))}(n,r,i):"string"==typeof n?function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!Buffer.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');return t?Buffer.from(e,n):new Buffer(e,n)}(n,r):t?Buffer.from(n):new Buffer(n);var o},Pi}function Bi(){return Ii||(Ii=1,function(e,t){var n,r=ji().SourceMapConsumer,i=a;try{(n=require("fs")).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=Mi();function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,_="auto",d={},p={},f=/^data:application\/json[^,]+base64,/,m=[],g=[];function h(){return"browser"===_||"node"!==_&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function y(e){return function(t){for(var n=0;n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var i="",o=this.getFunctionName(),a=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();o?(c&&0!=o.indexOf(c)&&(i+=c+"."),i+=o,l&&o.indexOf("."+l)!=o.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"")}else s?i+="new "+(o||""):o?i+=o:(i+=t,a=!1);return a&&(i+=" ("+t+")"),i}function C(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]})),t.toString=T,t}function D(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=e.getLineNumber(),i=e.getColumnNumber()-1,o=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===r&&i>o&&!h()&&!e.isEval()&&(i-=o);var a=S({source:n,line:r,column:i});t.curPosition=a;var s=(e=C(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},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 c=e.isEval()&&e.getEvalOrigin();return c?(c=k(c),(e=C(e)).getEvalOrigin=function(){return c},e):e}function w(e,t){u&&(d={},p={});for(var n=(e.name||"Error")+": "+(e.message||""),r={nextPosition:null,curPosition:null},i=[],o=t.length-1;o>=0;o--)i.push("\n at "+D(t[o],r)),r.nextPosition=r.curPosition;return r.curPosition=r.nextPosition=null,n+i.reverse().join("")}function E(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],o=+t[3],a=d[r];if(!a&&n&&n.existsSync(r))try{a=n.readFileSync(r,"utf8")}catch(e){a=""}if(a){var s=a.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(o).join(" ")+"^"}}return null}function F(e){var t=E(e),n=function(){if("object"==typeof process&&null!==process)return process.stderr}();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),function(e){if("object"==typeof process&&null!==process&&"function"==typeof process.exit)process.exit(e)}(1)}g.push((function(e){var t,n=function(e){var t;if(h())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(e){}t=v(e);for(var i,o,a=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;o=a.exec(t);)i=o;return i?i[1]:null}(e);if(!n)return null;if(f.test(n)){var r=n.slice(n.indexOf(",")+1);t=o(r,"base64").toString(),n=e}else n=b(e,n),t=v(n);return t?{url:n,map:t}:null}));var N=m.slice(0),P=g.slice(0);t.wrapCallSite=D,t.getErrorSource=E,t.mapSourcePosition=S,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(_=t.environment,-1===["node","browser","auto"].indexOf(_)))throw new Error("environment "+_+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(m.length=0),m.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(g.length=0),g.unshift(t.retrieveSourceMap)),t.hookRequire&&!h()){var n=s(e,"module"),r=n.prototype._compile;r.__sourceMapSupport||(n.prototype._compile=function(e,t){return d[t]=e,p[t]=void 0,r.call(this,e,t)},n.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=w),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,o=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,n=this.listeners(e).length>0;if(t&&!n)return F(arguments[1])}return o.apply(this,arguments)})}var o},t.resetRetrieveHandlers=function(){m.length=0,g.length=0,m=N.slice(0),g=P.slice(0),x=y(g),v=y(m)}}(ri,ri.exports)),ri.exports} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -21,41 +21,41 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */function zi(){return Li||(Li=1,e=ri,t={},(e=>{var t=Object.defineProperty,n=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},r={};n(r,{ANONYMOUS:()=>CZ,AccessFlags:()=>ti,AssertionLevel:()=>vt,AssignmentDeclarationKind:()=>_i,AssignmentKind:()=>th,Associativity:()=>cy,BreakpointResolver:()=>m7,BuilderFileEmit:()=>XU,BuilderProgramKind:()=>CV,BuilderState:()=>GU,CallHierarchy:()=>h7,CharacterCodes:()=>wi,CheckFlags:()=>Gr,CheckMode:()=>VB,ClassificationType:()=>qK,ClassificationTypeNames:()=>$K,CommentDirectiveType:()=>Fr,Comparison:()=>l,CompletionInfoFlags:()=>LK,CompletionTriggerKind:()=>wK,Completions:()=>Fae,ContainerFlags:()=>UM,ContextFlags:()=>Br,Debug:()=>gn,DiagnosticCategory:()=>di,Diagnostics:()=>ha,DocumentHighlights:()=>P0,ElementFlags:()=>ei,EmitFlags:()=>Pi,EmitHint:()=>Li,EmitOnly:()=>Ir,EndOfLineState:()=>MK,ExitStatus:()=>Lr,ExportKind:()=>h0,Extension:()=>Ei,ExternalEmitHelpers:()=>Oi,FileIncludeKind:()=>Pr,FilePreprocessingDiagnosticsKind:()=>Ar,FileSystemEntryKind:()=>uo,FileWatcherEventKind:()=>Vi,FindAllReferences:()=>Nce,FlattenLevel:()=>bz,FlowFlags:()=>Er,ForegroundColorEscapeSequences:()=>Vq,FunctionFlags:()=>Jh,GeneratedIdentifierFlags:()=>Cr,GetLiteralTextFlags:()=>cp,GoToDefinition:()=>hle,HighlightSpanKind:()=>FK,IdentifierNameMap:()=>KJ,ImportKind:()=>g0,ImportsNotUsedAsValues:()=>xi,IndentStyle:()=>NK,IndexFlags:()=>ni,IndexKind:()=>ai,InferenceFlags:()=>li,InferencePriority:()=>ci,InlayHintKind:()=>EK,InlayHints:()=>Rle,InternalEmitFlags:()=>Ai,InternalNodeBuilderFlags:()=>zr,InternalSymbolName:()=>Kr,IntersectionFlags:()=>Mr,InvalidatedProjectKind:()=>yH,JSDocParsingMode:()=>$i,JsDoc:()=>zle,JsTyping:()=>WG,JsxEmit:()=>bi,JsxFlags:()=>Sr,JsxReferenceKind:()=>ri,LanguageFeatureMinimumTarget:()=>Ii,LanguageServiceMode:()=>kK,LanguageVariant:()=>Ci,LexicalEnvironmentFlags:()=>ji,ListFormat:()=>Mi,LogLevel:()=>hn,MapCode:()=>sue,MemberOverrideStatus:()=>Rr,ModifierFlags:()=>xr,ModuleDetectionKind:()=>mi,ModuleInstanceState:()=>JM,ModuleKind:()=>vi,ModuleResolutionKind:()=>fi,ModuleSpecifierEnding:()=>Uk,NavigateTo:()=>r2,NavigationBar:()=>f2,NewLineKind:()=>Si,NodeBuilderFlags:()=>Jr,NodeCheckFlags:()=>Xr,NodeFactoryFlags:()=>VC,NodeFlags:()=>br,NodeResolutionFeatures:()=>jj,ObjectFlags:()=>Yr,OperationCanceledException:()=>Nr,OperatorPrecedence:()=>py,OrganizeImports:()=>pue,OrganizeImportsMode:()=>DK,OuterExpressionKinds:()=>Ri,OutliningElementsCollector:()=>Vue,OutliningSpanKind:()=>RK,OutputFileType:()=>jK,PackageJsonAutoImportPreference:()=>SK,PackageJsonDependencyGroup:()=>xK,PatternMatchKind:()=>i1,PollingInterval:()=>Wi,PollingWatchKind:()=>yi,PragmaKindFlags:()=>Bi,PredicateSemantics:()=>Tr,PreparePasteEdits:()=>Efe,PrivateIdentifierKind:()=>GD,ProcessLevel:()=>zz,ProgramUpdateLevel:()=>Sq,QuotePreference:()=>nY,RegularExpressionFlags:()=>Dr,RelationComparisonResult:()=>kr,Rename:()=>e_e,ScriptElementKind:()=>JK,ScriptElementKindModifier:()=>zK,ScriptKind:()=>ki,ScriptSnapshot:()=>fK,ScriptTarget:()=>Ti,SemanticClassificationFormat:()=>CK,SemanticMeaning:()=>VK,SemicolonPreference:()=>PK,SignatureCheckMode:()=>WB,SignatureFlags:()=>oi,SignatureHelp:()=>s_e,SignatureInfo:()=>KU,SignatureKind:()=>ii,SmartSelectionRange:()=>I_e,SnippetKind:()=>Ni,StatisticType:()=>iG,StructureIsReused:()=>Or,SymbolAccessibility:()=>Ur,SymbolDisplay:()=>U_e,SymbolDisplayPartKind:()=>OK,SymbolFlags:()=>Hr,SymbolFormatFlags:()=>qr,SyntaxKind:()=>vr,Ternary:()=>ui,ThrottledCancellationToken:()=>a7,TokenClass:()=>BK,TokenFlags:()=>wr,TransformFlags:()=>Fi,TypeFacts:()=>qB,TypeFlags:()=>Qr,TypeFormatFlags:()=>$r,TypeMapKind:()=>si,TypePredicateKind:()=>Vr,TypeReferenceSerializationKind:()=>Wr,UnionReduction:()=>jr,UpToDateStatusType:()=>UW,VarianceFlags:()=>Zr,Version:()=>Cn,VersionRange:()=>wn,WatchDirectoryFlags:()=>Di,WatchDirectoryKind:()=>hi,WatchFileKind:()=>gi,WatchLogLevel:()=>Nq,WatchType:()=>EW,accessPrivateIdentifier:()=>gz,addEmitFlags:()=>dD,addEmitHelper:()=>AD,addEmitHelpers:()=>ID,addInternalEmitFlags:()=>fD,addNodeFactoryPatcher:()=>HC,addObjectAllocatorPatcher:()=>Hx,addRange:()=>de,addRelatedInfo:()=>pT,addSyntheticLeadingComment:()=>CD,addSyntheticTrailingComment:()=>ED,addToSeen:()=>Ex,advancedAsyncSuperHelper:()=>Fw,affectsDeclarationPathOptionDeclarations:()=>NO,affectsEmitOptionDeclarations:()=>FO,allKeysStartWithDot:()=>fM,altDirectorySeparator:()=>vo,and:()=>on,append:()=>le,appendIfUnique:()=>fe,arrayFrom:()=>Be,arrayIsEqualTo:()=>ae,arrayIsHomogeneous:()=>FT,arrayOf:()=>Me,arrayReverseIterator:()=>ge,arrayToMap:()=>$e,arrayToMultiMap:()=>Ue,arrayToNumericMap:()=>qe,assertType:()=>cn,assign:()=>Je,asyncSuperHelper:()=>Ew,attachFileToDiagnostics:()=>nS,base64decode:()=>Ab,base64encode:()=>Pb,binarySearch:()=>Fe,binarySearchKey:()=>Ne,bindSourceFile:()=>HM,breakIntoCharacterSpans:()=>x1,breakIntoWordSpans:()=>S1,buildLinkParts:()=>BY,buildOpts:()=>JO,buildOverload:()=>Mfe,bundlerModuleNameResolver:()=>Bj,canBeConvertedToAsync:()=>W1,canHaveDecorators:()=>gI,canHaveExportModifier:()=>YT,canHaveFlowNode:()=>zg,canHaveIllegalDecorators:()=>RA,canHaveIllegalModifiers:()=>jA,canHaveIllegalType:()=>OA,canHaveIllegalTypeParameters:()=>LA,canHaveJSDoc:()=>$g,canHaveLocals:()=>f_,canHaveModifiers:()=>mI,canHaveModuleSpecifier:()=>Tg,canHaveSymbol:()=>p_,canIncludeBindAndCheckDiagnostics:()=>bT,canJsonReportNoInputFiles:()=>_R,canProduceDiagnostics:()=>b$,canUsePropertyAccess:()=>eC,canWatchAffectingLocation:()=>GV,canWatchAtTypes:()=>VV,canWatchDirectoryOrFile:()=>qV,canWatchDirectoryOrFilePath:()=>UV,cartesianProduct:()=>_n,cast:()=>st,chainBundle:()=>$J,chainDiagnosticMessages:()=>sS,changeAnyExtension:()=>ea,changeCompilerHostLikeToUseCache:()=>zq,changeExtension:()=>Zk,changeFullExtension:()=>ta,changesAffectModuleResolution:()=>od,changesAffectingProgramStructure:()=>ad,characterCodeToRegularExpressionFlag:()=>Ja,childIsDecorated:()=>Sm,classElementOrClassElementParameterIsDecorated:()=>Tm,classHasClassThisAssignment:()=>Pz,classHasDeclaredOrExplicitlyAssignedName:()=>jz,classHasExplicitlyAssignedName:()=>Rz,classOrConstructorParameterIsDecorated:()=>km,classicNameResolver:()=>IM,classifier:()=>R7,cleanExtendedConfigCache:()=>Cq,clear:()=>I,clearMap:()=>vx,clearSharedExtendedConfigFileWatcher:()=>Tq,climbPastPropertyAccess:()=>oX,clone:()=>He,cloneCompilerOptions:()=>DQ,closeFileWatcher:()=>ux,closeFileWatcherOf:()=>Iq,codefix:()=>M7,collapseTextChangeRangesAcrossMultipleVersions:()=>ic,collectExternalModuleInfo:()=>WJ,combine:()=>ue,combinePaths:()=>Uo,commandLineOptionOfCustomType:()=>jO,commentPragmas:()=>zi,commonOptionsWithBuild:()=>kO,compact:()=>se,compareBooleans:()=>Bt,compareDataObjects:()=>yx,compareDiagnostics:()=>uS,compareEmitHelpers:()=>XD,compareNumberOfDirectorySeparators:()=>Gk,comparePaths:()=>aa,comparePathsCaseInsensitive:()=>oa,comparePathsCaseSensitive:()=>ia,comparePatternKeys:()=>gM,compareProperties:()=>Mt,compareStringsCaseInsensitive:()=>Et,compareStringsCaseInsensitiveEslintCompatible:()=>Ft,compareStringsCaseSensitive:()=>Nt,compareStringsCaseSensitiveUI:()=>jt,compareTextSpans:()=>Ct,compareValues:()=>Tt,compilerOptionsAffectDeclarationPath:()=>YS,compilerOptionsAffectEmit:()=>QS,compilerOptionsAffectSemanticDiagnostics:()=>XS,compilerOptionsDidYouMeanDiagnostics:()=>tL,compilerOptionsIndicateEsModules:()=>XQ,computeCommonSourceDirectoryOfFilenames:()=>Rq,computeLineAndCharacterOfPosition:()=>Va,computeLineOfPosition:()=>Wa,computeLineStarts:()=>za,computePositionOfLineAndCharacter:()=>qa,computeSignatureWithDiagnostics:()=>EV,computeSuggestionDiagnostics:()=>R1,computedOptions:()=>TS,concatenate:()=>Y,concatenateDiagnosticMessageChains:()=>cS,consumesNodeCoreModules:()=>UZ,contains:()=>E,containsIgnoredPath:()=>JT,containsObjectRestOrSpread:()=>pI,containsParseError:()=>Td,containsPath:()=>sa,convertCompilerOptionsForTelemetry:()=>qR,convertCompilerOptionsFromJson:()=>gR,convertJsonOption:()=>TR,convertToBase64:()=>Nb,convertToJson:()=>AL,convertToObject:()=>PL,convertToOptionsWithAbsolutePaths:()=>WL,convertToRelativePath:()=>_a,convertToTSConfig:()=>LL,convertTypeAcquisitionFromJson:()=>hR,copyComments:()=>cZ,copyEntries:()=>_d,copyLeadingComments:()=>pZ,copyProperties:()=>Ke,copyTrailingAsLeadingComments:()=>mZ,copyTrailingComments:()=>fZ,couldStartTrivia:()=>rs,countWhere:()=>N,createAbstractBuilder:()=>JV,createAccessorPropertyBackingField:()=>sI,createAccessorPropertyGetRedirector:()=>cI,createAccessorPropertySetRedirector:()=>lI,createBaseNodeFactory:()=>MC,createBinaryExpressionTrampoline:()=>eI,createBuilderProgram:()=>FV,createBuilderProgramUsingIncrementalBuildInfo:()=>OV,createBuilderStatusReporter:()=>QW,createCacheableExportInfoMap:()=>y0,createCachedDirectoryStructureHost:()=>xq,createClassifier:()=>N0,createCommentDirectivesMap:()=>Wd,createCompilerDiagnostic:()=>oS,createCompilerDiagnosticForInvalidCustomType:()=>WO,createCompilerDiagnosticFromMessageChain:()=>aS,createCompilerHost:()=>jq,createCompilerHostFromProgramHost:()=>NW,createCompilerHostWorker:()=>Jq,createDetachedDiagnostic:()=>Zx,createDiagnosticCollection:()=>hy,createDiagnosticForFileFromMessageChain:()=>Qp,createDiagnosticForNode:()=>Up,createDiagnosticForNodeArray:()=>Vp,createDiagnosticForNodeArrayFromMessageChain:()=>Gp,createDiagnosticForNodeFromMessageChain:()=>Hp,createDiagnosticForNodeInSourceFile:()=>Wp,createDiagnosticForRange:()=>Zp,createDiagnosticMessageChainFromDiagnostic:()=>Yp,createDiagnosticReporter:()=>oW,createDocumentPositionMapper:()=>jJ,createDocumentRegistry:()=>W0,createDocumentRegistryInternal:()=>H0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>BV,createEmitHelperFactory:()=>KD,createEmptyExports:()=>GP,createEvaluator:()=>kC,createExpressionForJsxElement:()=>ZP,createExpressionForJsxFragment:()=>eA,createExpressionForObjectLiteralElementLike:()=>iA,createExpressionForPropertyName:()=>rA,createExpressionFromEntityName:()=>nA,createExternalHelpersImportDeclarationIfNeeded:()=>SA,createFileDiagnostic:()=>rS,createFileDiagnosticFromMessageChain:()=>Xp,createFlowNode:()=>VM,createForOfBindingStatement:()=>tA,createFutureSourceFile:()=>m0,createGetCanonicalFileName:()=>Xt,createGetIsolatedDeclarationErrors:()=>k$,createGetSourceFile:()=>Mq,createGetSymbolAccessibilityDiagnosticForNode:()=>S$,createGetSymbolAccessibilityDiagnosticForNodeName:()=>x$,createGetSymbolWalker:()=>ZM,createIncrementalCompilerHost:()=>JW,createIncrementalProgram:()=>zW,createJsxFactoryExpression:()=>YP,createLanguageService:()=>l7,createLanguageServiceSourceFile:()=>n7,createMemberAccessForPropertyName:()=>KP,createModeAwareCache:()=>Tj,createModeAwareCacheKey:()=>kj,createModeMismatchDetails:()=>vd,createModuleNotFoundChain:()=>yd,createModuleResolutionCache:()=>Fj,createModuleResolutionLoader:()=>fU,createModuleResolutionLoaderUsingGlobalCache:()=>tW,createModuleSpecifierResolutionHost:()=>QQ,createMultiMap:()=>Qe,createNameResolver:()=>DC,createNodeConverters:()=>zC,createNodeFactory:()=>GC,createOptionNameMap:()=>$O,createOverload:()=>jfe,createPackageJsonImportFilter:()=>qZ,createPackageJsonInfo:()=>$Z,createParenthesizerRules:()=>BC,createPatternMatcher:()=>a1,createPrinter:()=>hq,createPrinterWithDefaults:()=>pq,createPrinterWithRemoveComments:()=>fq,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>mq,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>gq,createProgram:()=>OU,createProgramHost:()=>IW,createPropertyNameNodeForIdentifierOrLiteral:()=>GT,createQueue:()=>et,createRange:()=>Jb,createRedirectedBuilderProgram:()=>jV,createResolutionCache:()=>nW,createRuntimeTypeSerializer:()=>Gz,createScanner:()=>ks,createSemanticDiagnosticsBuilderProgram:()=>MV,createSet:()=>tt,createSolutionBuilder:()=>tH,createSolutionBuilderHost:()=>ZW,createSolutionBuilderWithWatch:()=>nH,createSolutionBuilderWithWatchHost:()=>eH,createSortedArray:()=>re,createSourceFile:()=>HI,createSourceMapGenerator:()=>bJ,createSourceMapSource:()=>aD,createSuperAccessVariableStatement:()=>Yz,createSymbolTable:()=>td,createSymlinkCache:()=>ik,createSyntacticTypeNodeBuilder:()=>VG,createSystemWatchFunctions:()=>fo,createTextChange:()=>MQ,createTextChangeFromStartLength:()=>jQ,createTextChangeRange:()=>nc,createTextRangeFromNode:()=>OQ,createTextRangeFromSpan:()=>RQ,createTextSpan:()=>Ys,createTextSpanFromBounds:()=>Zs,createTextSpanFromNode:()=>AQ,createTextSpanFromRange:()=>LQ,createTextSpanFromStringLiteralLikeContent:()=>IQ,createTextWriter:()=>zy,createTokenRange:()=>Vb,createTypeChecker:()=>eJ,createTypeReferenceDirectiveResolutionCache:()=>Nj,createTypeReferenceResolutionLoader:()=>hU,createWatchCompilerHost:()=>$W,createWatchCompilerHostOfConfigFile:()=>RW,createWatchCompilerHostOfFilesAndCompilerOptions:()=>jW,createWatchFactory:()=>FW,createWatchHost:()=>wW,createWatchProgram:()=>qW,createWatchStatusReporter:()=>lW,createWriteFileMeasuringIO:()=>Bq,declarationNameToString:()=>Mp,decodeMappings:()=>EJ,decodedTextSpanIntersectsWith:()=>Hs,deduplicate:()=>ne,defaultInitCompilerOptions:()=>VO,defaultMaximumTruncationLength:()=>Q_,diagnosticCategoryName:()=>pi,diagnosticToString:()=>c0,diagnosticsEqualityComparer:()=>fS,directoryProbablyExists:()=>Rb,directorySeparator:()=>yo,displayPart:()=>DY,displayPartsToString:()=>Q8,disposeEmitNodes:()=>lD,documentSpansEqual:()=>hY,dumpTracingLegend:()=>yr,elementAt:()=>ye,elideNodes:()=>nI,emitDetachedComments:()=>Ev,emitFiles:()=>lq,emitFilesAndReportErrors:()=>kW,emitFilesAndReportErrorsAndGetExitStatus:()=>TW,emitModuleKindIsNonNodeESM:()=>$S,emitNewLineBeforeLeadingCommentOfPosition:()=>wv,emitResolverSkipsTypeChecking:()=>cq,emitSkippedWithNoDiagnostics:()=>BU,emptyArray:()=>u,emptyFileSystemEntries:()=>uT,emptyMap:()=>d,emptyOptions:()=>TK,endsWith:()=>$t,ensurePathIsNonModuleName:()=>Zo,ensureScriptKind:()=>wk,ensureTrailingDirectorySeparator:()=>Yo,entityNameToString:()=>qp,enumerateInsertsAndDeletes:()=>un,equalOwnProperties:()=>ze,equateStringsCaseInsensitive:()=>xt,equateStringsCaseSensitive:()=>St,equateValues:()=>bt,escapeJsxAttributeString:()=>Ly,escapeLeadingUnderscores:()=>xc,escapeNonAsciiString:()=>Ny,escapeSnippetText:()=>WT,escapeString:()=>Ey,escapeTemplateSubstitution:()=>vy,evaluatorResult:()=>SC,every:()=>k,exclusivelyPrefixedNodeCoreModules:()=>IC,executeCommandLine:()=>xG,expandPreOrPostfixIncrementOrDecrementExpression:()=>oA,explainFiles:()=>hW,explainIfFileIsRedirectAndImpliedFormat:()=>yW,exportAssignmentIsAlias:()=>Sh,expressionResultIsUnused:()=>BT,extend:()=>Ge,extensionFromPath:()=>aT,extensionIsTS:()=>iT,extensionsNotSupportingExtensionlessResolution:()=>Mk,externalHelpersModuleNameText:()=>X_,factory:()=>oD,fileExtensionIs:()=>No,fileExtensionIsOneOf:()=>Po,fileIncludeReasonToDiagnostics:()=>xW,fileShouldUseJavaScriptRequire:()=>p0,filter:()=>P,filterMutate:()=>A,filterSemanticDiagnostics:()=>zU,find:()=>T,findAncestor:()=>yc,findBestPatternMatch:()=>Zt,findChildOfKind:()=>RX,findComputedPropertyNameCacheAssignment:()=>uI,findConfigFile:()=>Oq,findConstructorDeclaration:()=>CC,findContainingList:()=>jX,findDiagnosticForNode:()=>HZ,findFirstNonJsxWhitespaceToken:()=>YX,findIndex:()=>D,findLast:()=>C,findLastIndex:()=>w,findListItemInfo:()=>OX,findModifier:()=>pY,findNextToken:()=>eQ,findPackageJson:()=>zZ,findPackageJsons:()=>JZ,findPrecedingMatchingToken:()=>_Q,findPrecedingToken:()=>tQ,findSuperStatementIndexPath:()=>rz,findTokenOnLeftOfPosition:()=>ZX,findUseStrictPrologue:()=>uA,first:()=>xe,firstDefined:()=>g,firstDefinedIterator:()=>h,firstIterator:()=>Se,firstOrOnly:()=>YZ,firstOrUndefined:()=>ve,firstOrUndefinedIterator:()=>be,fixupCompilerOptions:()=>n2,flatMap:()=>M,flatMapIterator:()=>J,flatMapToMutable:()=>B,flatten:()=>j,flattenCommaList:()=>dI,flattenDestructuringAssignment:()=>xz,flattenDestructuringBinding:()=>Tz,flattenDiagnosticMessageText:()=>rU,forEach:()=>f,forEachAncestor:()=>cd,forEachAncestorDirectory:()=>fa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>SM,forEachChild:()=>qI,forEachChildRecursively:()=>UI,forEachDynamicImportOrRequireCall:()=>LC,forEachEmittedFile:()=>q$,forEachEnclosingBlockScopeContainer:()=>jp,forEachEntry:()=>ld,forEachExternalModuleToImportFrom:()=>x0,forEachImportClauseDeclaration:()=>Ag,forEachKey:()=>ud,forEachLeadingCommentRange:()=>ds,forEachNameInAccessChainWalkingLeft:()=>Lx,forEachNameOfDefaultExport:()=>F0,forEachPropertyAssignment:()=>Xf,forEachResolvedProjectReference:()=>vU,forEachReturnStatement:()=>Of,forEachRight:()=>m,forEachTrailingCommentRange:()=>ps,forEachTsConfigPropArray:()=>em,forEachUnique:()=>vY,forEachYieldExpression:()=>Lf,formatColorAndReset:()=>Zq,formatDiagnostic:()=>Uq,formatDiagnostics:()=>qq,formatDiagnosticsWithColorAndContext:()=>nU,formatGeneratedName:()=>aI,formatGeneratedNamePart:()=>iI,formatLocation:()=>tU,formatMessage:()=>iS,formatStringFromArgs:()=>Kx,formatting:()=>Ede,generateDjb2Hash:()=>qi,generateTSConfig:()=>VL,getAdjustedReferenceLocation:()=>WX,getAdjustedRenameLocation:()=>HX,getAliasDeclarationFromName:()=>bh,getAllAccessorDeclarations:()=>bv,getAllDecoratorsOfClass:()=>uz,getAllDecoratorsOfClassElement:()=>_z,getAllJSDocTags:()=>fl,getAllJSDocTagsOfKind:()=>ml,getAllKeys:()=>Re,getAllProjectOutputs:()=>oq,getAllSuperTypeNodes:()=>Eh,getAllowImportingTsExtensions:()=>CS,getAllowJSCompilerOption:()=>JS,getAllowSyntheticDefaultImports:()=>AS,getAncestor:()=>Ph,getAnyExtensionFromPath:()=>Bo,getAreDeclarationMapsEnabled:()=>BS,getAssignedExpandoInitializer:()=>Zm,getAssignedName:()=>Ic,getAssignmentDeclarationKind:()=>cg,getAssignmentDeclarationPropertyAccessKind:()=>yg,getAssignmentTargetKind:()=>rh,getAutomaticTypeDirectiveNames:()=>gj,getBaseFileName:()=>jo,getBinaryOperatorPrecedence:()=>my,getBuildInfo:()=>_q,getBuildInfoFileVersionMap:()=>LV,getBuildInfoText:()=>uq,getBuildOrderFromAnyBuildOrder:()=>XW,getBuilderCreationParameters:()=>DV,getBuilderFileEmit:()=>YU,getCanonicalDiagnostic:()=>ef,getCheckFlags:()=>_x,getClassExtendsHeritageElement:()=>Dh,getClassLikeDeclarationOfSymbol:()=>kx,getCombinedLocalAndExportSymbolFlags:()=>fx,getCombinedModifierFlags:()=>_c,getCombinedNodeFlags:()=>pc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>dc,getCommentRange:()=>xD,getCommonSourceDirectory:()=>rq,getCommonSourceDirectoryOfConfig:()=>iq,getCompilerOptionValue:()=>ZS,getCompilerOptionsDiffValue:()=>qL,getConditions:()=>fj,getConfigFileParsingDiagnostics:()=>NU,getConstantValue:()=>ND,getContainerFlags:()=>QM,getContainerNode:()=>vX,getContainingClass:()=>rm,getContainingClassExcludingClassDecorators:()=>am,getContainingClassStaticBlock:()=>im,getContainingFunction:()=>tm,getContainingFunctionDeclaration:()=>nm,getContainingFunctionOrClassStaticBlock:()=>om,getContainingNodeArray:()=>zT,getContainingObjectLiteralElement:()=>_7,getContextualTypeFromParent:()=>vZ,getContextualTypeFromParentOrAncestorTypeNode:()=>zX,getDeclarationDiagnostics:()=>T$,getDeclarationEmitExtensionForPath:()=>Yy,getDeclarationEmitOutputFilePath:()=>Xy,getDeclarationEmitOutputFilePathWorker:()=>Qy,getDeclarationFileExtension:()=>oO,getDeclarationFromName:()=>hh,getDeclarationModifierFlagsFromSymbol:()=>dx,getDeclarationOfKind:()=>Z_,getDeclarationsOfKind:()=>ed,getDeclaredExpandoInitializer:()=>Ym,getDecorators:()=>Oc,getDefaultCompilerOptions:()=>Y8,getDefaultFormatCodeSettings:()=>AK,getDefaultLibFileName:()=>Ls,getDefaultLibFilePath:()=>p7,getDefaultLikeExportInfo:()=>w0,getDefaultLikeExportNameFromDeclaration:()=>e0,getDefaultResolutionModeForFileWorker:()=>MU,getDiagnosticText:()=>cL,getDiagnosticsWithinSpan:()=>GZ,getDirectoryPath:()=>Ro,getDirectoryToWatchFailedLookupLocation:()=>KV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>YV,getDocumentPositionMapper:()=>I1,getDocumentSpansEqualityComparer:()=>yY,getESModuleInterop:()=>PS,getEditsForFileRename:()=>X0,getEffectiveBaseTypeNode:()=>Ch,getEffectiveConstraintOfTypeParameter:()=>yl,getEffectiveContainerForJSDocTemplateTag:()=>Hg,getEffectiveImplementsTypeNodes:()=>wh,getEffectiveInitializer:()=>Qm,getEffectiveJSDocHost:()=>Xg,getEffectiveModifierFlags:()=>Hv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Gv,getEffectiveModifierFlagsNoCache:()=>Yv,getEffectiveReturnTypeNode:()=>kv,getEffectiveSetAccessorTypeAnnotationNode:()=>Cv,getEffectiveTypeAnnotationNode:()=>xv,getEffectiveTypeParameterDeclarations:()=>hl,getEffectiveTypeRoots:()=>cj,getElementOrPropertyAccessArgumentExpressionOrName:()=>gg,getElementOrPropertyAccessName:()=>hg,getElementsOfBindingOrAssignmentPattern:()=>AA,getEmitDeclarations:()=>RS,getEmitFlags:()=>op,getEmitHelpers:()=>LD,getEmitModuleDetectionKind:()=>FS,getEmitModuleFormatOfFileWorker:()=>RU,getEmitModuleKind:()=>wS,getEmitModuleResolutionKind:()=>ES,getEmitScriptTarget:()=>DS,getEmitStandardClassFields:()=>KS,getEnclosingBlockScopeContainer:()=>Rp,getEnclosingContainer:()=>Lp,getEncodedSemanticClassifications:()=>B0,getEncodedSyntacticClassifications:()=>U0,getEndLinePosition:()=>Pd,getEntityNameFromTypeNode:()=>hm,getEntrypointsFromPackageJsonInfo:()=>iM,getErrorCountForSummary:()=>_W,getErrorSpanForNode:()=>rf,getErrorSummaryText:()=>mW,getEscapedTextOfIdentifierOrLiteral:()=>Xh,getEscapedTextOfJsxAttributeName:()=>cC,getEscapedTextOfJsxNamespacedName:()=>_C,getExpandoInitializer:()=>eg,getExportAssignmentExpression:()=>kh,getExportInfoMap:()=>D0,getExportNeedsImportStarHelper:()=>qJ,getExpressionAssociativity:()=>ly,getExpressionPrecedence:()=>_y,getExternalHelpersModuleName:()=>bA,getExternalModuleImportEqualsDeclarationExpression:()=>Am,getExternalModuleName:()=>Fg,getExternalModuleNameFromDeclaration:()=>Hy,getExternalModuleNameFromPath:()=>Gy,getExternalModuleNameLiteral:()=>TA,getExternalModuleRequireArgument:()=>Im,getFallbackOptions:()=>Aq,getFileEmitOutput:()=>HU,getFileMatcherPatterns:()=>Sk,getFileNamesFromConfigSpecs:()=>PR,getFileWatcherEventKind:()=>io,getFilesInErrorForSummary:()=>dW,getFirstConstructorWithBody:()=>_v,getFirstIdentifier:()=>mb,getFirstNonSpaceCharacterPosition:()=>YY,getFirstProjectOutput:()=>sq,getFixableErrorSpanExpression:()=>XZ,getFormatCodeSettingsForWriting:()=>l0,getFullWidth:()=>pd,getFunctionFlags:()=>zh,getHeritageClause:()=>Nh,getHostSignatureFromJSDoc:()=>Kg,getIdentifierAutoGenerate:()=>VD,getIdentifierGeneratedImportReference:()=>HD,getIdentifierTypeArguments:()=>qD,getImmediatelyInvokedFunctionExpression:()=>dm,getImpliedNodeFormatForEmitWorker:()=>jU,getImpliedNodeFormatForFile:()=>PU,getImpliedNodeFormatForFileWorker:()=>AU,getImportNeedsImportDefaultHelper:()=>VJ,getImportNeedsImportStarHelper:()=>UJ,getIndentString:()=>By,getInferredLibraryNameResolveFrom:()=>SU,getInitializedVariables:()=>sx,getInitializerOfBinaryExpression:()=>vg,getInitializerOfBindingOrAssignmentElement:()=>DA,getInterfaceBaseTypeNodes:()=>Fh,getInternalEmitFlags:()=>ap,getInvokedExpression:()=>ym,getIsFileExcluded:()=>C0,getIsolatedModules:()=>NS,getJSDocAugmentsTag:()=>qc,getJSDocClassTag:()=>Vc,getJSDocCommentRanges:()=>Cf,getJSDocCommentsAndTags:()=>qg,getJSDocDeprecatedTag:()=>tl,getJSDocDeprecatedTagNoCache:()=>nl,getJSDocEnumTag:()=>rl,getJSDocHost:()=>Qg,getJSDocImplementsTags:()=>Uc,getJSDocOverloadTags:()=>Gg,getJSDocOverrideTagNoCache:()=>el,getJSDocParameterTags:()=>jc,getJSDocParameterTagsNoCache:()=>Mc,getJSDocPrivateTag:()=>Gc,getJSDocPrivateTagNoCache:()=>Kc,getJSDocProtectedTag:()=>Xc,getJSDocProtectedTagNoCache:()=>Qc,getJSDocPublicTag:()=>Wc,getJSDocPublicTagNoCache:()=>Hc,getJSDocReadonlyTag:()=>Yc,getJSDocReadonlyTagNoCache:()=>Zc,getJSDocReturnTag:()=>ol,getJSDocReturnType:()=>ul,getJSDocRoot:()=>Yg,getJSDocSatisfiesExpressionType:()=>aC,getJSDocSatisfiesTag:()=>sl,getJSDocTags:()=>dl,getJSDocTemplateTag:()=>al,getJSDocThisTag:()=>il,getJSDocType:()=>ll,getJSDocTypeAliasName:()=>IA,getJSDocTypeAssertionType:()=>mA,getJSDocTypeParameterDeclarations:()=>Tv,getJSDocTypeParameterTags:()=>Jc,getJSDocTypeParameterTagsNoCache:()=>zc,getJSDocTypeTag:()=>cl,getJSXImplicitImportBase:()=>tk,getJSXRuntimeImport:()=>nk,getJSXTransformEnabled:()=>ek,getKeyForCompilerOptions:()=>bj,getLanguageVariant:()=>hS,getLastChild:()=>wx,getLeadingCommentRanges:()=>hs,getLeadingCommentRangesOfNode:()=>Tf,getLeftmostAccessExpression:()=>Ox,getLeftmostExpression:()=>Rx,getLibraryNameFromLibFileName:()=>kU,getLineAndCharacterOfPosition:()=>Ga,getLineInfo:()=>TJ,getLineOfLocalPosition:()=>lv,getLineStartPositionForPosition:()=>kX,getLineStarts:()=>Ua,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>rx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>nx,getLinesBetweenPositions:()=>Ha,getLinesBetweenRangeEndAndRangeStart:()=>Qb,getLinesBetweenRangeEndPositions:()=>Yb,getLiteralText:()=>lp,getLocalNameForExternalImport:()=>kA,getLocalSymbolForExportDefault:()=>wb,getLocaleSpecificMessage:()=>Yx,getLocaleTimeString:()=>cW,getMappedContextSpan:()=>kY,getMappedDocumentSpan:()=>SY,getMappedLocation:()=>xY,getMatchedFileSpec:()=>vW,getMatchedIncludeSpec:()=>bW,getMeaningFromDeclaration:()=>WK,getMeaningFromLocation:()=>HK,getMembersOfDeclaration:()=>jf,getModeForFileReference:()=>iU,getModeForResolutionAtIndex:()=>oU,getModeForUsageLocation:()=>sU,getModifiedTime:()=>Gi,getModifiers:()=>Lc,getModuleInstanceState:()=>zM,getModuleNameStringLiteralAt:()=>WU,getModuleSpecifierEndingPreference:()=>Vk,getModuleSpecifierResolverHost:()=>YQ,getNameForExportedSymbol:()=>ZZ,getNameFromImportAttribute:()=>bC,getNameFromIndexInfo:()=>Bp,getNameFromPropertyName:()=>HQ,getNameOfAccessExpression:()=>Ax,getNameOfCompilerOptionValue:()=>JL,getNameOfDeclaration:()=>Ac,getNameOfExpando:()=>ng,getNameOfJSDocTypedef:()=>Fc,getNameOfScriptTarget:()=>GS,getNameOrArgument:()=>mg,getNameTable:()=>u7,getNamespaceDeclarationNode:()=>Ng,getNewLineCharacter:()=>Bb,getNewLineKind:()=>s0,getNewLineOrDefaultFromHost:()=>zY,getNewTargetContainer:()=>um,getNextJSDocCommentLocation:()=>Vg,getNodeChildren:()=>UP,getNodeForGeneratedName:()=>rI,getNodeId:()=>QB,getNodeKind:()=>bX,getNodeModifiers:()=>yQ,getNodeModulePathParts:()=>XT,getNonAssignedNameOfDeclaration:()=>Pc,getNonAssignmentOperatorForCompoundAssignment:()=>ez,getNonAugmentationDeclaration:()=>Sp,getNonDecoratorTokenPosOfNode:()=>Gd,getNonIncrementalBuildInfoRoots:()=>RV,getNonModifierTokenPosOfNode:()=>Kd,getNormalizedAbsolutePath:()=>Ho,getNormalizedAbsolutePathWithoutRoot:()=>Ko,getNormalizedPathComponents:()=>Wo,getObjectFlags:()=>Tx,getOperatorAssociativity:()=>uy,getOperatorPrecedence:()=>fy,getOptionFromName:()=>rL,getOptionsForLibraryResolution:()=>Pj,getOptionsNameMap:()=>qO,getOrCreateEmitNode:()=>cD,getOrUpdate:()=>V,getOriginalNode:()=>hc,getOriginalNodeId:()=>BJ,getOutputDeclarationFileName:()=>X$,getOutputDeclarationFileNameWorker:()=>Q$,getOutputExtension:()=>G$,getOutputFileNames:()=>aq,getOutputJSFileNameWorker:()=>Z$,getOutputPathsFor:()=>W$,getOwnEmitOutputFilePath:()=>Ky,getOwnKeys:()=>Le,getOwnValues:()=>je,getPackageJsonTypesVersionsPaths:()=>sj,getPackageNameFromTypesPackageName:()=>NM,getPackageScopeForPath:()=>sM,getParameterSymbolFromJSDoc:()=>Wg,getParentNodeInSpan:()=>_Y,getParseTreeNode:()=>bc,getParsedCommandLineOfConfigFile:()=>lL,getPathComponents:()=>Jo,getPathFromPathComponents:()=>zo,getPathUpdater:()=>Q0,getPathsBasePath:()=>tv,getPatternFromSpec:()=>vk,getPendingEmitKindWithSeen:()=>uV,getPositionOfLineAndCharacter:()=>$a,getPossibleGenericSignatures:()=>pQ,getPossibleOriginalInputExtensionForExtension:()=>Zy,getPossibleOriginalInputPathWithoutChangingExt:()=>ev,getPossibleTypeArgumentsInfo:()=>fQ,getPreEmitDiagnostics:()=>$q,getPrecedingNonSpaceCharacterPosition:()=>ZY,getPrivateIdentifier:()=>fz,getProperties:()=>iz,getProperty:()=>Oe,getPropertyArrayElementValue:()=>Qf,getPropertyAssignmentAliasLikeExpression:()=>Th,getPropertyNameForPropertyNameNode:()=>Hh,getPropertyNameFromType:()=>mC,getPropertyNameOfBindingOrAssignmentElement:()=>FA,getPropertySymbolFromBindingElement:()=>uY,getPropertySymbolsFromContextualType:()=>d7,getQuoteFromPreference:()=>oY,getQuotePreference:()=>iY,getRangesWhere:()=>Q,getRefactorContextSpan:()=>KZ,getReferencedFileLocation:()=>EU,getRegexFromPattern:()=>kk,getRegularExpressionForWildcard:()=>gk,getRegularExpressionsForWildcards:()=>hk,getRelativePathFromDirectory:()=>ua,getRelativePathFromFile:()=>da,getRelativePathToDirectoryOrUrl:()=>pa,getRenameLocation:()=>dZ,getReplacementSpanForContextToken:()=>PQ,getResolutionDiagnostic:()=>UU,getResolutionModeOverride:()=>uU,getResolveJsonModule:()=>LS,getResolvePackageJsonExports:()=>IS,getResolvePackageJsonImports:()=>OS,getResolvedExternalModuleName:()=>Vy,getResolvedModuleFromResolution:()=>gd,getResolvedTypeReferenceDirectiveFromResolution:()=>hd,getRestIndicatorOfBindingOrAssignmentElement:()=>EA,getRestParameterElementType:()=>Rf,getRightMostAssignedExpression:()=>ig,getRootDeclaration:()=>oy,getRootDirectoryOfResolutionCache:()=>ZV,getRootLength:()=>Lo,getScriptKind:()=>GY,getScriptKindFromFileName:()=>Ek,getScriptTargetFeatures:()=>sp,getSelectedEffectiveModifierFlags:()=>Uv,getSelectedSyntacticModifierFlags:()=>Vv,getSemanticClassifications:()=>j0,getSemanticJsxChildren:()=>gy,getSetAccessorTypeAnnotationNode:()=>pv,getSetAccessorValueParameter:()=>dv,getSetExternalModuleIndicator:()=>xS,getShebang:()=>vs,getSingleVariableOfVariableStatement:()=>Bg,getSnapshotText:()=>UQ,getSnippetElement:()=>jD,getSourceFileOfModule:()=>Dd,getSourceFileOfNode:()=>Cd,getSourceFilePathInNewDir:()=>iv,getSourceFileVersionAsHashFromText:()=>PW,getSourceFilesToEmit:()=>nv,getSourceMapRange:()=>mD,getSourceMapper:()=>A1,getSourceTextOfNodeFromSourceFile:()=>Xd,getSpanOfTokenAtPosition:()=>tf,getSpellingSuggestion:()=>Jt,getStartPositionOfLine:()=>Fd,getStartPositionOfRange:()=>tx,getStartsOnNewLine:()=>vD,getStaticPropertiesAndClassStaticBlock:()=>az,getStrictOptionValue:()=>HS,getStringComparer:()=>Pt,getSubPatternFromSpec:()=>bk,getSuperCallFromStatement:()=>tz,getSuperContainer:()=>_m,getSupportedCodeFixes:()=>Z8,getSupportedExtensions:()=>Bk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Jk,getSwitchedType:()=>TZ,getSymbolId:()=>YB,getSymbolNameForPrivateIdentifier:()=>Qh,getSymbolTarget:()=>KY,getSyntacticClassifications:()=>q0,getSyntacticModifierFlags:()=>Kv,getSyntacticModifierFlagsNoCache:()=>Zv,getSynthesizedDeepClone:()=>eZ,getSynthesizedDeepCloneWithReplacements:()=>tZ,getSynthesizedDeepClones:()=>rZ,getSynthesizedDeepClonesWithReplacements:()=>iZ,getSyntheticLeadingComments:()=>kD,getSyntheticTrailingComments:()=>DD,getTargetLabel:()=>aX,getTargetOfBindingOrAssignmentElement:()=>wA,getTemporaryModuleResolutionState:()=>aM,getTextOfConstantValue:()=>up,getTextOfIdentifierOrLiteral:()=>Kh,getTextOfJSDocComment:()=>gl,getTextOfJsxAttributeName:()=>lC,getTextOfJsxNamespacedName:()=>dC,getTextOfNode:()=>np,getTextOfNodeFromSourceText:()=>tp,getTextOfPropertyName:()=>$p,getThisContainer:()=>sm,getThisParameter:()=>fv,getTokenAtPosition:()=>XX,getTokenPosOfNode:()=>Hd,getTokenSourceMapRange:()=>hD,getTouchingPropertyName:()=>GX,getTouchingToken:()=>KX,getTrailingCommentRanges:()=>ys,getTrailingSemicolonDeferringWriter:()=>$y,getTransformers:()=>P$,getTsBuildInfoEmitOutputFilePath:()=>U$,getTsConfigObjectLiteralExpression:()=>Yf,getTsConfigPropArrayElementValue:()=>Zf,getTypeAnnotationNode:()=>Sv,getTypeArgumentOrTypeParameterList:()=>vQ,getTypeKeywordOfTypeOnlyImport:()=>mY,getTypeNode:()=>zD,getTypeNodeIfAccessible:()=>DZ,getTypeParameterFromJsDoc:()=>Zg,getTypeParameterOwner:()=>oc,getTypesPackageName:()=>EM,getUILocale:()=>Lt,getUniqueName:()=>_Z,getUniqueSymbolId:()=>QY,getUseDefineForClassFields:()=>zS,getWatchErrorSummaryDiagnosticMessage:()=>pW,getWatchFactory:()=>Pq,group:()=>Ve,groupBy:()=>We,guessIndentation:()=>$_,handleNoEmitOptions:()=>JU,handleWatchOptionsConfigDirTemplateSubstitution:()=>tR,hasAbstractModifier:()=>Bv,hasAccessorModifier:()=>zv,hasAmbientModifier:()=>Jv,hasChangesInResolutions:()=>kd,hasContextSensitiveParameters:()=>$T,hasDecorators:()=>qv,hasDocComment:()=>gQ,hasDynamicName:()=>Vh,hasEffectiveModifier:()=>Ov,hasEffectiveModifiers:()=>Av,hasEffectiveReadonlyModifier:()=>$v,hasExtension:()=>Fo,hasImplementationTSFileExtension:()=>qk,hasIndexSignature:()=>kZ,hasInferredType:()=>FC,hasInitializer:()=>j_,hasInvalidEscape:()=>xy,hasJSDocNodes:()=>L_,hasJSDocParameterTags:()=>$c,hasJSFileExtension:()=>zk,hasJsonModuleEmitEnabled:()=>qS,hasOnlyExpressionInitializer:()=>M_,hasOverrideModifier:()=>Mv,hasPossibleExternalModuleReference:()=>Ip,hasProperty:()=>Ie,hasPropertyAccessExpressionWithName:()=>sX,hasQuestionToken:()=>Ig,hasRecordedExternalHelpers:()=>xA,hasResolutionModeOverride:()=>hC,hasRestParameter:()=>V_,hasScopeMarker:()=>t_,hasStaticModifier:()=>jv,hasSyntacticModifier:()=>Lv,hasSyntacticModifiers:()=>Iv,hasTSFileExtension:()=>$k,hasTabstop:()=>tC,hasTrailingDirectorySeparator:()=>Ao,hasType:()=>R_,hasTypeArguments:()=>eh,hasZeroOrOneAsteriskCharacter:()=>rk,hostGetCanonicalFileName:()=>Uy,hostUsesCaseSensitiveFileNames:()=>qy,idText:()=>kc,identifierIsThisKeyword:()=>vv,identifierToKeywordKind:()=>Tc,identity:()=>dt,identitySourceMapConsumer:()=>MJ,ignoreSourceNewlines:()=>BD,ignoredPaths:()=>oo,importFromModuleSpecifier:()=>Dg,importSyntaxAffectsModuleResolution:()=>SS,indexOfAnyCharCode:()=>F,indexOfNode:()=>ip,indicesOf:()=>ee,inferredTypesContainingFile:()=>xU,injectClassNamedEvaluationHelperBlockIfMissing:()=>Mz,injectClassThisAssignmentIfMissing:()=>Az,insertImports:()=>fY,insertSorted:()=>ie,insertStatementAfterCustomPrologue:()=>qd,insertStatementAfterStandardPrologue:()=>$d,insertStatementsAfterCustomPrologue:()=>zd,insertStatementsAfterStandardPrologue:()=>Jd,intersperse:()=>S,intrinsicTagNameToString:()=>pC,introducesArgumentsExoticObject:()=>qf,inverseJsxOptionMap:()=>yO,isAbstractConstructorSymbol:()=>Sx,isAbstractModifier:()=>oE,isAccessExpression:()=>Px,isAccessibilityModifier:()=>CQ,isAccessor:()=>vu,isAccessorModifier:()=>sE,isAliasableExpression:()=>xh,isAmbientModule:()=>fp,isAmbientPropertyDeclaration:()=>Cp,isAnyDirectorySeparator:()=>So,isAnyImportOrBareOrAccessedRequire:()=>Np,isAnyImportOrReExport:()=>Op,isAnyImportOrRequireStatement:()=>Pp,isAnyImportSyntax:()=>Fp,isAnySupportedFileExtension:()=>sT,isApplicableVersionedTypesKey:()=>vM,isArgumentExpressionOfElementAccess:()=>fX,isArray:()=>nt,isArrayBindingElement:()=>Pu,isArrayBindingOrAssignmentElement:()=>Mu,isArrayBindingOrAssignmentPattern:()=>ju,isArrayBindingPattern:()=>YE,isArrayLiteralExpression:()=>eF,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>wQ,isArrayTypeNode:()=>IE,isArrowFunction:()=>uF,isAsExpression:()=>CF,isAssertClause:()=>fN,isAssertEntry:()=>mN,isAssertionExpression:()=>Yu,isAssertsKeyword:()=>tE,isAssignmentDeclaration:()=>Xm,isAssignmentExpression:()=>_b,isAssignmentOperator:()=>cb,isAssignmentPattern:()=>Nu,isAssignmentTarget:()=>ih,isAsteriskToken:()=>Uw,isAsyncFunction:()=>$h,isAsyncModifier:()=>eE,isAutoAccessorPropertyDeclaration:()=>bu,isAwaitExpression:()=>fF,isAwaitKeyword:()=>nE,isBigIntLiteral:()=>Aw,isBinaryExpression:()=>hF,isBinaryLogicalOperator:()=>nb,isBinaryOperatorToken:()=>HA,isBindableObjectDefinePropertyCall:()=>lg,isBindableStaticAccessExpression:()=>dg,isBindableStaticElementAccessExpression:()=>pg,isBindableStaticNameExpression:()=>fg,isBindingElement:()=>ZE,isBindingElementOfBareOrAccessedRequire:()=>Vm,isBindingName:()=>lu,isBindingOrAssignmentElement:()=>Iu,isBindingOrAssignmentPattern:()=>Ou,isBindingPattern:()=>Fu,isBlock:()=>OF,isBlockLike:()=>f0,isBlockOrCatchScoped:()=>dp,isBlockScope:()=>Dp,isBlockScopedContainerTopLevel:()=>yp,isBooleanLiteral:()=>pu,isBreakOrContinueStatement:()=>Al,isBreakStatement:()=>VF,isBuildCommand:()=>bG,isBuildInfoFile:()=>$$,isBuilderProgram:()=>gW,isBundle:()=>YN,isCallChain:()=>kl,isCallExpression:()=>iF,isCallExpressionTarget:()=>KK,isCallLikeExpression:()=>$u,isCallLikeOrFunctionLikeExpression:()=>zu,isCallOrNewExpression:()=>qu,isCallOrNewExpressionTarget:()=>QK,isCallSignatureDeclaration:()=>TE,isCallToHelper:()=>Nw,isCaseBlock:()=>cN,isCaseClause:()=>qN,isCaseKeyword:()=>uE,isCaseOrDefaultClause:()=>F_,isCatchClause:()=>WN,isCatchClauseVariableDeclaration:()=>UT,isCatchClauseVariableDeclarationOrBindingElement:()=>pp,isCheckJsEnabledForFile:()=>lT,isCircularBuildOrder:()=>KW,isClassDeclaration:()=>nN,isClassElement:()=>hu,isClassExpression:()=>SF,isClassInstanceProperty:()=>xu,isClassLike:()=>yu,isClassMemberModifier:()=>ou,isClassNamedEvaluationHelperBlock:()=>Lz,isClassOrTypeElement:()=>Cu,isClassStaticBlockDeclaration:()=>bE,isClassThisAssignmentBlock:()=>Nz,isColonToken:()=>Hw,isCommaExpression:()=>dA,isCommaListExpression:()=>PF,isCommaSequence:()=>pA,isCommaToken:()=>zw,isComment:()=>bQ,isCommonJsExportPropertyAssignment:()=>zf,isCommonJsExportedExpression:()=>Jf,isCompoundAssignment:()=>ZJ,isComputedNonLiteralName:()=>Jp,isComputedPropertyName:()=>dE,isConciseBody:()=>o_,isConditionalExpression:()=>yF,isConditionalTypeNode:()=>JE,isConstAssertion:()=>TC,isConstTypeReference:()=>Fl,isConstructSignatureDeclaration:()=>CE,isConstructorDeclaration:()=>xE,isConstructorTypeNode:()=>NE,isContextualKeyword:()=>Lh,isContinueStatement:()=>UF,isCustomPrologue:()=>bf,isDebuggerStatement:()=>YF,isDeclaration:()=>h_,isDeclarationBindingElement:()=>Au,isDeclarationFileName:()=>iO,isDeclarationName:()=>gh,isDeclarationNameOfEnumOrNamespace:()=>ax,isDeclarationReadonly:()=>lf,isDeclarationStatement:()=>y_,isDeclarationWithTypeParameterChildren:()=>Ep,isDeclarationWithTypeParameters:()=>wp,isDecorator:()=>mE,isDecoratorTarget:()=>ZK,isDefaultClause:()=>UN,isDefaultImport:()=>Pg,isDefaultModifier:()=>Zw,isDefaultedExpandoInitializer:()=>tg,isDeleteExpression:()=>_F,isDeleteTarget:()=>fh,isDeprecatedDeclaration:()=>o0,isDestructuringAssignment:()=>db,isDiskPathRoot:()=>Co,isDoStatement:()=>BF,isDocumentRegistryEntry:()=>V0,isDotDotDotToken:()=>Jw,isDottedName:()=>gb,isDynamicName:()=>Wh,isEffectiveExternalModule:()=>kp,isEffectiveStrictModeSourceFile:()=>Tp,isElementAccessChain:()=>Sl,isElementAccessExpression:()=>rF,isEmittedFileOfProgram:()=>Fq,isEmptyArrayLiteral:()=>Db,isEmptyBindingElement:()=>cc,isEmptyBindingPattern:()=>sc,isEmptyObjectLiteral:()=>Cb,isEmptyStatement:()=>RF,isEmptyStringLiteral:()=>Cm,isEntityName:()=>su,isEntityNameExpression:()=>fb,isEnumConst:()=>cf,isEnumDeclaration:()=>oN,isEnumMember:()=>XN,isEqualityOperatorKind:()=>xZ,isEqualsGreaterThanToken:()=>Kw,isExclamationToken:()=>Vw,isExcludedFile:()=>AR,isExclusivelyTypeOnlyImportOrExport:()=>aU,isExpandoPropertyDeclaration:()=>gC,isExportAssignment:()=>SN,isExportDeclaration:()=>kN,isExportModifier:()=>Yw,isExportName:()=>cA,isExportNamespaceAsDefaultDeclaration:()=>Qd,isExportOrDefaultModifier:()=>tI,isExportSpecifier:()=>CN,isExportsIdentifier:()=>og,isExportsOrModuleExportsOrAlias:()=>XM,isExpression:()=>Qu,isExpressionNode:()=>wm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>yX,isExpressionOfOptionalChainRoot:()=>Dl,isExpressionStatement:()=>jF,isExpressionWithTypeArguments:()=>TF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>pb,isExternalModule:()=>XI,isExternalModuleAugmentation:()=>bp,isExternalModuleImportEqualsDeclaration:()=>Pm,isExternalModuleIndicator:()=>r_,isExternalModuleNameRelative:()=>As,isExternalModuleReference:()=>NN,isExternalModuleSymbol:()=>rd,isExternalOrCommonJsModule:()=>af,isFileLevelReservedGeneratedIdentifier:()=>eu,isFileLevelUniqueName:()=>Ad,isFileProbablyExternalModule:()=>SI,isFirstDeclarationOfSymbolParameter:()=>TY,isFixablePromiseHandler:()=>z1,isForInOrOfStatement:()=>i_,isForInStatement:()=>$F,isForInitializer:()=>s_,isForOfStatement:()=>qF,isForStatement:()=>zF,isFullSourceFile:()=>Lm,isFunctionBlock:()=>Vf,isFunctionBody:()=>a_,isFunctionDeclaration:()=>tN,isFunctionExpression:()=>lF,isFunctionExpressionOrArrowFunction:()=>VT,isFunctionLike:()=>uu,isFunctionLikeDeclaration:()=>du,isFunctionLikeKind:()=>mu,isFunctionLikeOrClassStaticBlockDeclaration:()=>_u,isFunctionOrConstructorTypeNode:()=>Eu,isFunctionOrModuleBlock:()=>gu,isFunctionSymbol:()=>kg,isFunctionTypeNode:()=>FE,isGeneratedIdentifier:()=>Yl,isGeneratedPrivateIdentifier:()=>Zl,isGetAccessor:()=>O_,isGetAccessorDeclaration:()=>SE,isGetOrSetAccessorDeclaration:()=>bl,isGlobalScopeAugmentation:()=>vp,isGlobalSourceFile:()=>of,isGrammarError:()=>Ld,isHeritageClause:()=>VN,isHoistedFunction:()=>xf,isHoistedVariableStatement:()=>kf,isIdentifier:()=>Xw,isIdentifierANonContextualKeyword:()=>Mh,isIdentifierName:()=>vh,isIdentifierOrThisTypeNode:()=>BA,isIdentifierPart:()=>xs,isIdentifierStart:()=>bs,isIdentifierText:()=>Ss,isIdentifierTypePredicate:()=>Gf,isIdentifierTypeReference:()=>ET,isIfStatement:()=>MF,isIgnoredFileFromWildCardWatching:()=>Eq,isImplicitGlob:()=>yk,isImportAttribute:()=>hN,isImportAttributeName:()=>Ql,isImportAttributes:()=>gN,isImportCall:()=>gf,isImportClause:()=>dN,isImportDeclaration:()=>_N,isImportEqualsDeclaration:()=>uN,isImportKeyword:()=>lE,isImportMeta:()=>hf,isImportOrExportSpecifier:()=>Vl,isImportOrExportSpecifierName:()=>HY,isImportSpecifier:()=>xN,isImportTypeAssertionContainer:()=>pN,isImportTypeNode:()=>GE,isImportable:()=>v0,isInComment:()=>mQ,isInCompoundLikeAssignment:()=>oh,isInExpressionContext:()=>Em,isInJSDoc:()=>Jm,isInJSFile:()=>jm,isInJSXText:()=>lQ,isInJsonFile:()=>Mm,isInNonReferenceComment:()=>FQ,isInReferenceComment:()=>EQ,isInRightSideOfInternalImportEqualsDeclaration:()=>GK,isInString:()=>oQ,isInTemplateString:()=>cQ,isInTopLevelContext:()=>lm,isInTypeQuery:()=>hv,isIncrementalBuildInfo:()=>xV,isIncrementalBundleEmitBuildInfo:()=>bV,isIncrementalCompilation:()=>MS,isIndexSignatureDeclaration:()=>DE,isIndexedAccessTypeNode:()=>VE,isInferTypeNode:()=>zE,isInfinityOrNaNString:()=>qT,isInitializedProperty:()=>sz,isInitializedVariable:()=>cx,isInsideJsxElement:()=>uQ,isInsideJsxElementOrAttribute:()=>aQ,isInsideNodeModules:()=>VZ,isInsideTemplateLiteral:()=>TQ,isInstanceOfExpression:()=>kb,isInstantiatedModule:()=>ZB,isInterfaceDeclaration:()=>rN,isInternalDeclaration:()=>G_,isInternalModuleImportEqualsDeclaration:()=>Om,isInternalName:()=>aA,isIntersectionTypeNode:()=>BE,isIntrinsicJsxName:()=>jy,isIterationStatement:()=>Zu,isJSDoc:()=>pP,isJSDocAllType:()=>oP,isJSDocAugmentsTag:()=>gP,isJSDocAuthorTag:()=>hP,isJSDocCallbackTag:()=>vP,isJSDocClassTag:()=>yP,isJSDocCommentContainingNode:()=>P_,isJSDocConstructSignature:()=>Og,isJSDocDeprecatedTag:()=>DP,isJSDocEnumTag:()=>EP,isJSDocFunctionType:()=>uP,isJSDocImplementsTag:()=>jP,isJSDocImportTag:()=>JP,isJSDocIndexSignature:()=>zm,isJSDocLikeText:()=>xI,isJSDocLink:()=>nP,isJSDocLinkCode:()=>rP,isJSDocLinkLike:()=>U_,isJSDocLinkPlain:()=>iP,isJSDocMemberName:()=>tP,isJSDocNameReference:()=>eP,isJSDocNamepathType:()=>dP,isJSDocNamespaceBody:()=>u_,isJSDocNode:()=>N_,isJSDocNonNullableType:()=>cP,isJSDocNullableType:()=>sP,isJSDocOptionalParameter:()=>nC,isJSDocOptionalType:()=>lP,isJSDocOverloadTag:()=>CP,isJSDocOverrideTag:()=>TP,isJSDocParameterTag:()=>FP,isJSDocPrivateTag:()=>xP,isJSDocPropertyLikeTag:()=>Ol,isJSDocPropertyTag:()=>RP,isJSDocProtectedTag:()=>SP,isJSDocPublicTag:()=>bP,isJSDocReadonlyTag:()=>kP,isJSDocReturnTag:()=>NP,isJSDocSatisfiesExpression:()=>oC,isJSDocSatisfiesTag:()=>MP,isJSDocSeeTag:()=>wP,isJSDocSignature:()=>mP,isJSDocTag:()=>A_,isJSDocTemplateTag:()=>IP,isJSDocThisTag:()=>PP,isJSDocThrowsTag:()=>BP,isJSDocTypeAlias:()=>Lg,isJSDocTypeAssertion:()=>fA,isJSDocTypeExpression:()=>ZN,isJSDocTypeLiteral:()=>fP,isJSDocTypeTag:()=>AP,isJSDocTypedefTag:()=>OP,isJSDocUnknownTag:()=>LP,isJSDocUnknownType:()=>aP,isJSDocVariadicType:()=>_P,isJSXTagName:()=>Dm,isJsonEqual:()=>xT,isJsonSourceFile:()=>sf,isJsxAttribute:()=>MN,isJsxAttributeLike:()=>C_,isJsxAttributeName:()=>uC,isJsxAttributes:()=>BN,isJsxCallLike:()=>E_,isJsxChild:()=>T_,isJsxClosingElement:()=>ON,isJsxClosingFragment:()=>jN,isJsxElement:()=>PN,isJsxExpression:()=>zN,isJsxFragment:()=>LN,isJsxNamespacedName:()=>$N,isJsxOpeningElement:()=>IN,isJsxOpeningFragment:()=>RN,isJsxOpeningLikeElement:()=>w_,isJsxOpeningLikeElementTagName:()=>eX,isJsxSelfClosingElement:()=>AN,isJsxSpreadAttribute:()=>JN,isJsxTagNameExpression:()=>k_,isJsxText:()=>Ow,isJumpStatementTarget:()=>cX,isKeyword:()=>Ah,isKeywordOrPunctuation:()=>Oh,isKnownSymbol:()=>Yh,isLabelName:()=>uX,isLabelOfLabeledStatement:()=>lX,isLabeledStatement:()=>KF,isLateVisibilityPaintedStatement:()=>Ap,isLeftHandSideExpression:()=>Vu,isLet:()=>ff,isLineBreak:()=>Qa,isLiteralComputedPropertyDeclarationName:()=>yh,isLiteralExpression:()=>Jl,isLiteralExpressionOfObject:()=>zl,isLiteralImportTypeNode:()=>yf,isLiteralKind:()=>Bl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>hX,isLiteralTypeLiteral:()=>Xu,isLiteralTypeNode:()=>HE,isLocalName:()=>sA,isLogicalOperator:()=>rb,isLogicalOrCoalescingAssignmentExpression:()=>ob,isLogicalOrCoalescingAssignmentOperator:()=>ib,isLogicalOrCoalescingBinaryExpression:()=>sb,isLogicalOrCoalescingBinaryOperator:()=>ab,isMappedTypeNode:()=>WE,isMemberName:()=>vl,isMetaProperty:()=>EF,isMethodDeclaration:()=>vE,isMethodOrAccessor:()=>Su,isMethodSignature:()=>yE,isMinusToken:()=>qw,isMissingDeclaration:()=>wN,isMissingPackageJsonInfo:()=>yj,isModifier:()=>au,isModifierKind:()=>ru,isModifierLike:()=>ku,isModuleAugmentationExternal:()=>xp,isModuleBlock:()=>sN,isModuleBody:()=>c_,isModuleDeclaration:()=>aN,isModuleExportName:()=>DN,isModuleExportsAccessExpression:()=>sg,isModuleIdentifier:()=>ag,isModuleName:()=>$A,isModuleOrEnumDeclaration:()=>d_,isModuleReference:()=>S_,isModuleSpecifierLike:()=>cY,isModuleWithStringLiteralName:()=>mp,isNameOfFunctionDeclaration:()=>gX,isNameOfModuleDeclaration:()=>mX,isNamedDeclaration:()=>Nc,isNamedEvaluation:()=>ny,isNamedEvaluationSource:()=>ty,isNamedExportBindings:()=>Il,isNamedExports:()=>TN,isNamedImportBindings:()=>__,isNamedImports:()=>bN,isNamedImportsOrExports:()=>Ix,isNamedTupleMember:()=>LE,isNamespaceBody:()=>l_,isNamespaceExport:()=>vN,isNamespaceExportDeclaration:()=>lN,isNamespaceImport:()=>yN,isNamespaceReexportDeclaration:()=>Nm,isNewExpression:()=>oF,isNewExpressionTarget:()=>XK,isNewScopeNode:()=>jC,isNoSubstitutionTemplateLiteral:()=>Rw,isNodeArray:()=>Ml,isNodeArrayMultiLine:()=>Zb,isNodeDescendantOf:()=>mh,isNodeKind:()=>Ll,isNodeLikeSystem:()=>mn,isNodeModulesDirectory:()=>ma,isNodeWithPossibleHoistedDeclaration:()=>ah,isNonContextualKeyword:()=>Rh,isNonGlobalAmbientModule:()=>gp,isNonNullAccess:()=>iC,isNonNullChain:()=>Pl,isNonNullExpression:()=>wF,isNonStaticMethodOrAccessorWithPrivateName:()=>cz,isNotEmittedStatement:()=>EN,isNullishCoalesce:()=>El,isNumber:()=>ot,isNumericLiteral:()=>Pw,isNumericLiteralName:()=>HT,isObjectBindingElementWithoutPropertyName:()=>lY,isObjectBindingOrAssignmentElement:()=>Ru,isObjectBindingOrAssignmentPattern:()=>Lu,isObjectBindingPattern:()=>QE,isObjectLiteralElement:()=>B_,isObjectLiteralElementLike:()=>Du,isObjectLiteralExpression:()=>tF,isObjectLiteralMethod:()=>Wf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Hf,isObjectTypeDeclaration:()=>Fx,isOmittedExpression:()=>kF,isOptionalChain:()=>Tl,isOptionalChainRoot:()=>Cl,isOptionalDeclaration:()=>rC,isOptionalJSDocPropertyLikeTag:()=>ZT,isOptionalTypeNode:()=>RE,isOuterExpression:()=>gA,isOutermostOptionalChain:()=>wl,isOverrideModifier:()=>aE,isPackageJsonInfo:()=>hj,isPackedArrayLiteral:()=>MT,isParameter:()=>fE,isParameterPropertyDeclaration:()=>ac,isParameterPropertyModifier:()=>iu,isParenthesizedExpression:()=>cF,isParenthesizedTypeNode:()=>$E,isParseTreeNode:()=>vc,isPartOfParameterDeclaration:()=>iy,isPartOfTypeNode:()=>Af,isPartOfTypeOnlyImportOrExportDeclaration:()=>Kl,isPartOfTypeQuery:()=>Fm,isPartiallyEmittedExpression:()=>NF,isPatternMatch:()=>rn,isPinnedComment:()=>Vd,isPlainJsFile:()=>wd,isPlusToken:()=>$w,isPossiblyTypeArgumentPosition:()=>dQ,isPostfixUnaryExpression:()=>gF,isPrefixUnaryExpression:()=>mF,isPrimitiveLiteralValue:()=>wC,isPrivateIdentifier:()=>Qw,isPrivateIdentifierClassElementDeclaration:()=>tu,isPrivateIdentifierPropertyAccessExpression:()=>nu,isPrivateIdentifierSymbol:()=>Zh,isProgramUptoDate:()=>FU,isPrologueDirective:()=>vf,isPropertyAccessChain:()=>xl,isPropertyAccessEntityNameExpression:()=>hb,isPropertyAccessExpression:()=>nF,isPropertyAccessOrQualifiedName:()=>Ju,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Bu,isPropertyAssignment:()=>HN,isPropertyDeclaration:()=>hE,isPropertyName:()=>cu,isPropertyNameLiteral:()=>Gh,isPropertySignature:()=>gE,isPrototypeAccess:()=>vb,isPrototypePropertyAssignment:()=>bg,isPunctuation:()=>Ih,isPushOrUnshiftIdentifier:()=>ry,isQualifiedName:()=>_E,isQuestionDotToken:()=>Gw,isQuestionOrExclamationToken:()=>MA,isQuestionOrPlusOrMinusToken:()=>zA,isQuestionToken:()=>Ww,isReadonlyKeyword:()=>rE,isReadonlyKeywordOrPlusOrMinusToken:()=>JA,isRecognizedTripleSlashComment:()=>Ud,isReferenceFileLocation:()=>wU,isReferencedFile:()=>DU,isRegularExpressionLiteral:()=>Lw,isRequireCall:()=>$m,isRequireVariableStatement:()=>Hm,isRestParameter:()=>W_,isRestTypeNode:()=>jE,isReturnStatement:()=>WF,isReturnStatementWithFixablePromiseHandler:()=>J1,isRightSideOfAccessExpression:()=>xb,isRightSideOfInstanceofExpression:()=>Tb,isRightSideOfPropertyAccess:()=>pX,isRightSideOfQualifiedName:()=>dX,isRightSideOfQualifiedNameOrPropertyAccess:()=>bb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Sb,isRootedDiskPath:()=>To,isSameEntityName:()=>rg,isSatisfiesExpression:()=>DF,isSemicolonClassElement:()=>IF,isSetAccessor:()=>I_,isSetAccessorDeclaration:()=>kE,isShiftOperatorOrHigher:()=>qA,isShorthandAmbientModuleSymbol:()=>hp,isShorthandPropertyAssignment:()=>GN,isSideEffectImport:()=>NC,isSignedNumericLiteral:()=>Uh,isSimpleCopiableExpression:()=>QJ,isSimpleInlineableExpression:()=>YJ,isSimpleParameterList:()=>yz,isSingleOrDoubleQuote:()=>Gm,isSolutionConfig:()=>uR,isSourceElement:()=>xC,isSourceFile:()=>QN,isSourceFileFromLibrary:()=>_0,isSourceFileJS:()=>Rm,isSourceFileNotJson:()=>Bm,isSourceMapping:()=>NJ,isSpecialPropertyDeclaration:()=>xg,isSpreadAssignment:()=>KN,isSpreadElement:()=>xF,isStatement:()=>b_,isStatementButNotDeclaration:()=>v_,isStatementOrBlock:()=>x_,isStatementWithLocals:()=>Ed,isStatic:()=>Rv,isStaticModifier:()=>iE,isString:()=>it,isStringANonContextualKeyword:()=>jh,isStringAndEmptyAnonymousObjectIntersection:()=>kQ,isStringDoubleQuoted:()=>Km,isStringLiteral:()=>Iw,isStringLiteralLike:()=>q_,isStringLiteralOrJsxExpression:()=>D_,isStringLiteralOrTemplate:()=>SZ,isStringOrNumericLiteralLike:()=>qh,isStringOrRegularExpressionOrTemplateLiteral:()=>xQ,isStringTextContainingNode:()=>Xl,isSuperCall:()=>mf,isSuperKeyword:()=>cE,isSuperProperty:()=>pm,isSupportedSourceFileName:()=>Wk,isSwitchStatement:()=>GF,isSyntaxList:()=>zP,isSyntheticExpression:()=>FF,isSyntheticReference:()=>FN,isTagName:()=>_X,isTaggedTemplateExpression:()=>aF,isTaggedTemplateTag:()=>YK,isTemplateExpression:()=>vF,isTemplateHead:()=>jw,isTemplateLiteral:()=>Uu,isTemplateLiteralKind:()=>$l,isTemplateLiteralToken:()=>ql,isTemplateLiteralTypeNode:()=>XE,isTemplateLiteralTypeSpan:()=>KE,isTemplateMiddle:()=>Mw,isTemplateMiddleOrTemplateTail:()=>Ul,isTemplateSpan:()=>AF,isTemplateTail:()=>Bw,isTextWhiteSpaceLike:()=>bY,isThis:()=>xX,isThisContainerOrFunctionBlock:()=>cm,isThisIdentifier:()=>gv,isThisInTypeQuery:()=>yv,isThisInitializedDeclaration:()=>mm,isThisInitializedObjectBindingExpression:()=>gm,isThisProperty:()=>fm,isThisTypeNode:()=>qE,isThisTypeParameter:()=>KT,isThisTypePredicate:()=>Kf,isThrowStatement:()=>XF,isToken:()=>jl,isTokenKind:()=>Rl,isTraceEnabled:()=>HR,isTransientSymbol:()=>nd,isTrivia:()=>Bh,isTryStatement:()=>QF,isTupleTypeNode:()=>OE,isTypeAlias:()=>Rg,isTypeAliasDeclaration:()=>iN,isTypeAssertionExpression:()=>sF,isTypeDeclaration:()=>QT,isTypeElement:()=>Tu,isTypeKeyword:()=>JQ,isTypeKeywordTokenOrIdentifier:()=>$Q,isTypeLiteralNode:()=>AE,isTypeNode:()=>wu,isTypeNodeKind:()=>Nx,isTypeOfExpression:()=>dF,isTypeOnlyExportDeclaration:()=>Hl,isTypeOnlyImportDeclaration:()=>Wl,isTypeOnlyImportOrExportDeclaration:()=>Gl,isTypeOperatorNode:()=>UE,isTypeParameterDeclaration:()=>pE,isTypePredicateNode:()=>wE,isTypeQueryNode:()=>PE,isTypeReferenceNode:()=>EE,isTypeReferenceType:()=>J_,isTypeUsableAsPropertyName:()=>fC,isUMDExportSymbol:()=>Cx,isUnaryExpression:()=>Hu,isUnaryExpressionWithWrite:()=>Ku,isUnicodeIdentifierStart:()=>Ia,isUnionTypeNode:()=>ME,isUrl:()=>ko,isValidBigIntString:()=>DT,isValidESSymbolDeclaration:()=>$f,isValidTypeOnlyAliasUseSite:()=>wT,isValueSignatureDeclaration:()=>sh,isVarAwaitUsing:()=>uf,isVarConst:()=>df,isVarConstLike:()=>pf,isVarUsing:()=>_f,isVariableDeclaration:()=>ZF,isVariableDeclarationInVariableStatement:()=>Bf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Um,isVariableDeclarationInitializedToRequire:()=>qm,isVariableDeclarationList:()=>eN,isVariableLike:()=>Mf,isVariableStatement:()=>LF,isVoidExpression:()=>pF,isWatchSet:()=>lx,isWhileStatement:()=>JF,isWhiteSpaceLike:()=>Ka,isWhiteSpaceSingleLine:()=>Xa,isWithStatement:()=>HF,isWriteAccess:()=>gx,isWriteOnlyAccess:()=>mx,isYieldExpression:()=>bF,jsxModeNeedsExplicitImport:()=>u0,keywordPart:()=>EY,last:()=>Te,lastOrUndefined:()=>ke,length:()=>p,libMap:()=>xO,libs:()=>bO,lineBreakPart:()=>$Y,loadModuleFromGlobalCache:()=>RM,loadWithModeAwareCache:()=>yU,makeIdentifierFromModuleName:()=>_p,makeImport:()=>eY,makeStringLiteral:()=>tY,mangleScopedPackageName:()=>FM,map:()=>O,mapAllOrFail:()=>$,mapDefined:()=>q,mapDefinedIterator:()=>U,mapEntries:()=>K,mapIterator:()=>L,mapOneOrMany:()=>QZ,mapToDisplayParts:()=>qY,matchFiles:()=>Tk,matchPatternOrExact:()=>_T,matchedText:()=>Yt,matchesExclude:()=>OR,matchesExcludeWorker:()=>LR,maxBy:()=>Dt,maybeBind:()=>Xe,maybeSetLocalizedDiagnosticMessages:()=>Qx,memoize:()=>ht,memoizeOne:()=>yt,min:()=>wt,minAndMax:()=>fT,missingFileModifiedTime:()=>Hi,modifierToFlag:()=>tb,modifiersToFlags:()=>eb,moduleExportNameIsDefault:()=>ep,moduleExportNameTextEscaped:()=>Zd,moduleExportNameTextUnescaped:()=>Yd,moduleOptionDeclaration:()=>CO,moduleResolutionIsEqualTo:()=>md,moduleResolutionNameAndModeGetter:()=>pU,moduleResolutionOptionDeclarations:()=>PO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>WS,moduleResolutionUsesNodeModules:()=>ZQ,moduleSpecifierToValidIdentifier:()=>n0,moduleSpecifiers:()=>eB,moduleSymbolToValidIdentifier:()=>t0,moveEmitHelpers:()=>RD,moveRangeEnd:()=>zb,moveRangePastDecorators:()=>qb,moveRangePastModifiers:()=>Ub,moveRangePos:()=>$b,moveSyntheticComments:()=>FD,mutateMap:()=>xx,mutateMapSkippingNewValues:()=>bx,needsParentheses:()=>yZ,needsScopeMarker:()=>n_,newCaseClauseTracker:()=>d0,newPrivateEnvironment:()=>pz,noEmitNotification:()=>M$,noEmitSubstitution:()=>j$,noTransformers:()=>N$,noTruncationMaximumTruncationLength:()=>Y_,nodeCanBeDecorated:()=>vm,nodeCoreModules:()=>OC,nodeHasName:()=>Ec,nodeIsDecorated:()=>bm,nodeIsMissing:()=>Id,nodeIsPresent:()=>Od,nodeIsSynthesized:()=>sy,nodeModuleNameResolver:()=>Jj,nodeModulesPathPart:()=>Wj,nodeNextJsonConfigResolver:()=>zj,nodeOrChildIsDecorated:()=>xm,nodeOverlapsWithStartEnd:()=>FX,nodePosToString:()=>Nd,nodeSeenTracker:()=>qQ,nodeStartsNewLexicalEnvironment:()=>ay,noop:()=>ct,noopFileWatcher:()=>CW,normalizePath:()=>Go,normalizeSlashes:()=>$o,normalizeSpans:()=>Qs,not:()=>sn,notImplemented:()=>gt,notImplementedResolver:()=>dq,nullNodeConverters:()=>qC,nullParenthesizerRules:()=>JC,nullTransformationContext:()=>J$,objectAllocator:()=>Vx,operatorPart:()=>NY,optionDeclarations:()=>wO,optionMapToObject:()=>jL,optionsAffectingProgramStructure:()=>IO,optionsForBuild:()=>BO,optionsForWatch:()=>SO,optionsHaveChanges:()=>sd,or:()=>an,orderedRemoveItem:()=>Wt,orderedRemoveItemAt:()=>Ht,packageIdToPackageName:()=>bd,packageIdToString:()=>xd,parameterIsThisKeyword:()=>mv,parameterNamePart:()=>PY,parseBaseNodeFactory:()=>hI,parseBigInt:()=>TT,parseBuildCommand:()=>sL,parseCommandLine:()=>nL,parseCommandLineWorker:()=>YO,parseConfigFileTextToJson:()=>_L,parseConfigFileWithSystem:()=>uW,parseConfigHostFromCompilerHostLike:()=>$U,parseCustomTypeOption:()=>GO,parseIsolatedEntityName:()=>GI,parseIsolatedJSDocComment:()=>YI,parseJSDocTypeExpressionForTests:()=>ZI,parseJsonConfigFileContent:()=>GL,parseJsonSourceFileConfigFileContent:()=>KL,parseJsonText:()=>KI,parseListTypeOption:()=>KO,parseNodeFactory:()=>yI,parseNodeModuleFromPath:()=>Gj,parsePackageName:()=>pM,parsePseudoBigInt:()=>ST,parseValidBigInt:()=>CT,pasteEdits:()=>Nfe,patchWriteFileEnsuringDirectory:()=>mo,pathContainsNodeModules:()=>Hj,pathIsAbsolute:()=>Do,pathIsBareSpecifier:()=>Eo,pathIsRelative:()=>wo,patternText:()=>Qt,performIncrementalCompilation:()=>MW,performance:()=>Kn,positionBelongsToNode:()=>PX,positionIsASICandidate:()=>AZ,positionIsSynthesized:()=>rT,positionsAreOnSameLine:()=>ex,preProcessFile:()=>N1,probablyUsesSemicolons:()=>IZ,processCommentPragmas:()=>aO,processPragmasIntoFields:()=>sO,processTaggedTemplateExpression:()=>$z,programContainsEsModules:()=>KQ,programContainsModules:()=>GQ,projectReferenceIsEqualTo:()=>fd,propertyNamePart:()=>AY,pseudoBigIntToString:()=>kT,punctuationPart:()=>FY,pushIfUnique:()=>pe,quote:()=>bZ,quotePreferenceFromString:()=>rY,rangeContainsPosition:()=>CX,rangeContainsPositionExclusive:()=>DX,rangeContainsRange:()=>ix,rangeContainsRangeExclusive:()=>TX,rangeContainsStartEnd:()=>wX,rangeEndIsOnSameLineAsRangeStart:()=>Xb,rangeEndPositionsAreOnSameLine:()=>Gb,rangeEquals:()=>he,rangeIsOnSingleLine:()=>Wb,rangeOfNode:()=>mT,rangeOfTypeParameters:()=>gT,rangeOverlapsWithStartEnd:()=>EX,rangeStartIsOnSameLineAsRangeEnd:()=>Kb,rangeStartPositionsAreOnSameLine:()=>Hb,readBuilderProgram:()=>BW,readConfigFile:()=>uL,readJson:()=>Ob,readJsonConfigFile:()=>dL,readJsonOrUndefined:()=>Ib,reduceEachLeadingCommentRange:()=>fs,reduceEachTrailingCommentRange:()=>ms,reduceLeft:()=>Pe,reduceLeftIterator:()=>y,reducePathComponents:()=>qo,refactor:()=>u6,regExpEscape:()=>ck,regularExpressionFlagToCharacterCode:()=>Ba,relativeComplement:()=>ce,removeAllComments:()=>uD,removeEmitHelper:()=>OD,removeExtension:()=>Yk,removeFileExtension:()=>Xk,removeIgnoredPath:()=>zV,removeMinAndVersionNumbers:()=>Vt,removePrefix:()=>tn,removeSuffix:()=>qt,removeTrailingDirectorySeparator:()=>Qo,repeatString:()=>VQ,replaceElement:()=>Ee,replaceFirstStar:()=>vC,resolutionExtensionIsTSOrJson:()=>oT,resolveConfigFileProjectName:()=>VW,resolveJSModule:()=>Rj,resolveLibrary:()=>Aj,resolveModuleName:()=>Oj,resolveModuleNameFromCache:()=>Ij,resolvePackageNameToPackageJson:()=>mj,resolvePath:()=>Vo,resolveProjectReferencePath:()=>qU,resolveTripleslashReference:()=>Lq,resolveTypeReferenceDirective:()=>dj,resolvingEmptyArray:()=>K_,returnFalse:()=>lt,returnNoopFileWatcher:()=>DW,returnTrue:()=>ut,returnUndefined:()=>_t,returnsPromise:()=>B1,rewriteModuleSpecifier:()=>vz,sameFlatMap:()=>z,sameMap:()=>R,sameMapping:()=>FJ,scanTokenAtPosition:()=>nf,scanner:()=>UK,semanticDiagnosticsOptionDeclarations:()=>EO,serializeCompilerOptions:()=>zL,server:()=>zhe,servicesVersion:()=>A8,setCommentRange:()=>SD,setConfigFileInOptions:()=>XL,setConstantValue:()=>PD,setEmitFlags:()=>_D,setGetSourceFileAsHashVersioned:()=>AW,setIdentifierAutoGenerate:()=>UD,setIdentifierGeneratedImportReference:()=>WD,setIdentifierTypeArguments:()=>$D,setInternalEmitFlags:()=>pD,setLocalizedDiagnosticMessages:()=>Xx,setNodeChildren:()=>VP,setNodeFlags:()=>OT,setObjectAllocator:()=>Gx,setOriginalNode:()=>sD,setParent:()=>LT,setParentRecursive:()=>RT,setPrivateIdentifier:()=>mz,setSnippetElement:()=>MD,setSourceMapRange:()=>gD,setStackTraceLimit:()=>Ui,setStartsOnNewLine:()=>bD,setSyntheticLeadingComments:()=>TD,setSyntheticTrailingComments:()=>wD,setSys:()=>ho,setSysLog:()=>co,setTextRange:()=>fI,setTextRangeEnd:()=>PT,setTextRangePos:()=>NT,setTextRangePosEnd:()=>AT,setTextRangePosWidth:()=>IT,setTokenSourceMapRange:()=>yD,setTypeNode:()=>JD,setUILocale:()=>Rt,setValueDeclaration:()=>Sg,shouldAllowImportingTsExtension:()=>LM,shouldPreserveConstEnums:()=>jS,shouldRewriteModuleSpecifier:()=>Eg,shouldUseUriStyleNodeCoreModules:()=>a0,showModuleSpecifier:()=>Dx,signatureHasRestParameter:()=>iJ,signatureToDisplayParts:()=>WY,single:()=>De,singleElementArray:()=>ln,singleIterator:()=>H,singleOrMany:()=>we,singleOrUndefined:()=>Ce,skipAlias:()=>px,skipConstraint:()=>WQ,skipOuterExpressions:()=>hA,skipParentheses:()=>ph,skipPartiallyEmittedExpressions:()=>Nl,skipTrivia:()=>is,skipTypeChecking:()=>hT,skipTypeCheckingIgnoringNoCheck:()=>yT,skipTypeParentheses:()=>dh,skipWhile:()=>fn,sliceAfter:()=>dT,some:()=>X,sortAndDeduplicate:()=>oe,sortAndDeduplicateDiagnostics:()=>Is,sourceFileAffectingCompilerOptions:()=>AO,sourceFileMayBeEmitted:()=>rv,sourceMapCommentRegExp:()=>SJ,sourceMapCommentRegExpDontCareLineStart:()=>xJ,spacePart:()=>wY,spanMap:()=>G,startEndContainsRange:()=>ox,startEndOverlapsWithStartEnd:()=>NX,startOnNewLine:()=>vA,startTracing:()=>hr,startsWith:()=>en,startsWithDirectory:()=>ca,startsWithUnderscore:()=>i0,startsWithUseStrict:()=>_A,stringContainsAt:()=>r0,stringToToken:()=>ja,stripQuotes:()=>Ry,supportedDeclarationExtensions:()=>Rk,supportedJSExtensionsFlat:()=>Ik,supportedLocaleDirectories:()=>mc,supportedTSExtensionsFlat:()=>Nk,supportedTSImplementationExtensions:()=>jk,suppressLeadingAndTrailingTrivia:()=>oZ,suppressLeadingTrivia:()=>aZ,suppressTrailingTrivia:()=>sZ,symbolEscapedNameNoDefault:()=>sY,symbolName:()=>Cc,symbolNameNoDefault:()=>aY,symbolToDisplayParts:()=>VY,sys:()=>go,sysLog:()=>so,tagNamesAreEquivalent:()=>fO,takeWhile:()=>pn,targetOptionDeclaration:()=>TO,targetToLibMap:()=>Os,testFormatSettings:()=>IK,textChangeRangeIsUnchanged:()=>tc,textChangeRangeNewSpan:()=>ec,textChanges:()=>Z_e,textOrKeywordPart:()=>IY,textPart:()=>OY,textRangeContainsPositionInclusive:()=>Bs,textRangeContainsTextSpan:()=>$s,textRangeIntersectsWithTextSpan:()=>Ks,textSpanContainsPosition:()=>Ms,textSpanContainsTextRange:()=>zs,textSpanContainsTextSpan:()=>Js,textSpanEnd:()=>Rs,textSpanIntersection:()=>Xs,textSpanIntersectsWith:()=>Ws,textSpanIntersectsWithPosition:()=>Gs,textSpanIntersectsWithTextSpan:()=>Vs,textSpanIsEmpty:()=>js,textSpanOverlap:()=>Us,textSpanOverlapsWith:()=>qs,textSpansEqual:()=>gY,textToKeywordObj:()=>ba,timestamp:()=>Gn,toArray:()=>rt,toBuilderFileEmit:()=>AV,toBuilderStateFileInfoForMultiEmit:()=>PV,toEditorSettings:()=>K8,toFileNameLowerCase:()=>mt,toPath:()=>Xo,toProgramEmitPending:()=>IV,toSorted:()=>me,tokenIsIdentifierOrKeyword:()=>ya,tokenIsIdentifierOrKeywordOrGreaterThan:()=>va,tokenToString:()=>Ra,trace:()=>WR,tracing:()=>Yn,tracingEnabled:()=>Zn,transferSourceFileChildren:()=>HP,transform:()=>f7,transformClassFields:()=>Wz,transformDeclarations:()=>w$,transformECMAScriptModule:()=>y$,transformES2015:()=>p$,transformES2016:()=>_$,transformES2017:()=>Qz,transformES2018:()=>Zz,transformES2019:()=>e$,transformES2020:()=>t$,transformES2021:()=>n$,transformESDecorators:()=>Xz,transformESNext:()=>r$,transformGenerators:()=>f$,transformImpliedNodeFormatDependentModule:()=>v$,transformJsx:()=>l$,transformLegacyDecorators:()=>Kz,transformModule:()=>m$,transformNamedEvaluation:()=>Jz,transformNodes:()=>B$,transformSystemModule:()=>h$,transformTypeScript:()=>Vz,transpile:()=>t2,transpileDeclaration:()=>K1,transpileModule:()=>G1,transpileOptionValueCompilerOptions:()=>OO,tryAddToSet:()=>W,tryAndIgnoreErrors:()=>MZ,tryCast:()=>at,tryDirectoryExists:()=>jZ,tryExtractTSExtension:()=>Eb,tryFileExists:()=>RZ,tryGetClassExtendingExpressionWithTypeArguments:()=>lb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>ub,tryGetDirectories:()=>OZ,tryGetExtensionFromPath:()=>cT,tryGetImportFromModuleSpecifier:()=>wg,tryGetJSDocSatisfiesTypeNode:()=>sC,tryGetModuleNameFromFile:()=>CA,tryGetModuleSpecifierFromDeclaration:()=>Cg,tryGetNativePerformanceHooks:()=>Vn,tryGetPropertyAccessOrIdentifierToString:()=>yb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>NA,tryGetSourceMappingURL:()=>CJ,tryGetTextOfPropertyName:()=>zp,tryParseJson:()=>Lb,tryParsePattern:()=>eT,tryParsePatterns:()=>nT,tryParseRawSourceMap:()=>wJ,tryReadDirectory:()=>LZ,tryReadFile:()=>pL,tryRemoveDirectoryPrefix:()=>ak,tryRemoveExtension:()=>Qk,tryRemovePrefix:()=>nn,tryRemoveSuffix:()=>Ut,tscBuildOption:()=>MO,typeAcquisitionDeclarations:()=>zO,typeAliasNamePart:()=>LY,typeDirectiveIsEqualTo:()=>Sd,typeKeywords:()=>BQ,typeParameterNamePart:()=>RY,typeToDisplayParts:()=>UY,unchangedPollThresholds:()=>Yi,unchangedTextChangeRange:()=>rc,unescapeLeadingUnderscores:()=>Sc,unmangleScopedPackageName:()=>PM,unorderedRemoveItem:()=>Kt,unprefixedNodeCoreModules:()=>AC,unreachableCodeIsError:()=>US,unsetNodeChildren:()=>WP,unusedLabelIsError:()=>VS,unwrapInnermostStatementOfLabel:()=>Uf,unwrapParenthesizedExpression:()=>EC,updateErrorForNoInputFiles:()=>dR,updateLanguageServiceSourceFile:()=>r7,updateMissingFilePathsWatch:()=>Dq,updateResolutionField:()=>nj,updateSharedExtendedConfigFileWatcher:()=>kq,updateSourceFile:()=>QI,updateWatchingWildcardDirectories:()=>wq,usingSingleLineStringWriter:()=>dd,utf16EncodeAsString:()=>ws,validateLocaleAndSetLanguage:()=>gc,version:()=>c,versionMajorMinor:()=>i,visitArray:()=>lJ,visitCommaListElements:()=>gJ,visitEachChild:()=>hJ,visitFunctionBody:()=>fJ,visitIterationBody:()=>mJ,visitLexicalEnvironment:()=>_J,visitNode:()=>sJ,visitNodes:()=>cJ,visitParameterList:()=>dJ,walkUpBindingElementsAndPatterns:()=>lc,walkUpOuterExpressions:()=>yA,walkUpParenthesizedExpressions:()=>uh,walkUpParenthesizedTypes:()=>lh,walkUpParenthesizedTypesAndGetParentAndChild:()=>_h,whitespaceOrMapCommentRegExp:()=>kJ,writeCommentRange:()=>Fv,writeFile:()=>av,writeFileEnsuringDirectories:()=>cv,zipWith:()=>v}),e.exports=r;var i="5.7",c="5.7.2",l=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(l||{}),u=[],d=new Map;function p(e){return void 0!==e?e.length:0}function f(e,t){if(void 0!==e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function g(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function D(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function E(e,t,n=bt){if(void 0!==e)for(let r=0;r{const[i,o]=t(r,e);n.set(i,o)})),n}function X(e,t){if(void 0!==e){if(void 0===t)return e.length>0;for(let n=0;nn(e[t],e[r])||Tt(t,r)))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;ne[t]))}function ne(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?te(e,t,n):function(e,t){const n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&gn.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&gn.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function le(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function ue(e,t){return void 0===e?t:void 0===t?e:nt(e)?nt(t)?Y(e,t):le(e,t):nt(t)?le(t,e):[e,t]}function _e(e,t){return t<0?e.length+t:t}function de(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:_e(t,n),r=void 0===r?t.length:_e(t,r);for(let i=n;i=0;t--)yield e[t]}function he(e,t,n,r){for(;nnull==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=_e(e,t))>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function Pe(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var Ae=Object.prototype.hasOwnProperty;function Ie(e,t){return Ae.call(e,t)}function Oe(e,t){return Ae.call(e,t)?e[t]:void 0}function Le(e){const t=[];for(const n in e)Ae.call(e,n)&&t.push(n);return t}function Re(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)pe(t,e)}while(e=Object.getPrototypeOf(e));return t}function je(e){const t=[];for(const n in e)Ae.call(e,n)&&t.push(e[n]);return t}function Me(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function tt(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())nt(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);return nt(o)?E(o,r,t):t(o,r)},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(nt(e))E(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(nt(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function nt(e){return Array.isArray(e)}function rt(e){return nt(e)?e:[e]}function it(e){return"string"==typeof e}function ot(e){return"number"==typeof e}function at(e,t){return void 0!==e&&t(e)?e:void 0}function st(e,t){return void 0!==e&&t(e)?e:gn.fail(`Invalid cast. The supplied value ${e} did not pass the test '${gn.getFunctionName(t)}'.`)}function ct(e){}function lt(){return!1}function ut(){return!0}function _t(){}function dt(e){return e}function pt(e){return e.toLowerCase()}var ft=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function mt(e){return ft.test(e)?e.replace(ft,pt):e}function gt(){throw new Error("Not implemented")}function ht(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function yt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}var vt=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(vt||{});function bt(e,t){return e===t}function xt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function St(e,t){return bt(e,t)}function kt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n))}function Et(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Ft(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Nt(e,t){return kt(e,t)}function Pt(e){return e?Et:Nt}var At,It,Ot=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Lt(){return It}function Rt(e){It!==e&&(It=e,At=void 0)}function jt(e,t){return At??(At=Ot(It)),At(e,t)}function Mt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Bt(e,t){return Tt(e?1:0,t?1:0)}function Jt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=zt(e,t,o-.1);if(void 0===n)continue;gn.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let u=a;for(let e=1;en)return;const _=r;r=i,i=_}const a=r[t.length];return a>n?void 0:a}function $t(e,t,n){const r=e.length-t.length;return r>=0&&(n?xt(e.slice(r),t):e.indexOf(t,r)===r)}function qt(e,t){return $t(e,t)?e.slice(0,e.length-t.length):e}function Ut(e,t){return $t(e,t)?e.slice(0,e.length-t.length):void 0}function Vt(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function Wt(e,t){for(let n=0;ne===t))}function Xt(e){return e?dt:mt}function Qt({prefix:e,suffix:t}){return`${e}*${t}`}function Yt(e,t){return gn.assert(rn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function Zt(e,t,n){let r,i=-1;for(let o=0;oi&&rn(s,n)&&(i=s.prefix.length,r=a)}return r}function en(e,t,n){return n?xt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function tn(e,t){return en(e,t)?e.substr(t.length):e}function nn(e,t,n=dt){return en(n(e),n(t))?e.substring(t.length):void 0}function rn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&en(n,e)&&$t(n,t)}function on(e,t){return n=>e(n)&&t(n)}function an(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function sn(e){return(...t)=>!e(...t)}function cn(e){}function ln(e){return void 0===e?void 0:[e]}function un(e,t,n,r,i,o){o??(o=ct);let a=0,s=0;const c=e.length,l=t.length;let u=!1;for(;a(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(hn||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=ct,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function u(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||u))}function _(e,t,n){null==e&&l(t,n||_)}function d(e,t,n){for(const r of e)_(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&Ie(e,"kind")&&Ie(e,"pos")?"SyntaxKind: "+h(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if(Ie(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=me(n,((e,t)=>Tt(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Le(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${h(t.kind)} was unexpected.`,r||e)},e.assert=u,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=_,e.checkDefined=function e(t,n,r){return _(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&u(void 0===n||k(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${f(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&u(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&u(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${h(t.kind)} should not have passed test '${f(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&u(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&u(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} was not a '${h(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&u(void 0===t,n||"Unexpected node.",(()=>`Node ${h(t.kind)} was unexpected'.`),r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${Sc(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${O(e.declarations,(e=>h(e.kind)))} }`},e.formatEnum=m;const g=new Map;function h(e){return m(e,vr,!1)}function y(e){return m(e,br,!0)}function b(e){return m(e,xr,!0)}function x(e){return m(e,Fi,!0)}function S(e){return m(e,Pi,!0)}function T(e){return m(e,Hr,!0)}function C(e){return m(e,Qr,!0)}function D(e){return m(e,oi,!0)}function w(e){return m(e,Yr,!0)}function E(e){return m(e,Er,!0)}e.formatSyntaxKind=h,e.formatSnippetKind=function(e){return m(e,Ni,!1)},e.formatScriptKind=function(e){return m(e,ki,!1)},e.formatNodeFlags=y,e.formatNodeCheckFlags=function(e){return m(e,Xr,!0)},e.formatModifierFlags=b,e.formatTransformFlags=x,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=C,e.formatSignatureFlags=D,e.formatObjectFlags=w,e.formatFlowFlags=E,e.formatRelationComparisonResult=function(e){return m(e,kr,!0)},e.formatCheckMode=function(e){return m(e,VB,!0)},e.formatSignatureCheckMode=function(e){return m(e,WB,!0)},e.formatTypeFacts=function(e){return m(e,qB,!0)};let F,N,P=!1;function A(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${E(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Er,!0)}},__debugToString:{value(){return R(this)}}})}function I(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return P&&("function"==typeof Object.setPrototypeOf?(F||(F=Object.create(Object.prototype),A(F)),Object.setPrototypeOf(e,F)):A(e)),e},e.attachNodeArrayDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(N||(N=Object.create(Array.prototype),I(N)),Object.setPrototypeOf(e,N)):I(e))},e.enableDebugInfo=function(){if(P)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Vx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${Cc(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(Vx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${Cc(this.symbol)}'`:""}${t?` (${w(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?w(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Vx.getSignatureConstructor().prototype,{__debugFlags:{get(){return D(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Vx.getNodeConstructor(),Vx.getIdentifierConstructor(),Vx.getTokenConstructor(),Vx.getSourceFileConstructor()];for(const e of n)Ie(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${Yl(this)?"GeneratedIdentifier":Xw(this)?`Identifier '${kc(this)}'`:Qw(this)?`PrivateIdentifier '${kc(this)}'`:Iw(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Pw(this)?`NumericLiteral ${this.text}`:Aw(this)?`BigIntLiteral ${this.text}n`:pE(this)?"TypeParameterDeclaration":fE(this)?"ParameterDeclaration":xE(this)?"ConstructorDeclaration":SE(this)?"GetAccessorDeclaration":kE(this)?"SetAccessorDeclaration":TE(this)?"CallSignatureDeclaration":CE(this)?"ConstructSignatureDeclaration":DE(this)?"IndexSignatureDeclaration":wE(this)?"TypePredicateNode":EE(this)?"TypeReferenceNode":FE(this)?"FunctionTypeNode":NE(this)?"ConstructorTypeNode":PE(this)?"TypeQueryNode":AE(this)?"TypeLiteralNode":IE(this)?"ArrayTypeNode":OE(this)?"TupleTypeNode":RE(this)?"OptionalTypeNode":jE(this)?"RestTypeNode":ME(this)?"UnionTypeNode":BE(this)?"IntersectionTypeNode":JE(this)?"ConditionalTypeNode":zE(this)?"InferTypeNode":$E(this)?"ParenthesizedTypeNode":qE(this)?"ThisTypeNode":UE(this)?"TypeOperatorNode":VE(this)?"IndexedAccessTypeNode":WE(this)?"MappedTypeNode":HE(this)?"LiteralTypeNode":LE(this)?"NamedTupleMember":GE(this)?"ImportTypeNode":h(this.kind)}${this.flags?` (${y(this.flags)})`:""}`}},__debugKind:{get(){return h(this.kind)}},__debugNodeFlags:{get(){return y(this.flags)}},__debugModifierFlags:{get(){return b(Yv(this))}},__debugTransformFlags:{get(){return x(this.transformFlags)}},__debugIsParseTreeNode:{get(){return vc(this)}},__debugEmitFlags:{get(){return S(op(this))}},__debugGetText:{value(e){if(sy(this))return"";let n=t.get(this);if(void 0===n){const r=bc(this),i=r&&Cd(r);n=i?Xd(i,r,e):"",t.set(this,n)}return n}}});P=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class L{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return v(this.sources,this.targets||O(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return v(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function R(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=f(e,new Set);for(const e of c)e.text=y(e.flowNode,e.circular),g(e);const u=function e(t){let n=0;for(const r of d(t))n=Math.max(n,e(r));return n+1}(l),_=function(e){const t=b(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(u);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=d(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(l,0),function(){const e=_.length,t=Dt(c,0,(e=>e.lane))+1,n=b(Array(t),""),r=_.map((()=>Array(t))),i=_.map((()=>b(Array(t),0)));for(const e of c){r[e.level][e.lane]=e;const t=d(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=0,"Invalid argument: major"),gn.assert(t>=0,"Invalid argument: minor"),gn.assert(n>=0,"Invalid argument: patch");const o=r?nt(r)?r:r.split("."):u,a=i?nt(i)?i:i.split("."):u;gn.assert(k(o,(e=>bn.test(e))),"Invalid argument: prerelease"),gn.assert(k(a,(e=>Sn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=Dn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:Tt(this.major,e.major)||Tt(this.minor,e.minor)||Tt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function In(e){const t=[];for(let n of e.trim().split(En)){if(!n)continue;const e=[];n=n.trim();const r=Pn.exec(n);if(r){if(!Ln(r[1],r[2],e))return}else for(const t of n.split(Fn)){const n=An.exec(t.trim());if(!n||!Rn(n[1],n[2],e))return}t.push(e)}return t}function On(e){const t=Nn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new Cn(jn(n)?0:parseInt(n,10),jn(n)||jn(r)?0:parseInt(r,10),jn(n)||jn(r)||jn(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function Ln(e,t,n){const r=On(e);if(!r)return!1;const i=On(t);return!!i&&(jn(r.major)||n.push(Mn(">=",r.version)),jn(i.major)||n.push(jn(i.minor)?Mn("<",i.version.increment("major")):jn(i.patch)?Mn("<",i.version.increment("minor")):Mn("<=",i.version)),!0)}function Rn(e,t,n){const r=On(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(jn(o))"<"!==e&&">"!==e||n.push(Mn("<",Cn.zero));else switch(e){case"~":n.push(Mn(">=",i)),n.push(Mn("<",i.increment(jn(a)?"major":"minor")));break;case"^":n.push(Mn(">=",i)),n.push(Mn("<",i.increment(i.major>0||jn(a)?"major":i.minor>0||jn(s)?"minor":"patch")));break;case"<":case">=":n.push(jn(a)||jn(s)?Mn(e,i.with({prerelease:"0"})):Mn(e,i));break;case"<=":case">":n.push(jn(a)?Mn("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):jn(s)?Mn("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):Mn(e,i));break;case"=":case void 0:jn(a)||jn(s)?(n.push(Mn(">=",i.with({prerelease:"0"}))),n.push(Mn("<",i.increment(jn(a)?"major":"minor").with({prerelease:"0"})))):n.push(Mn("=",i));break;default:return!1}return!0}function jn(e){return"*"===e||"x"===e||"X"===e}function Mn(e,t){return{operator:e,operand:t}}function Bn(e,t){for(const n of t)if(!Jn(e,n.operator,n.operand))return!1;return!0}function Jn(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return gn.assertNever(t)}}function zn(e){return O(e,$n).join(" ")}function $n(e){return`${e.operator}${e.operand}`}var qn=function(){const e=function(){if(mn())try{const{performance:e}=require("perf_hooks");if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance:performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:n}=e,r={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof n.timeOrigin&&"function"==typeof n.now&&(r.performanceTime=n),r.performanceTime&&"function"==typeof n.mark&&"function"==typeof n.measure&&"function"==typeof n.clearMarks&&"function"==typeof n.clearMeasures&&(r.performance=n),r}(),Un=null==qn?void 0:qn.performanceTime;function Vn(){return qn}var Wn,Hn,Gn=Un?()=>Un.now():Date.now,Kn={};function Xn(e,t,n,r){return e?Qn(t,n,r):er}function Qn(e,t,n){let r=0;return{enter:function(){1==++r&&ar(t)},exit:function(){0==--r?(ar(n),sr(e,t,n)):r<0&&gn.fail("enter/exit count does not match.")}}}n(Kn,{clearMarks:()=>pr,clearMeasures:()=>dr,createTimer:()=>Qn,createTimerIf:()=>Xn,disable:()=>gr,enable:()=>mr,forEachMark:()=>_r,forEachMeasure:()=>ur,getCount:()=>cr,getDuration:()=>lr,isEnabled:()=>fr,mark:()=>ar,measure:()=>sr,nullTimer:()=>er});var Yn,Zn,er={enter:ct,exit:ct},tr=!1,nr=Gn(),rr=new Map,ir=new Map,or=new Map;function ar(e){if(tr){const t=ir.get(e)??0;ir.set(e,t+1),rr.set(e,Gn()),null==Hn||Hn.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function sr(e,t,n){if(tr){const r=(void 0!==n?rr.get(n):void 0)??Gn(),i=(void 0!==t?rr.get(t):void 0)??nr,o=or.get(e)||0;or.set(e,o+(r-i)),null==Hn||Hn.measure(e,t,n)}}function cr(e){return ir.get(e)||0}function lr(e){return or.get(e)||0}function ur(e){or.forEach(((t,n)=>e(n,t)))}function _r(e){rr.forEach(((t,n)=>e(n)))}function dr(e){void 0!==e?or.delete(e):or.clear(),null==Hn||Hn.clearMeasures(e)}function pr(e){void 0!==e?(ir.delete(e),rr.delete(e)):(ir.clear(),rr.clear()),null==Hn||Hn.clearMarks(e)}function fr(){return tr}function mr(e=go){var t;return tr||(tr=!0,Wn||(Wn=Vn()),(null==Wn?void 0:Wn.performance)&&(nr=Wn.performance.timeOrigin,(Wn.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(Hn=Wn.performance))),!0}function gr(){tr&&(rr.clear(),ir.clear(),or.clear(),Hn=void 0,tr=!1)}(e=>{let t,n,r=0,i=0;const o=[];let a;const s=[];var c;e.startTracing=function(c,l,u){if(gn.assert(!Yn,"Tracing already started"),void 0===t)try{t=require("fs")}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}n=c,o.length=0,void 0===a&&(a=Uo(l,"legend.json")),t.existsSync(l)||t.mkdirSync(l,{recursive:!0});const _="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",d=Uo(l,`trace${_}.json`),p=Uo(l,`types${_}.json`);s.push({configFilePath:u,tracePath:d,typesPath:p}),i=t.openSync(d,"w"),Yn=e;const f={cat:"__metadata",ph:"M",ts:1e3*Gn(),pid:1,tid:1};t.writeSync(i,"[\n"+[{name:"process_name",args:{name:"tsc"},...f},{name:"thread_name",args:{name:"Main"},...f},{name:"TracingStartedInBrowser",...f,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){gn.assert(Yn,"Tracing is not in progress"),gn.assert(!!o.length==("server"!==n)),t.writeSync(i,"\n]\n"),t.closeSync(i),Yn=void 0,o.length?function(e){var n,r,i,o,a,c,l,u,_,d,f,m,g,h,y,v,b,x,S;ar("beginDumpTypes");const k=s[s.length-1].typesPath,T=t.openSync(k,"w"),C=new Map;t.writeSync(T,"[");const D=e.length;for(let s=0;se.id)),referenceLocation:p(e.node)}}let A={};if(16777216&k.flags){const e=k;A={conditionalCheckType:null==(c=e.checkType)?void 0:c.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(u=e.resolvedTrueType)?void 0:u.id)??-1,conditionalFalseType:(null==(_=e.resolvedFalseType)?void 0:_.id)??-1}}let I={};if(33554432&k.flags){const e=k;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(f=e.constraint)?void 0:f.id}}let O={};if(1024&w){const e=k;O={reverseMappedSourceType:null==(m=e.source)?void 0:m.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,R={};if(256&w){const e=k;R={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const j=k.checker.getRecursionIdentity(k);j&&(L=C.get(j),L||(L=C.size,C.set(j,L)));const M={id:k.id,intrinsicName:k.intrinsicName,symbolName:(null==E?void 0:E.escapedName)&&Sc(E.escapedName),recursionId:L,isTuple:!!(8&w)||void 0,unionTypes:1048576&k.flags?null==(v=k.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&k.flags?k.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=k.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&k.flags?null==(x=k.type)?void 0:x.id:void 0,...N,...P,...A,...I,...O,...R,destructuringPattern:p(k.pattern),firstDeclaration:p(null==(S=null==E?void 0:E.declarations)?void 0:S[0]),flags:gn.formatTypeFlags(k.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(M)),s0),_(l.length-1,1e3*Gn(),e),l.length--},e.popAll=function(){const e=1e3*Gn();for(let t=l.length-1;t>=0;t--)_(t,e);l.length=0};const u=1e4;function _(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=l[e];s?(gn.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),d("E",r,i,o,void 0,t)):u-a%u<=t-a&&d("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function d(e,r,o,a,s,c=1e3*Gn()){"server"===n&&"checkTypes"===r||(ar("beginTracing"),t.writeSync(i,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${c},"name":"${o}"`),s&&t.writeSync(i,`,${s}`),a&&t.writeSync(i,`,"args":${JSON.stringify(a)}`),t.writeSync(i,"}"),ar("endTracing"),sr("Tracing","beginTracing","endTracing"))}function p(e){const t=Cd(e);return t?{path:t.path,start:n(Ga(t,e.pos)),end:n(Ga(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(Zn||(Zn={}));var hr=Zn.startTracing,yr=Zn.dumpLegend,vr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(br||{}),xr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(xr||{}),Sr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Sr||{}),kr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(kr||{}),Tr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(Tr||{}),Cr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Cr||{}),Dr=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(Dr||{}),wr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(wr||{}),Er=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Er||{}),Fr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Fr||{}),Nr=class{},Pr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(Pr||{}),Ar=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Ar||{}),Ir=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Ir||{}),Or=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Or||{}),Lr=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Lr||{}),Rr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Rr||{}),jr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(jr||{}),Mr=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Mr||{}),Br=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Br||{}),Jr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Jr||{}),zr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(zr||{}),$r=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))($r||{}),qr=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(qr||{}),Ur=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Ur||{}),Vr=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Vr||{}),Wr=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(Wr||{}),Hr=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Hr||{}),Gr=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Gr||{}),Kr=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Kr||{}),Xr=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Xr||{}),Qr=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(Qr||{}),Yr=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Yr||{}),Zr=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Zr||{}),ei=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(ei||{}),ti=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(ti||{}),ni=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(ni||{}),ri=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(ri||{}),ii=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(ii||{}),oi=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(oi||{}),ai=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ai||{}),si=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(si||{}),ci=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(ci||{}),li=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(li||{}),ui=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(ui||{}),_i=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(_i||{}),di=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(di||{});function pi(e,t=!0){const n=di[e.category];return t?n.toLowerCase():n}var fi=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(fi||{}),mi=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(mi||{}),gi=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(gi||{}),hi=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(hi||{}),yi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(yi||{}),vi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(vi||{}),bi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(bi||{}),xi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(xi||{}),Si=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Si||{}),ki=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(ki||{}),Ti=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Ti||{}),Ci=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Ci||{}),Di=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Di||{}),wi=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(wi||{}),Ei=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Ei||{}),Fi=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Fi||{}),Ni=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ni||{}),Pi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Pi||{}),Ai=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ai||{}),Ii={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Oi=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Oi||{}),Li=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Li||{}),Ri=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Assertions=6]="Assertions",e[e.All=31]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Ri||{}),ji=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(ji||{}),Mi=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Mi||{}),Bi=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Bi||{}),zi={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},$i=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))($i||{});function qi(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Vi||{}),Wi=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Wi||{}),Hi=new Date(0);function Gi(e,t){return e.getModifiedTime(t)||Hi}function Ki(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Xi={Low:32,Medium:64,High:256},Qi=Ki(Xi),Yi=Ki(Xi);function Zi(e,t,n,r,i){let o=n;for(let a=t.length;r&&a;++n===t.length&&(o{o.isClosed=!0,Kt(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,Qi[t.pollingInterval]),t.length?p(t.pollingInterval):(gn.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return Zi(e,t,i,o,(function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==Yi[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,_(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,_(e,250===r?500:2e3))}))}function u(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function _(e,t){u(t).push(e),d(t)}function d(e){u(e).pollScheduled||p(e)}function p(t){u(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",u(t))}}function to(e,t,n,r){const i=Qe(),o=r?new Map:void 0,a=new Map,s=Xt(t);return function(t,r,c,l){const u=s(t);1===i.add(u,r).length&&o&&o.set(u,n(t)||Hi);const _=Ro(u)||".",d=a.get(_)||function(t,r,c){const l=e(t,1,((e,r)=>{if(!it(r))return;const a=Ho(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||Hi,t.getTime()===i.getTime()))return;t||(t=n(a)||Hi),o.set(c,t),i===Hi?r=0:t===Hi&&(r=2)}for(const e of l)e(a,r,t)}}),!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Ro(t)||".",_,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(_)):d.referenceCount--,i.remove(u,r)}}}}function no(e,t,n,r,i){const o=Xt(t)(n),a=e.get(o);return a?a.callbacks.push(r):e.set(o,{watcher:i(((t,n,r)=>{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&Wt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),Iq(t))}}}function ro(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,io(n,r),t),!0)}function io(e,t){return 0===e?0:0===t?2:1}var oo=["/node_modules/.","/.git","/.#"],ao=ct;function so(e){return ao(e)}function co(e){ao=e}function lo({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:s}){const c=new Map,l=Qe(),_=new Map;let d;const p=Pt(!t),f=Xt(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){const p=f(t);let m=c.get(p);m?m.refCount++:(m={watcher:e(t,(e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=c.get(p))?void 0:r.targetWatcher)||g(t,p,e),b(t,p,n)):function(e,t,n,r){const o=c.get(t);o&&i(e,1)?function(e,t,n,r){const i=_.get(t);i?i.fileNames.push(n):_.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(s(d),d=void 0),d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(e,t,n),v(o),y(o))}(t,p,e,n))}),!1,n),refCount:1,childWatches:u,targetWatcher:void 0,links:void 0},c.set(p,m),b(t,p,n)),o&&(m.links??(m.links=new Set)).add(o);const S=r&&{dirName:t,callback:r};return S&&l.add(p,S),{dirName:t,close:()=>{var e;const t=gn.checkDefined(c.get(p));S&&l.remove(p,S),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(c.delete(p),t.links=void 0,Iq(t),v(t),t.childWatches.forEach(ux))}}}function g(e,t,n,r){var i,o;let a,s;it(n)?a=n:s=n,l.forEach(((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||en(t,n)&&t[n.length]===yo))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach((({callback:e})=>e(a)))})),null==(o=null==(i=c.get(t))?void 0:i.links)||o.forEach((t=>{const n=n=>Uo(t,ua(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))}))}function h(){var e;d=void 0,so(`sysLog:: onTimerToUpdateChildWatches:: ${_.size}`);const t=Gn(),n=new Map;for(;!d&&_.size;){const t=_.entries().next();gn.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;_.delete(r);const s=b(i,r,o);(null==(e=c.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}so(`sysLog:: invokingWatchers:: Elapsed:: ${Gn()-t}ms:: ${_.size}`),l.forEach(((e,t)=>{const r=n.get(t);r&&e.forEach((({callback:e,dirName:t})=>{nt(r)?r.forEach(e):e(t)}))})),so(`sysLog:: Elapsed:: ${Gn()-t}ms:: onTimerToUpdateChildWatches:: ${_.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=u;for(const e of t)e.close(),y(c.get(f(e.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=c.get(t);if(!a)return!1;const s=Go(o(e));let l,_;return 0===p(s,e)?l=un(i(e,1)?q(r(e),(t=>{const r=Ho(t,e);return x(r,n)||0!==p(r,Go(o(r)))?void 0:r})):u,a.childWatches,((e,t)=>p(e,t.dirName)),(function(e){d(m(e,n))}),ux,d):a.targetWatcher&&0===p(s,a.targetWatcher.dirName)?(l=!1,gn.assert(a.childWatches===u)):(v(a),a.targetWatcher=m(s,n,void 0,e),a.childWatches.forEach(ux),l=!0),a.childWatches=_||u,l;function d(e){(_||(_=[])).push(e)}}function x(e,r){return X(oo,(n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n)))||_o(e,r,t,n)}}var uo=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(uo||{});function _o(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(OR(e,null==t?void 0:t.excludeFiles,n,r())||OR(e,null==t?void 0:t.excludeDirectories,n,r()))}function po(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?Go(Uo(e,a)):e;a&&_o(o,n,r,i)||t(o)}}}function fo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:u,tscWatchFile:_,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,S,k,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,_){return c?P(e,1,po(e,t,_,a,s),i,500,Aq(_)):(k||(k=lo({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:F,realpath:u,setTimeout:n,clearTimeout:r})),k(e,t,i,_))}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(_){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return E(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return E(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?E(5,1,e):{watchFile:4}}}(i,d);const o=gn.checkDefined(i.watchFile);switch(o){case 0:return N(e,n,250,void 0);case 1:return N(e,n,r,void 0);case 2:return D()(e,n,r,void 0);case 3:return w()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||Hi),t(e,o!==Hi?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,Aq(i));case 5:return S||(S=to(P,a,t,m)),S(e,n,r,Aq(i));default:gn.assertNever(o)}}function D(){return b||(b=eo({getModifiedTime:t,setTimeout:n}))}function w(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:Gi(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,Kt(t,i)}}};function i(){n=void 0,r=Zi(e,t,r,Qi[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function E(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function F(e,t,n,r){gn.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=gn.checkDefined(i.watchDirectory);switch(o){case 1:return N(e,(()=>t(e)),500,void 0);case 2:return D()(e,(()=>t(e)),500,void 0);case 3:return w()(e,(()=>t(e)),void 0,void 0);case 0:return P(e,1,po(e,t,r,a,s),n,500,Aq(i));default:gn.assertNever(o)}}function N(t,n,r,i){return no(h,a,t,n,(n=>e(t,n,r,i)))}function P(e,n,r,s,c,l){return no(s?v:y,a,e,r,(r=>function(e,n,r,a,s,c){let l,u;f&&(l=e.substring(e.lastIndexOf(yo)),u=l.slice(yo.length));let _=o(e,n)?p():v();return{close:()=>{_&&(_.close(),_=void 0)}};function d(t){_&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),_.close(),_=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",(()=>{r("rename",""),d(v)})),t}catch(t){return T||(T="ENOSPC"===t.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&$t(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==u&&!$t(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||Hi;o&&r(n,o,a),r(n,i,a),f?d(a===Hi?v:p):a===Hi&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,((n,i,o)=>{0===i&&(o||(o=t(e)||Hi),o!==Hi&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,l)))}function A(e,n,r){let o=t(e)||Hi;return i(e,n,((n,i,a)=>{"change"===n&&(a||(a=t(e)||Hi),a.getTime()===o.getTime())||(o=a||t(e)||Hi,r(n,i,o))}))}}function mo(e){const t=e.writeFile;e.writeFile=(n,r,i)=>cv(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}var go=(()=>{let e;return mn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,t=o,n=a,r=s;let i,c;try{i=require("crypto")}catch{i=void 0}let l="./profile.cpuprofile";const u="darwin"===process.platform,d="linux"===process.platform||u,p={throwIfNoEntry:!1},f=r.platform(),m="win32"!==f&&"win64"!==f&&!P((C=__filename,C.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),g=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,h=__filename.endsWith("sys.js")?n.join(n.dirname(__dirname),"__fake__.js"):__filename,y="win32"===process.platform||u,v=ht((()=>process.cwd())),{watchFile:S,watchDirectory:k}=fo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:I,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,y?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:m,getCurrentDirectory:v,fileSystemEntryExists:N,fsSupportsRecursiveFsWatch:y,getAccessibleSortedChildDirectories:e=>F(e).directories,realpath:A,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:d,fsWatchWithTimestamp:u,sysLog:so}),T={args:process.argv.slice(2),newLine:r.EOL,useCaseSensitiveFileNames:m,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){let r;try{r=t.readFileSync(e)}catch{return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")},writeFile:function(e,n,r){let i;r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:S,watchDirectory:k,preferNonRecursiveWatch:!y,resolvePath:e=>n.resolve(e),fileExists:P,directoryExists:function(e){return N(e,1)},getAccessibleFileSystemEntries:F,createDirectory(e){if(!T.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>h,getCurrentDirectory:v,getDirectories:function(e){return F(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return Tk(e,t,n,r,m,process.cwd(),i,F,A)},getModifiedTime:I,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:i?O:qi,createSHA256Hash:i?O:void 0,getMemoryUsage:()=>(b.gc&&b.gc(),process.memoryUsage().heapUsed),getFileSize(e){const t=D(e);return(null==t?void 0:t.isFile())?t.size:0},exit(e){w((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(c)return t(),!1;const n=_;if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{c=r,l=e,t()}))})),!0},disableCPUProfiler:w,cpuProfilingEnabled:()=>!!c||E(process.execArgv,"--cpu-prof")||E(process.execArgv,"--prof"),realpath:A,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||X(process.execArgv,(e=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{Ji().install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const n=Rj(t,e,T);return{module:x(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var C;return T;function D(e){try{return t.statSync(e,p)}catch{return}}function w(r){if(c&&"stopping"!==c){const i=c;return c.post("Profiler.stop",((o,{profile:a})=>{var s;if(!o){(null==(s=D(l))?void 0:s.isDirectory())&&(l=n.join(l,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{t.mkdirSync(n.dirname(l),{recursive:!0})}catch{}t.writeFileSync(l,JSON.stringify(function(t){let r=0;const i=new Map,o=$o(n.dirname(h)),a=`file://${1===Lo(o)?"":"/"}${o}`;for(const n of t.nodes)if(n.callFrame.url){const t=$o(n.callFrame.url);sa(a,t,m)?n.callFrame.url=pa(a,t,a,Xt(m),!0):e.test(t)||(n.callFrame.url=(i.has(t)?i:i.set(t,`external${r}.js`)).get(t),r++)}return t}(a)))}c=void 0,i.disconnect(),r()})),c="stopping",!0}return r(),!1}function F(e){try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){if(o=D(Uo(e,n)),!o)continue}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch{return uT}}function N(e,t){const n=D(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}function P(e){return N(e,0)}function A(e){try{return g(e)}catch{return e}}function I(e){var t;return null==(t=D(e))?void 0:t.mtime}function O(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&mo(e),e})();function ho(e){go=e}go&&go.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,Wi);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&Ki(i?{...r,...i}:r)}Qi=r("TSC_WATCH_POLLINGCHUNKSIZE",Xi)||Qi,Yi=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Xi)||Yi}(go),gn.setAssertionLevel(/^development$/i.test(go.getEnvironmentVariable("NODE_ENV"))?1:0)),go&&go.debugMode&&(gn.isDebugging=!0);var yo="/",vo="\\",bo="://",xo=/\\/g;function So(e){return 47===e||92===e}function ko(e){return Oo(e)<0}function To(e){return Oo(e)>0}function Co(e){const t=Oo(e);return t>0&&t===e.length}function Do(e){return 0!==Oo(e)}function wo(e){return/^\.\.?(?:$|[\\/])/.test(e)}function Eo(e){return!Do(e)&&!wo(e)}function Fo(e){return jo(e).includes(".")}function No(e,t){return e.length>t.length&&$t(e,t)}function Po(e,t){for(const n of t)if(No(e,n))return!0;return!1}function Ao(e){return e.length>0&&So(e.charCodeAt(e.length-1))}function Io(e){return e>=97&&e<=122||e>=65&&e<=90}function Oo(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?yo:vo,2);return n<0?e.length:n+1}if(Io(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(bo);if(-1!==n){const t=n+bo.length,r=e.indexOf(yo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&Io(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function Lo(e){const t=Oo(e);return t<0?~t:t}function Ro(e){const t=Lo(e=$o(e));return t===e.length?e:(e=Qo(e)).slice(0,Math.max(t,e.lastIndexOf(yo)))}function jo(e,t,n){if(Lo(e=$o(e))===e.length)return"";const r=(e=Qo(e)).slice(Math.max(Lo(e),e.lastIndexOf(yo)+1)),i=void 0!==t&&void 0!==n?Bo(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Mo(e,t,n){if(en(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Bo(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Mo(e,t,n)||"";for(const r of t){const t=Mo(e,r,n);if(t)return t}return""}(Qo(e),t,n?xt:St);const r=jo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Jo(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(yo);return r.length&&!ke(r)&&r.pop(),[n,...r]}(e=Uo(t,e),Lo(e))}function zo(e,t){return 0===e.length?"":(e[0]&&Yo(e[0]))+e.slice(1,t).join(yo)}function $o(e){return e.includes("\\")?e.replace(xo,yo):e}function qo(e){if(!X(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function Uo(e,...t){e&&(e=$o(e));for(let n of t)n&&(n=$o(n),e=e&&0===Lo(n)?Yo(e)+n:n);return e}function Vo(e,...t){return Go(X(t)?Uo(e,...t):$o(e))}function Wo(e,t){return qo(Jo(e,t))}function Ho(e,t){return zo(Wo(e,t))}function Go(e){if(e=$o(e),!na.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!na.test(e)))return e;const n=zo(qo(Jo(e)));return n&&Ao(e)?Yo(n):n}function Ko(e,t){return 0===(n=Wo(e,t)).length?"":n.slice(1).join(yo);var n}function Xo(e,t,n){return n(To(e)?Go(e):Ho(e,t))}function Qo(e){return Ao(e)?e.substr(0,e.length-1):e}function Yo(e){return Ao(e)?e:e+yo}function Zo(e){return Do(e)||wo(e)?e:"./"+e}function ea(e,t,n,r){const i=void 0!==n&&void 0!==r?Bo(e,n,r):Bo(e);return i?e.slice(0,e.length-i.length)+(en(t,".")?t:"."+t):e}function ta(e,t){const n=oO(e);return n?e.slice(0,e.length-n.length)+(en(t,".")?t:"."+t):ea(e,t)}var na=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function ra(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,Lo(e)),i=t.substring(0,Lo(t)),o=Et(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!na.test(a)&&!na.test(s))return n(a,s);const c=qo(Jo(e)),l=qo(Jo(t)),u=Math.min(c.length,l.length);for(let e=1;e0==Lo(t)>0,"Paths must either both be absolute or both be relative"),zo(la(e,t,"boolean"==typeof n&&n?xt:St,"function"==typeof n?n:dt))}function _a(e,t,n){return To(e)?pa(t,e,t,n,!1):e}function da(e,t,n){return Zo(ua(Ro(e),t,n))}function pa(e,t,n,r,i){const o=la(Vo(n,e),Vo(n,t),St,r),a=o[0];if(i&&To(a)){const e=a.charAt(0)===yo?"file://":"file:///";o[0]=e+a}return zo(o)}function fa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Ro(e);if(r===e)return;e=r}}function ma(e){return $t(e,"/node_modules")}function ga(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var ha={Unterminated_string_literal:ga(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:ga(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:ga(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:ga(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:ga(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:ga(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:ga(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:ga(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:ga(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:ga(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:ga(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:ga(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:ga(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:ga(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:ga(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:ga(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:ga(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:ga(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:ga(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:ga(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:ga(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:ga(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:ga(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:ga(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:ga(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:ga(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:ga(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:ga(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:ga(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:ga(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:ga(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:ga(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:ga(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:ga(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:ga(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:ga(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:ga(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:ga(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:ga(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:ga(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:ga(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:ga(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:ga(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:ga(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:ga(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:ga(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:ga(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:ga(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:ga(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:ga(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","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:ga(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:ga(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:ga(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:ga(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:ga(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:ga(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:ga(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:ga(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:ga(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:ga(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:ga(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:ga(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:ga(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:ga(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:ga(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:ga(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:ga(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:ga(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:ga(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:ga(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:ga(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ga(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:ga(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:ga(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:ga(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:ga(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:ga(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:ga(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:ga(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:ga(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:ga(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:ga(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:ga(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:ga(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:ga(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:ga(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:ga(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:ga(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:ga(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:ga(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:ga(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:ga(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:ga(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:ga(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:ga(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:ga(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:ga(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:ga(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:ga(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:ga(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:ga(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:ga(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:ga(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:ga(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:ga(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:ga(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:ga(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:ga(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:ga(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:ga(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:ga(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:ga(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:ga(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:ga(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:ga(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:ga(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:ga(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:ga(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:ga(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:ga(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:ga(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:ga(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:ga(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:ga(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:ga(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:ga(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:ga(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:ga(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:ga(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:ga(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:ga(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:ga(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:ga(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:ga(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:ga(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:ga(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:ga(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:ga(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:ga(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:ga(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:ga(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:ga(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:ga(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:ga(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:ga(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:ga(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:ga(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:ga(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:ga(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:ga(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:ga(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:ga(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:ga(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:ga(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:ga(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:ga(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:ga(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:ga(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:ga(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:ga(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:ga(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:ga(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:ga(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:ga(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:ga(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:ga(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:ga(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:ga(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:ga(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:ga(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:ga(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:ga(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:ga(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:ga(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:ga(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:ga(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:ga(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ga(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ga(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:ga(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:ga(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:ga(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:ga(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:ga(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:ga(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:ga(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:ga(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:ga(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:ga(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:ga(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:ga(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:ga(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:ga(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:ga(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:ga(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:ga(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:ga(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:ga(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:ga(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:ga(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:ga(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:ga(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:ga(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:ga(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:ga(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:ga(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:ga(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:ga(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:ga(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:ga(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:ga(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:ga(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:ga(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:ga(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:ga(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:ga(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:ga(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:ga(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:ga(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:ga(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:ga(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:ga(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ga(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:ga(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:ga(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:ga(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ga(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ga(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ga(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ga(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ga(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ga(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ga(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ga(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ga(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ga(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ga(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:ga(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:ga(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ga(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:ga(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:ga(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:ga(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:ga(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:ga(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:ga(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:ga(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:ga(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:ga(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:ga(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve:ga(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:ga(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:ga(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:ga(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:ga(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:ga(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:ga(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:ga(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:ga(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:ga(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:ga(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:ga(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:ga(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:ga(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:ga(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:ga(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:ga(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:ga(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:ga(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:ga(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:ga(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:ga(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:ga(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:ga(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:ga(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:ga(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:ga(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:ga(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:ga(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:ga(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:ga(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:ga(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:ga(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ga(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:ga(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:ga(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:ga(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:ga(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:ga(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:ga(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:ga(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:ga(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:ga(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:ga(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ga(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:ga(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:ga(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ga(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:ga(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:ga(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:ga(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:ga(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ga(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ga(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ga(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ga(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:ga(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:ga(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:ga(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:ga(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:ga(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:ga(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:ga(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:ga(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:ga(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:ga(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:ga(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:ga(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:ga(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:ga(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:ga(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:ga(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:ga(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:ga(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:ga(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:ga(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:ga(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:ga(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:ga(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:ga(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:ga(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:ga(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:ga(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:ga(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:ga(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:ga(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:ga(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:ga(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:ga(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:ga(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:ga(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:ga(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:ga(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:ga(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:ga(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:ga(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:ga(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ga(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ga(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:ga(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:ga(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:ga(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:ga(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:ga(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:ga(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:ga(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:ga(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:ga(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:ga(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:ga(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:ga(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:ga(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:ga(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:ga(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:ga(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:ga(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:ga(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ga(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:ga(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:ga(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:ga(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:ga(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:ga(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:ga(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ga(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:ga(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:ga(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:ga(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ga(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:ga(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:ga(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:ga(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:ga(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:ga(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:ga(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:ga(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:ga(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:ga(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:ga(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ga(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ga(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:ga(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:ga(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:ga(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:ga(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:ga(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:ga(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:ga(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:ga(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:ga(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:ga(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:ga(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:ga(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:ga(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:ga(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:ga(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:ga(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:ga(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:ga(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:ga(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:ga(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:ga(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:ga(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:ga(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:ga(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:ga(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:ga(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:ga(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:ga(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:ga(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:ga(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:ga(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:ga(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:ga(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:ga(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:ga(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:ga(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:ga(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:ga(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:ga(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:ga(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:ga(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:ga(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:ga(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:ga(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ga(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:ga(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:ga(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:ga(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:ga(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:ga(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:ga(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:ga(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ga(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:ga(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:ga(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ga(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ga(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:ga(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:ga(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:ga(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:ga(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:ga(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:ga(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ga(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ga(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:ga(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:ga(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:ga(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ga(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ga(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:ga(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:ga(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:ga(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ga(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:ga(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:ga(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:ga(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:ga(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:ga(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:ga(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:ga(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:ga(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:ga(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:ga(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:ga(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:ga(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:ga(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:ga(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:ga(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:ga(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:ga(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:ga(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:ga(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:ga(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:ga(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:ga(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:ga(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:ga(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:ga(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:ga(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:ga(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:ga(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:ga(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:ga(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:ga(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:ga(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:ga(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:ga(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:ga(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:ga(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:ga(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:ga(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:ga(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:ga(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:ga(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:ga(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:ga(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:ga(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:ga(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:ga(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:ga(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:ga(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:ga(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:ga(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:ga(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:ga(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:ga(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:ga(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:ga(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ga(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ga(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:ga(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:ga(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:ga(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:ga(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:ga(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:ga(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:ga(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:ga(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:ga(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:ga(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:ga(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ga(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:ga(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:ga(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:ga(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ga(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:ga(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:ga(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:ga(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:ga(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:ga(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:ga(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:ga(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:ga(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:ga(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:ga(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:ga(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:ga(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:ga(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:ga(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:ga(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:ga(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:ga(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:ga(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:ga(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:ga(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:ga(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:ga(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:ga(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:ga(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:ga(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:ga(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:ga(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:ga(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:ga(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:ga(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:ga(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:ga(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:ga(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:ga(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:ga(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:ga(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:ga(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:ga(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:ga(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:ga(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:ga(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ga(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:ga(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:ga(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:ga(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:ga(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:ga(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:ga(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:ga(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:ga(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:ga(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:ga(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:ga(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:ga(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:ga(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:ga(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:ga(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:ga(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:ga(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:ga(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:ga(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:ga(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:ga(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:ga(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:ga(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:ga(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:ga(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:ga(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:ga(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:ga(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:ga(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:ga(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:ga(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:ga(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:ga(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:ga(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:ga(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:ga(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:ga(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:ga(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:ga(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:ga(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:ga(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:ga(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:ga(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:ga(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:ga(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:ga(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:ga(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:ga(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:ga(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:ga(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:ga(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:ga(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:ga(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:ga(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:ga(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:ga(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:ga(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:ga(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:ga(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:ga(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:ga(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:ga(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:ga(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:ga(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:ga(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:ga(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:ga(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:ga(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:ga(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:ga(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:ga(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:ga(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:ga(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:ga(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:ga(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:ga(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:ga(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:ga(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:ga(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:ga(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:ga(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:ga(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:ga(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:ga(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:ga(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:ga(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:ga(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:ga(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:ga(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:ga(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:ga(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:ga(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:ga(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:ga(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:ga(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:ga(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:ga(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:ga(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:ga(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:ga(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:ga(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:ga(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:ga(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:ga(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:ga(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:ga(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:ga(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ga(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ga(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:ga(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:ga(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:ga(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:ga(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:ga(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:ga(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:ga(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:ga(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:ga(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:ga(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:ga(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:ga(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:ga(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:ga(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:ga(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:ga(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:ga(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:ga(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:ga(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:ga(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:ga(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:ga(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:ga(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:ga(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:ga(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:ga(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:ga(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:ga(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:ga(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:ga(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:ga(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:ga(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:ga(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:ga(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:ga(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:ga(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:ga(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:ga(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:ga(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ga(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:ga(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ga(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:ga(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:ga(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:ga(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:ga(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:ga(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:ga(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:ga(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:ga(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:ga(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:ga(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:ga(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:ga(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:ga(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:ga(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ga(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:ga(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:ga(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:ga(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:ga(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:ga(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:ga(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:ga(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:ga(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:ga(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:ga(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:ga(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:ga(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:ga(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:ga(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:ga(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:ga(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:ga(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:ga(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:ga(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:ga(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:ga(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:ga(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:ga(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:ga(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:ga(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:ga(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:ga(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:ga(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:ga(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:ga(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:ga(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:ga(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:ga(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:ga(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:ga(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:ga(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:ga(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:ga(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:ga(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:ga(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:ga(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:ga(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:ga(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:ga(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:ga(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:ga(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:ga(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:ga(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:ga(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:ga(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:ga(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:ga(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:ga(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:ga(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:ga(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:ga(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:ga(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:ga(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:ga(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:ga(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:ga(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:ga(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:ga(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:ga(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:ga(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:ga(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:ga(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ga(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:ga(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:ga(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:ga(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:ga(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:ga(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:ga(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:ga(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ga(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:ga(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:ga(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:ga(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:ga(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:ga(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ga(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ga(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:ga(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:ga(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:ga(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:ga(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:ga(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:ga(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:ga(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:ga(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:ga(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:ga(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:ga(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:ga(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:ga(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:ga(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:ga(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:ga(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:ga(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:ga(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:ga(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:ga(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:ga(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:ga(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:ga(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:ga(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:ga(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:ga(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:ga(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:ga(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:ga(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:ga(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:ga(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:ga(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:ga(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:ga(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:ga(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:ga(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:ga(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:ga(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:ga(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:ga(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:ga(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:ga(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:ga(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:ga(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:ga(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ga(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:ga(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:ga(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:ga(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ga(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:ga(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:ga(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:ga(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:ga(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:ga(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:ga(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:ga(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:ga(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:ga(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:ga(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:ga(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:ga(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:ga(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:ga(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:ga(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:ga(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:ga(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:ga(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:ga(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:ga(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:ga(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:ga(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:ga(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:ga(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:ga(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:ga(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:ga(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:ga(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:ga(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ga(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:ga(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:ga(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:ga(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:ga(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:ga(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:ga(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:ga(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:ga(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:ga(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:ga(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:ga(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:ga(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:ga(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:ga(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:ga(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:ga(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:ga(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:ga(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:ga(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:ga(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:ga(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:ga(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:ga(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:ga(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:ga(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:ga(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:ga(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ga(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:ga(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ga(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:ga(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:ga(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:ga(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ga(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:ga(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:ga(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:ga(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:ga(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:ga(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:ga(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ga(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:ga(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:ga(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:ga(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:ga(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:ga(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:ga(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ga(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ga(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ga(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:ga(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ga(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:ga(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:ga(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:ga(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:ga(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:ga(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:ga(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:ga(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:ga(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ga(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ga(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:ga(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:ga(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:ga(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:ga(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:ga(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:ga(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:ga(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:ga(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:ga(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:ga(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:ga(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:ga(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:ga(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_declaration_0_is_using_private_name_1:ga(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:ga(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:ga(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ga(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ga(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ga(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:ga(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:ga(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ga(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:ga(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:ga(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ga(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:ga(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:ga(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:ga(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:ga(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:ga(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ga(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:ga(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:ga(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:ga(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:ga(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:ga(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ga(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ga(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:ga(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ga(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ga(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:ga(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:ga(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ga(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ga(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:ga(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:ga(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ga(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ga(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ga(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ga(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:ga(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:ga(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:ga(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:ga(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:ga(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:ga(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:ga(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:ga(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:ga(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:ga(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:ga(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:ga(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:ga(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:ga(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:ga(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:ga(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:ga(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:ga(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:ga(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:ga(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:ga(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ga(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:ga(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ga(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:ga(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ga(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ga(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:ga(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:ga(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ga(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:ga(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:ga(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:ga(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:ga(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:ga(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ga(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:ga(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:ga(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:ga(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:ga(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:ga(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:ga(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:ga(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:ga(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:ga(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:ga(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:ga(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:ga(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:ga(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:ga(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:ga(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:ga(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:ga(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:ga(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:ga(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:ga(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ga(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:ga(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:ga(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:ga(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:ga(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:ga(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:ga(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:ga(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:ga(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:ga(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:ga(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:ga(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:ga(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:ga(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:ga(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:ga(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:ga(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:ga(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:ga(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:ga(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:ga(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:ga(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:ga(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:ga(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:ga(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:ga(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:ga(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:ga(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:ga(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:ga(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:ga(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:ga(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:ga(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:ga(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:ga(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:ga(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:ga(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:ga(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:ga(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:ga(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:ga(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:ga(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:ga(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:ga(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:ga(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:ga(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:ga(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:ga(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:ga(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:ga(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:ga(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:ga(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:ga(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:ga(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:ga(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:ga(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:ga(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:ga(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:ga(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:ga(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:ga(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:ga(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:ga(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:ga(6024,3,"options_6024","options"),file:ga(6025,3,"file_6025","file"),Examples_Colon_0:ga(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:ga(6027,3,"Options_Colon_6027","Options:"),Version_0:ga(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:ga(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:ga(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:ga(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:ga(6034,3,"KIND_6034","KIND"),FILE:ga(6035,3,"FILE_6035","FILE"),VERSION:ga(6036,3,"VERSION_6036","VERSION"),LOCATION:ga(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:ga(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:ga(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:ga(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:ga(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:ga(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:ga(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:ga(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:ga(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:ga(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:ga(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:ga(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:ga(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:ga(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:ga(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:ga(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:ga(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:ga(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:ga(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:ga(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:ga(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:ga(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:ga(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:ga(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:ga(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:ga(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:ga(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:ga(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:ga(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:ga(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:ga(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:ga(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:ga(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:ga(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:ga(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:ga(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:ga(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:ga(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:ga(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:ga(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:ga(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:ga(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:ga(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:ga(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:ga(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:ga(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:ga(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:ga(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:ga(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:ga(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:ga(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:ga(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:ga(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:ga(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:ga(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:ga(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:ga(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:ga(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:ga(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:ga(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:ga(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:ga(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:ga(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:ga(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:ga(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:ga(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:ga(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:ga(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:ga(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:ga(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:ga(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:ga(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:ga(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:ga(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:ga(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:ga(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:ga(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:ga(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:ga(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:ga(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:ga(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:ga(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:ga(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:ga(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:ga(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:ga(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:ga(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:ga(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:ga(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:ga(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:ga(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:ga(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:ga(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:ga(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:ga(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:ga(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:ga(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:ga(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:ga(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:ga(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:ga(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:ga(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:ga(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:ga(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:ga(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:ga(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:ga(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:ga(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:ga(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:ga(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:ga(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:ga(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:ga(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:ga(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:ga(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:ga(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:ga(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:ga(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:ga(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:ga(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:ga(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:ga(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ga(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ga(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:ga(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:ga(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:ga(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:ga(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:ga(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:ga(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:ga(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:ga(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:ga(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:ga(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:ga(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:ga(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:ga(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:ga(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:ga(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:ga(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:ga(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:ga(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:ga(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:ga(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:ga(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:ga(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:ga(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:ga(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:ga(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:ga(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:ga(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:ga(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:ga(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:ga(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:ga(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:ga(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:ga(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:ga(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:ga(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:ga(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:ga(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:ga(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:ga(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:ga(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:ga(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:ga(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:ga(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:ga(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:ga(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:ga(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:ga(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:ga(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:ga(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:ga(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:ga(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:ga(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:ga(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:ga(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:ga(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:ga(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:ga(6244,3,"Modules_6244","Modules"),File_Management:ga(6245,3,"File_Management_6245","File Management"),Emit:ga(6246,3,"Emit_6246","Emit"),JavaScript_Support:ga(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:ga(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:ga(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:ga(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:ga(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:ga(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:ga(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:ga(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:ga(6255,3,"Projects_6255","Projects"),Output_Formatting:ga(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:ga(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:ga(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:ga(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:ga(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:ga(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:ga(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:ga(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:ga(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:ga(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:ga(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:ga(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ga(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:ga(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:ga(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:ga(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:ga(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ga(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:ga(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:ga(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:ga(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:ga(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:ga(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:ga(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:ga(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:ga(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:ga(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:ga(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:ga(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:ga(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:ga(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:ga(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:ga(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:ga(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:ga(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:ga(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:ga(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:ga(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:ga(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:ga(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:ga(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:ga(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:ga(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:ga(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:ga(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:ga(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:ga(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:ga(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:ga(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:ga(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:ga(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:ga(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:ga(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:ga(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:ga(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:ga(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:ga(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ga(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:ga(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:ga(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:ga(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:ga(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ga(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ga(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ga(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:ga(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ga(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ga(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ga(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ga(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ga(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ga(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:ga(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:ga(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:ga(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:ga(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:ga(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:ga(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:ga(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:ga(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:ga(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:ga(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:ga(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:ga(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:ga(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:ga(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:ga(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:ga(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:ga(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:ga(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:ga(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:ga(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:ga(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:ga(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:ga(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:ga(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:ga(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:ga(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:ga(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:ga(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:ga(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:ga(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:ga(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:ga(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:ga(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:ga(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:ga(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:ga(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ga(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:ga(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:ga(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:ga(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:ga(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:ga(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:ga(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:ga(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:ga(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:ga(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:ga(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:ga(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:ga(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:ga(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:ga(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:ga(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:ga(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:ga(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:ga(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:ga(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:ga(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:ga(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:ga(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:ga(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:ga(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:ga(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:ga(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:ga(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:ga(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:ga(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:ga(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:ga(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:ga(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:ga(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:ga(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:ga(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:ga(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:ga(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:ga(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:ga(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:ga(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:ga(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:ga(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:ga(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:ga(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:ga(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:ga(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:ga(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:ga(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:ga(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:ga(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:ga(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:ga(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:ga(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:ga(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:ga(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:ga(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:ga(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:ga(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:ga(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:ga(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:ga(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:ga(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:ga(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:ga(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:ga(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:ga(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:ga(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:ga(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:ga(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:ga(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:ga(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:ga(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:ga(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:ga(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:ga(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:ga(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:ga(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:ga(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:ga(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:ga(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:ga(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:ga(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:ga(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:ga(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:ga(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:ga(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:ga(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:ga(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:ga(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:ga(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:ga(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:ga(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:ga(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:ga(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:ga(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:ga(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:ga(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:ga(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:ga(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:ga(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:ga(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:ga(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:ga(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:ga(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:ga(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:ga(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:ga(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:ga(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:ga(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:ga(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:ga(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:ga(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:ga(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:ga(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:ga(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:ga(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:ga(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:ga(6902,3,"type_Colon_6902","type:"),default_Colon:ga(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:ga(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:ga(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:ga(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:ga(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:ga(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:ga(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:ga(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:ga(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:ga(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:ga(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:ga(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:ga(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:ga(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:ga(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:ga(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:ga(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:ga(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:ga(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:ga(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:ga(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:ga(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:ga(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:ga(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:ga(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:ga(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:ga(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:ga(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:ga(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:ga(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:ga(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:ga(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:ga(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:ga(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ga(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:ga(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ga(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ga(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:ga(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:ga(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:ga(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:ga(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:ga(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ga(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:ga(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ga(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ga(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:ga(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:ga(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:ga(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:ga(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:ga(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:ga(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:ga(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:ga(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:ga(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:ga(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:ga(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:ga(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:ga(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:ga(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:ga(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:ga(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:ga(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:ga(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ga(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ga(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ga(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:ga(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ga(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:ga(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:ga(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:ga(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:ga(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:ga(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:ga(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:ga(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:ga(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:ga(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:ga(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:ga(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:ga(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:ga(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:ga(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:ga(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:ga(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:ga(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:ga(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:ga(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:ga(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:ga(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:ga(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:ga(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:ga(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:ga(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:ga(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:ga(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:ga(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:ga(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:ga(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:ga(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:ga(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:ga(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:ga(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:ga(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:ga(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:ga(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:ga(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:ga(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:ga(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:ga(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:ga(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:ga(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:ga(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:ga(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:ga(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:ga(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:ga(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:ga(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:ga(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:ga(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ga(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ga(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ga(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:ga(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:ga(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:ga(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:ga(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:ga(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:ga(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:ga(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:ga(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:ga(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:ga(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:ga(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:ga(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:ga(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:ga(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:ga(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:ga(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:ga(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:ga(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:ga(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:ga(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:ga(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:ga(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:ga(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:ga(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:ga(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:ga(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:ga(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:ga(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:ga(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:ga(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:ga(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ga(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ga(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:ga(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:ga(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:ga(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:ga(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:ga(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:ga(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:ga(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:ga(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:ga(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:ga(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:ga(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ga(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ga(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:ga(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:ga(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:ga(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:ga(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:ga(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:ga(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:ga(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:ga(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:ga(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:ga(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:ga(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:ga(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:ga(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:ga(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:ga(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:ga(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:ga(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:ga(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:ga(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:ga(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:ga(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:ga(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:ga(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:ga(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:ga(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:ga(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:ga(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:ga(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:ga(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:ga(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:ga(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:ga(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:ga(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:ga(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:ga(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:ga(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:ga(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:ga(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:ga(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:ga(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:ga(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:ga(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:ga(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:ga(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:ga(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:ga(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:ga(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:ga(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:ga(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:ga(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:ga(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:ga(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:ga(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:ga(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:ga(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:ga(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:ga(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:ga(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:ga(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:ga(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:ga(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:ga(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:ga(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:ga(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:ga(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:ga(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:ga(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:ga(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:ga(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:ga(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:ga(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:ga(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:ga(95005,3,"Extract_function_95005","Extract function"),Extract_constant:ga(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:ga(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:ga(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:ga(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:ga(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:ga(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:ga(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:ga(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:ga(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:ga(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:ga(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:ga(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:ga(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:ga(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:ga(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:ga(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:ga(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:ga(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:ga(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:ga(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:ga(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:ga(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:ga(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:ga(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:ga(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:ga(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:ga(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:ga(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:ga(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:ga(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:ga(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:ga(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:ga(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:ga(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:ga(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:ga(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:ga(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:ga(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:ga(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:ga(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:ga(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:ga(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:ga(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:ga(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:ga(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:ga(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:ga(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:ga(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:ga(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:ga(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:ga(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:ga(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:ga(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:ga(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:ga(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:ga(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:ga(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:ga(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:ga(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:ga(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:ga(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:ga(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:ga(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:ga(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:ga(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:ga(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:ga(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:ga(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:ga(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:ga(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:ga(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:ga(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:ga(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:ga(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:ga(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:ga(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:ga(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:ga(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:ga(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:ga(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:ga(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:ga(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:ga(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:ga(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:ga(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:ga(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:ga(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:ga(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:ga(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:ga(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:ga(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:ga(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:ga(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:ga(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:ga(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:ga(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:ga(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:ga(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:ga(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:ga(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:ga(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:ga(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:ga(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:ga(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:ga(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:ga(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:ga(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:ga(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:ga(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:ga(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:ga(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:ga(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:ga(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:ga(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:ga(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:ga(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:ga(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:ga(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:ga(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:ga(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:ga(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:ga(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:ga(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:ga(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:ga(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:ga(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:ga(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:ga(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:ga(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:ga(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:ga(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:ga(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:ga(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:ga(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:ga(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:ga(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:ga(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:ga(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:ga(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:ga(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:ga(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:ga(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:ga(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:ga(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:ga(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:ga(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:ga(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:ga(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:ga(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:ga(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:ga(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:ga(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:ga(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:ga(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:ga(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:ga(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:ga(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:ga(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:ga(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:ga(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:ga(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:ga(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:ga(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:ga(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:ga(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:ga(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:ga(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:ga(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:ga(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:ga(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:ga(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:ga(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:ga(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:ga(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:ga(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:ga(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:ga(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:ga(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:ga(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:ga(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:ga(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:ga(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:ga(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:ga(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:ga(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:ga(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:ga(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:ga(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:ga(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:ga(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:ga(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:ga(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:ga(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:ga(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:ga(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:ga(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:ga(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:ga(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:ga(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:ga(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:ga(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:ga(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:ga(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:ga(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:ga(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:ga(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:ga(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:ga(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:ga(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:ga(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:ga(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:ga(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:ga(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:ga(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:ga(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:ga(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:ga(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:ga(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:ga(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:ga(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:ga(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:ga(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:ga(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:ga(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:ga(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:ga(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:ga(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:ga(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:ga(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:ga(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:ga(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:ga(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:ga(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function ya(e){return e>=80}function va(e){return 32===e||ya(e)}var ba={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},xa=new Map(Object.entries(ba)),Sa=new Map(Object.entries({...ba,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ka=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Ta=new Map([[1,Ii.RegularExpressionFlagsHasIndices],[16,Ii.RegularExpressionFlagsDotAll],[32,Ii.RegularExpressionFlagsUnicode],[64,Ii.RegularExpressionFlagsUnicodeSets],[128,Ii.RegularExpressionFlagsSticky]]),Ca=[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],Da=[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],wa=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Ea=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Fa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Na=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Pa=/@(?:see|link)/i;function Aa(e,t){if(e=2?wa:Ca)}function Oa(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}var La=Oa(Sa);function Ra(e){return La[e]}function ja(e){return Sa.get(e)}var Ma=Oa(ka);function Ba(e){return Ma[e]}function Ja(e){return ka.get(e)}function za(e){const t=[];let n=0,r=0;for(;n127&&Qa(i)&&(t.push(r),r=n)}}return t.push(r),t}function $a(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):qa(Ua(e),t,n,e.text,r)}function qa(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:gn.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?ae(e,za(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Qa(e){return 10===e||13===e||8232===e||8233===e}function Ya(e){return e>=48&&e<=57}function Za(e){return Ya(e)||e>=65&&e<=70||e>=97&&e<=102}function es(e){return e>=65&&e<=90||e>=97&&e<=122}function ts(e){return es(e)||Ya(e)||95===e}function ns(e){return e>=48&&e<=55}function rs(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function is(e,t,n,r,i){if(rT(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&Ka(a)){t++;continue}}return t}}var os=7;function as(e,t){if(gn.assert(t>=0),0===t||Qa(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+os=0&&n127&&Ka(a)){_&&Qa(a)&&(u=!0),n++;continue}break e}}return _&&(p=i(s,c,l,u,o,p)),p}function ds(e,t,n,r){return _s(!1,e,t,!1,n,r)}function ps(e,t,n,r){return _s(!1,e,t,!0,n,r)}function fs(e,t,n,r,i){return _s(!0,e,t,!1,n,r,i)}function ms(e,t,n,r,i){return _s(!0,e,t,!0,n,r,i)}function gs(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function hs(e,t){return fs(e,t,gs,void 0,void 0)}function ys(e,t){return ms(e,t,gs,void 0,void 0)}function vs(e){const t=cs.exec(e);if(t)return t[0]}function bs(e,t){return es(e)||36===e||95===e||e>127&&Ia(e,t)}function xs(e,t,n){return ts(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Aa(e,t>=2?Ea:Da)}(e,t)}function Ss(e,t,n){let r=Ts(e,0);if(!bs(r,t))return!1;for(let i=Cs(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>_,getTokenStart:()=>u,getTokenPos:()=>u,getTokenText:()=>g.substring(u,s),getTokenValue:()=>d,hasUnicodeEscape:()=>!!(1024&p),hasExtendedUnicodeEscape:()=>!!(8&p),hasPrecedingLineBreak:()=>!!(1&p),hasPrecedingJSDocComment:()=>!!(2&p),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&p),isIdentifier:()=>80===_||_>118,isReservedWord:()=>_>=83&&_<=118,isUnterminated:()=>!!(4&p),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&p,getTokenFlags:()=>p,reScanGreaterToken:function(){if(32===_){if(62===k(s))return 62===k(s+1)?61===k(s+2)?(s+=3,_=73):(s+=2,_=50):61===k(s+1)?(s+=2,_=72):(s++,_=49);if(61===k(s))return s++,_=34}return _},reScanAsteriskEqualsToken:function(){return gn.assert(67===_,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=u+1,_=64},reScanSlashToken:function(t){if(44===_||69===_){const n=u+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=T(s);if(-1===e||Qa(e)){p|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==T(s+1)||60!==T(s+2)||61===T(s+3)||33===T(s+3)||(i=!0)}s++}const l=s;if(4&p){s=n,r=!1;let e=0,t=!1,i=0;for(;s{!function(t,n,r){var i,a,l,_,p=!!(64&t),m=!!(96&t),h=m||!1,y=!1,v=0,b=[];function x(e){for(;;){if(b.push(_),_=void 0,D(e),_=b.pop(),124!==T(s))return;s++}}function D(t){let n=!1;for(;;){const r=s,i=T(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(T(++s)){case 98:case 66:s++,n=!1;break;default:E(),n=!0}break;case 40:if(63===T(++s))switch(T(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(T(++s)){case 61:case 33:s++,n=!1;break;default:A(!1),H(62),e<5&&C(ha.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=w(0);45===T(s)&&(s++,w(i),s===r+1&&C(ha.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),H(58),n=!0}else v++,n=!0;x(!0),H(41);break;case 123:const o=++s;F();const a=d;if(!h&&!a){n=!0;break}if(44===T(s)){s++,F();const e=d;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===T(s))&&C(ha.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(ha.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==T(s)){if(!h){n=!0;break}C(ha._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(ha.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,p?R():L(),H(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:W(),n=!0}}}function w(t){for(;;){const n=S(s);if(-1===n||!xs(n,e))break;const r=Cs(n),i=Ja(n);void 0===i?C(ha.Unknown_regular_expression_flag,s,r):t&i?C(ha.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,V(i,r)):C(ha.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function E(){switch(gn.assertEqual(k(s-1),92),T(s)){case 107:60===T(++s)?(s++,A(!0),H(62)):(h||r)&&C(ha.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(p){s++,C(ha.q_is_only_available_inside_character_class,s-2,2);break}default:gn.assert($()||N()||P(!0))}}function N(){gn.assertEqual(k(s-1),92);const e=T(s);if(e>=49&&e<=57){const e=s;return F(),l=le(l,{pos:e,end:s,value:+d}),!0}return!1}function P(e){gn.assertEqual(k(s-1),92);let t=T(s);switch(t){case-1:return C(ha.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),es(t))return s++,String.fromCharCode(31&t);if(h)C(ha.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,O(12|(m?16:0)|(e?32:0))}}function A(t){gn.assertEqual(k(s-1),60),u=s,U(S(s),e),s===u?C(ha.Expected_a_capturing_group_name):t?a=le(a,{pos:u,end:s,name:d}):(null==_?void 0:_.has(d))||b.some((e=>null==e?void 0:e.has(d)))?C(ha.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,u,s-u):(_??(_=new Set),_.add(d),i??(i=new Set),i.add(d))}function I(e){return 93===e||-1===e||s>=c}function L(){for(gn.assertEqual(k(s-1),91),94===T(s)&&s++;;){if(I(T(s)))return;const e=s,t=z();if(45===T(s)){if(I(T(++s)))return;!t&&h&&C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=z();if(!r&&h){C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=Ts(t,0),o=Ts(r,0);t.length===Cs(i)&&r.length===Cs(o)&&i>o&&C(ha.Range_out_of_order_in_character_class,e,s-e)}}}function R(){gn.assertEqual(k(s-1),91);let e=!1;94===T(s)&&(s++,e=!0);let t=!1,n=T(s);if(I(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":C(ha.Expected_a_class_set_operand),y=!1;break;default:r=M()}switch(T(s)){case 45:if(45===T(s+1))return e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,j(3),void(y=!e&&t);break;case 38:if(38===T(s+1))return j(2),e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=T(s),-1!==n;){switch(n){case 45:if(n=T(++s),I(n))return void(y=!e&&t);if(45===n){s++,C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=M();if(e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=Ts(r,0),c=Ts(o,0);r.length===Cs(a)&&o.length===Cs(c)&&a>c&&C(ha.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(I(T(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=M()}}y=!e&&t}function j(e){let t=y;for(;;){let n=T(s);if(I(n))break;switch(n){case 45:45===T(++s)?(s++,3!==e&&C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===T(++s)?(s++,2!==e&&C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(ha._0_expected,s,0,"--");break;case 2:C(ha._0_expected,s,0,"&&")}}if(n=T(s),I(n)){C(ha.Expected_a_class_set_operand);break}M(),t&&(t=y)}y=t}function M(){switch(y=!1,T(s)){case-1:return"";case 91:return s++,R(),H(93),"";case 92:if(s++,$())return"";if(113===T(s))return 123===T(++s)?(s++,B(),H(125),""):(C(ha.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return J()}}function B(){gn.assertEqual(k(s-1),123);let e=0;for(;;)switch(T(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:J(),e++}}function J(){const e=T(s);if(-1===e)return"";if(92===e){const e=T(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return P(!1)}}else if(e===T(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return C(ha.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return W()}function z(){if(92!==T(s))return W();{const e=T(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return $()?"":P(!1)}}}function $(){gn.assertEqual(k(s-1),92);let e=!1;const t=s-1,n=T(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===T(++s)){const n=++s,r=q();if(61===T(s)){const e=Es.get(r);if(s===n)C(ha.Expected_a_Unicode_property_name);else if(void 0===e){C(ha.Unknown_Unicode_property_name,n,s-n);const e=Jt(r,Es.keys(),dt);e&&C(ha.Did_you_mean_0,n,s-n,e)}const t=++s,i=q();if(s===t)C(ha.Expected_a_Unicode_property_value);else if(void 0!==e&&!Ps[e].has(i)){C(ha.Unknown_Unicode_property_value,t,s-t);const n=Jt(i,Ps[e],dt);n&&C(ha.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(ha.Expected_a_Unicode_property_name_or_value);else if(Ns.has(r))p?e?C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(ha.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!Ps.General_Category.has(r)&&!Fs.has(r)){C(ha.Unknown_Unicode_property_name_or_value,n,s-n);const e=Jt(r,[...Ps.General_Category,...Fs,...Ns],dt);e&&C(ha.Did_you_mean_0,n,s-n,e)}H(125),m||C(ha.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;C(ha._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function q(){let e="";for(;;){const t=T(s);if(-1===t||!ts(t))break;e+=String.fromCharCode(t),s++}return e}function W(){const e=m?Cs(S(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function H(e){T(s)===e?s++:C(ha._0_expected,s,0,String.fromCharCode(e))}x(!1),f(a,(e=>{if(!(null==i?void 0:i.has(e.name))&&(C(ha.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),i)){const t=Jt(e.name,i,dt);t&&C(ha.Did_you_mean_0,e.pos,e.end-e.pos,t)}})),f(l,(e=>{e.value>v&&(v?C(ha.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):C(ha.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))}))}(r,0,i)}))}d=g.substring(u,s),_=14}return _},reScanTemplateToken:function(e){return s=u,_=I(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=u,_=I(!0)},scanJsxIdentifier:function(){if(ya(_)){for(;s=c)return _=1;for(let t=k(s);s=0&&Xa(k(s-1))&&!(s+1{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function x(e){return Ts(g,e)}function S(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=g.substring(r,s),p|=4,C(ha.Unterminated_string_literal);break}const i=k(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),p|=4,C(ha.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=O(3),r=s}return n}function I(e){const t=96===k(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),p|=4,C(ha.Unterminated_template_literal),n=t?15:18;break}const o=k(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return C(ha.Unexpected_end_of_text),"";const r=k(s);switch(s++,r){case 48:if(s>=c||!Ya(k(s)))return"\0";case 49:case 50:case 51:s=55296&&i<=56319&&s+6=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s1114111&&(e&&C(ha.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(ha.Unexpected_end_of_text),o=!0):125===k(s)?s++:(e&&C(ha.Unterminated_Unicode_escape_sequence),o=!0),o?(p|=2048,g.substring(t,s)):(p|=8,ws(i))}function R(){if(s+5=0&&xs(r,e)){t+=L(!0),n=s;continue}if(r=R(),!(r>=0&&xs(r,e)))break;p|=1024,t+=g.substring(n,s),t+=ws(r),n=s+=6}}return t+=g.substring(n,s),t}function B(){const e=d.length;if(e>=2&&e<=12){const e=d.charCodeAt(0);if(e>=97&&e<=122){const e=xa.get(d);if(void 0!==e)return _=e}}return _=80}function J(e){let t="",n=!1,r=!1;for(;;){const i=k(s);if(95!==i){if(n=!0,!Ya(i)||i-48>=e)break;t+=g[s],s++,r=!1}else p|=512,n?(n=!1,r=!0):C(r?ha.Multiple_consecutive_numeric_separators_are_not_permitted:ha.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===k(s-1)&&C(ha.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===k(s))return d+="n",384&p&&(d=ST(d)+"n"),s++,10;{const e=128&p?parseInt(d.slice(2),2):256&p?parseInt(d.slice(2),8):+d;return d=""+e,9}}function $(){for(l=s,p=0;;){if(u=s,s>=c)return _=1;const r=x(s);if(0===s&&35===r&&ls(g,s)){if(s=us(g,s),t)continue;return _=6}switch(r){case 10:case 13:if(p|=1,t){s++;continue}return 13===r&&s+1=0&&bs(i,e))return d=L(!0)+M(),_=B();const o=R();return o>=0&&bs(o,e)?(s+=6,p|=1024,d=String.fromCharCode(o)+M(),_=B()):(C(ha.Invalid_character),s++,_=0);case 35:if(0!==s&&"!"===g[s+1])return C(ha.can_only_be_used_at_the_start_of_a_file,s,2),s++,_=0;const a=x(s+1);if(92===a){s++;const t=j();if(t>=0&&bs(t,e))return d="#"+L(!0)+M(),_=81;const n=R();if(n>=0&&bs(n,e))return s+=6,p|=1024,d="#"+String.fromCharCode(n)+M(),_=81;s--}return bs(a,e)?(s++,U(a,e)):(d="#",C(ha.Invalid_character,s++,Cs(r))),_=81;case 65533:return C(ha.File_appears_to_be_binary,0,0),s=c,_=8;default:const l=U(r,e);if(l)return _=l;if(Xa(r)){s+=Cs(r);continue}if(Qa(r)){p|=1,s+=Cs(r);continue}const f=Cs(r);return C(ha.Invalid_character,s,f),s+=f,_=0}}}function q(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Pa.test(g.slice(l,s))}function U(e,t){let n=e;if(bs(n,t)){for(s+=Cs(n);s=c)return _=1;let t=k(s);if(60===t)return 47===k(s+1)?(s+=2,_=31):(s++,_=30);if(123===t)return s++,_=19;let n=0;for(;s0)break;Ka(t)||(n=s)}s++}return d=g.substring(l,s),-1===n?13:12}function G(){switch(l=s,k(s)){case 34:case 39:return d=A(!0),_=11;default:return $()}}function K(){if(l=u=s,p=0,s>=c)return _=1;const t=x(s);switch(s+=Cs(t),t){case 9:case 11:case 12:case 32:for(;s=0&&bs(t,e))return d=L(!0)+M(),_=B();const n=R();return n>=0&&bs(n,e)?(s+=6,p|=1024,d=String.fromCharCode(n)+M(),_=B()):(s++,_=0)}if(bs(t,e)){let n=t;for(;s=0),s=e,l=e,u=e,_=0,d=void 0,p=0}}function Ts(e,t){return e.codePointAt(t)}function Cs(e){return e>=65536?2:-1===e?0:1}var Ds=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(gn.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function ws(e){return Ds(e)}var Es=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Fs=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Ns=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ps={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function As(e){return wo(e)||To(e)}function Is(e){return oe(e,uS,fS)}Ps.Script_Extensions=Ps.Script;var Os=new Map([[99,"lib.esnext.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Ls(e){const t=DS(e);switch(t){case 99:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Os.get(t);default:return"lib.d.ts"}}function Rs(e){return e.start+e.length}function js(e){return 0===e.length}function Ms(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Js(e,t){return t.start>=e.start&&Rs(t)<=Rs(e)}function zs(e,t){return t.pos>=e.start&&t.end<=Rs(e)}function $s(e,t){return t.start>=e.pos&&Rs(t)<=e.end}function qs(e,t){return void 0!==Us(e,t)}function Us(e,t){const n=Xs(e,t);return n&&0===n.length?void 0:n}function Vs(e,t){return Hs(e.start,e.length,t.start,t.length)}function Ws(e,t,n){return Hs(e.start,e.length,t,n)}function Hs(e,t,n,r){return n<=e+t&&n+r>=e}function Gs(e,t){return t<=Rs(e)&&t>=e.start}function Ks(e,t){return Ws(t,e.pos,e.end-e.pos)}function Xs(e,t){const n=Math.max(e.start,t.start),r=Math.min(Rs(e),Rs(t));return n<=r?Zs(n,r):void 0}function Qs(e){e=e.filter((e=>e.length>0)).sort(((e,t)=>e.start!==t.start?e.start-t.start:e.length-t.length));const t=[];let n=0;for(;n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Sc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function kc(e){return Sc(e.escapedText)}function Tc(e){const t=ja(e.escapedText);return t?at(t,Ah):void 0}function Cc(e){return e.valueDeclaration&&tu(e.valueDeclaration)?kc(e.valueDeclaration.name):Sc(e.escapedName)}function Dc(e){const t=e.parent.parent;if(t){if(h_(t))return wc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return wc(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(Xw(t))return t}break;case 217:return wc(t.expression);case 256:if(h_(t.statement)||Qu(t.statement))return wc(t.statement)}}}function wc(e){const t=Ac(e);return t&&Xw(t)?t:void 0}function Ec(e,t){return!(!Nc(e)||!Xw(e.name)||kc(e.name)!==kc(t))||!(!LF(e)||!X(e.declarationList.declarations,(e=>Ec(e,t))))}function Fc(e){return e.name||Dc(e)}function Nc(e){return!!e.name}function Pc(e){switch(e.kind){case 80:return e;case 348:case 341:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(cg(t)){case 1:case 4:case 5:case 3:return gg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 346:return Fc(e);case 340:return Dc(e);case 277:{const{expression:t}=e;return Xw(t)?t:void 0}case 212:const t=e;if(pg(t))return t.argumentExpression}return e.name}function Ac(e){if(void 0!==e)return Pc(e)||(lF(e)||uF(e)||SF(e)?Ic(e):void 0)}function Ic(e){if(e.parent){if(HN(e.parent)||ZE(e.parent))return e.parent.name;if(hF(e.parent)&&e===e.parent.right){if(Xw(e.parent.left))return e.parent.left;if(Px(e.parent.left))return gg(e.parent.left)}else if(ZF(e.parent)&&Xw(e.parent.name))return e.parent.name}}function Oc(e){if(qv(e))return P(e.modifiers,mE)}function Lc(e){if(Lv(e,98303))return P(e.modifiers,au)}function Rc(e,t){if(e.name){if(Xw(e.name)){const n=e.name.escapedText;return _l(e.parent,t).filter((e=>FP(e)&&Xw(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);gn.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=_l(e.parent,t).filter(FP);if(nIP(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Jc(e){return Bc(e,!1)}function zc(e){return Bc(e,!0)}function $c(e){return!!pl(e,FP)}function qc(e){return pl(e,gP)}function Uc(e){return fl(e,jP)}function Vc(e){return pl(e,yP)}function Wc(e){return pl(e,bP)}function Hc(e){return pl(e,bP,!0)}function Gc(e){return pl(e,xP)}function Kc(e){return pl(e,xP,!0)}function Xc(e){return pl(e,SP)}function Qc(e){return pl(e,SP,!0)}function Yc(e){return pl(e,kP)}function Zc(e){return pl(e,kP,!0)}function el(e){return pl(e,TP,!0)}function tl(e){return pl(e,DP)}function nl(e){return pl(e,DP,!0)}function rl(e){return pl(e,EP)}function il(e){return pl(e,PP)}function ol(e){return pl(e,NP)}function al(e){return pl(e,IP)}function sl(e){return pl(e,MP)}function cl(e){const t=pl(e,AP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function ll(e){let t=pl(e,AP);return!t&&fE(e)&&(t=T(jc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function ul(e){const t=ol(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=cl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(AE(e)){const t=T(e.members,TE);return t&&t.type}if(FE(e)||uP(e))return e.type}}function _l(e,t){var n;if(!$g(e))return u;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=qg(e,t);gn.assert(n.length<2||n[0]!==n[1]),r=M(n,(e=>pP(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function dl(e){return _l(e,!1)}function pl(e,t,n){return T(_l(e,n),t)}function fl(e,t){return dl(e).filter(t)}function ml(e,t){return dl(e).filter((e=>e.kind===t))}function gl(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>321===e.kind?e.text:function(e){const t=324===e.kind?"link":325===e.kind?"linkcode":"linkplain",n=e.name?qp(e.name):"",r=e.name&&(""===e.text||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function hl(e){if(mP(e)){if(CP(e.parent)){const t=Yg(e.parent);if(t&&p(t.tags))return M(t.tags,(e=>IP(e)?e.typeParameters:void 0))}return u}if(Lg(e))return gn.assert(320===e.parent.kind),M(e.parent.tags,(e=>IP(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(LA(e)&&e.typeParameters)return e.typeParameters;if(jm(e)){const t=Tv(e);if(t.length)return t;const n=ll(e);if(n&&FE(n)&&n.typeParameters)return n.typeParameters}return u}function yl(e){return e.constraint?e.constraint:IP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function vl(e){return 80===e.kind||81===e.kind}function bl(e){return 178===e.kind||177===e.kind}function xl(e){return nF(e)&&!!(64&e.flags)}function Sl(e){return rF(e)&&!!(64&e.flags)}function kl(e){return iF(e)&&!!(64&e.flags)}function Tl(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function Cl(e){return Tl(e)&&!wF(e)&&!!e.questionDotToken}function Dl(e){return Cl(e.parent)&&e.parent.expression===e}function wl(e){return!Tl(e.parent)||Cl(e.parent)||e!==e.parent.expression}function El(e){return 226===e.kind&&61===e.operatorToken.kind}function Fl(e){return EE(e)&&Xw(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Nl(e){return hA(e,8)}function Pl(e){return wF(e)&&!!(64&e.flags)}function Al(e){return 252===e.kind||251===e.kind}function Il(e){return 280===e.kind||279===e.kind}function Ol(e){return 348===e.kind||341===e.kind}function Ll(e){return e>=166}function Rl(e){return e>=0&&e<=165}function jl(e){return Rl(e.kind)}function Ml(e){return Ie(e,"pos")&&Ie(e,"end")}function Bl(e){return 9<=e&&e<=15}function Jl(e){return Bl(e.kind)}function zl(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function $l(e){return 15<=e&&e<=18}function ql(e){return $l(e.kind)}function Ul(e){const t=e.kind;return 17===t||18===t}function Vl(e){return xN(e)||CN(e)}function Wl(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Hl(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Gl(e){return Wl(e)||Hl(e)}function Kl(e){return void 0!==yc(e,Gl)}function Xl(e){return 11===e.kind||$l(e.kind)}function Ql(e){return Iw(e)||Xw(e)}function Yl(e){var t;return Xw(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Zl(e){var t;return Qw(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function eu(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function tu(e){return(hE(e)||Su(e))&&Qw(e.name)}function nu(e){return nF(e)&&Qw(e.name)}function ru(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function iu(e){return!!(31&tb(e))}function ou(e){return iu(e)||126===e||164===e||129===e}function au(e){return ru(e.kind)}function su(e){const t=e.kind;return 166===t||80===t}function cu(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function lu(e){const t=e.kind;return 80===t||206===t||207===t}function uu(e){return!!e&&mu(e.kind)}function _u(e){return!!e&&(mu(e.kind)||bE(e))}function du(e){return e&&fu(e.kind)}function pu(e){return 112===e.kind||97===e.kind}function fu(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function mu(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return fu(e)}}function gu(e){return QN(e)||sN(e)||OF(e)&&uu(e.parent)}function hu(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function yu(e){return e&&(263===e.kind||231===e.kind)}function vu(e){return e&&(177===e.kind||178===e.kind)}function bu(e){return hE(e)&&zv(e)}function xu(e){return jm(e)&&gC(e)?!(dg(e)&&vb(e.expression)||fg(e,!0)):e.parent&&yu(e.parent)&&hE(e)&&!zv(e)}function Su(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function ku(e){return au(e)||mE(e)}function Tu(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t||354===t}function Cu(e){return Tu(e)||hu(e)}function Du(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function wu(e){return Nx(e.kind)}function Eu(e){switch(e.kind){case 184:case 185:return!0}return!1}function Fu(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function Nu(e){const t=e.kind;return 209===t||210===t}function Pu(e){const t=e.kind;return 208===t||232===t}function Au(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Iu(e){return ZF(e)||fE(e)||Ru(e)||Mu(e)}function Ou(e){return Lu(e)||ju(e)}function Lu(e){switch(e.kind){case 206:case 210:return!0}return!1}function Ru(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function ju(e){switch(e.kind){case 207:case 209:return!0}return!1}function Mu(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return _b(e,!0)}function Bu(e){const t=e.kind;return 211===t||166===t||205===t}function Ju(e){const t=e.kind;return 211===t||166===t}function zu(e){return $u(e)||VT(e)}function $u(e){switch(e.kind){case 213:case 214:case 215:case 170:case 286:case 285:case 289:return!0;case 226:return 104===e.operatorToken.kind;default:return!1}}function qu(e){return 213===e.kind||214===e.kind}function Uu(e){const t=e.kind;return 228===t||15===t}function Vu(e){return Wu(Nl(e).kind)}function Wu(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function Hu(e){return Gu(Nl(e).kind)}function Gu(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return Wu(e)}}function Ku(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function Xu(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Jl(e)}}function Qu(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return Gu(e)}}(Nl(e).kind)}function Yu(e){const t=e.kind;return 216===t||234===t}function Zu(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Zu(e.statement,t)}return!1}function e_(e){return SN(e)||kN(e)}function t_(e){return X(e,e_)}function n_(e){return!(Op(e)||SN(e)||Lv(e,32)||fp(e))}function r_(e){return Op(e)||SN(e)||Lv(e,32)}function i_(e){return 249===e.kind||250===e.kind}function o_(e){return OF(e)||Qu(e)}function a_(e){return OF(e)}function s_(e){return eN(e)||Qu(e)}function c_(e){const t=e.kind;return 268===t||267===t||80===t}function l_(e){const t=e.kind;return 268===t||267===t}function u_(e){const t=e.kind;return 80===t||267===t}function __(e){const t=e.kind;return 275===t||274===t}function d_(e){return 267===e.kind||266===e.kind}function p_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function f_(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function m_(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function g_(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||353===e}function h_(e){return 168===e.kind?e.parent&&345!==e.parent.kind||jm(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||346===t||338===t||348===t||202===t;var t}function y_(e){return m_(e.kind)}function v_(e){return g_(e.kind)}function b_(e){const t=e.kind;return g_(t)||m_(t)||function(e){return 241===e.kind&&((void 0===e.parent||258!==e.parent.kind&&299!==e.parent.kind)&&!Vf(e))}(e)}function x_(e){const t=e.kind;return g_(t)||m_(t)||241===t}function S_(e){const t=e.kind;return 283===t||166===t||80===t}function k_(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function T_(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function C_(e){const t=e.kind;return 291===t||293===t}function D_(e){const t=e.kind;return 11===t||294===t}function w_(e){const t=e.kind;return 286===t||285===t}function E_(e){const t=e.kind;return 286===t||285===t||289===t}function F_(e){const t=e.kind;return 296===t||297===t}function N_(e){return e.kind>=309&&e.kind<=351}function P_(e){return 320===e.kind||319===e.kind||321===e.kind||U_(e)||A_(e)||fP(e)||mP(e)}function A_(e){return e.kind>=327&&e.kind<=351}function I_(e){return 178===e.kind}function O_(e){return 177===e.kind}function L_(e){if(!$g(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function R_(e){return!!e.type}function j_(e){return!!e.initializer}function M_(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function B_(e){return 291===e.kind||293===e.kind||Du(e)}function J_(e){return 183===e.kind||233===e.kind}var z_=1073741823;function $_(e){let t=z_;for(const n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?Y(ys(o,is(o,i.end+1,!1,!0)),hs(o,e.pos)):ys(o,is(o,e.pos,!1,!0));return X(a)&&H_(Te(a),t)}return!!f(n&&Tf(n,t),(e=>H_(e,t)))}var K_=[],X_="tslib",Q_=160,Y_=1e6;function Z_(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function ed(e,t){return P(e.declarations||u,(e=>e.kind===t))}function td(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function nd(e){return!!(33554432&e.flags)}function rd(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var id=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Ka(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:ct,decreaseIndent:ct,clear:()=>e=""}}();function od(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return sd(e,t,PO)}(e,t)}function ad(e,t){return sd(e,t,IO)}function sd(e,t,n){return e!==t&&n.some((n=>!xT(ZS(e,n),ZS(t,n))))}function cd(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(QN(e))return;e=e.parent}}function ld(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function ud(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function _d(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function dd(e){const t=id.getText();try{return e(id),id.getText()}finally{id.clear(),id.writeKeyword(t)}}function pd(e){return e.end-e.pos}function fd(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function md(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDependencies)&&e.alternateResult===t.alternateResult;var n,r}function gd(e){return e.resolvedModule}function hd(e){return e.resolvedTypeReferenceDirective}function yd(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===ES(t.getCompilerOptions())?[ha.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[ha.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(Wj+"@types/")?`@types/${FM(i)}`:i]]),c=s?sS(void 0,s[0],...s[1]):t.typesPackageExists(i)?sS(void 0,ha.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,FM(i)):t.packageBundlesTypes(i)?sS(void 0,ha.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):sS(void 0,ha.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,FM(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function vd(e){const t=cT(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,Uo(n.packageDirectory,"package.json")):sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Uo(n.packageDirectory,"package.json")):r?sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function bd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function xd(e){return`${bd(e)}@${e.version}${e.peerDependencies??""}`}function Sd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function kd(e,t,n,r){gn.assert(e.length===t.length);for(let i=0;i=0),Ua(t)[e]}function Nd(e){const t=Cd(e),n=Ga(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Pd(e,t){gn.assert(e>=0);const n=Ua(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(gn.assert(Qa(i.charCodeAt(t)));e<=t&&Qa(i.charCodeAt(t));)t--;return t}}function Ad(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Id(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Od(e){return!Id(e)}function Ld(e,t){return pE(e)?t===e.expression:bE(e)?t===e.modifiers:gE(e)?t===e.initializer:hE(e)?t===e.questionToken&&bu(e):HN(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Rd(e.modifiers,t,ku):GN(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Rd(e.modifiers,t,ku):vE(e)?t===e.exclamationToken:xE(e)?t===e.typeParameters||t===e.type||Rd(e.typeParameters,t,pE):SE(e)?t===e.typeParameters||Rd(e.typeParameters,t,pE):kE(e)?t===e.typeParameters||t===e.type||Rd(e.typeParameters,t,pE):!!lN(e)&&(t===e.modifiers||Rd(e.modifiers,t,ku))}function Rd(e,t,n){return!(!e||nt(t)||!n(t))&&E(e,t)}function jd(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${Ga(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Be(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function Hd(e,t,n){if(Id(e))return e.pos;if(N_(e)||12===e.kind)return is((t??Cd(e)).text,e.pos,!1,!0);if(n&&L_(e))return Hd(e.jsDoc[0],t);if(352===e.kind){t??(t=Cd(e));const r=ve(UP(e,t));if(r)return Hd(r,t,n)}return is((t??Cd(e)).text,e.pos,!1,!1,Jm(e))}function Gd(e,t){const n=!Id(e)&&mI(e)?C(e.modifiers,mE):void 0;return n?is((t||Cd(e)).text,n.end):Hd(e,t)}function Kd(e,t){const n=!Id(e)&&mI(e)&&e.modifiers?Te(e.modifiers):void 0;return n?is((t||Cd(e)).text,n.end):Hd(e,t)}function Xd(e,t,n=!1){return tp(e.text,t,n)}function Qd(e){return!!(kN(e)&&e.exportClause&&vN(e.exportClause)&&ep(e.exportClause.name))}function Yd(e){return 11===e.kind?e.text:Sc(e.escapedText)}function Zd(e){return 11===e.kind?xc(e.text):e.escapedText}function ep(e){return"default"===(11===e.kind?e.text:e.escapedText)}function tp(e,t,n=!1){if(Id(t))return"";let r=e.substring(n?t.pos:is(e,t.pos),t.end);return function(e){return!!yc(e,ZN)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function np(e,t=!1){return Xd(Cd(e),e,t)}function rp(e){return e.pos}function ip(e,t){return Fe(e,t,rp,Tt)}function op(e){const t=e.emitNode;return t&&t.flags||0}function ap(e){const t=e.emitNode;return t&&t.internalFlags||0}var sp=ht((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:u})),AsyncIterator:new Map(Object.entries({es2015:u})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:u})),AsyncIterableIterator:new Map(Object.entries({es2018:u})),AsyncGenerator:new Map(Object.entries({es2018:u})),AsyncGeneratorFunction:new Map(Object.entries({es2018:u})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:u,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:u})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:u,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:u,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),cp=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(cp||{});function lp(e,t,n){if(t&&function(e,t){if(sy(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(Pw(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!Aw(e)}(e,n))return Xd(t,e);switch(e.kind){case 11:{const t=2&n?Ly:1&n||16777216&op(e)?Ey:Ny;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&op(e)?Ey:Ny,r=e.rawText??vy(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return gn.fail(`Literal kind '${e.kind}' not accounted for.`)}function up(e){return it(e)?`"${Ey(e)}"`:""+e}function _p(e){return jo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function dp(e){return!!(7&pc(e))||pp(e)}function pp(e){const t=oy(e);return 260===t.kind&&299===t.parent.kind}function fp(e){return aN(e)&&(11===e.name.kind||vp(e))}function mp(e){return aN(e)&&11===e.name.kind}function gp(e){return aN(e)&&Iw(e.name)}function hp(e){return function(e){return!!e&&267===e.kind&&!e.body}(e.valueDeclaration)}function yp(e){return 307===e.kind||267===e.kind||_u(e)}function vp(e){return!!(2048&e.flags)}function bp(e){return fp(e)&&xp(e)}function xp(e){switch(e.parent.kind){case 307:return XI(e.parent);case 268:return fp(e.parent.parent)&&QN(e.parent.parent.parent)&&!XI(e.parent.parent.parent)}return!1}function Sp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(bp(e)||aN(e)&&vp(e))))}function kp(e,t){return XI(e)||(1===(n=wS(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Tp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!HS(t,"alwaysStrict")&&!_A(e.statements)&&!XI(e)&&!NS(t))}function Cp(e){return!!(33554432&e.flags)||Lv(e,128)}function Dp(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!_u(t)}return!1}function wp(e){switch(gn.type(e),e.kind){case 338:case 346:case 323:return!0;default:return Ep(e)}}function Ep(e){switch(gn.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Fp(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Np(e){return Fp(e)||Um(e)}function Pp(e){return Fp(e)||Hm(e)}function Ap(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Ip(e){return Op(e)||aN(e)||GE(e)||gf(e)}function Op(e){return Fp(e)||kN(e)}function Lp(e){return yc(e.parent,(e=>!!(1&QM(e))))}function Rp(e){return yc(e.parent,(e=>Dp(e,e.parent)))}function jp(e,t){let n=Rp(e);for(;n;)t(n),n=Rp(n)}function Mp(e){return e&&0!==pd(e)?np(e):"(Missing)"}function Bp(e){return e.declaration?Mp(e.declaration.parameters[0].name):void 0}function Jp(e){return 167===e.kind&&!qh(e.expression)}function zp(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return xc(e.text);case 167:return qh(e.expression)?xc(e.expression.text):void 0;case 295:return _C(e);default:return gn.assertNever(e)}}function $p(e){return gn.checkDefined(zp(e))}function qp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===pd(e)?kc(e):np(e);case 166:return qp(e.left)+"."+qp(e.right);case 211:return Xw(e.name)||Qw(e.name)?qp(e.expression)+"."+qp(e.name):gn.assertNever(e.name);case 311:return qp(e.left)+"#"+qp(e.right);case 295:return qp(e.namespace)+":"+qp(e.name);default:return gn.assertNever(e)}}function Up(e,t,...n){return Wp(Cd(e),e,t,...n)}function Vp(e,t,n,...r){const i=is(e.text,t.pos);return rS(e,i,t.end-i,n,...r)}function Wp(e,t,n,...r){const i=rf(e,t);return rS(e,i.start,i.length,n,...r)}function Hp(e,t,n,r){const i=rf(e,t);return Xp(e,i.start,i.length,n,r)}function Gp(e,t,n,r){const i=is(e.text,t.pos);return Xp(e,i,t.end-i,n,r)}function Kp(e,t,n){gn.assertGreaterThanOrEqual(t,0),gn.assertGreaterThanOrEqual(n,0),gn.assertLessThanOrEqual(t,e.length),gn.assertLessThanOrEqual(t+n,e.length)}function Xp(e,t,n,r,i){return Kp(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function Qp(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Yp(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Zp(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function ef(e,...t){return{code:e.code,messageText:iS(e,...t)}}function tf(e,t){const n=ks(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),Zs(n.getTokenStart(),n.getTokenEnd())}function nf(e,t){const n=ks(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function rf(e,t){let n=t;switch(t.kind){case 307:{const t=is(e.text,0,!1);return t===e.text.length?Ys(0,0):tf(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=is(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=Ga(e,t.body.pos),{line:i}=Ga(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 253:case 229:return tf(e,is(e.text,t.pos));case 238:return tf(e,is(e.text,t.expression.end));case 350:return tf(e,is(e.text,t.tagName.pos));case 176:{const n=t,r=is(e.text,n.pos),i=ks(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return Zs(r,i.getTokenEnd())}}if(void 0===n)return tf(e,t.pos);gn.assert(!pP(n));const r=Id(n),i=r||Ow(t)?n.pos:is(e.text,n.pos);return r?(gn.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),gn.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(gn.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),gn.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Zs(i,n.end)}function of(e){return 307===e.kind&&!af(e)}function af(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function sf(e){return 6===e.scriptKind}function cf(e){return!!(4096&_c(e))}function lf(e){return!(!(8&_c(e))||ac(e,e.parent))}function uf(e){return 6==(7&pc(e))}function _f(e){return 4==(7&pc(e))}function df(e){return 2==(7&pc(e))}function pf(e){const t=7&pc(e);return 2===t||4===t||6===t}function ff(e){return 1==(7&pc(e))}function mf(e){return 213===e.kind&&108===e.expression.kind}function gf(e){return 213===e.kind&&102===e.expression.kind}function hf(e){return EF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function yf(e){return GE(e)&&HE(e.argument)&&Iw(e.argument.literal)}function vf(e){return 244===e.kind&&11===e.expression.kind}function bf(e){return!!(2097152&op(e))}function xf(e){return bf(e)&&tN(e)}function Sf(e){return Xw(e.name)&&!e.initializer}function kf(e){return bf(e)&&LF(e)&&k(e.declarationList.declarations,Sf)}function Tf(e,t){return 12!==e.kind?hs(t.text,e.pos):void 0}function Cf(e,t){return P(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?Y(ys(t,e.pos),hs(t,e.pos)):hs(t,e.pos),(n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3)))}var Df=/^\/\/\/\s*/,wf=/^\/\/\/\s*/,Ef=/^\/\/\/\s*/,Ff=/^\/\/\/\s*/,Nf=/^\/\/\/\s*/,Pf=/^\/\/\/\s*/;function Af(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return If(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),gn.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return If(t);case 168:case 345:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return E(t.typeArguments,e)}}}return!1}function If(e){return jP(e.parent)||gP(e.parent)||VN(e.parent)&&!pb(e)}function Of(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return qI(n,e)}}(e)}function Lf(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(uu(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else Af(n)||qI(n,e)}}(e)}function Rf(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?Ce(e.typeArguments):void 0}function jf(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Mf(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Bf(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Jf(e){return!!jm(e)&&(tF(e.parent)&&hF(e.parent.parent)&&2===cg(e.parent.parent)||zf(e.parent))}function zf(e){return!!jm(e)&&hF(e)&&1===cg(e)}function $f(e){return(ZF(e)?df(e)&&Xw(e.name)&&Bf(e):hE(e)?$v(e)&&jv(e):gE(e)&&$v(e))||zf(e)}function qf(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Uf(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function Vf(e){return e&&241===e.kind&&uu(e.parent)}function Wf(e){return e&&174===e.kind&&210===e.parent.kind}function Hf(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function Gf(e){return e&&1===e.kind}function Kf(e){return e&&0===e.kind}function Xf(e,t,n,r){return f(null==e?void 0:e.properties,(e=>{if(!HN(e))return;const i=zp(e.name);return t===i||r&&r===i?n(e):void 0}))}function Qf(e,t,n){return Xf(e,t,(e=>eF(e.initializer)?T(e.initializer.elements,(e=>Iw(e)&&e.text===n)):void 0))}function Yf(e){if(e&&e.statements.length)return at(e.statements[0].expression,tF)}function Zf(e,t,n){return em(e,t,(e=>eF(e.initializer)?T(e.initializer.elements,(e=>Iw(e)&&e.text===n)):void 0))}function em(e,t,n){return Xf(Yf(e),t,n)}function tm(e){return yc(e.parent,uu)}function nm(e){return yc(e.parent,du)}function rm(e){return yc(e.parent,yu)}function im(e){return yc(e.parent,(e=>yu(e)||uu(e)?"quit":bE(e)))}function om(e){return yc(e.parent,_u)}function am(e){const t=yc(e.parent,(e=>yu(e)?"quit":mE(e)));return t&&yu(t.parent)?rm(t.parent):rm(t??e)}function sm(e,t,n){for(gn.assert(307!==e.kind);;){if(!(e=e.parent))return gn.fail();switch(e.kind){case 167:if(n&&yu(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&hu(e.parent.parent)?e=e.parent.parent:hu(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function cm(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function lm(e){return Xw(e)&&(nN(e.parent)||tN(e.parent))&&e.parent.name===e&&(e=e.parent),QN(sm(e,!0,!1))}function um(e){const t=sm(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function _m(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&hu(e.parent.parent)?e=e.parent.parent:hu(e.parent)&&(e=e.parent)}}}function dm(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function pm(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function fm(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function mm(e){var t;return!!e&&ZF(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function gm(e){return!!e&&(GN(e)||HN(e))&&hF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function hm(e){switch(e.kind){case 183:return e.typeName;case 233:return fb(e.expression)?e.expression:void 0;case 80:case 166:return e}}function ym(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;case 289:return e;default:return e.expression}}function vm(e,t,n,r){if(e&&Nc(t)&&Qw(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?nN(n):yu(n)&&!Bv(t)&&!Jv(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?nN(n):yu(n));case 169:return!!e&&void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&fv(n)!==t&&void 0!==r&&263===r.kind}return!1}function bm(e,t,n,r){return qv(t)&&vm(e,t,n,r)}function xm(e,t,n,r){return bm(e,t,n,r)||Sm(e,t,n)}function Sm(e,t,n){switch(t.kind){case 263:return X(t.members,(r=>xm(e,r,t,n)));case 231:return!e&&X(t.members,(r=>xm(e,r,t,n)));case 174:case 178:case 176:return X(t.parameters,(r=>bm(e,r,t,n)));default:return!1}}function km(e,t){if(bm(e,t))return!0;const n=_v(t);return!!n&&Sm(e,n,t)}function Tm(e,t,n){let r;if(vu(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=bv(n.members,t),a=qv(e)?e:i&&qv(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else vE(t)&&(r=t.parameters);if(bm(e,t,n))return!0;if(r)for(const i of r)if(!mv(i)&&bm(e,i,t,n))return!0;return!1}function Cm(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Cm(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function Dm(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function wm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!VN(e.parent)&&!gP(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||U_(e.parent)||eP(e.parent)||tP(e.parent)||Dm(e);case 311:for(;tP(e.parent);)e=e.parent;return 186===e.parent.kind||U_(e.parent)||eP(e.parent)||tP(e.parent)||Dm(e);case 81:return hF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||U_(e.parent)||eP(e.parent)||tP(e.parent)||Dm(e))return!0;case 9:case 10:case 11:case 15:case 110:return Em(e);default:return!1}}function Em(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Af(t);case 304:return t.objectAssignmentInitializer===e;default:return wm(t)}}function Fm(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function Nm(e){return vN(e)&&!!e.parent.moduleSpecifier}function Pm(e){return 271===e.kind&&283===e.moduleReference.kind}function Am(e){return gn.assert(Pm(e)),e.moduleReference.expression}function Im(e){return Um(e)&&Ox(e.initializer).arguments[0]}function Om(e){return 271===e.kind&&283!==e.moduleReference.kind}function Lm(e){return 307===(null==e?void 0:e.kind)}function Rm(e){return jm(e)}function jm(e){return!!e&&!!(524288&e.flags)}function Mm(e){return!!e&&!!(134217728&e.flags)}function Bm(e){return!sf(e)}function Jm(e){return!!e&&!!(16777216&e.flags)}function zm(e){return EE(e)&&Xw(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function $m(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||q_(i)}function qm(e){return Wm(e,!1)}function Um(e){return Wm(e,!0)}function Vm(e){return ZE(e)&&Um(e.parent.parent)}function Wm(e,t){return ZF(e)&&!!e.initializer&&$m(t?Ox(e.initializer):e.initializer,!0)}function Hm(e){return LF(e)&&e.declarationList.declarations.length>0&&k(e.declarationList.declarations,(e=>qm(e)))}function Gm(e){return 39===e||34===e}function Km(e,t){return 34===Xd(t,e).charCodeAt(0)}function Xm(e){return hF(e)||Px(e)||Xw(e)||iF(e)}function Qm(e){return jm(e)&&e.initializer&&hF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&fb(e.name)&&rg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Ym(e){const t=Qm(e);return t&&eg(t,vb(e.name))}function Zm(e){if(e&&e.parent&&hF(e.parent)&&64===e.parent.operatorToken.kind){const t=vb(e.parent.left);return eg(e.parent.right,t)||function(e,t,n){const r=hF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&eg(t.right,n);if(r&&rg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&iF(e)&&lg(e)){const t=function(e,t){return f(e.properties,(e=>HN(e)&&Xw(e.name)&&"value"===e.name.escapedText&&e.initializer&&eg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function eg(e,t){if(iF(e)){const t=ph(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||tF(e)&&(0===e.properties.length||t)?e:void 0}function tg(e){const t=ZF(e.parent)?e.parent.name:hF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&eg(e.right,vb(t))&&fb(t)&&rg(t,e.left)}function ng(e){if(hF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!hF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&Xw(t.left))return t.left}else if(ZF(e.parent))return e.parent.name}function rg(e,t){return Gh(e)&&Gh(t)?Kh(e)===Kh(t):vl(e)&&ug(t)&&(110===t.expression.kind||Xw(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?rg(e,mg(t)):!(!ug(e)||!ug(t))&&hg(e)===hg(t)&&rg(e.expression,t.expression)}function ig(e){for(;_b(e,!0);)e=e.right;return e}function og(e){return Xw(e)&&"exports"===e.escapedText}function ag(e){return Xw(e)&&"module"===e.escapedText}function sg(e){return(nF(e)||_g(e))&&ag(e.expression)&&"exports"===hg(e)}function cg(e){const t=function(e){if(iF(e)){if(!lg(e))return 0;const t=e.arguments[0];return og(t)||sg(t)?8:dg(t)&&"prototype"===hg(t)?9:7}return 64!==e.operatorToken.kind||!Px(e.left)||function(e){return pF(e)&&Pw(e.expression)&&"0"===e.expression.text}(ig(e))?0:fg(e.left.expression,!0)&&"prototype"===hg(e.left)&&tF(vg(e))?6:yg(e.left)}(e);return 5===t||jm(e)?t:0}function lg(e){return 3===p(e.arguments)&&nF(e.expression)&&Xw(e.expression.expression)&&"Object"===kc(e.expression.expression)&&"defineProperty"===kc(e.expression.name)&&qh(e.arguments[1])&&fg(e.arguments[0],!0)}function ug(e){return nF(e)||_g(e)}function _g(e){return rF(e)&&qh(e.argumentExpression)}function dg(e,t){return nF(e)&&(!t&&110===e.expression.kind||Xw(e.name)&&fg(e.expression,!0))||pg(e,t)}function pg(e,t){return _g(e)&&(!t&&110===e.expression.kind||fb(e.expression)||dg(e.expression,!0))}function fg(e,t){return fb(e)||dg(e,t)}function mg(e){return nF(e)?e.name:e.argumentExpression}function gg(e){if(nF(e))return e.name;const t=ph(e.argumentExpression);return Pw(t)||q_(t)?t:e}function hg(e){const t=gg(e);if(t){if(Xw(t))return t.escapedText;if(q_(t)||Pw(t))return xc(t.text)}}function yg(e){if(110===e.expression.kind)return 4;if(sg(e))return 2;if(fg(e.expression,!0)){if(vb(e.expression))return 3;let t=e;for(;!Xw(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===hg(t))&&dg(e))return 1;if(fg(e,!0)||rF(e)&&Wh(e))return 5}return 0}function vg(e){for(;hF(e.right);)e=e.right;return e.right}function bg(e){return hF(e)&&3===cg(e)}function xg(e){return jm(e)&&e.parent&&244===e.parent.kind&&(!rF(e)||_g(e))&&!!cl(e.parent)}function Sg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||jm(t)||33554432&n.flags)&&Xm(n)&&!Xm(t)||n.kind!==t.kind&&function(e){return aN(e)||Xw(e)}(n))&&(e.valueDeclaration=t)}function kg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||ZF(t)&&t.initializer&&uu(t.initializer)}function Tg(e){switch(null==e?void 0:e.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function Cg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=yc(e.initializer,(e=>$m(e,!0))))?void 0:t.arguments[0];case 272:case 278:case 351:return at(e.moduleSpecifier,q_);case 271:return at(null==(n=at(e.moduleReference,NN))?void 0:n.expression,q_);case 273:case 280:return at(e.parent.moduleSpecifier,q_);case 274:case 281:return at(e.parent.parent.moduleSpecifier,q_);case 276:return at(e.parent.parent.parent.moduleSpecifier,q_);case 205:return yf(e)?e.argument.literal:void 0;default:gn.assertNever(e)}}function Dg(e){return wg(e)||gn.failBadSyntaxKind(e.parent)}function wg(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return gf(e.parent)||$m(e.parent,!1)?e.parent:void 0;case 201:if(!Iw(e))break;return at(e.parent.parent,GE);default:return}}function Eg(e,t){return!!t.rewriteRelativeImportExtensions&&wo(e)&&!iO(e)&&$k(e)}function Fg(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return yf(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return gn.assertNever(e)}}function Ng(e){switch(e.kind){case 272:return e.importClause&&at(e.importClause.namedBindings,yN);case 271:return e;case 278:return e.exportClause&&at(e.exportClause,vN);default:return gn.assertNever(e)}}function Pg(e){return!(272!==e.kind&&351!==e.kind||!e.importClause||!e.importClause.name)}function Ag(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=yN(e.namedBindings)?t(e.namedBindings):f(e.namedBindings.elements,t);if(n)return n}}function Ig(e){switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function Og(e){const t=uP(e)?ve(e.parameters):void 0,n=at(t&&t.name,Xw);return!!n&&"new"===n.escapedText}function Lg(e){return 346===e.kind||338===e.kind||340===e.kind}function Rg(e){return Lg(e)||iN(e)}function jg(e){return jF(e)&&hF(e.expression)&&0!==cg(e.expression)&&hF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Mg(e){switch(e.kind){case 243:const t=Bg(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Bg(e){return LF(e)?ve(e.declarationList.declarations):void 0}function Jg(e){return aN(e)&&e.body&&267===e.body.kind?e.body:void 0}function zg(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function $g(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function qg(e,t){let n;Mf(e)&&j_(e)&&L_(e.initializer)&&(n=de(n,Ug(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(L_(r)&&(n=de(n,Ug(e,r.jsDoc))),169===r.kind){n=de(n,(t?Mc:jc)(r));break}if(168===r.kind){n=de(n,(t?zc:Jc)(r));break}r=Vg(r)}return n||u}function Ug(e,t){const n=Te(t);return M(t,(t=>{if(t===n){const n=P(t.tags,(t=>function(e,t){return!((AP(t)||MP(t))&&t.parent&&pP(t.parent)&&cF(t.parent.parent)&&t.parent.parent!==e)}(e,t)));return t.tags===n?[t]:n}return P(t.tags,CP)}))}function Vg(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Jg(t)||_b(e)?t:t.parent&&(Bg(t.parent)===e||_b(t))?t.parent:t.parent&&t.parent.parent&&(Bg(t.parent.parent)||Mg(t.parent.parent)===e||jg(t.parent.parent))?t.parent.parent:void 0}function Wg(e){if(e.symbol)return e.symbol;if(!Xw(e.name))return;const t=e.name.escapedText,n=Kg(e);if(!n)return;const r=T(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Hg(e){if(pP(e.parent)&&e.parent.tags){const t=T(e.parent.tags,Lg);if(t)return t}return Kg(e)}function Gg(e){return fl(e,CP)}function Kg(e){const t=Xg(e);if(t)return gE(t)&&t.type&&uu(t.type)?t.type:uu(t)?t:void 0}function Xg(e){const t=Qg(e);if(t)return jg(t)||function(e){return jF(e)&&hF(e.expression)&&64===e.expression.operatorToken.kind?ig(e.expression):void 0}(t)||Mg(t)||Bg(t)||Jg(t)||t}function Qg(e){const t=Yg(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===ke(n.jsDoc)?n:void 0}function Yg(e){return yc(e.parent,pP)}function Zg(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&T(n,(e=>e.name.escapedText===t))}function eh(e){return!!e.typeArguments}var th=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(th||{});function nh(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return cb(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 249:case 250:const o=t;return o.initializer===e?o:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function rh(e){const t=nh(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||ib(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function ih(e){return!!nh(e)}function oh(e){const t=nh(e);return!!t&&_b(t,!0)&&function(e){const t=ph(e.right);return 226===t.kind&&qA(t.operatorToken.kind)}(t)}function ah(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function sh(e){return lF(e)||uF(e)||Su(e)||tN(e)||xE(e)}function ch(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function lh(e){return ch(e,196)}function uh(e){return ch(e,217)}function _h(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function dh(e){for(;$E(e);)e=e.type;return e}function ph(e,t){return hA(e,t?-2147483647:1)}function fh(e){return(211===e.kind||212===e.kind)&&(e=uh(e.parent))&&220===e.kind}function mh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function gh(e){return!QN(e)&&!Fu(e)&&h_(e.parent)&&e.parent.name===e}function hh(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(dE(t))return t.parent;case 80:if(h_(t))return t.name===e?t:void 0;if(_E(t)){const e=t.parent;return FP(e)&&e.name===t?e:void 0}{const n=t.parent;return hF(n)&&0!==cg(n)&&(n.left.symbol||n.symbol)&&Ac(n)===e?n:void 0}case 81:return h_(t)&&t.name===e?t:void 0;default:return}}function yh(e){return qh(e)&&167===e.parent.kind&&h_(e.parent.parent)}function vh(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function bh(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return bh(e)}}function xh(e){return fb(e)||SF(e)}function Sh(e){return xh(kh(e))}function kh(e){return SN(e)?e.expression:e.right}function Th(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function Ch(e){const t=Dh(e);if(t&&jm(e)){const t=qc(e);if(t)return t.class}return t}function Dh(e){const t=Nh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function wh(e){if(jm(e))return Uc(e).map((e=>e.class));{const t=Nh(e.heritageClauses,119);return null==t?void 0:t.types}}function Eh(e){return rN(e)?Fh(e)||u:yu(e)&&Y(ln(Ch(e)),wh(e))||u}function Fh(e){const t=Nh(e.heritageClauses,96);return t?t.types:void 0}function Nh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Ph(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ah(e){return 83<=e&&e<=165}function Ih(e){return 19<=e&&e<=79}function Oh(e){return Ah(e)||Ih(e)}function Lh(e){return 128<=e&&e<=165}function Rh(e){return Ah(e)&&!Lh(e)}function jh(e){const t=ja(e);return void 0!==t&&Rh(t)}function Mh(e){const t=Tc(e);return!!t&&!Lh(t)}function Bh(e){return 2<=e&&e<=7}var Jh=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Jh||{});function zh(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Lv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function $h(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&Lv(e,1024)}return!1}function qh(e){return q_(e)||Pw(e)}function Uh(e){return mF(e)&&(40===e.operator||41===e.operator)&&Pw(e.operand)}function Vh(e){const t=Ac(e);return!!t&&Wh(t)}function Wh(e){if(167!==e.kind&&212!==e.kind)return!1;const t=rF(e)?ph(e.argumentExpression):e.expression;return!qh(t)&&!Uh(t)}function Hh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return xc(e.text);case 167:const t=e.expression;return qh(t)?xc(t.text):Uh(t)?41===t.operator?Ra(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return _C(e);default:return gn.assertNever(e)}}function Gh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Kh(e){return vl(e)?kc(e):$N(e)?dC(e):e.text}function Xh(e){return vl(e)?e.escapedText:$N(e)?_C(e):xc(e.text)}function Qh(e,t){return`__#${YB(e)}@${t}`}function Yh(e){return en(e.escapedName,"__@")}function Zh(e){return en(e.escapedName,"__#")}function ey(e,t){switch((e=hA(e)).kind){case 231:if(jz(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function ty(e){switch(e.kind){case 303:return!function(e){return Xw(e)?"__proto__"===kc(e):Iw(e)&&"__proto__"===e.text}(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Xw(e.name)&&!!e.initializer;case 169:case 208:return Xw(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Xw(e.left)}break;case 277:return!0}return!1}function ny(e,t){if(!ty(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return ey(e.initializer,t);case 304:return ey(e.objectAssignmentInitializer,t);case 226:return ey(e.right,t);case 277:return ey(e.expression,t)}}function ry(e){return"push"===e.escapedText||"unshift"===e.escapedText}function iy(e){return 169===oy(e).kind}function oy(e){for(;208===e.kind;)e=e.parent.parent;return e}function ay(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||307===t}function sy(e){return rT(e.pos)||rT(e.end)}var cy=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(cy||{});function ly(e){const t=dy(e),n=214===e.kind&&void 0!==e.arguments;return uy(e.kind,t,n)}function uy(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function _y(e){const t=dy(e),n=214===e.kind&&void 0!==e.arguments;return fy(e.kind,t,n)}function dy(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}var py=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(py||{});function fy(e,t,n){switch(e){case 356:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return my(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function my(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function gy(e){return P(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function hy(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),ie(t,i.file.fileName,Nt))):(r&&(r=!1,e=e.slice()),o=e),ie(o,i,_S,fS)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Fe(r,t,dt,_S);return i>=0?r[i]:~i>0&&fS(t,r[~i-1])?r[~i-1]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=B(t,(e=>n.get(e)));return e.length?(i.unshift(...e),i):i}}}var yy=/\$\{/g;function vy(e){return e.replace(yy,"\\${")}function by(e){return!!(2048&(e.templateFlags||0))}function xy(e){return e&&!!(Rw(e)?by(e):by(e.head)||X(e.templateSpans,(e=>by(e.literal))))}var Sy=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,ky=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,Ty=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,Cy=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Dy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function wy(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Cy.get(e)||Dy(e.charCodeAt(0))}function Ey(e,t){const n=96===t?Ty:39===t?ky:Sy;return e.replace(n,wy)}var Fy=/[^\u0000-\u007F]/g;function Ny(e,t){return e=Ey(e,t),Fy.test(e)?e.replace(Fy,(e=>Dy(e.charCodeAt(0)))):e}var Py=/["\u0000-\u001f\u2028\u2029\u0085]/g,Ay=/['\u0000-\u001f\u2028\u2029\u0085]/g,Iy=new Map(Object.entries({'"':""","'":"'"}));function Oy(e){return 0===e.charCodeAt(0)?"�":Iy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ly(e,t){const n=39===t?Ay:Py;return e.replace(n,Oy)}function Ry(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function jy(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var My=[""," "];function By(e){const t=My[1];for(let n=My.length;n<=e;n++)My.push(My[n-1]+t);return My[e]}function Jy(){return My[1].length}function zy(e){var t,n,r,i,o,a=!1;function s(e){const n=za(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+Te(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=By(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function u(){t="",n=0,r=!0,i=0,o=0,a=!1}return u(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*Jy():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&Ka(t.charCodeAt(t.length-1)),clear:u,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function $y(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function qy(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Uy(e){return Xt(qy(e))}function Vy(e,t,n){return t.moduleName||Gy(e,t.fileName,n&&n.fileName)}function Wy(e,t){return e.getCanonicalFileName(Ho(t,e.getCurrentDirectory()))}function Hy(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=Fg(n);return!i||!q_(i)||wo(i.text)||Wy(e,r.path).includes(Wy(e,Yo(e.getCommonSourceDirectory())))?Vy(e,r):void 0}function Gy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=Xo(n?Ro(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=Xk(pa(i,Ho(t,e.getCurrentDirectory()),i,r,!1));return n?Zo(o):o}function Ky(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?Xk(iv(e,t,r.outDir)):Xk(e),i+n}function Xy(e,t){return Qy(e,t.getCompilerOptions(),t)}function Qy(e,t,n){const r=t.declarationDir||t.outDir,i=r?ov(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e))):e,o=Yy(i);return Xk(i)+o}function Yy(e){return Po(e,[".mjs",".mts"])?".d.mts":Po(e,[".cjs",".cts"])?".d.cts":Po(e,[".json"])?".d.json.ts":".d.ts"}function Zy(e){return Po(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Po(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Po(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function ev(e,t,n,r){return n?Vo(r(),ua(n,e,t)):e}function tv(e,t){var n;if(e.paths)return e.baseUrl??gn.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function nv(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=wS(r),i=r.emitDeclarationOnly||2===t||4===t;return P(e.getSourceFiles(),(t=>(i||!XI(t))&&rv(t,e,n)))}return P(void 0===t?e.getSourceFiles():[t],(t=>rv(t,e,n)))}function rv(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Rm(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!sf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=Ho(rq(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=ov(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===aa(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function iv(e,t,n){return ov(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function ov(e,t,n,r,i){let o=Ho(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,Uo(t,o)}function av(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(oS(ha.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function sv(e,t,n){e.length>Lo(e)&&!n(e)&&(sv(Ro(e),t,n),t(e))}function cv(e,t,n,r,i,o){try{r(e,t,n)}catch{sv(Ro(Go(e)),i,o),r(e,t,n)}}function lv(e,t){return Wa(Ua(e),t)}function uv(e,t){return Wa(e,t)}function _v(e){return T(e.members,(e=>xE(e)&&Od(e.body)))}function dv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&mv(e.parameters[0]);return e.parameters[t?1:0]}}function pv(e){const t=dv(e);return t&&t.type}function fv(e){if(e.parameters.length&&!mP(e)){const t=e.parameters[0];if(mv(t))return t}}function mv(e){return gv(e.name)}function gv(e){return!!e&&80===e.kind&&vv(e)}function hv(e){return!!yc(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function yv(e){if(!gv(e))return!1;for(;_E(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function vv(e){return"this"===e.escapedText}function bv(e,t){let n,r,i,o;return Vh(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:gn.fail("Accessor has wrong kind")):f(e,(e=>{vu(e)&&Rv(e)===Rv(t)&&Hh(e.name)===Hh(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function xv(e){if(!jm(e)&&tN(e))return;if(iN(e))return;const t=e.type;return t||!jm(e)?t:Ol(e)?e.typeExpression&&e.typeExpression.type:ll(e)}function Sv(e){return e.type}function kv(e){return mP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(jm(e)?ul(e):void 0)}function Tv(e){return M(dl(e),(e=>function(e){return IP(e)&&!(320===e.parent.kind&&(e.parent.tags.some(Lg)||e.parent.tags.some(CP)))}(e)?e.typeParameters:void 0))}function Cv(e){const t=dv(e);return t&&xv(t)}function Dv(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&uv(e,n)!==uv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}function wv(e,t,n,r){n!==r&&uv(e,n)!==uv(e,r)&&t.writeLine()}function Ev(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=P(hs(e,i.pos),(function(t){return Vd(e,t.pos)}))):s=hs(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=uv(t,l.end);if(uv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=uv(t,Te(a).end);uv(t,is(e,i.pos))>=l+2&&(Dv(t,n,i,s),function(e,t,n,r,i,o,a,s){if(r.length>0){let i=!1;for(const o of r)i&&(n.writeSpace(" "),i=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():i=!0;i&&o&&n.writeSpace(" ")}}(e,t,n,a,0,!0,o,r),c={nodePos:i.pos,detachedCommentEndPos:Te(a).end})}}return c}function Fv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Va(t,r),s=t.length;let c;for(let l=r,u=a.line;l0){let e=i%Jy();const t=By((i-e)/Jy());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Nv(e,i,n,o,l,_),l=_}}else n.writeComment(e.substring(r,i))}function Nv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Pv(e,t,n){let r=0;for(;t=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Zv(e)),n||t&&jm(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|Xv(e)),Qv(e.modifierFlagsCache)):function(e){return 65535&e}(e.modifierFlagsCache))}function Hv(e){return Wv(e,!0)}function Gv(e){return Wv(e,!0,!0)}function Kv(e){return Wv(e,!1)}function Xv(e){let t=0;return e.parent&&!fE(e)&&(jm(e)&&(Hc(e)&&(t|=8388608),Kc(e)&&(t|=16777216),Qc(e)&&(t|=33554432),Zc(e)&&(t|=67108864),el(e)&&(t|=134217728)),nl(e)&&(t|=65536)),t}function Qv(e){return 131071&e|(260046848&e)>>>23}function Yv(e){return Zv(e)|function(e){return Qv(Xv(e))}(e)}function Zv(e){let t=mI(e)?eb(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function eb(e){let t=0;if(e)for(const n of e)t|=tb(n.kind);return t}function tb(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function nb(e){return 57===e||56===e}function rb(e){return nb(e)||54===e}function ib(e){return 76===e||77===e||78===e}function ob(e){return hF(e)&&ib(e.operatorToken.kind)}function ab(e){return nb(e)||61===e}function sb(e){return hF(e)&&ab(e.operatorToken.kind)}function cb(e){return e>=64&&e<=79}function lb(e){const t=ub(e);return t&&!t.isImplements?t.class:void 0}function ub(e){if(TF(e)){if(VN(e.parent)&&yu(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(gP(e.parent)){const t=Xg(e.parent);if(t&&yu(t))return{class:t,isImplements:!1}}}}function _b(e,t){return hF(e)&&(t?64===e.operatorToken.kind:cb(e.operatorToken.kind))&&Vu(e.left)}function db(e){if(_b(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function pb(e){return void 0!==lb(e)}function fb(e){return 80===e.kind||hb(e)}function mb(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function gb(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&gb(e.expression)||217===e.kind&&gb(e.expression)}function hb(e){return nF(e)&&Xw(e.name)&&fb(e.expression)}function yb(e){if(nF(e)){const t=yb(e.expression);if(void 0!==t)return t+"."+qp(e.name)}else if(rF(e)){const t=yb(e.expression);if(void 0!==t&&cu(e.argumentExpression))return t+"."+Hh(e.argumentExpression)}else{if(Xw(e))return Sc(e.escapedText);if($N(e))return dC(e)}}function vb(e){return dg(e)&&"prototype"===hg(e)}function bb(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function xb(e){return!!e.parent&&(nF(e.parent)&&e.parent.name===e||rF(e.parent)&&e.parent.argumentExpression===e)}function Sb(e){return _E(e.parent)&&e.parent.right===e||nF(e.parent)&&e.parent.name===e||tP(e.parent)&&e.parent.right===e}function kb(e){return hF(e)&&104===e.operatorToken.kind}function Tb(e){return kb(e.parent)&&e===e.parent.right}function Cb(e){return 210===e.kind&&0===e.properties.length}function Db(e){return 209===e.kind&&0===e.elements.length}function wb(e){if(function(e){return e&&p(e.declarations)>0&&Lv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function Eb(e){return T(Ak,(t=>No(e,t)))}var Fb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Nb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):gn.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Fb.charAt(o)+Fb.charAt(a)+Fb.charAt(s)+Fb.charAt(c),r+=3;return t}function Pb(e,t){return e&&e.base64encode?e.base64encode(t):Nb(t)}function Ab(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function zb(e,t){return Jb(e.pos,t)}function $b(e,t){return Jb(t,e.end)}function qb(e){const t=mI(e)?C(e.modifiers,mE):void 0;return t&&!rT(t.end)?$b(e,t.end):e}function Ub(e){if(hE(e)||vE(e))return $b(e,e.name.pos);const t=mI(e)?ke(e.modifiers):void 0;return t&&!rT(t.end)?$b(e,t.end):qb(e)}function Vb(e,t){return Jb(e,e+Ra(t).length)}function Wb(e,t){return Kb(e,e,t)}function Hb(e,t,n){return ex(tx(e,n,!1),tx(t,n,!1),n)}function Gb(e,t,n){return ex(e.end,t.end,n)}function Kb(e,t,n){return ex(tx(e,n,!1),t.end,n)}function Xb(e,t,n){return ex(e.end,tx(t,n,!1),n)}function Qb(e,t,n,r){const i=tx(t,n,r);return Ha(n,e.end,i)}function Yb(e,t,n){return Ha(n,e.end,t.end)}function Zb(e,t){return!ex(e.pos,e.end,t)}function ex(e,t,n){return 0===Ha(n,e,t)}function tx(e,t,n){return rT(e.pos)?-1:is(t.text,e.pos,!1,n)}function nx(e,t,n,r){const i=is(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!Ka(n.text.charCodeAt(e)))return e}(i,t,n);return Ha(n,o??t,i)}function rx(e,t,n,r){const i=is(n.text,e,!1,r);return Ha(n,e,Math.min(t,i))}function ix(e,t){return ox(e.pos,e.end,t)}function ox(e,t,n){return e<=n.pos&&t>=n.end}function ax(e){const t=bc(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function sx(e){return P(e.declarations,cx)}function cx(e){return ZF(e)&&void 0!==e.initializer}function lx(e){return e.watch&&Ie(e,"watch")}function ux(e){e.close()}function _x(e){return 33554432&e.flags?e.links.checkFlags:0}function dx(e,t=!1){if(e.valueDeclaration){const n=_c(t&&e.declarations&&T(e.declarations,kE)||32768&e.flags&&T(e.declarations,SE)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&_x(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function px(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function fx(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function mx(e){return 1===hx(e)}function gx(e){return 0!==hx(e)}function hx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return hx(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&cb(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:hx(t);case 303:{const n=hx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return gn.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:hx(t.parent);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function yx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!yx(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function vx(e,t){e.forEach(t),e.clear()}function bx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))}))}function xx(e,t,n){bx(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function Sx(e){if(32&e.flags){const t=kx(e);return!!t&&Lv(t,64)}return!1}function kx(e){var t;return null==(t=e.declarations)?void 0:t.find(yu)}function Tx(e){return 3899393&e.flags?e.objectFlags:0}function Cx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&lN(e.declarations[0])}function Dx({moduleSpecifier:e}){return Iw(e)?e.text:np(e)}function wx(e){let t;return qI(e,(e=>{Od(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(Od(e[n])){t=e[n];break}})),t}function Ex(e,t){return!e.has(t)&&(e.add(t),!0)}function Fx(e){return yu(e)||rN(e)||AE(e)}function Nx(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e}function Px(e){return 211===e.kind||212===e.kind}function Ax(e){return 211===e.kind?e.name:(gn.assert(212===e.kind),e.argumentExpression)}function Ix(e){return 275===e.kind||279===e.kind}function Ox(e){for(;Px(e);)e=e.expression;return e}function Lx(e,t){if(Px(e.parent)&&xb(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!Xw(n.argumentExpression)&&!q_(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return Px(n.expression)?e(n.expression):Xw(n.expression)?t(n.expression):void 0}(e.parent)}function Rx(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function jx(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Mx(e,t){this.flags=t,(gn.isDebugging||Yn)&&(this.checker=e)}function Bx(e,t){this.flags=t,gn.isDebugging&&(this.checker=e)}function Jx(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function zx(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function $x(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function qx(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var Ux,Vx={getNodeConstructor:()=>Jx,getTokenConstructor:()=>zx,getIdentifierConstructor:()=>$x,getPrivateIdentifierConstructor:()=>Jx,getSourceFileConstructor:()=>Jx,getSymbolConstructor:()=>jx,getTypeConstructor:()=>Mx,getSignatureConstructor:()=>Bx,getSourceMapSourceConstructor:()=>qx},Wx=[];function Hx(e){Wx.push(e),e(Vx)}function Gx(e){Object.assign(Vx,e),f(Wx,(e=>e(Vx)))}function Kx(e,t){return e.replace(/\{(\d+)\}/g,((e,n)=>""+gn.checkDefined(t[+n])))}function Xx(e){Ux=e}function Qx(e){!Ux&&e&&(Ux=e())}function Yx(e){return Ux&&Ux[e.key]||e.message}function Zx(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),Kp(t,n,r);let a=Yx(i);return X(o)&&(a=Kx(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function eS(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function tS(e,t){const n=t.fileName||"",r=t.text.length;gn.assertEqual(e.fileName,n),gn.assertLessThanOrEqual(e.start,r),gn.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)eS(o)&&o.fileName===n?(gn.assertLessThanOrEqual(o.start,r),gn.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(tS(o,t))):i.relatedInformation.push(o)}return i}function nS(e,t){const n=[];for(const r of e)n.push(tS(r,t));return n}function rS(e,t,n,r,...i){Kp(e.text,t,n);let o=Yx(r);return X(i)&&(o=Kx(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function iS(e,...t){let n=Yx(e);return X(t)&&(n=Kx(n,t)),n}function oS(e,...t){let n=Yx(e);return X(t)&&(n=Kx(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function aS(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function sS(e,t,...n){let r=Yx(t);return X(n)&&(r=Kx(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function cS(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function lS(e){return e.file?e.file.path:void 0}function uS(e,t){return _S(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?Tt(t.relatedInformation.length,e.relatedInformation.length)||f(e.relatedInformation,((e,n)=>uS(e,t.relatedInformation[n])))||0:e.relatedInformation?-1:1:0}(e,t)||0}function _S(e,t){const n=mS(e),r=mS(t);return Nt(lS(e),lS(t))||Tt(e.start,t.start)||Tt(e.length,t.length)||Tt(n,r)||function(e,t){let n=gS(e),r=gS(t);"string"!=typeof n&&(n=n.messageText),"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=Nt(n,r);return a||(c=o,a=void 0===(s=i)&&void 0===c?0:void 0===s?1:void 0===c?-1:dS(s,c)||pS(s,c),a||(e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0));var s,c}(e,t)||0}function dS(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=Tt(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=SI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=SI(e)};case 2:const t=[SI];4!==e.jsx&&5!==e.jsx||t.push(vS),t.push(bS);const n=an(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function SS(e){const t=ES(e);return 3<=t&&t<=99||IS(e)||OS(e)}var kS={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:kS.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(kS.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===kS.module.computeValue(e)||199===kS.module.computeValue(e)?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(kS.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:kS.esModuleInterop.computeValue(e)||4===kS.module.computeValue(e)||100===kS.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=kS.moduleResolution.computeValue(e);if(!WS(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=kS.moduleResolution.computeValue(e);if(!WS(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===kS.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!kS.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!kS.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?kS.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>HS(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>HS(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>HS(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>HS(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>HS(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>HS(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>HS(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>HS(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>HS(e,"useUnknownInCatchVariables")}},TS=kS,CS=kS.allowImportingTsExtensions.computeValue,DS=kS.target.computeValue,wS=kS.module.computeValue,ES=kS.moduleResolution.computeValue,FS=kS.moduleDetection.computeValue,NS=kS.isolatedModules.computeValue,PS=kS.esModuleInterop.computeValue,AS=kS.allowSyntheticDefaultImports.computeValue,IS=kS.resolvePackageJsonExports.computeValue,OS=kS.resolvePackageJsonImports.computeValue,LS=kS.resolveJsonModule.computeValue,RS=kS.declaration.computeValue,jS=kS.preserveConstEnums.computeValue,MS=kS.incremental.computeValue,BS=kS.declarationMap.computeValue,JS=kS.allowJs.computeValue,zS=kS.useDefineForClassFields.computeValue;function $S(e){return e>=5&&e<=99}function qS(e){switch(wS(e)){case 0:case 4:case 3:return!1}return!0}function US(e){return!1===e.allowUnreachableCode}function VS(e){return!1===e.allowUnusedLabels}function WS(e){return e>=3&&e<=99||100===e}function HS(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function GS(e){return ld(TO.type,((t,n)=>t===e?n:void 0))}function KS(e){return!1!==e.useDefineForClassFields&&DS(e)>=9}function XS(e,t){return sd(t,e,EO)}function QS(e,t){return sd(t,e,FO)}function YS(e,t){return sd(t,e,NO)}function ZS(e,t){return t.strictFlag?HS(e,t.name):t.allowJsFlag?JS(e):e[t.name]}function ek(e){const t=e.jsx;return 2===t||4===t||5===t}function tk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=nt(n)?n[n.length-1]:n,i=null==t?void 0:t.pragmas.get("jsxruntime"),o=nt(i)?i[i.length-1]:i;if("classic"!==(null==o?void 0:o.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==o?void 0:o.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function nk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function rk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=Xo(i,e,t);JT(a)||(a=Yo(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=Qe())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){gn.assert(!o),o=!0,e((e=>a(this,e.resolvedModule))),t((e=>a(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>a(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!ld(n,(e=>!!e))}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(Xo(o,e,t),i);const[a,s]=function(e,t,n,r){const i=Jo(Ho(e,n)),o=Jo(Ho(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!ok(i[i.length-2],r)&&!ok(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[zo(i),zo(o)]:void 0}(i,o,e,t)||u;a&&s&&n.setSymlinkedDirectory(s,{real:Yo(a),realPath:Yo(Xo(a,e,t))})}}function ok(e,t){return void 0!==e&&("node_modules"===t(e)||en(e,"@"))}function ak(e,t,n){const r=nn(e,t,n);return void 0===r?void 0:So((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var sk=/[^\w\s/]/g;function ck(e){return e.replace(sk,lk)}function lk(e){return"\\"+e}var uk=[42,63],_k=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,dk={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${_k}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>xk(e,dk.singleAsteriskRegexFragment)},pk={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${_k}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>xk(e,pk.singleAsteriskRegexFragment)},fk={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>xk(e,fk.singleAsteriskRegexFragment)},mk={files:dk,directories:pk,exclude:fk};function gk(e,t,n){const r=hk(e,t,n);if(r&&r.length)return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function hk(e,t,n){if(void 0!==e&&0!==e.length)return M(e,(e=>e&&bk(e,t,n,mk[n])))}function yk(e){return!/[.*?]/.test(e)}function vk(e,t,n){const r=e&&bk(e,t,n,mk[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function bk(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=mk[n]){let a="",s=!1;const c=Wo(e,t),l=Te(c);if("exclude"!==n&&"**"===l)return;c[0]=Qo(c[0]),yk(l)&&c.push("**","*");let u=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(",u++),s&&(a+=yo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="([^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(sk,o),t!==e&&(a+=_k),a+=t}else a+=e.replace(sk,o);s=!0}for(;u>0;)a+=")?",u--;return a}function xk(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Sk(e,t,n,r,i){e=Go(e);const o=Uo(i=Go(i),e);return{includeFilePatterns:O(hk(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:gk(n,o,"files"),includeDirectoryPattern:gk(n,o,"directories"),excludePattern:gk(t,o,"exclude"),basePaths:Ck(e,n,r)}}function kk(e,t){return new RegExp(e,t?"":"i")}function Tk(e,t,n,r,i,o,a,s,c){e=Go(e),o=Go(o);const l=Sk(e,n,r,i,o),u=l.includeFilePatterns&&l.includeFilePatterns.map((e=>kk(e,i))),_=l.includeDirectoryPattern&&kk(l.includeDirectoryPattern,i),d=l.excludePattern&&kk(l.excludePattern,i),p=u?u.map((()=>[])):[[]],f=new Map,m=Xt(i);for(const e of l.basePaths)g(e,Uo(o,e),a);return j(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of me(o,Nt)){const i=Uo(e,r),o=Uo(n,r);if((!t||Po(i,t))&&(!d||!d.test(o)))if(u){const e=D(u,(e=>e.test(o)));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!=--r)for(const t of me(a,Nt)){const i=Uo(e,t),o=Uo(n,t);_&&!_.test(o)||d&&d.test(o)||g(i,o,r)}}}function Ck(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=To(n)?n:Go(Uo(e,n));i.push(Dk(t))}i.sort(Pt(!n));for(const t of i)k(r,(r=>!sa(r,t,e,!n)))&&r.push(t)}return r}function Dk(e){const t=F(e,uk);return t<0?Fo(e)?Qo(Ro(e)):e:e.substring(0,e.lastIndexOf(yo,t))}function wk(e,t){return t||Ek(e)||3}function Ek(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var Fk=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Nk=j(Fk),Pk=[...Fk,[".json"]],Ak=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Ik=j([[".js",".jsx"],[".mjs"],[".cjs"]]),Ok=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Lk=[...Ok,[".json"]],Rk=[".d.ts",".d.cts",".d.mts"],jk=[".ts",".cts",".mts",".tsx"],Mk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function Bk(e,t){const n=e&&JS(e);if(!t||0===t.length)return n?Ok:Fk;const r=n?Ok:Fk,i=j(r);return[...r,...q(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t}))]}function Jk(e,t){return e&&LS(e)?t===Ok?Lk:t===Fk?Pk:[...t,[".json"]]:t}function zk(e){return X(Ik,(t=>No(e,t)))}function $k(e){return X(Nk,(t=>No(e,t)))}function qk(e){return X(jk,(t=>No(e,t)))&&!iO(e)}var Uk=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Uk||{});function Vk(e,t,n,r){const i=ES(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?LM(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:LM(n)?a():r&&function({imports:e},t=an(zk,$k)){return g(e,(({text:e})=>wo(e)&&!Po(e,Mk)?t(e):void 0))||!1}(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&Rm(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Hm(r)?t=Y(t,r.declarationList.declarations.map((e=>e.initializer))):jF(r)&&$m(r.expression,!0)?t=le(t,r.expression):n++}return t||u}(r).map((e=>e.arguments[0])):u;for(const a of i)if(wo(a.text)){if(o&&1===t&&99===sU(r,a,n))continue;if(Po(a.text,Mk))continue;if($k(a.text))return 3;zk(a.text)&&(e=!0)}return e?2:0}}function Wk(e,t,n){if(!e)return!1;const r=Bk(t,n);for(const n of j(Jk(t,r)))if(No(e,n))return!0;return!1}function Hk(e){const t=e.match(/\//g);return t?t.length:0}function Gk(e,t){return Tt(Hk(e),Hk(t))}var Kk=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Xk(e){for(const t of Kk){const n=Qk(e,t);if(void 0!==n)return n}return e}function Qk(e,t){return No(e,t)?Yk(e,t):void 0}function Yk(e,t){return e.substring(0,e.length-t.length)}function Zk(e,t){return ea(e,t,Kk,!1)}function eT(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var tT=new WeakMap;function nT(e){let t,n,r=tT.get(e);if(void 0!==r)return r;const i=Le(e);for(const e of i){const r=eT(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return tT.set(e,r={matchableStringSet:t,patterns:n}),r}function rT(e){return!(e>=0)}function iT(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||en(e,".d.")&&$t(e,".ts")}function oT(e){return iT(e)||".json"===e}function aT(e){const t=cT(e);return void 0!==t?t:gn.fail(`File ${e} has unknown extension.`)}function sT(e){return void 0!==cT(e)}function cT(e){return T(Kk,(t=>No(e,t)))}function lT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var uT={files:u,directories:u};function _T(e,t){const{matchableStringSet:n,patterns:r}=e;return(null==n?void 0:n.has(t))?t:void 0!==r&&0!==r.length?Zt(r,(e=>e),t):void 0}function dT(e,t){const n=e.indexOf(t);return gn.assert(-1!==n),e.slice(n)}function pT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),gn.assert(e.relatedInformation!==u,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function fT(e,t){gn.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function mT(e){return{pos:Hd(e),end:e.end}}function gT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,is(e.text,t.end)+1)}}function hT(e,t,n){return vT(e,t,n,!1)}function yT(e,t,n){return vT(e,t,n,!0)}function vT(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!bT(e,t)}function bT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&lT(e,t);return wd(e,t.checkJs)||n||7===e.scriptKind}function xT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&ze(e,t,xT)}function ST(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function kT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function TT(e){if(DT(e,!1))return CT(e)}function CT(e){const t=e.startsWith("-");return{negative:t,base10Value:ST(`${t?e.slice(1):e}n`)}}function DT(e,t){if(""===e)return!1;const n=ks(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===kT({negative:o,base10Value:ST(n.getTokenValue())}))}function wT(e){return!!(33554432&e.flags)||Fm(e)||function(e){if(80!==e.kind)return!1;const t=yc(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(Lv(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(wm(e)||function(e){return Xw(e)&&GN(e.parent)&&e.parent.name===e}(e))}function ET(e){return EE(e)&&Xw(e.typeName)}function FT(e,t=bt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;re.includes(t)))}function zT(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return gI(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(A_(e))return fP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Tu(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 356:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return wu(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return T_(e)?t.children:void 0;case 286:case 285:return wu(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 307:return t.statements;case 269:return t.clauses;case 263:case 231:return hu(e)?t.members:void 0;case 266:return XN(e)?t.members:void 0}}function $T(e){if(!e.typeParameters){if(X(e.parameters,(e=>!xv(e))))return!0;if(219!==e.kind){const t=ve(e.parameters);if(!t||!mv(t))return!0}}return!1}function qT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function UT(e){return 260===e.kind&&299===e.parent.kind}function VT(e){return 218===e.kind||219===e.kind}function WT(e){return e.replace(/\$/g,(()=>"\\$"))}function HT(e){return(+e).toString()===e}function GT(e,t,n,r,i){const o=i&&"new"===e;return!o&&Ss(e,t)?oD.createIdentifier(e):!r&&!o&&HT(e)&&+e>=0?oD.createNumericLiteral(+e):oD.createStringLiteral(e,!!n)}function KT(e){return!!(262144&e.flags&&e.isThisType)}function XT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(Wj,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(Wj,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function QT(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function YT(e){return oN(e)||LF(e)||tN(e)||nN(e)||rN(e)||QT(e)||aN(e)&&!bp(e)&&!vp(e)}function ZT(e){if(!Ol(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&316===n.type.kind}function eC(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&bs(e.charCodeAt(1),t):bs(n,t)}function tC(e){var t;return 0===(null==(t=jD(e))?void 0:t.kind)}function nC(e){return jm(e)&&(e.type&&316===e.type.kind||jc(e).some(ZT))}function rC(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||nC(e);case 348:case 341:return ZT(e);default:return!1}}function iC(e){const t=e.kind;return(211===t||212===t)&&wF(e.expression)}function oC(e){return jm(e)&&cF(e)&&L_(e)&&!!sl(e)}function aC(e){return gn.checkDefined(sC(e))}function sC(e){const t=sl(e);return t&&t.typeExpression&&t.typeExpression.type}function cC(e){return Xw(e)?e.escapedText:_C(e)}function lC(e){return Xw(e)?kc(e):dC(e)}function uC(e){const t=e.kind;return 80===t||295===t}function _C(e){return`${e.namespace.escapedText}:${kc(e.name)}`}function dC(e){return`${kc(e.namespace)}:${kc(e.name)}`}function pC(e){return Xw(e)?kc(e):dC(e)}function fC(e){return!!(8576&e.flags)}function mC(e){return 8192&e.flags?e.escapedName:384&e.flags?xc(""+e.value):gn.fail()}function gC(e){return!!e&&(nF(e)||rF(e)||hF(e))}function hC(e){return void 0!==e&&!!uU(e.attributes)}var yC=String.prototype.replace;function vC(e,t){return yC.call(e,"*",t)}function bC(e){return Xw(e.name)?e.name.escapedText:xc(e.name.text)}function xC(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function SC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function kC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(r,i){let o=!1,a=!1,s=!1;switch((r=ph(r)).kind){case 224:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return SC(c.value,o,a,s);case 41:return SC(-c.value,o,a,s);case 55:return SC(~c.value,o,a,s)}break;case 226:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return SC(e.value|t.value,o,a,s);case 51:return SC(e.value&t.value,o,a,s);case 49:return SC(e.value>>t.value,o,a,s);case 50:return SC(e.value>>>t.value,o,a,s);case 48:return SC(e.value<=2)break;case 174:case 176:case 177:case 178:case 262:if(3&p&&"arguments"===I){D=n;break e}break;case 218:if(3&p&&"arguments"===I){D=n;break e}if(16&p){const e=s.name;if(e&&I===e.escapedText){D=s.symbol;break e}}break;case 170:s.parent&&169===s.parent.kind&&(s=s.parent),s.parent&&(hu(s.parent)||263===s.parent.kind)&&(s=s.parent);break;case 346:case 338:case 340:case 351:const o=Yg(s);o&&(s=o.parent);break;case 169:w&&(w===s.initializer||w===s.name&&Fu(w))&&(N||(N=s));break;case 208:w&&(w===s.initializer||w===s.name&&Fu(w))&&iy(s)&&!N&&(N=s);break;case 195:if(262144&p){const e=s.typeParameter.name;if(e&&I===e.escapedText){D=s.typeParameter.symbol;break e}}break;case 281:w&&w===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}y(s,w)&&(E=s),w=s,s=IP(s)?Hg(s)||s.parent:(FP(s)||NP(s))&&Kg(s)||s.parent}if(!b||!D||E&&D===E.symbol||(D.isReferenced|=p),!D){if(w&&(gn.assertNode(w,QN),w.commonJsModuleIndicator&&"exports"===I&&p&w.symbol.flags))return w.symbol;x||(D=a(o,I,p))}if(!D&&C&&jm(C)&&C.parent&&$m(C.parent,!1))return t;if(f){if(F&&l(C,I,F,D))return;D?_(C,D,p,w,N,A):u(C,c,p,f)}return D};function g(t,n,r){const i=DS(e),o=n;if(fE(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=f(o.parameters,(function(e){return a(e.name)||!!e.initializer&&a(e.initializer)}))||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return a(e.name);case 172:return jv(e)?!p:a(e.name);default:return El(e)||Tl(e)?i<7:ZE(e)&&e.dotDotDotToken&&QE(e.parent)?i<4:!wu(e)&&(qI(e,a)||!1)}}}function h(e,t){return 219!==e.kind&&218!==e.kind?PE(e)||(du(e)||172===e.kind&&!Rv(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!Lv(e,1024)&&dm(e))}function y(e,t){switch(e.kind){case 169:return!!t&&t===e.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function v(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind&&(IP(n.parent)?Qg(n.parent):n.parent)===t)return!(IP(n.parent)&&T(n.parent.parent.tags,Lg));return!1}}function wC(e,t=!0){switch(gn.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return 41===e.operator?Pw(e.operand)||t&&Aw(e.operand):40===e.operator&&Pw(e.operand);default:return!1}}function EC(e){for(;217===e.kind;)e=e.expression;return e}function FC(e){switch(gn.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:case 304:case 341:case 348:return!0;default:return!1}}function NC(e){const t=yc(e,_N);return!!t&&!t.importClause}var PC=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],AC=new Set(PC),IC=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),OC=new Set([...PC,...PC.map((e=>`node:${e}`)),...IC]);function LC(e,t,n,r){const i=jm(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=RC(e,o.lastIndex,t);if(i&&$m(a,n))r(a,a.arguments[0]);else if(gf(a)&&a.arguments.length>=1&&(!n||q_(a.arguments[0])))r(a,a.arguments[0]);else if(t&&yf(a))r(a,a.argument.literal);else if(t&&JP(a)){const e=Fg(a);e&&Iw(e)&&e.text&&r(a,e)}}}function RC(e,t,n){const r=jm(e);let i=e;const o=e=>{if(e.pos<=t&&(to(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return pA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=fy(227,58),r=Nl(t);return 1!==Tt(_y(r),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return pA(Nl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Nl(t);let r=pA(n);if(!r)switch(Rx(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Rx(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return Vu(t)?t:fI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return Hu(t)?t:fI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=R(t,c);return fI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=Nl(t);if(iF(n)){const r=n.expression,i=Nl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,fI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Rx(n,!1).kind;return 210===r||218===r?fI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return OF(t)||!pA(t)&&210!==Rx(t,!1).kind?t:fI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 194===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(R(t,u))},parenthesizeConstituentTypeOfUnionType:u,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(R(t,_))},parenthesizeConstituentTypeOfIntersectionType:_,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 198===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(R(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if(X(t))return e.createNodeArray(R(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Bl((e=Nl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Bl(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===Nl(n).kind?n:function(e,t,n,i){const o=fy(226,e),a=uy(226,e),s=Nl(t);if(!n&&219===t.kind&&o>3)return!0;switch(Tt(_y(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(hF(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Bl(e)&&e===r(s))return!1}}return 0===ly(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=Nl(t);return!Vu(r)||214===r.kind&&!r.arguments||!n&&Tl(r)?fI(e.createParenthesizedExpression(t),t):t}function c(t){return _y(Nl(t))>fy(226,28)?t:fI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return u(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):_(t)}function p(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return sP(e)?e.postfix:LE(e)||FE(e)||NE(e)||UE(e)?m(e.type):JE(e)?m(e.falseType):ME(e)||BE(e)?m(Te(e.types)):!!zE(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return Eu(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var JC={getParenthesizeLeftSideOfBinaryForOperator:e=>dt,getParenthesizeRightSideOfBinaryForOperator:e=>dt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:dt,parenthesizeConditionOfConditionalExpression:dt,parenthesizeBranchOfConditionalExpression:dt,parenthesizeExpressionOfExportDefault:dt,parenthesizeExpressionOfNew:e=>st(e,Vu),parenthesizeLeftSideOfAccess:e=>st(e,Vu),parenthesizeOperandOfPostfixUnary:e=>st(e,Vu),parenthesizeOperandOfPrefixUnary:e=>st(e,Hu),parenthesizeExpressionsOfCommaDelimitedList:e=>st(e,Ml),parenthesizeExpressionForDisallowedComma:dt,parenthesizeExpressionOfExpressionStatement:dt,parenthesizeConciseBodyOfArrowFunction:dt,parenthesizeCheckTypeOfConditionalType:dt,parenthesizeExtendsTypeOfConditionalType:dt,parenthesizeConstituentTypesOfUnionType:e=>st(e,Ml),parenthesizeConstituentTypeOfUnionType:dt,parenthesizeConstituentTypesOfIntersectionType:e=>st(e,Ml),parenthesizeConstituentTypeOfIntersectionType:dt,parenthesizeOperandOfTypeOperator:dt,parenthesizeOperandOfReadonlyTypeOperator:dt,parenthesizeNonArrayTypeOfPostfixType:dt,parenthesizeElementTypesOfTupleType:e=>st(e,Ml),parenthesizeElementTypeOfTupleType:dt,parenthesizeTypeOfOptionalType:dt,parenthesizeTypeArguments:e=>e&&st(e,Ml),parenthesizeLeadingTypeArgument:dt};function zC(e){return{convertToFunctionBlock:function(t,n){if(OF(t))return t;const r=e.createReturnStatement(t);fI(r,t);const i=e.createBlock([r],n);return fI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return gn.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Lc(t))?void 0:n.filter((e=>!Yw(e)&&!Zw(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return sD(r,t),fI(r,t),vD(t)&&bD(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!Yw(e)&&!Zw(e))),t.name,t.typeParameters,t.heritageClauses,t.members);return sD(r,t),fI(r,t),vD(t)&&bD(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(ZE(t)){if(t.dotDotDotToken)return gn.assertNode(t.name,Xw),sD(fI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?sD(fI(e.createAssignment(n,t.initializer),t),t):n}return st(t,Qu)}function n(t){if(ZE(t)){if(t.dotDotDotToken)return gn.assertNode(t.name,Xw),sD(fI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return sD(fI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return gn.assertNode(t.name,Xw),sD(fI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return st(t,Du)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return QE(t)?sD(fI(e.createObjectLiteralExpression(O(t.elements,n)),t),t):st(t,tF)}function o(n){return YE(n)?sD(fI(e.createArrayLiteralExpression(O(n.elements,t)),n),n):st(n,eF)}function a(e){return Fu(e)?r(e):st(e,Qu)}}var $C,qC={convertToFunctionBlock:gt,convertToFunctionExpression:gt,convertToClassExpression:gt,convertToArrayAssignmentElement:gt,convertToObjectAssignmentElement:gt,convertToAssignmentPattern:gt,convertToObjectAssignmentPattern:gt,convertToArrayAssignmentPattern:gt,convertToAssignmentElementTarget:gt},UC=0,VC=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(VC||{}),WC=[];function HC(e){WC.push(e)}function GC(e,t){const n=8&e?dt:sD,r=ht((()=>1&e?JC:BC(v))),i=ht((()=>2&e?qC:zC(v))),o=yt((e=>(t,n)=>Ot(t,e,n))),a=yt((e=>t=>At(e,t))),s=yt((e=>t=>It(t,e))),c=yt((e=>()=>function(e){return x(e)}(e))),l=yt((e=>t=>dr(e,t))),_=yt((e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(dr(e,n),t):t}(e,t,n))),d=yt((e=>(t,n)=>_r(e,t,n))),p=yt((e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(_r(e,n,t.postfix),t):t}(e,t,n))),m=yt((e=>(t,n)=>Or(e,t,n))),g=yt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Oi(Or(e,n,r),t):t}(e,t,n,r))),h=yt((e=>(t,n,r)=>Lr(e,t,n,r))),y=yt((e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Oi(Lr(e,n,r,i),t):t}(e,t,n,r,i))),v={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:b,createNumericLiteral:C,createBigIntLiteral:D,createStringLiteral:E,createStringLiteralFromNode:function(e){const t=w(Kh(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return C(t,0);case 10:return D(t);case 11:return E(t,void 0);case 12:return Wr(t,!1);case 13:return Wr(t,!0);case 14:return F(t);case 15:return zt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;return e&&(t|=8),P("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return gn.assert(!(7&t),"Argument out of range: flags"),gn.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),P(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return en(e,"#")||gn.fail("First character of private identifier must be #: "+e),L(xc(e))},createUniquePrivateName:function(e,t,n){return e&&!en(e,"#")&&gn.fail("First character of private identifier must be #: "+e),R(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=vl(e)?aI(!0,t,e,n,kc):`#generated@${QB(e)}`,i=R(r,4|(t||n?16:0),t,n);return i.original=e,i},createToken:M,createSuper:function(){return M(108)},createThis:B,createNull:J,createTrue:$,createFalse:q,createModifier:U,createModifiersFromModifierFlags:V,createQualifiedName:W,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Oi(W(t,n),e):e},createComputedPropertyName:H,updateComputedPropertyName:function(e,t){return e.expression!==t?Oi(H(t),e):e},createTypeParameterDeclaration:G,updateTypeParameterDeclaration:K,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Oi(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:te,createPropertyDeclaration:ne,updatePropertyDeclaration:re,createMethodSignature:ie,updateMethodSignature:oe,createMethodDeclaration:ae,updateMethodDeclaration:se,createConstructorDeclaration:ue,updateConstructorDeclaration:_e,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:ge,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ge(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(he(t,n,r),e):e},createIndexSignature:ye,updateIndexSignature:ve,createClassStaticBlockDeclaration:ce,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=ce(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createTemplateLiteralTypeSpan:be,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Oi(be(t,n),e):e},createKeywordTypeNode:function(e){return M(e)},createTypePredicateNode:xe,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Oi(xe(t,n,r),e):e},createTypeReferenceNode:Se,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Oi(Se(t,n),e):e},createFunctionTypeNode:Te,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Te(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),T(i,o)):e;var i,o},createConstructorTypeNode:De,updateConstructorTypeNode:function(...e){return 5===e.length?Ee(...e):4===e.length?function(e,t,n,r){return Ee(e,e.modifiers,t,n,r)}(...e):gn.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Fe,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Oi(Fe(t,n),e):e},createTypeLiteralNode:Ne,updateTypeLiteralNode:function(e,t){return e.members!==t?Oi(Ne(t),e):e},createArrayTypeNode:Ae,updateArrayTypeNode:function(e,t){return e.elementType!==t?Oi(Ae(t),e):e},createTupleTypeNode:Oe,updateTupleTypeNode:function(e,t){return e.elements!==t?Oi(Oe(t),e):e},createNamedTupleMember:Le,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Oi(Le(t,n,r,i),e):e},createOptionalTypeNode:Re,updateOptionalTypeNode:function(e,t){return e.type!==t?Oi(Re(t),e):e},createRestTypeNode:je,updateRestTypeNode:function(e,t){return e.type!==t?Oi(je(t),e):e},createUnionTypeNode:function(e){return Me(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Me(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Je,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Oi(Je(t,n,r,i),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Oi(ze(t),e):e},createImportTypeNode:qe,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Oi(qe(t,n,r,i,o),e):e},createParenthesizedType:Ue,updateParenthesizedType:function(e,t){return e.type!==t?Oi(Ue(t),e):e},createThisTypeNode:function(){const e=x(197);return e.transformFlags=1,e},createTypeOperatorNode:Ve,updateTypeOperatorNode:function(e,t){return e.type!==t?Oi(Ve(e.operator,t),e):e},createIndexedAccessTypeNode:We,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Oi(We(t,n),e):e},createMappedTypeNode:He,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Oi(He(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ge,updateLiteralTypeNode:function(e,t){return e.literal!==t?Oi(Ge(t),e):e},createTemplateLiteralType:$e,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi($e(t,n),e):e},createObjectBindingPattern:Ke,updateObjectBindingPattern:function(e,t){return e.elements!==t?Oi(Ke(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Oi(Xe(t),e):e},createBindingElement:Qe,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Oi(Qe(t,n,r,i),e):e},createArrayLiteralExpression:Ye,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Oi(Ye(t,e.multiLine),e):e},createObjectLiteralExpression:Ze,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Oi(Ze(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>_D(tt(e,t),262144):tt,updatePropertyAccessExpression:function(e,t,n){return xl(e)?it(e,t,e.questionDotToken,st(n,Xw)):e.expression!==t||e.name!==n?Oi(tt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>_D(rt(e,t,n),262144):rt,updatePropertyAccessChain:it,createElementAccessExpression:at,updateElementAccessExpression:function(e,t,n){return Sl(e)?lt(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Oi(at(t,n),e):e},createElementAccessChain:ct,updateElementAccessChain:lt,createCallExpression:pt,updateCallExpression:function(e,t,n,r){return kl(e)?mt(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(pt(t,n,r),e):e},createCallChain:ft,updateCallChain:mt,createNewExpression:gt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(gt(t,n,r),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Oi(vt(t,n,r),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:St,updateParenthesizedExpression:kt,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:Dt,updateArrowFunction:wt,createDeleteExpression:Et,updateDeleteExpression:function(e,t){return e.expression!==t?Oi(Et(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?Oi(Ft(t),e):e},createVoidExpression:Nt,updateVoidExpression:function(e,t){return e.expression!==t?Oi(Nt(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?Oi(Pt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Oi(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Oi(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Oi(Ot(t,n,r),e):e},createConditionalExpression:Rt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Oi(Rt(t,n,r,i,o),e):e},createTemplateExpression:jt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi(jt(t,n),e):e},createTemplateHead:function(e,t,n){return zt(16,e=Mt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return zt(17,e=Mt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return zt(18,e=Mt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Jt(15,e=Mt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:zt,createYieldExpression:$t,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Oi($t(t,n),e):e},createSpreadElement:qt,updateSpreadElement:function(e,t){return e.expression!==t?Oi(qt(t),e):e},createClassExpression:Ut,updateClassExpression:Vt,createOmittedExpression:function(){return x(232)},createExpressionWithTypeArguments:Wt,updateExpressionWithTypeArguments:Ht,createAsExpression:Gt,updateAsExpression:Kt,createNonNullExpression:Xt,updateNonNullExpression:Qt,createSatisfiesExpression:Yt,updateSatisfiesExpression:Zt,createNonNullChain:tn,updateNonNullChain:nn,createMetaProperty:rn,updateMetaProperty:function(e,t){return e.name!==t?Oi(rn(e.keywordToken,t),e):e},createTemplateSpan:on,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Oi(on(t,n),e):e},createSemicolonClassElement:function(){const e=x(240);return e.transformFlags|=1024,e},createBlock:an,updateBlock:function(e,t){return e.statements!==t?Oi(an(t,e.multiLine),e):e},createVariableStatement:sn,updateVariableStatement:cn,createEmptyStatement:ln,createExpressionStatement:un,updateExpressionStatement:function(e,t){return e.expression!==t?Oi(un(t),e):e},createIfStatement:_n,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Oi(_n(t,n,r),e):e},createDoStatement:dn,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Oi(dn(t,n),e):e},createWhileStatement:pn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(pn(t,n),e):e},createForStatement:fn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Oi(fn(t,n,r,i),e):e},createForInStatement:mn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Oi(mn(t,n,r),e):e},createForOfStatement:hn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Oi(hn(t,n,r,i),e):e},createContinueStatement:yn,updateContinueStatement:function(e,t){return e.label!==t?Oi(yn(t),e):e},createBreakStatement:vn,updateBreakStatement:function(e,t){return e.label!==t?Oi(vn(t),e):e},createReturnStatement:bn,updateReturnStatement:function(e,t){return e.expression!==t?Oi(bn(t),e):e},createWithStatement:xn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(xn(t,n),e):e},createSwitchStatement:Sn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Oi(Sn(t,n),e):e},createLabeledStatement:kn,updateLabeledStatement:Tn,createThrowStatement:Cn,updateThrowStatement:function(e,t){return e.expression!==t?Oi(Cn(t),e):e},createTryStatement:Dn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Oi(Dn(t,n,r),e):e},createDebuggerStatement:function(){const e=x(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:wn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Oi(wn(t,n,r,i),e):e},createVariableDeclarationList:En,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Oi(En(t,e.flags),e):e},createFunctionDeclaration:Fn,updateFunctionDeclaration:Nn,createClassDeclaration:Pn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:Rn,createEnumDeclaration:jn,updateEnumDeclaration:Mn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:zn,updateModuleBlock:function(e,t){return e.statements!==t?Oi(zn(t),e):e},createCaseBlock:$n,updateCaseBlock:function(e,t){return e.clauses!==t?Oi($n(t),e):e},createNamespaceExportDeclaration:qn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((n=qn(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createImportEqualsDeclaration:Un,updateImportEqualsDeclaration:Vn,createImportDeclaration:Wn,updateImportDeclaration:Hn,createImportClause:Gn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?Oi(Gn(t,n,r),e):e},createAssertClause:Kn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Kn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Oi(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Oi(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Oi(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Oi(er(t),e):e},createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Oi(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Oi(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Oi(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=S(282);return e.jsDoc=void 0,e},createExternalModuleReference:ur,updateExternalModuleReference:function(e,t){return e.expression!==t?Oi(ur(t),e):e},get createJSDocAllType(){return c(312)},get createJSDocUnknownType(){return c(313)},get createJSDocNonNullableType(){return d(315)},get updateJSDocNonNullableType(){return p(315)},get createJSDocNullableType(){return d(314)},get updateJSDocNullableType(){return p(314)},get createJSDocOptionalType(){return l(316)},get updateJSDocOptionalType(){return _(316)},get createJSDocVariadicType(){return l(318)},get updateJSDocVariadicType(){return _(318)},get createJSDocNamepathType(){return l(319)},get updateJSDocNamepathType(){return _(319)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Oi(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Oi(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Oi(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Oi(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Oi(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(xr(t,n,r,i),e):e},createJSDocParameterTag:Sr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(Sr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:kr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(kr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(Cr(t,n,r),e):e},createJSDocAugmentsTag:Dr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(Dr(t,n,r),e):e},createJSDocImplementsTag:wr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(wr(t,n,r),e):e},createJSDocSeeTag:Er,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Oi(Er(t,n,r),e):e},createJSDocImportTag:Mr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi(Mr(t,n,r,i,o),e):e},createJSDocNameReference:Fr,updateJSDocNameReference:function(e,t){return e.name!==t?Oi(Fr(t),e):e},createJSDocMemberName:Nr,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Oi(Nr(t,n),e):e},createJSDocLink:Pr,updateJSDocLink:function(e,t,n){return e.name!==t?Oi(Pr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Oi(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Oi(Ir(t,n),e):e},get createJSDocTypeTag(){return h(344)},get updateJSDocTypeTag(){return y(344)},get createJSDocReturnTag(){return h(342)},get updateJSDocReturnTag(){return y(342)},get createJSDocThisTag(){return h(343)},get updateJSDocThisTag(){return y(343)},get createJSDocAuthorTag(){return m(330)},get updateJSDocAuthorTag(){return g(330)},get createJSDocClassTag(){return m(332)},get updateJSDocClassTag(){return g(332)},get createJSDocPublicTag(){return m(333)},get updateJSDocPublicTag(){return g(333)},get createJSDocPrivateTag(){return m(334)},get updateJSDocPrivateTag(){return g(334)},get createJSDocProtectedTag(){return m(335)},get updateJSDocProtectedTag(){return g(335)},get createJSDocReadonlyTag(){return m(336)},get updateJSDocReadonlyTag(){return g(336)},get createJSDocOverrideTag(){return m(337)},get updateJSDocOverrideTag(){return g(337)},get createJSDocDeprecatedTag(){return m(331)},get updateJSDocDeprecatedTag(){return g(331)},get createJSDocThrowsTag(){return h(349)},get updateJSDocThrowsTag(){return y(349)},get createJSDocSatisfiesTag(){return h(350)},get updateJSDocSatisfiesTag(){return y(350)},createJSDocEnumTag:jr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(jr(t,n,r),e):e},createJSDocUnknownTag:Rr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Oi(Rr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Oi(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Oi(Jr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Oi(zr(t,n,r),e):e},createJsxSelfClosingElement:$r,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi($r(t,n,r),e):e},createJsxOpeningElement:qr,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi(qr(t,n,r),e):e},createJsxClosingElement:Ur,updateJsxClosingElement:function(e,t){return e.tagName!==t?Oi(Ur(t),e):e},createJsxFragment:Vr,createJsxText:Wr,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Oi(Wr(t,n),e):e},createJsxOpeningFragment:function(){const e=x(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=x(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Oi(Vr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(Hr(t,n),e):e},createJsxAttributes:Gr,updateJsxAttributes:function(e,t){return e.properties!==t?Oi(Gr(t),e):e},createJsxSpreadAttribute:Kr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Oi(Kr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Oi(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Oi(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Oi(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Oi(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Oi(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Oi(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?((r=ii(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken,r.equalsToken=i.equalsToken),Oi(r,i)):e;var r,i},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Oi(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(307);return i.statements=b(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=eD(i.statements)|ZC(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==a?Oi(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=b(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=eD(s.statements)|ZC(s.endOfFileToken),s}(e,t,n,r,i,o,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Oi(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=x(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=x(352);return t._children=e,t},createNotEmittedStatement:function(e){const t=x(353);return t.original=e,fI(t,e),t},createNotEmittedTypeElement:function(){return x(354)},createPartiallyEmittedExpression:ui,updatePartiallyEmittedExpression:_i,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Oi(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Oi(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return pt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,an(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return pt(Dt(void 0,void 0,t?[t]:[],void 0,void 0,an(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?v.createStrictEquality(e,J()):"undefined"===t?v.createStrictEquality(e,gi()):v.createStrictEquality(Ft(e),E(t))},createIsNotTypeCheck:function(e,t){return"null"===t?v.createStrictInequality(e,J()):"undefined"===t?v.createStrictInequality(e,gi()):v.createStrictInequality(Ft(e),E(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Pi(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Pi(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Pi(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Pi(e.enumerable)),vi(n,"configurable",Pi(e.configurable));let r=vi(n,"writable",Pi(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,gn.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ze(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=hA(e,31);let a,s;return pm(o)?(a=B(),s=o):cE(o)?(a=B(),s=void 0!==n&&n<2?fI(A("_super"),o):o):8192&op(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):nF(o)?bi(o.expression,i)?(a=I(t),s=tt(fI(v.createAssignment(a,o.expression),o.expression),o.name),fI(s,o)):(a=o.expression,s=o):rF(o)?bi(o.expression,i)?(a=I(t),s=at(fI(v.createAssignment(a,o.expression),o.expression),o.argumentExpression),fI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return tt(St(Ze([fe(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],an([un(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):Pe(e,v.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:Si,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:ki,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&Lv(t,32)?ki(e,xi(t),n,r):Si(t,n,r)},restoreOuterExpressions:function e(t,n,r=31){return t&&gA(t,r)&&!function(e){return cF(e)&&sy(e)&&sy(mD(e))&&sy(xD(e))&&!X(kD(e))&&!X(DD(e))}(t)?function(e,t){switch(e.kind){case 217:return kt(e,t);case 216:return xt(e,e.type,t);case 234:return Kt(e,t,e.type);case 238:return Zt(e,t,e.type);case 235:return Qt(e,t);case 233:return Ht(e,t,e.typeArguments);case 355:return _i(e,t)}}(t,e(t.expression,n)):n},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=Tn(n,n.label,KF(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:Ci,copyPrologue:function(e,t,n,r){const i=Di(e,t,0,n);return wi(e,t,i,r)},copyStandardPrologue:Di,copyCustomPrologue:wi,ensureUseStrict:function(e){return uA(e)?e:fI(b([Ci(),...e]),e)},liftToBlock:function(e){return gn.assert(k(e,x_),"Cannot lift nodes to a Block."),Ce(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!X(t))return e;const n=Ei(e,vf,0),r=Ei(e,xf,n),i=Ei(e,kf,r),o=Ei(t,vf,0),a=Ei(t,xf,o),s=Ei(t,kf,a),c=Ei(t,bf,s);gn.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Ml(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return Ml(e)?fI(b(l,e.hasTrailingComma),e):e},replaceModifiers:function(e,t){let n;return n="number"==typeof t?V(t):t,pE(e)?K(e,n,e.name,e.constraint,e.default):fE(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):NE(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):gE(e)?te(e,n,e.name,e.questionToken,e.type):hE(e)?re(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):yE(e)?oe(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):vE(e)?se(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):xE(e)?_e(e,n,e.parameters,e.body):SE(e)?pe(e,n,e.name,e.parameters,e.type,e.body):kE(e)?me(e,n,e.name,e.parameters,e.body):DE(e)?ve(e,n,e.parameters,e.type):lF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):uF(e)?wt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):SF(e)?Vt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):LF(e)?cn(e,n,e.declarationList):tN(e)?Nn(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):nN(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):rN(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):iN(e)?Rn(e,n,e.name,e.typeParameters,e.type):oN(e)?Mn(e,n,e.name,e.members):aN(e)?Jn(e,n,e.name,e.body):uN(e)?Vn(e,n,e.isTypeOnly,e.name,e.moduleReference):_N(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):SN(e)?or(e,n,e.expression):kN(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):gn.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return fE(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):hE(e)?re(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):vE(e)?se(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):SE(e)?pe(e,t,e.name,e.parameters,e.type,e.body):kE(e)?me(e,t,e.name,e.parameters,e.body):SF(e)?Vt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):nN(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):gn.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return se(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return oe(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return re(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return te(e,e.modifiers,t,e.questionToken,e.type);case 303:return ri(e,t,e.initializer)}}};return f(WC,(e=>e(v))),v;function b(e,t){if(void 0===e||e===u)e=[];else if(Ml(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&tD(e),gn.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,gn.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,tD(r),gn.attachNodeArrayDebugInfo(r),r}function x(e){return t.createBaseNode(e)}function S(e){const t=x(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Oi(e,t)}function C(e,t=0){const n="number"==typeof e?e+"":e;gn.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=S(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function D(e){const t=j(10);return t.text="string"==typeof e?e:kT(e)+"n",t.transformFlags|=32,t}function w(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function E(e,t,n){const r=w(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=j(14);return t.text=e,t}function N(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function P(e,t,n,r){const i=N(xc(e));return UD(i,{flags:t,id:UC,prefix:n,suffix:r}),UC++,i}function A(e,t,n){void 0===t&&e&&(t=ja(e)),80===t&&(t=void 0);const r=N(xc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=P("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){gn.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=P(e?vl(e)?aI(!1,n,e,r,kc):`generated@${QB(e)}`:"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function R(e,t,n,r){const i=L(xc(e));return UD(i,{flags:t,id:UC,prefix:n,suffix:r}),UC++,i}function j(e){return t.createBaseTokenNode(e)}function M(e){gn.assert(e>=0&&e<=165,"Invalid token"),gn.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),gn.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),gn.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=j(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function B(){return M(110)}function J(){return M(106)}function $(){return M(112)}function q(){return M(97)}function U(e){return M(e)}function V(e){const t=[];return 32&e&&t.push(U(95)),128&e&&t.push(U(138)),2048&e&&t.push(U(90)),4096&e&&t.push(U(87)),1&e&&t.push(U(125)),2&e&&t.push(U(123)),4&e&&t.push(U(124)),64&e&&t.push(U(128)),256&e&&t.push(U(126)),16&e&&t.push(U(164)),8&e&&t.push(U(148)),512&e&&t.push(U(129)),1024&e&&t.push(U(134)),8192&e&&t.push(U(103)),16384&e&&t.push(U(147)),t.length?t:void 0}function W(e,t){const n=x(166);return n.left=e,n.right=Ni(t),n.transformFlags|=ZC(n.left)|YC(n.right),n.flowNode=void 0,n}function H(e){const t=x(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|ZC(t.expression),t}function G(e,t,n,r){const i=S(168);return i.modifiers=Fi(e),i.name=Ni(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function K(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Oi(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){const a=S(169);return a.modifiers=Fi(e),a.dotDotDotToken=t,a.name=Ni(n),a.questionToken=r,a.type=i,a.initializer=Ai(o),gv(a.name)?a.transformFlags=1:a.transformFlags=eD(a.modifiers)|ZC(a.dotDotDotToken)|QC(a.name)|ZC(a.questionToken)|ZC(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&eb(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Oi(Q(t,n,r,i,o,a),e):e}function Z(e){const t=x(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|ZC(t.expression),t}function ee(e,t,n,r){const i=S(171);return i.modifiers=Fi(e),i.name=Ni(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function te(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((o=ee(t,n,r,i))!==(a=e)&&(o.initializer=a.initializer),Oi(o,a)):e;var o,a}function ne(e,t,n,r,i){const o=S(172);o.modifiers=Fi(e),o.name=Ni(t),o.questionToken=n&&Ww(n)?n:void 0,o.exclamationToken=n&&Vw(n)?n:void 0,o.type=r,o.initializer=Ai(i);const a=33554432&o.flags||128&eb(o.modifiers);return o.transformFlags=eD(o.modifiers)|QC(o.name)|ZC(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(dE(o.name)||256&eb(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function re(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&Ww(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&Vw(r)?r:void 0)||e.type!==i||e.initializer!==o?Oi(ne(t,n,r,i,o),e):e}function ie(e,t,n,r,i,o){const a=S(173);return a.modifiers=Fi(e),a.name=Ni(t),a.questionToken=n,a.typeParameters=Fi(r),a.parameters=Fi(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function oe(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(ie(t,n,r,i,o,a),e):e}function ae(e,t,n,r,i,o,a,s){const c=S(174);if(c.modifiers=Fi(e),c.asteriskToken=t,c.name=Ni(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Fi(i),c.parameters=b(o),c.type=a,c.body=s,c.body){const e=1024&eb(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=eD(c.modifiers)|ZC(c.asteriskToken)|QC(c.name)|ZC(c.questionToken)|eD(c.typeParameters)|eD(c.parameters)|ZC(c.type)|-67108865&ZC(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function se(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?((l=ae(t,n,r,i,o,a,s,c))!==(u=e)&&(l.exclamationToken=u.exclamationToken),Oi(l,u)):e;var l,u}function ce(e){const t=S(175);return t.body=e,t.transformFlags=16777216|ZC(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function ue(e,t,n){const r=S(176);return r.modifiers=Fi(e),r.parameters=b(t),r.body=n,r.body?r.transformFlags=eD(r.modifiers)|eD(r.parameters)|-67108865&ZC(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function _e(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=ue(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),T(i,o)):e;var i,o}function de(e,t,n,r,i){const o=S(177);return o.modifiers=Fi(e),o.name=Ni(t),o.parameters=b(n),o.type=r,o.body=i,o.body?o.transformFlags=eD(o.modifiers)|QC(o.name)|eD(o.parameters)|ZC(o.type)|-67108865&ZC(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=de(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),T(a,s)):e;var a,s}function fe(e,t,n,r){const i=S(178);return i.modifiers=Fi(e),i.name=Ni(t),i.parameters=b(n),i.body=r,i.body?i.transformFlags=eD(i.modifiers)|QC(i.name)|eD(i.parameters)|-67108865&ZC(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function me(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=fe(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),T(o,a)):e;var o,a}function ge(e,t,n){const r=S(179);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=S(180);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n){const r=S(181);return r.modifiers=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ve(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(ye(t,n,r),e):e}function be(e,t){const n=x(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function xe(e,t,n){const r=x(182);return r.assertsModifier=e,r.parameterName=Ni(t),r.type=n,r.transformFlags=1,r}function Se(e,t){const n=x(183);return n.typeName=Ni(e),n.typeArguments=t&&r().parenthesizeTypeArguments(b(t)),n.transformFlags=1,n}function Te(e,t,n){const r=S(184);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function De(...e){return 4===e.length?we(...e):3===e.length?function(e,t,n){return we(void 0,e,t,n)}(...e):gn.fail("Incorrect number of arguments specified.")}function we(e,t,n,r){const i=S(185);return i.modifiers=Fi(e),i.typeParameters=Fi(t),i.parameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ee(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(De(t,n,r,i),e):e}function Fe(e,t){const n=x(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ne(e){const t=S(187);return t.members=b(e),t.transformFlags=1,t}function Ae(e){const t=x(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=x(189);return t.elements=b(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Re(e){const t=x(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function je(e){const t=x(191);return t.type=e,t.transformFlags=1,t}function Me(e,t,n){const r=x(e);return r.types=v.createNodeArray(n(t)),r.transformFlags=1,r}function Be(e,t,n){return e.types!==t?Oi(Me(e.kind,t,n),e):e}function Je(e,t,n,i){const o=x(194);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function ze(e){const t=x(195);return t.typeParameter=e,t.transformFlags=1,t}function $e(e,t){const n=x(203);return n.head=e,n.templateSpans=b(t),n.transformFlags=1,n}function qe(e,t,n,i,o=!1){const a=x(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ue(e){const t=x(196);return t.type=e,t.transformFlags=1,t}function Ve(e,t){const n=x(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function We(e,t){const n=x(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&b(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ge(e){const t=x(201);return t.literal=e,t.transformFlags=1,t}function Ke(e){const t=x(206);return t.elements=b(e),t.transformFlags|=525312|eD(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=x(207);return t.elements=b(e),t.transformFlags|=525312|eD(t.elements),t}function Qe(e,t,n,r){const i=S(208);return i.dotDotDotToken=e,i.propertyName=Ni(t),i.name=Ni(n),i.initializer=Ai(r),i.transformFlags|=ZC(i.dotDotDotToken)|QC(i.propertyName)|QC(i.name)|ZC(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ye(e,t){const n=x(209),i=e&&ke(e),o=b(e,!(!i||!kF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=eD(n.elements),n}function Ze(e,t){const n=S(210);return n.properties=b(e),n.multiLine=t,n.transformFlags|=eD(n.properties),n.jsDoc=void 0,n}function et(e,t,n){const r=S(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=ZC(r.expression)|ZC(r.questionDotToken)|(Xw(r.name)?YC(r.name):536870912|ZC(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function tt(e,t){const n=et(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ni(t));return cE(e)&&(n.transformFlags|=384),n}function rt(e,t,n){const i=et(r().parenthesizeLeftSideOfAccess(e,!0),t,Ni(n));return i.flags|=64,i.transformFlags|=32,i}function it(e,t,n,r){return gn.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Oi(rt(t,n,r),e):e}function ot(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=ZC(r.expression)|ZC(r.questionDotToken)|ZC(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function at(e,t){const n=ot(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Pi(t));return cE(e)&&(n.transformFlags|=384),n}function ct(e,t,n){const i=ot(r().parenthesizeLeftSideOfAccess(e,!0),t,Pi(n));return i.flags|=64,i.transformFlags|=32,i}function lt(e,t,n,r){return gn.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Oi(ct(t,n,r),e):e}function _t(e,t,n,r){const i=S(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=ZC(i.expression)|ZC(i.questionDotToken)|eD(i.typeArguments)|eD(i.arguments),i.typeArguments&&(i.transformFlags|=1),pm(i.expression)&&(i.transformFlags|=16384),i}function pt(e,t,n){const i=_t(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Fi(t),r().parenthesizeExpressionsOfCommaDelimitedList(b(n)));return lE(i.expression)&&(i.transformFlags|=8388608),i}function ft(e,t,n,i){const o=_t(r().parenthesizeLeftSideOfAccess(e,!0),t,Fi(n),r().parenthesizeExpressionsOfCommaDelimitedList(b(i)));return o.flags|=64,o.transformFlags|=32,o}function mt(e,t,n,r,i){return gn.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Oi(ft(t,n,r,i),e):e}function gt(e,t,n){const i=S(214);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Fi(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=ZC(i.expression)|eD(i.typeArguments)|eD(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=x(215);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Fi(t),i.template=n,i.transformFlags|=ZC(i.tag)|eD(i.typeArguments)|ZC(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),xy(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=x(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=ZC(n.expression)|ZC(n.type)|1,n}function xt(e,t,n){return e.type!==t||e.expression!==n?Oi(bt(t,n),e):e}function St(e){const t=x(217);return t.expression=e,t.transformFlags=ZC(t.expression),t.jsDoc=void 0,t}function kt(e,t){return e.expression!==t?Oi(St(t),e):e}function Tt(e,t,n,r,i,o,a){const s=S(218);s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ni(n),s.typeParameters=Fi(r),s.parameters=b(i),s.type=o,s.body=a;const c=1024&eb(s.modifiers),l=!!s.asteriskToken,u=c&&l;return s.transformFlags=eD(s.modifiers)|ZC(s.asteriskToken)|QC(s.name)|eD(s.typeParameters)|eD(s.parameters)|ZC(s.type)|-67108865&ZC(s.body)|(u?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Ct(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(Tt(t,n,r,i,o,a,s),e):e}function Dt(e,t,n,i,o,a){const s=S(219);s.modifiers=Fi(e),s.typeParameters=Fi(t),s.parameters=b(n),s.type=i,s.equalsGreaterThanToken=o??M(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&eb(s.modifiers);return s.transformFlags=eD(s.modifiers)|eD(s.typeParameters)|eD(s.parameters)|ZC(s.type)|ZC(s.equalsGreaterThanToken)|-67108865&ZC(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function wt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(Dt(t,n,r,i,o,a),e):e}function Et(e){const t=x(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ZC(t.expression),t}function Ft(e){const t=x(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ZC(t.expression),t}function Nt(e){const t=x(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ZC(t.expression),t}function Pt(e){const t=x(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|ZC(t.expression),t}function At(e,t){const n=x(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=ZC(n.operand),46!==e&&47!==e||!Xw(n.operand)||Yl(n.operand)||sA(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=x(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=ZC(n.operand),!Xw(n.operand)||Yl(n.operand)||sA(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(226),o="number"==typeof(a=t)?M(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=ZC(i.left)|ZC(i.operatorToken)|ZC(i.right),61===s?i.transformFlags|=32:64===s?tF(i.left)?i.transformFlags|=5248|Lt(i.left):eF(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:ib(s)&&(i.transformFlags|=16),103===s&&Qw(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return pI(e)?65536:0}function Rt(e,t,n,i,o){const a=x(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??M(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??M(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=ZC(a.condition)|ZC(a.questionToken)|ZC(a.whenTrue)|ZC(a.colonToken)|ZC(a.whenFalse),a}function jt(e,t){const n=x(228);return n.head=e,n.templateSpans=b(t),n.transformFlags|=ZC(n.head)|eD(n.templateSpans)|1024,n}function Mt(e,t,n,r=0){let i;if(gn.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch($C||($C=ks(99,!1,0)),e){case 15:$C.setText("`"+t+"`");break;case 16:$C.setText("`"+t+"${");break;case 17:$C.setText("}"+t+"${");break;case 18:$C.setText("}"+t+"`")}let n,r=$C.scan();if(20===r&&(r=$C.reScanTemplateToken(!1)),$C.isUnterminated())return $C.setText(void 0),XC;switch(r){case 15:case 16:case 17:case 18:n=$C.getTokenValue()}return void 0===n||1!==$C.scan()?($C.setText(void 0),XC):($C.setText(void 0),n)}(e,n),"object"==typeof i))return gn.fail("Invalid raw text");if(void 0===t){if(void 0===i)return gn.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&gn.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Bt(e){let t=1024;return e&&(t|=128),t}function Jt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}function zt(e,t,n,r){return 15===e?Jt(e,t,n,r):function(e,t,n,r){const i=j(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}(e,t,n,r)}function $t(e,t){gn.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=x(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=ZC(n.expression)|ZC(n.asteriskToken)|1049728,n}function qt(e){const t=x(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|ZC(t.expression),t}function Ut(e,t,n,r,i){const o=S(231);return o.modifiers=Fi(e),o.name=Ni(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=b(i),o.transformFlags|=eD(o.modifiers)|QC(o.name)|eD(o.typeParameters)|eD(o.heritageClauses)|eD(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Vt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Ut(t,n,r,i,o),e):e}function Wt(e,t){const n=x(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=ZC(n.expression)|eD(n.typeArguments)|1024,n}function Ht(e,t,n){return e.expression!==t||e.typeArguments!==n?Oi(Wt(t,n),e):e}function Gt(e,t){const n=x(234);return n.expression=e,n.type=t,n.transformFlags|=ZC(n.expression)|ZC(n.type)|1,n}function Kt(e,t,n){return e.expression!==t||e.type!==n?Oi(Gt(t,n),e):e}function Xt(e){const t=x(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|ZC(t.expression),t}function Qt(e,t){return Pl(e)?nn(e,t):e.expression!==t?Oi(Xt(t),e):e}function Yt(e,t){const n=x(238);return n.expression=e,n.type=t,n.transformFlags|=ZC(n.expression)|ZC(n.type)|1,n}function Zt(e,t,n){return e.expression!==t||e.type!==n?Oi(Yt(t,n),e):e}function tn(e){const t=x(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|ZC(t.expression),t}function nn(e,t){return gn.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Oi(tn(t),e):e}function rn(e,t){const n=x(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=ZC(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return gn.assertNever(e)}return n.flowNode=void 0,n}function on(e,t){const n=x(239);return n.expression=e,n.literal=t,n.transformFlags|=ZC(n.expression)|ZC(n.literal)|1024,n}function an(e,t){const n=x(241);return n.statements=b(e),n.multiLine=t,n.transformFlags|=eD(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=x(243);return n.modifiers=Fi(e),n.declarationList=nt(t)?En(t):t,n.transformFlags|=eD(n.modifiers)|ZC(n.declarationList),128&eb(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function cn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Oi(sn(t,n),e):e}function ln(){const e=x(242);return e.jsDoc=void 0,e}function un(e){const t=x(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=ZC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function _n(e,t,n){const r=x(245);return r.expression=e,r.thenStatement=Ii(t),r.elseStatement=Ii(n),r.transformFlags|=ZC(r.expression)|ZC(r.thenStatement)|ZC(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function dn(e,t){const n=x(246);return n.statement=Ii(e),n.expression=t,n.transformFlags|=ZC(n.statement)|ZC(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function pn(e,t){const n=x(247);return n.expression=e,n.statement=Ii(t),n.transformFlags|=ZC(n.expression)|ZC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t,n,r){const i=x(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ii(r),i.transformFlags|=ZC(i.initializer)|ZC(i.condition)|ZC(i.incrementor)|ZC(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function mn(e,t,n){const r=x(249);return r.initializer=e,r.expression=t,r.statement=Ii(n),r.transformFlags|=ZC(r.initializer)|ZC(r.expression)|ZC(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function hn(e,t,n,i){const o=x(250);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ii(i),o.transformFlags|=ZC(o.awaitModifier)|ZC(o.initializer)|ZC(o.expression)|ZC(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function yn(e){const t=x(251);return t.label=Ni(e),t.transformFlags|=4194304|ZC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=x(252);return t.label=Ni(e),t.transformFlags|=4194304|ZC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=x(253);return t.expression=e,t.transformFlags|=4194432|ZC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=x(254);return n.expression=e,n.statement=Ii(t),n.transformFlags|=ZC(n.expression)|ZC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Sn(e,t){const n=x(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=ZC(n.expression)|ZC(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function kn(e,t){const n=x(256);return n.label=Ni(e),n.statement=Ii(t),n.transformFlags|=ZC(n.label)|ZC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Tn(e,t,n){return e.label!==t||e.statement!==n?Oi(kn(t,n),e):e}function Cn(e){const t=x(257);return t.expression=e,t.transformFlags|=ZC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function Dn(e,t,n){const r=x(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=ZC(r.tryBlock)|ZC(r.catchClause)|ZC(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function wn(e,t,n,r){const i=S(260);return i.name=Ni(e),i.exclamationToken=t,i.type=n,i.initializer=Ai(r),i.transformFlags|=QC(i.name)|ZC(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function En(e,t=0){const n=x(261);return n.flags|=7&t,n.declarations=b(e),n.transformFlags|=4194304|eD(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Fn(e,t,n,r,i,o,a){const s=S(262);if(s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ni(n),s.typeParameters=Fi(r),s.parameters=b(i),s.type=o,s.body=a,!s.body||128&eb(s.modifiers))s.transformFlags=1;else{const e=1024&eb(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=eD(s.modifiers)|ZC(s.asteriskToken)|QC(s.name)|eD(s.typeParameters)|eD(s.parameters)|ZC(s.type)|-67108865&ZC(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Nn(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Fn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),T(c,l)):e;var c,l}function Pn(e,t,n,r,i){const o=S(263);return o.modifiers=Fi(e),o.name=Ni(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=b(i),128&eb(o.modifiers)?o.transformFlags=1:(o.transformFlags|=eD(o.modifiers)|QC(o.name)|eD(o.typeParameters)|eD(o.heritageClauses)|eD(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Pn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=S(264);return o.modifiers=Fi(e),o.name=Ni(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=b(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=S(265);return i.modifiers=Fi(e),i.name=Ni(t),i.typeParameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Rn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Oi(Ln(t,n,r,i),e):e}function jn(e,t,n){const r=S(266);return r.modifiers=Fi(e),r.name=Ni(t),r.members=b(n),r.transformFlags|=eD(r.modifiers)|ZC(r.name)|eD(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Mn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Oi(jn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=S(267);return i.modifiers=Fi(e),i.flags|=2088&r,i.name=t,i.body=n,128&eb(i.modifiers)?i.transformFlags=1:i.transformFlags|=eD(i.modifiers)|ZC(i.name)|ZC(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Oi(Bn(t,n,r,e.flags),e):e}function zn(e){const t=x(268);return t.statements=b(e),t.transformFlags|=eD(t.statements),t.jsDoc=void 0,t}function $n(e){const t=x(269);return t.clauses=b(e),t.transformFlags|=eD(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function qn(e){const t=S(270);return t.name=Ni(e),t.transformFlags|=1|YC(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Un(e,t,n,r){const i=S(271);return i.modifiers=Fi(e),i.name=Ni(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=eD(i.modifiers)|YC(i.name)|ZC(i.moduleReference),NN(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Vn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Oi(Un(t,n,r,i),e):e}function Wn(e,t,n,r){const i=x(272);return i.modifiers=Fi(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=ZC(i.importClause)|ZC(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi(Wn(t,n,r,i),e):e}function Gn(e,t,n){const r=S(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=ZC(r.name)|ZC(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Kn(e,t){const n=x(300);return n.elements=b(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=x(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=x(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=x(300);return r.token=n??118,r.elements=b(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=x(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(274);return t.name=e,t.transformFlags|=ZC(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(280);return t.name=e,t.transformFlags|=32|ZC(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=x(275);return t.elements=b(e),t.transformFlags|=eD(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=ZC(r.propertyName)|ZC(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(277);return i.modifiers=Fi(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=eD(i.modifiers)|ZC(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Oi(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=S(278);return o.modifiers=Fi(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=eD(o.modifiers)|ZC(o.exportClause)|ZC(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?((a=ar(t,n,r,i,o))!==(s=e)&&a.modifiers===s.modifiers&&(a.modifiers=s.modifiers),Oi(a,s)):e;var a,s}function cr(e){const t=x(279);return t.elements=b(e),t.transformFlags|=eD(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=x(281);return r.isTypeOnly=e,r.propertyName=Ni(t),r.name=Ni(n),r.transformFlags|=ZC(r.propertyName)|ZC(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function ur(e){const t=x(283);return t.expression=e,t.transformFlags|=ZC(t.expression),t.transformFlags&=-67108865,t}function _r(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=x(e);return n.type=t,n}function pr(e,t){const n=S(317);return n.parameters=Fi(e),n.type=t,n.transformFlags=eD(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=S(322);return n.jsDocPropertyTags=Fi(e),n.isArrayType=t,n}function mr(e){const t=x(309);return t.type=e,t}function gr(e,t,n){const r=S(323);return r.typeParameters=Fi(e),r.parameters=b(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=KC(e.kind);return e.tagName.escapedText===xc(t)?e.tagName:A(t)}function yr(e,t,n){const r=x(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(345,e??A("template"),r);return i.constraint=t,i.typeParameters=b(n),i}function xr(e,t,n,r){const i=vr(346,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=IA(n),i.locals=void 0,i.nextContainer=void 0,i}function Sr(e,t,n,r,i,o){const a=vr(341,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function kr(e,t,n,r,i,o){const a=vr(348,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(338,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=IA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(339,e??A("overload"),n);return r.typeExpression=t,r}function Dr(e,t,n){const r=yr(328,e??A("augments"),n);return r.class=t,r}function wr(e,t,n){const r=yr(329,e??A("implements"),n);return r.class=t,r}function Er(e,t,n){const r=yr(347,e??A("see"),n);return r.name=t,r}function Fr(e){const t=x(310);return t.name=e,t}function Nr(e,t){const n=x(311);return n.left=e,n.right=t,n.transformFlags|=ZC(n.left)|ZC(n.right),n}function Pr(e,t){const n=x(324);return n.name=e,n.text=t,n}function Ar(e,t){const n=x(325);return n.name=e,n.text=t,n}function Ir(e,t){const n=x(326);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(KC(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(KC(e)),r);return i.typeExpression=n,i}function Rr(e,t){return yr(327,e,t)}function jr(e,t,n){const r=vr(340,e??A(KC(340)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Mr(e,t,n,r,i){const o=yr(351,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=x(321);return t.text=e,t}function Jr(e,t){const n=x(320);return n.comment=e,n.tags=Fi(t),n}function zr(e,t,n){const r=x(284);return r.openingElement=e,r.children=b(t),r.closingElement=n,r.transformFlags|=ZC(r.openingElement)|eD(r.children)|ZC(r.closingElement)|2,r}function $r(e,t,n){const r=x(285);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=ZC(r.tagName)|eD(r.typeArguments)|ZC(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function qr(e,t,n){const r=x(286);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=ZC(r.tagName)|eD(r.typeArguments)|ZC(r.attributes)|2,t&&(r.transformFlags|=1),r}function Ur(e){const t=x(287);return t.tagName=e,t.transformFlags|=2|ZC(t.tagName),t}function Vr(e,t,n){const r=x(288);return r.openingFragment=e,r.children=b(t),r.closingFragment=n,r.transformFlags|=ZC(r.openingFragment)|eD(r.children)|ZC(r.closingFragment)|2,r}function Wr(e,t){const n=x(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=S(291);return n.name=e,n.initializer=t,n.transformFlags|=ZC(n.name)|ZC(n.initializer)|2,n}function Gr(e){const t=S(292);return t.properties=b(e),t.transformFlags|=2|eD(t.properties),t}function Kr(e){const t=x(293);return t.expression=e,t.transformFlags|=2|ZC(t.expression),t}function Xr(e,t){const n=x(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=ZC(n.dotDotDotToken)|ZC(n.expression)|2,n}function Qr(e,t){const n=x(295);return n.namespace=e,n.name=t,n.transformFlags|=ZC(n.namespace)|ZC(n.name)|2,n}function Yr(e,t){const n=x(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=b(t),n.transformFlags|=ZC(n.expression)|eD(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=x(297);return t.statements=b(e),t.transformFlags=eD(t.statements),t}function ei(e,t){const n=x(298);switch(n.token=e,n.types=b(t),n.transformFlags|=eD(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return gn.assertNever(e)}return n}function ti(e,t){const n=x(299);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!ZF(e)?wn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=ZC(n.variableDeclaration)|ZC(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(303);return n.name=Ni(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=QC(n.name)|ZC(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?((r=ni(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken),Oi(r,i)):e;var r,i}function ii(e,t){const n=S(304);return n.name=Ni(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=YC(n.name)|ZC(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=S(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|ZC(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(306);return n.name=Ni(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=ZC(n.name)|ZC(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(307);n.flags|=-17&e.flags;for(const t in e)!Ie(n,t)&&Ie(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=x(308);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function ui(e,t){const n=x(355);return n.expression=e,n.original=t,n.transformFlags|=1|ZC(n.expression),fI(n,t),n}function _i(e,t){return e.expression!==t?Oi(ui(t,e.original),e):e}function di(e){if(sy(e)&&!vc(e)&&!e.original&&!e.emitNode&&!e.id){if(PF(e))return e.elements;if(hF(e)&&zw(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=x(356);return t.elements=b(z(e,di)),t.transformFlags|=eD(t.elements),t}function fi(e,t){const n=x(357);return n.expression=e,n.thisArg=t,n.transformFlags|=ZC(n.expression)|ZC(n.thisArg),n}function mi(e){if(void 0===e)return e;if(QN(e))return ci(e);if(Yl(e))return function(e){const t=N(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),UD(t,{...e.emitNode.autoGenerate}),t}(e);if(Xw(e))return function(e){const t=N(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=qD(e);return r&&$D(t,r),t}(e);if(Zl(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),UD(t,{...e.emitNode.autoGenerate}),t}(e);if(Qw(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Ll(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!Ie(r,t)&&Ie(e,t)&&(r[t]=e[t]);return r}function gi(){return Nt(C("0"))}function hi(e,t,n){return kl(e)?ft(rt(e,void 0,t),void 0,void 0,n):pt(tt(e,t),void 0,n)}function yi(e,t,n){return hi(A(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=ph(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Pc(e):Ac(e);if(o&&Xw(o)&&!Yl(o)){const e=LT(fI(mi(o),o),o.parent);return r|=op(o),n||(r|=96),t||(r|=3072),r&&_D(e,r),e}return O(e)}function Si(e,t,n){return xi(e,t,n,16384)}function ki(e,t,n,r){const i=tt(e,sy(t)?t:mi(t));fI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&_D(i,o),i}function Ti(e){return Iw(e.expression)&&"use strict"===e.expression.text}function Ci(){return vA(un(E("use strict")))}function Di(e,t,n=0,r){gn.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 355:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}(e.kind);return Nc(e)&&cu(e.name)?function(e,t){return t|134234112&e.transformFlags}(e.name,t):t}function eD(e){return e?e.transformFlags:0}function tD(e){let t=0;for(const n of e)t|=ZC(n);e.transformFlags=t}var nD=MC();function rD(e){return e.flags|=16,e}var iD,oD=GC(4,{createBaseSourceFileNode:e=>rD(nD.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>rD(nD.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>rD(nD.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>rD(nD.createBaseTokenNode(e)),createBaseNode:e=>rD(nD.createBaseNode(e))});function aD(e,t,n){return new(iD||(iD=Vx.getSourceMapSourceConstructor()))(e,t,n)}function sD(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:u,startsOnNewLine:_,snippetElement:d,classThis:p,assignedName:f}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=de(i.slice(),t.leadingComments)),o&&(t.trailingComments=de(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),u)for(const e of u)t.helpers=fe(t.helpers,e);return void 0!==_&&(t.startsOnNewLine=_),void 0!==d&&(t.snippetElement=d),p&&(t.classThis=p),f&&(t.assignedName=f),t}(n,e.emitNode))}return e}function cD(e){if(e.emitNode)gn.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(vc(e)){if(307===e.kind)return e.emitNode={annotatedNodes:[e]};cD(Cd(bc(Cd(e)))??gn.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function lD(e){var t,n;const r=null==(n=null==(t=Cd(bc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function uD(e){const t=cD(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function _D(e,t){return cD(e).flags=t,e}function dD(e,t){const n=cD(e);return n.flags=n.flags|t,e}function pD(e,t){return cD(e).internalFlags=t,e}function fD(e,t){const n=cD(e);return n.internalFlags=n.internalFlags|t,e}function mD(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function gD(e,t){return cD(e).sourceMapRange=t,e}function hD(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function yD(e,t,n){const r=cD(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function vD(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function bD(e,t){return cD(e).startsOnNewLine=t,e}function xD(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function SD(e,t){return cD(e).commentRange=t,e}function kD(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function TD(e,t){return cD(e).leadingComments=t,e}function CD(e,t,n,r){return TD(e,le(kD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function DD(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function wD(e,t){return cD(e).trailingComments=t,e}function ED(e,t,n,r){return wD(e,le(DD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function FD(e,t){TD(e,kD(t)),wD(e,DD(t));const n=cD(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function ND(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function PD(e,t){return cD(e).constantValue=t,e}function AD(e,t){const n=cD(e);return n.helpers=le(n.helpers,t),e}function ID(e,t){if(X(t)){const n=cD(e);for(const e of t)n.helpers=fe(n.helpers,e)}return e}function OD(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&Wt(r,t)}function LD(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function RD(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!X(i))return;const o=cD(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function jD(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function MD(e,t){return cD(e).snippetElement=t,e}function BD(e){return cD(e).internalFlags|=4,e}function JD(e,t){return cD(e).typeNode=t,e}function zD(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function $D(e,t){return cD(e).identifierTypeArguments=t,e}function qD(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function UD(e,t){return cD(e).autoGenerate=t,e}function VD(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function WD(e,t){return cD(e).generatedImportReference=t,e}function HD(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var GD=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(GD||{});function KD(e){const t=e.factory,n=ht((()=>pD(t.createTrue(),8))),r=ht((()=>pD(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(YD);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(ZD),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(ew),fI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(tw),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(nw),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return DS(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(rw),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(iw),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(iw),e.requestEmitHelper(ow),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(iw),e.requestEmitHelper(aw),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(sw),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(cw);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;i= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},ZD={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},ew={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},tw={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},nw={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},rw={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},iw={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},ow={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[iw],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},aw={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[iw],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},sw={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},cw={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},lw={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},uw={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},_w={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},dw={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},pw={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},fw={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},mw={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},gw={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},hw={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},yw={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},vw={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[yw,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},bw={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},xw={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[yw],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},Sw={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},kw={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},Tw={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},Cw={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},Dw={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},ww={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},Ew={name:"typescript:async-super",scoped:!0,text:QD` +***************************************************************************** */function Ji(){return Oi||(Oi=1,e=ni,t={},(e=>{var t=Object.defineProperty,n=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},r={};n(r,{ANONYMOUS:()=>CZ,AccessFlags:()=>ti,AssertionLevel:()=>vt,AssignmentDeclarationKind:()=>_i,AssignmentKind:()=>th,Associativity:()=>cy,BreakpointResolver:()=>m7,BuilderFileEmit:()=>XU,BuilderProgramKind:()=>CV,BuilderState:()=>GU,CallHierarchy:()=>h7,CharacterCodes:()=>wi,CheckFlags:()=>Gr,CheckMode:()=>VB,ClassificationType:()=>qK,ClassificationTypeNames:()=>$K,CommentDirectiveType:()=>Fr,Comparison:()=>l,CompletionInfoFlags:()=>LK,CompletionTriggerKind:()=>wK,Completions:()=>Fae,ContainerFlags:()=>UM,ContextFlags:()=>Br,Debug:()=>gn,DiagnosticCategory:()=>di,Diagnostics:()=>ha,DocumentHighlights:()=>P0,ElementFlags:()=>ei,EmitFlags:()=>Pi,EmitHint:()=>Li,EmitOnly:()=>Ir,EndOfLineState:()=>MK,ExitStatus:()=>Lr,ExportKind:()=>h0,Extension:()=>Ei,ExternalEmitHelpers:()=>Oi,FileIncludeKind:()=>Pr,FilePreprocessingDiagnosticsKind:()=>Ar,FileSystemEntryKind:()=>uo,FileWatcherEventKind:()=>Vi,FindAllReferences:()=>Nce,FlattenLevel:()=>bz,FlowFlags:()=>Er,ForegroundColorEscapeSequences:()=>Vq,FunctionFlags:()=>Jh,GeneratedIdentifierFlags:()=>Cr,GetLiteralTextFlags:()=>cp,GoToDefinition:()=>hle,HighlightSpanKind:()=>FK,IdentifierNameMap:()=>KJ,ImportKind:()=>g0,ImportsNotUsedAsValues:()=>xi,IndentStyle:()=>NK,IndexFlags:()=>ni,IndexKind:()=>ai,InferenceFlags:()=>li,InferencePriority:()=>ci,InlayHintKind:()=>EK,InlayHints:()=>Rle,InternalEmitFlags:()=>Ai,InternalNodeBuilderFlags:()=>zr,InternalSymbolName:()=>Kr,IntersectionFlags:()=>Mr,InvalidatedProjectKind:()=>yH,JSDocParsingMode:()=>$i,JsDoc:()=>zle,JsTyping:()=>WG,JsxEmit:()=>bi,JsxFlags:()=>Sr,JsxReferenceKind:()=>ri,LanguageFeatureMinimumTarget:()=>Ii,LanguageServiceMode:()=>kK,LanguageVariant:()=>Ci,LexicalEnvironmentFlags:()=>ji,ListFormat:()=>Mi,LogLevel:()=>hn,MapCode:()=>sue,MemberOverrideStatus:()=>Rr,ModifierFlags:()=>xr,ModuleDetectionKind:()=>mi,ModuleInstanceState:()=>JM,ModuleKind:()=>vi,ModuleResolutionKind:()=>fi,ModuleSpecifierEnding:()=>Uk,NavigateTo:()=>r2,NavigationBar:()=>f2,NewLineKind:()=>Si,NodeBuilderFlags:()=>Jr,NodeCheckFlags:()=>Xr,NodeFactoryFlags:()=>VC,NodeFlags:()=>br,NodeResolutionFeatures:()=>jj,ObjectFlags:()=>Yr,OperationCanceledException:()=>Nr,OperatorPrecedence:()=>py,OrganizeImports:()=>pue,OrganizeImportsMode:()=>DK,OuterExpressionKinds:()=>Ri,OutliningElementsCollector:()=>Vue,OutliningSpanKind:()=>RK,OutputFileType:()=>jK,PackageJsonAutoImportPreference:()=>SK,PackageJsonDependencyGroup:()=>xK,PatternMatchKind:()=>i1,PollingInterval:()=>Wi,PollingWatchKind:()=>yi,PragmaKindFlags:()=>Ji,PredicateSemantics:()=>Tr,PreparePasteEdits:()=>Efe,PrivateIdentifierKind:()=>GD,ProcessLevel:()=>zz,ProgramUpdateLevel:()=>Sq,QuotePreference:()=>nY,RegularExpressionFlags:()=>Dr,RelationComparisonResult:()=>kr,Rename:()=>e_e,ScriptElementKind:()=>JK,ScriptElementKindModifier:()=>zK,ScriptKind:()=>ki,ScriptSnapshot:()=>fK,ScriptTarget:()=>Ti,SemanticClassificationFormat:()=>CK,SemanticMeaning:()=>VK,SemicolonPreference:()=>PK,SignatureCheckMode:()=>WB,SignatureFlags:()=>oi,SignatureHelp:()=>s_e,SignatureInfo:()=>KU,SignatureKind:()=>ii,SmartSelectionRange:()=>I_e,SnippetKind:()=>Ni,StatisticType:()=>iG,StructureIsReused:()=>Or,SymbolAccessibility:()=>Ur,SymbolDisplay:()=>U_e,SymbolDisplayPartKind:()=>OK,SymbolFlags:()=>Hr,SymbolFormatFlags:()=>qr,SyntaxKind:()=>vr,Ternary:()=>ui,ThrottledCancellationToken:()=>a7,TokenClass:()=>BK,TokenFlags:()=>wr,TransformFlags:()=>Fi,TypeFacts:()=>qB,TypeFlags:()=>Qr,TypeFormatFlags:()=>$r,TypeMapKind:()=>si,TypePredicateKind:()=>Vr,TypeReferenceSerializationKind:()=>Wr,UnionReduction:()=>jr,UpToDateStatusType:()=>UW,VarianceFlags:()=>Zr,Version:()=>Cn,VersionRange:()=>wn,WatchDirectoryFlags:()=>Di,WatchDirectoryKind:()=>hi,WatchFileKind:()=>gi,WatchLogLevel:()=>Nq,WatchType:()=>EW,accessPrivateIdentifier:()=>gz,addEmitFlags:()=>dD,addEmitHelper:()=>AD,addEmitHelpers:()=>ID,addInternalEmitFlags:()=>fD,addNodeFactoryPatcher:()=>HC,addObjectAllocatorPatcher:()=>Hx,addRange:()=>de,addRelatedInfo:()=>pT,addSyntheticLeadingComment:()=>CD,addSyntheticTrailingComment:()=>ED,addToSeen:()=>Ex,advancedAsyncSuperHelper:()=>Fw,affectsDeclarationPathOptionDeclarations:()=>NO,affectsEmitOptionDeclarations:()=>FO,allKeysStartWithDot:()=>fM,altDirectorySeparator:()=>vo,and:()=>on,append:()=>le,appendIfUnique:()=>fe,arrayFrom:()=>Be,arrayIsEqualTo:()=>ae,arrayIsHomogeneous:()=>FT,arrayOf:()=>Me,arrayReverseIterator:()=>ge,arrayToMap:()=>$e,arrayToMultiMap:()=>Ue,arrayToNumericMap:()=>qe,assertType:()=>cn,assign:()=>Je,asyncSuperHelper:()=>Ew,attachFileToDiagnostics:()=>nS,base64decode:()=>Ab,base64encode:()=>Pb,binarySearch:()=>Fe,binarySearchKey:()=>Ne,bindSourceFile:()=>HM,breakIntoCharacterSpans:()=>x1,breakIntoWordSpans:()=>S1,buildLinkParts:()=>BY,buildOpts:()=>JO,buildOverload:()=>Mfe,bundlerModuleNameResolver:()=>Bj,canBeConvertedToAsync:()=>W1,canHaveDecorators:()=>gI,canHaveExportModifier:()=>YT,canHaveFlowNode:()=>zg,canHaveIllegalDecorators:()=>RA,canHaveIllegalModifiers:()=>jA,canHaveIllegalType:()=>OA,canHaveIllegalTypeParameters:()=>LA,canHaveJSDoc:()=>$g,canHaveLocals:()=>f_,canHaveModifiers:()=>mI,canHaveModuleSpecifier:()=>Tg,canHaveSymbol:()=>p_,canIncludeBindAndCheckDiagnostics:()=>bT,canJsonReportNoInputFiles:()=>_R,canProduceDiagnostics:()=>b$,canUsePropertyAccess:()=>eC,canWatchAffectingLocation:()=>GV,canWatchAtTypes:()=>VV,canWatchDirectoryOrFile:()=>qV,canWatchDirectoryOrFilePath:()=>UV,cartesianProduct:()=>_n,cast:()=>st,chainBundle:()=>$J,chainDiagnosticMessages:()=>sS,changeAnyExtension:()=>ea,changeCompilerHostLikeToUseCache:()=>zq,changeExtension:()=>Zk,changeFullExtension:()=>ta,changesAffectModuleResolution:()=>od,changesAffectingProgramStructure:()=>ad,characterCodeToRegularExpressionFlag:()=>Ja,childIsDecorated:()=>Sm,classElementOrClassElementParameterIsDecorated:()=>Tm,classHasClassThisAssignment:()=>Pz,classHasDeclaredOrExplicitlyAssignedName:()=>jz,classHasExplicitlyAssignedName:()=>Rz,classOrConstructorParameterIsDecorated:()=>km,classicNameResolver:()=>IM,classifier:()=>R7,cleanExtendedConfigCache:()=>Cq,clear:()=>I,clearMap:()=>vx,clearSharedExtendedConfigFileWatcher:()=>Tq,climbPastPropertyAccess:()=>oX,clone:()=>He,cloneCompilerOptions:()=>DQ,closeFileWatcher:()=>ux,closeFileWatcherOf:()=>Iq,codefix:()=>M7,collapseTextChangeRangesAcrossMultipleVersions:()=>ic,collectExternalModuleInfo:()=>WJ,combine:()=>ue,combinePaths:()=>Uo,commandLineOptionOfCustomType:()=>jO,commentPragmas:()=>zi,commonOptionsWithBuild:()=>kO,compact:()=>se,compareBooleans:()=>Bt,compareDataObjects:()=>yx,compareDiagnostics:()=>uS,compareEmitHelpers:()=>XD,compareNumberOfDirectorySeparators:()=>Gk,comparePaths:()=>aa,comparePathsCaseInsensitive:()=>oa,comparePathsCaseSensitive:()=>ia,comparePatternKeys:()=>gM,compareProperties:()=>Mt,compareStringsCaseInsensitive:()=>Et,compareStringsCaseInsensitiveEslintCompatible:()=>Ft,compareStringsCaseSensitive:()=>Nt,compareStringsCaseSensitiveUI:()=>jt,compareTextSpans:()=>Ct,compareValues:()=>Tt,compilerOptionsAffectDeclarationPath:()=>YS,compilerOptionsAffectEmit:()=>QS,compilerOptionsAffectSemanticDiagnostics:()=>XS,compilerOptionsDidYouMeanDiagnostics:()=>tL,compilerOptionsIndicateEsModules:()=>XQ,computeCommonSourceDirectoryOfFilenames:()=>Rq,computeLineAndCharacterOfPosition:()=>Va,computeLineOfPosition:()=>Wa,computeLineStarts:()=>za,computePositionOfLineAndCharacter:()=>qa,computeSignatureWithDiagnostics:()=>EV,computeSuggestionDiagnostics:()=>R1,computedOptions:()=>TS,concatenate:()=>Y,concatenateDiagnosticMessageChains:()=>cS,consumesNodeCoreModules:()=>UZ,contains:()=>E,containsIgnoredPath:()=>JT,containsObjectRestOrSpread:()=>pI,containsParseError:()=>Td,containsPath:()=>sa,convertCompilerOptionsForTelemetry:()=>qR,convertCompilerOptionsFromJson:()=>gR,convertJsonOption:()=>TR,convertToBase64:()=>Nb,convertToJson:()=>AL,convertToObject:()=>PL,convertToOptionsWithAbsolutePaths:()=>WL,convertToRelativePath:()=>_a,convertToTSConfig:()=>LL,convertTypeAcquisitionFromJson:()=>hR,copyComments:()=>cZ,copyEntries:()=>_d,copyLeadingComments:()=>pZ,copyProperties:()=>Ke,copyTrailingAsLeadingComments:()=>mZ,copyTrailingComments:()=>fZ,couldStartTrivia:()=>rs,countWhere:()=>N,createAbstractBuilder:()=>JV,createAccessorPropertyBackingField:()=>sI,createAccessorPropertyGetRedirector:()=>cI,createAccessorPropertySetRedirector:()=>lI,createBaseNodeFactory:()=>MC,createBinaryExpressionTrampoline:()=>eI,createBuilderProgram:()=>FV,createBuilderProgramUsingIncrementalBuildInfo:()=>OV,createBuilderStatusReporter:()=>QW,createCacheableExportInfoMap:()=>y0,createCachedDirectoryStructureHost:()=>xq,createClassifier:()=>N0,createCommentDirectivesMap:()=>Wd,createCompilerDiagnostic:()=>oS,createCompilerDiagnosticForInvalidCustomType:()=>WO,createCompilerDiagnosticFromMessageChain:()=>aS,createCompilerHost:()=>jq,createCompilerHostFromProgramHost:()=>NW,createCompilerHostWorker:()=>Jq,createDetachedDiagnostic:()=>Zx,createDiagnosticCollection:()=>hy,createDiagnosticForFileFromMessageChain:()=>Qp,createDiagnosticForNode:()=>Up,createDiagnosticForNodeArray:()=>Vp,createDiagnosticForNodeArrayFromMessageChain:()=>Gp,createDiagnosticForNodeFromMessageChain:()=>Hp,createDiagnosticForNodeInSourceFile:()=>Wp,createDiagnosticForRange:()=>Zp,createDiagnosticMessageChainFromDiagnostic:()=>Yp,createDiagnosticReporter:()=>oW,createDocumentPositionMapper:()=>jJ,createDocumentRegistry:()=>W0,createDocumentRegistryInternal:()=>H0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>BV,createEmitHelperFactory:()=>KD,createEmptyExports:()=>GP,createEvaluator:()=>kC,createExpressionForJsxElement:()=>ZP,createExpressionForJsxFragment:()=>eA,createExpressionForObjectLiteralElementLike:()=>iA,createExpressionForPropertyName:()=>rA,createExpressionFromEntityName:()=>nA,createExternalHelpersImportDeclarationIfNeeded:()=>SA,createFileDiagnostic:()=>rS,createFileDiagnosticFromMessageChain:()=>Xp,createFlowNode:()=>VM,createForOfBindingStatement:()=>tA,createFutureSourceFile:()=>m0,createGetCanonicalFileName:()=>Xt,createGetIsolatedDeclarationErrors:()=>k$,createGetSourceFile:()=>Mq,createGetSymbolAccessibilityDiagnosticForNode:()=>S$,createGetSymbolAccessibilityDiagnosticForNodeName:()=>x$,createGetSymbolWalker:()=>ZM,createIncrementalCompilerHost:()=>JW,createIncrementalProgram:()=>zW,createJsxFactoryExpression:()=>YP,createLanguageService:()=>l7,createLanguageServiceSourceFile:()=>n7,createMemberAccessForPropertyName:()=>KP,createModeAwareCache:()=>Tj,createModeAwareCacheKey:()=>kj,createModeMismatchDetails:()=>vd,createModuleNotFoundChain:()=>yd,createModuleResolutionCache:()=>Fj,createModuleResolutionLoader:()=>fU,createModuleResolutionLoaderUsingGlobalCache:()=>tW,createModuleSpecifierResolutionHost:()=>QQ,createMultiMap:()=>Qe,createNameResolver:()=>DC,createNodeConverters:()=>zC,createNodeFactory:()=>GC,createOptionNameMap:()=>$O,createOverload:()=>jfe,createPackageJsonImportFilter:()=>qZ,createPackageJsonInfo:()=>$Z,createParenthesizerRules:()=>BC,createPatternMatcher:()=>a1,createPrinter:()=>hq,createPrinterWithDefaults:()=>pq,createPrinterWithRemoveComments:()=>fq,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>mq,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>gq,createProgram:()=>OU,createProgramHost:()=>IW,createPropertyNameNodeForIdentifierOrLiteral:()=>GT,createQueue:()=>et,createRange:()=>Jb,createRedirectedBuilderProgram:()=>jV,createResolutionCache:()=>nW,createRuntimeTypeSerializer:()=>Gz,createScanner:()=>ks,createSemanticDiagnosticsBuilderProgram:()=>MV,createSet:()=>tt,createSolutionBuilder:()=>tH,createSolutionBuilderHost:()=>ZW,createSolutionBuilderWithWatch:()=>nH,createSolutionBuilderWithWatchHost:()=>eH,createSortedArray:()=>re,createSourceFile:()=>HI,createSourceMapGenerator:()=>bJ,createSourceMapSource:()=>aD,createSuperAccessVariableStatement:()=>Yz,createSymbolTable:()=>td,createSymlinkCache:()=>ik,createSyntacticTypeNodeBuilder:()=>VG,createSystemWatchFunctions:()=>fo,createTextChange:()=>MQ,createTextChangeFromStartLength:()=>jQ,createTextChangeRange:()=>nc,createTextRangeFromNode:()=>OQ,createTextRangeFromSpan:()=>RQ,createTextSpan:()=>Ys,createTextSpanFromBounds:()=>Zs,createTextSpanFromNode:()=>AQ,createTextSpanFromRange:()=>LQ,createTextSpanFromStringLiteralLikeContent:()=>IQ,createTextWriter:()=>zy,createTokenRange:()=>Vb,createTypeChecker:()=>eJ,createTypeReferenceDirectiveResolutionCache:()=>Nj,createTypeReferenceResolutionLoader:()=>hU,createWatchCompilerHost:()=>$W,createWatchCompilerHostOfConfigFile:()=>RW,createWatchCompilerHostOfFilesAndCompilerOptions:()=>jW,createWatchFactory:()=>FW,createWatchHost:()=>wW,createWatchProgram:()=>qW,createWatchStatusReporter:()=>lW,createWriteFileMeasuringIO:()=>Bq,declarationNameToString:()=>Mp,decodeMappings:()=>EJ,decodedTextSpanIntersectsWith:()=>Hs,deduplicate:()=>ne,defaultInitCompilerOptions:()=>VO,defaultMaximumTruncationLength:()=>Q_,diagnosticCategoryName:()=>pi,diagnosticToString:()=>c0,diagnosticsEqualityComparer:()=>fS,directoryProbablyExists:()=>Rb,directorySeparator:()=>yo,displayPart:()=>DY,displayPartsToString:()=>Q8,disposeEmitNodes:()=>lD,documentSpansEqual:()=>hY,dumpTracingLegend:()=>yr,elementAt:()=>ye,elideNodes:()=>nI,emitDetachedComments:()=>Ev,emitFiles:()=>lq,emitFilesAndReportErrors:()=>kW,emitFilesAndReportErrorsAndGetExitStatus:()=>TW,emitModuleKindIsNonNodeESM:()=>$S,emitNewLineBeforeLeadingCommentOfPosition:()=>wv,emitResolverSkipsTypeChecking:()=>cq,emitSkippedWithNoDiagnostics:()=>BU,emptyArray:()=>u,emptyFileSystemEntries:()=>uT,emptyMap:()=>d,emptyOptions:()=>TK,endsWith:()=>$t,ensurePathIsNonModuleName:()=>Zo,ensureScriptKind:()=>wk,ensureTrailingDirectorySeparator:()=>Yo,entityNameToString:()=>qp,enumerateInsertsAndDeletes:()=>un,equalOwnProperties:()=>ze,equateStringsCaseInsensitive:()=>xt,equateStringsCaseSensitive:()=>St,equateValues:()=>bt,escapeJsxAttributeString:()=>Ly,escapeLeadingUnderscores:()=>xc,escapeNonAsciiString:()=>Ny,escapeSnippetText:()=>WT,escapeString:()=>Ey,escapeTemplateSubstitution:()=>vy,evaluatorResult:()=>SC,every:()=>k,exclusivelyPrefixedNodeCoreModules:()=>IC,executeCommandLine:()=>xG,expandPreOrPostfixIncrementOrDecrementExpression:()=>oA,explainFiles:()=>hW,explainIfFileIsRedirectAndImpliedFormat:()=>yW,exportAssignmentIsAlias:()=>Sh,expressionResultIsUnused:()=>BT,extend:()=>Ge,extensionFromPath:()=>aT,extensionIsTS:()=>iT,extensionsNotSupportingExtensionlessResolution:()=>Mk,externalHelpersModuleNameText:()=>X_,factory:()=>oD,fileExtensionIs:()=>No,fileExtensionIsOneOf:()=>Po,fileIncludeReasonToDiagnostics:()=>xW,fileShouldUseJavaScriptRequire:()=>p0,filter:()=>P,filterMutate:()=>A,filterSemanticDiagnostics:()=>zU,find:()=>T,findAncestor:()=>yc,findBestPatternMatch:()=>Zt,findChildOfKind:()=>RX,findComputedPropertyNameCacheAssignment:()=>uI,findConfigFile:()=>Oq,findConstructorDeclaration:()=>CC,findContainingList:()=>jX,findDiagnosticForNode:()=>HZ,findFirstNonJsxWhitespaceToken:()=>YX,findIndex:()=>D,findLast:()=>C,findLastIndex:()=>w,findListItemInfo:()=>OX,findModifier:()=>pY,findNextToken:()=>eQ,findPackageJson:()=>zZ,findPackageJsons:()=>JZ,findPrecedingMatchingToken:()=>_Q,findPrecedingToken:()=>tQ,findSuperStatementIndexPath:()=>rz,findTokenOnLeftOfPosition:()=>ZX,findUseStrictPrologue:()=>uA,first:()=>xe,firstDefined:()=>g,firstDefinedIterator:()=>h,firstIterator:()=>Se,firstOrOnly:()=>YZ,firstOrUndefined:()=>ve,firstOrUndefinedIterator:()=>be,fixupCompilerOptions:()=>n2,flatMap:()=>M,flatMapIterator:()=>J,flatMapToMutable:()=>B,flatten:()=>j,flattenCommaList:()=>dI,flattenDestructuringAssignment:()=>xz,flattenDestructuringBinding:()=>Tz,flattenDiagnosticMessageText:()=>rU,forEach:()=>f,forEachAncestor:()=>cd,forEachAncestorDirectory:()=>fa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>SM,forEachChild:()=>qI,forEachChildRecursively:()=>UI,forEachDynamicImportOrRequireCall:()=>LC,forEachEmittedFile:()=>q$,forEachEnclosingBlockScopeContainer:()=>jp,forEachEntry:()=>ld,forEachExternalModuleToImportFrom:()=>x0,forEachImportClauseDeclaration:()=>Ag,forEachKey:()=>ud,forEachLeadingCommentRange:()=>ds,forEachNameInAccessChainWalkingLeft:()=>Lx,forEachNameOfDefaultExport:()=>F0,forEachPropertyAssignment:()=>Xf,forEachResolvedProjectReference:()=>vU,forEachReturnStatement:()=>Of,forEachRight:()=>m,forEachTrailingCommentRange:()=>ps,forEachTsConfigPropArray:()=>em,forEachUnique:()=>vY,forEachYieldExpression:()=>Lf,formatColorAndReset:()=>Zq,formatDiagnostic:()=>Uq,formatDiagnostics:()=>qq,formatDiagnosticsWithColorAndContext:()=>nU,formatGeneratedName:()=>aI,formatGeneratedNamePart:()=>iI,formatLocation:()=>tU,formatMessage:()=>iS,formatStringFromArgs:()=>Kx,formatting:()=>Ede,generateDjb2Hash:()=>qi,generateTSConfig:()=>VL,getAdjustedReferenceLocation:()=>WX,getAdjustedRenameLocation:()=>HX,getAliasDeclarationFromName:()=>bh,getAllAccessorDeclarations:()=>bv,getAllDecoratorsOfClass:()=>uz,getAllDecoratorsOfClassElement:()=>_z,getAllJSDocTags:()=>fl,getAllJSDocTagsOfKind:()=>ml,getAllKeys:()=>Re,getAllProjectOutputs:()=>oq,getAllSuperTypeNodes:()=>Eh,getAllowImportingTsExtensions:()=>CS,getAllowJSCompilerOption:()=>JS,getAllowSyntheticDefaultImports:()=>AS,getAncestor:()=>Ph,getAnyExtensionFromPath:()=>Bo,getAreDeclarationMapsEnabled:()=>BS,getAssignedExpandoInitializer:()=>Zm,getAssignedName:()=>Ic,getAssignmentDeclarationKind:()=>cg,getAssignmentDeclarationPropertyAccessKind:()=>yg,getAssignmentTargetKind:()=>rh,getAutomaticTypeDirectiveNames:()=>gj,getBaseFileName:()=>jo,getBinaryOperatorPrecedence:()=>my,getBuildInfo:()=>_q,getBuildInfoFileVersionMap:()=>LV,getBuildInfoText:()=>uq,getBuildOrderFromAnyBuildOrder:()=>XW,getBuilderCreationParameters:()=>DV,getBuilderFileEmit:()=>YU,getCanonicalDiagnostic:()=>ef,getCheckFlags:()=>_x,getClassExtendsHeritageElement:()=>Dh,getClassLikeDeclarationOfSymbol:()=>kx,getCombinedLocalAndExportSymbolFlags:()=>fx,getCombinedModifierFlags:()=>_c,getCombinedNodeFlags:()=>pc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>dc,getCommentRange:()=>xD,getCommonSourceDirectory:()=>rq,getCommonSourceDirectoryOfConfig:()=>iq,getCompilerOptionValue:()=>ZS,getCompilerOptionsDiffValue:()=>qL,getConditions:()=>fj,getConfigFileParsingDiagnostics:()=>NU,getConstantValue:()=>ND,getContainerFlags:()=>QM,getContainerNode:()=>vX,getContainingClass:()=>rm,getContainingClassExcludingClassDecorators:()=>am,getContainingClassStaticBlock:()=>im,getContainingFunction:()=>tm,getContainingFunctionDeclaration:()=>nm,getContainingFunctionOrClassStaticBlock:()=>om,getContainingNodeArray:()=>zT,getContainingObjectLiteralElement:()=>_7,getContextualTypeFromParent:()=>vZ,getContextualTypeFromParentOrAncestorTypeNode:()=>zX,getDeclarationDiagnostics:()=>T$,getDeclarationEmitExtensionForPath:()=>Yy,getDeclarationEmitOutputFilePath:()=>Xy,getDeclarationEmitOutputFilePathWorker:()=>Qy,getDeclarationFileExtension:()=>oO,getDeclarationFromName:()=>hh,getDeclarationModifierFlagsFromSymbol:()=>dx,getDeclarationOfKind:()=>Z_,getDeclarationsOfKind:()=>ed,getDeclaredExpandoInitializer:()=>Ym,getDecorators:()=>Oc,getDefaultCompilerOptions:()=>Y8,getDefaultFormatCodeSettings:()=>AK,getDefaultLibFileName:()=>Ls,getDefaultLibFilePath:()=>p7,getDefaultLikeExportInfo:()=>w0,getDefaultLikeExportNameFromDeclaration:()=>e0,getDefaultResolutionModeForFileWorker:()=>MU,getDiagnosticText:()=>cL,getDiagnosticsWithinSpan:()=>GZ,getDirectoryPath:()=>Ro,getDirectoryToWatchFailedLookupLocation:()=>KV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>YV,getDocumentPositionMapper:()=>I1,getDocumentSpansEqualityComparer:()=>yY,getESModuleInterop:()=>PS,getEditsForFileRename:()=>X0,getEffectiveBaseTypeNode:()=>Ch,getEffectiveConstraintOfTypeParameter:()=>yl,getEffectiveContainerForJSDocTemplateTag:()=>Hg,getEffectiveImplementsTypeNodes:()=>wh,getEffectiveInitializer:()=>Qm,getEffectiveJSDocHost:()=>Xg,getEffectiveModifierFlags:()=>Hv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Gv,getEffectiveModifierFlagsNoCache:()=>Yv,getEffectiveReturnTypeNode:()=>kv,getEffectiveSetAccessorTypeAnnotationNode:()=>Cv,getEffectiveTypeAnnotationNode:()=>xv,getEffectiveTypeParameterDeclarations:()=>hl,getEffectiveTypeRoots:()=>cj,getElementOrPropertyAccessArgumentExpressionOrName:()=>gg,getElementOrPropertyAccessName:()=>hg,getElementsOfBindingOrAssignmentPattern:()=>AA,getEmitDeclarations:()=>RS,getEmitFlags:()=>op,getEmitHelpers:()=>LD,getEmitModuleDetectionKind:()=>FS,getEmitModuleFormatOfFileWorker:()=>RU,getEmitModuleKind:()=>wS,getEmitModuleResolutionKind:()=>ES,getEmitScriptTarget:()=>DS,getEmitStandardClassFields:()=>KS,getEnclosingBlockScopeContainer:()=>Rp,getEnclosingContainer:()=>Lp,getEncodedSemanticClassifications:()=>B0,getEncodedSyntacticClassifications:()=>U0,getEndLinePosition:()=>Pd,getEntityNameFromTypeNode:()=>hm,getEntrypointsFromPackageJsonInfo:()=>iM,getErrorCountForSummary:()=>_W,getErrorSpanForNode:()=>rf,getErrorSummaryText:()=>mW,getEscapedTextOfIdentifierOrLiteral:()=>Xh,getEscapedTextOfJsxAttributeName:()=>cC,getEscapedTextOfJsxNamespacedName:()=>_C,getExpandoInitializer:()=>eg,getExportAssignmentExpression:()=>kh,getExportInfoMap:()=>D0,getExportNeedsImportStarHelper:()=>qJ,getExpressionAssociativity:()=>ly,getExpressionPrecedence:()=>_y,getExternalHelpersModuleName:()=>bA,getExternalModuleImportEqualsDeclarationExpression:()=>Am,getExternalModuleName:()=>Fg,getExternalModuleNameFromDeclaration:()=>Hy,getExternalModuleNameFromPath:()=>Gy,getExternalModuleNameLiteral:()=>TA,getExternalModuleRequireArgument:()=>Im,getFallbackOptions:()=>Aq,getFileEmitOutput:()=>HU,getFileMatcherPatterns:()=>Sk,getFileNamesFromConfigSpecs:()=>PR,getFileWatcherEventKind:()=>io,getFilesInErrorForSummary:()=>dW,getFirstConstructorWithBody:()=>_v,getFirstIdentifier:()=>mb,getFirstNonSpaceCharacterPosition:()=>YY,getFirstProjectOutput:()=>sq,getFixableErrorSpanExpression:()=>XZ,getFormatCodeSettingsForWriting:()=>l0,getFullWidth:()=>pd,getFunctionFlags:()=>zh,getHeritageClause:()=>Nh,getHostSignatureFromJSDoc:()=>Kg,getIdentifierAutoGenerate:()=>VD,getIdentifierGeneratedImportReference:()=>HD,getIdentifierTypeArguments:()=>qD,getImmediatelyInvokedFunctionExpression:()=>dm,getImpliedNodeFormatForEmitWorker:()=>jU,getImpliedNodeFormatForFile:()=>PU,getImpliedNodeFormatForFileWorker:()=>AU,getImportNeedsImportDefaultHelper:()=>VJ,getImportNeedsImportStarHelper:()=>UJ,getIndentString:()=>By,getInferredLibraryNameResolveFrom:()=>SU,getInitializedVariables:()=>sx,getInitializerOfBinaryExpression:()=>vg,getInitializerOfBindingOrAssignmentElement:()=>DA,getInterfaceBaseTypeNodes:()=>Fh,getInternalEmitFlags:()=>ap,getInvokedExpression:()=>ym,getIsFileExcluded:()=>C0,getIsolatedModules:()=>NS,getJSDocAugmentsTag:()=>qc,getJSDocClassTag:()=>Vc,getJSDocCommentRanges:()=>Cf,getJSDocCommentsAndTags:()=>qg,getJSDocDeprecatedTag:()=>tl,getJSDocDeprecatedTagNoCache:()=>nl,getJSDocEnumTag:()=>rl,getJSDocHost:()=>Qg,getJSDocImplementsTags:()=>Uc,getJSDocOverloadTags:()=>Gg,getJSDocOverrideTagNoCache:()=>el,getJSDocParameterTags:()=>jc,getJSDocParameterTagsNoCache:()=>Mc,getJSDocPrivateTag:()=>Gc,getJSDocPrivateTagNoCache:()=>Kc,getJSDocProtectedTag:()=>Xc,getJSDocProtectedTagNoCache:()=>Qc,getJSDocPublicTag:()=>Wc,getJSDocPublicTagNoCache:()=>Hc,getJSDocReadonlyTag:()=>Yc,getJSDocReadonlyTagNoCache:()=>Zc,getJSDocReturnTag:()=>ol,getJSDocReturnType:()=>ul,getJSDocRoot:()=>Yg,getJSDocSatisfiesExpressionType:()=>aC,getJSDocSatisfiesTag:()=>sl,getJSDocTags:()=>dl,getJSDocTemplateTag:()=>al,getJSDocThisTag:()=>il,getJSDocType:()=>ll,getJSDocTypeAliasName:()=>IA,getJSDocTypeAssertionType:()=>mA,getJSDocTypeParameterDeclarations:()=>Tv,getJSDocTypeParameterTags:()=>Jc,getJSDocTypeParameterTagsNoCache:()=>zc,getJSDocTypeTag:()=>cl,getJSXImplicitImportBase:()=>tk,getJSXRuntimeImport:()=>nk,getJSXTransformEnabled:()=>ek,getKeyForCompilerOptions:()=>bj,getLanguageVariant:()=>hS,getLastChild:()=>wx,getLeadingCommentRanges:()=>hs,getLeadingCommentRangesOfNode:()=>Tf,getLeftmostAccessExpression:()=>Ox,getLeftmostExpression:()=>Rx,getLibraryNameFromLibFileName:()=>kU,getLineAndCharacterOfPosition:()=>Ga,getLineInfo:()=>TJ,getLineOfLocalPosition:()=>lv,getLineStartPositionForPosition:()=>kX,getLineStarts:()=>Ua,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>rx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>nx,getLinesBetweenPositions:()=>Ha,getLinesBetweenRangeEndAndRangeStart:()=>Qb,getLinesBetweenRangeEndPositions:()=>Yb,getLiteralText:()=>lp,getLocalNameForExternalImport:()=>kA,getLocalSymbolForExportDefault:()=>wb,getLocaleSpecificMessage:()=>Yx,getLocaleTimeString:()=>cW,getMappedContextSpan:()=>kY,getMappedDocumentSpan:()=>SY,getMappedLocation:()=>xY,getMatchedFileSpec:()=>vW,getMatchedIncludeSpec:()=>bW,getMeaningFromDeclaration:()=>WK,getMeaningFromLocation:()=>HK,getMembersOfDeclaration:()=>jf,getModeForFileReference:()=>iU,getModeForResolutionAtIndex:()=>oU,getModeForUsageLocation:()=>sU,getModifiedTime:()=>Gi,getModifiers:()=>Lc,getModuleInstanceState:()=>zM,getModuleNameStringLiteralAt:()=>WU,getModuleSpecifierEndingPreference:()=>Vk,getModuleSpecifierResolverHost:()=>YQ,getNameForExportedSymbol:()=>ZZ,getNameFromImportAttribute:()=>bC,getNameFromIndexInfo:()=>Bp,getNameFromPropertyName:()=>HQ,getNameOfAccessExpression:()=>Ax,getNameOfCompilerOptionValue:()=>JL,getNameOfDeclaration:()=>Ac,getNameOfExpando:()=>ng,getNameOfJSDocTypedef:()=>Fc,getNameOfScriptTarget:()=>GS,getNameOrArgument:()=>mg,getNameTable:()=>u7,getNamespaceDeclarationNode:()=>Ng,getNewLineCharacter:()=>Bb,getNewLineKind:()=>s0,getNewLineOrDefaultFromHost:()=>zY,getNewTargetContainer:()=>um,getNextJSDocCommentLocation:()=>Vg,getNodeChildren:()=>UP,getNodeForGeneratedName:()=>rI,getNodeId:()=>QB,getNodeKind:()=>bX,getNodeModifiers:()=>yQ,getNodeModulePathParts:()=>XT,getNonAssignedNameOfDeclaration:()=>Pc,getNonAssignmentOperatorForCompoundAssignment:()=>ez,getNonAugmentationDeclaration:()=>Sp,getNonDecoratorTokenPosOfNode:()=>Gd,getNonIncrementalBuildInfoRoots:()=>RV,getNonModifierTokenPosOfNode:()=>Kd,getNormalizedAbsolutePath:()=>Ho,getNormalizedAbsolutePathWithoutRoot:()=>Ko,getNormalizedPathComponents:()=>Wo,getObjectFlags:()=>Tx,getOperatorAssociativity:()=>uy,getOperatorPrecedence:()=>fy,getOptionFromName:()=>rL,getOptionsForLibraryResolution:()=>Pj,getOptionsNameMap:()=>qO,getOrCreateEmitNode:()=>cD,getOrUpdate:()=>V,getOriginalNode:()=>hc,getOriginalNodeId:()=>BJ,getOutputDeclarationFileName:()=>X$,getOutputDeclarationFileNameWorker:()=>Q$,getOutputExtension:()=>G$,getOutputFileNames:()=>aq,getOutputJSFileNameWorker:()=>Z$,getOutputPathsFor:()=>W$,getOwnEmitOutputFilePath:()=>Ky,getOwnKeys:()=>Le,getOwnValues:()=>je,getPackageJsonTypesVersionsPaths:()=>sj,getPackageNameFromTypesPackageName:()=>NM,getPackageScopeForPath:()=>sM,getParameterSymbolFromJSDoc:()=>Wg,getParentNodeInSpan:()=>_Y,getParseTreeNode:()=>bc,getParsedCommandLineOfConfigFile:()=>lL,getPathComponents:()=>Jo,getPathFromPathComponents:()=>zo,getPathUpdater:()=>Q0,getPathsBasePath:()=>tv,getPatternFromSpec:()=>vk,getPendingEmitKindWithSeen:()=>uV,getPositionOfLineAndCharacter:()=>$a,getPossibleGenericSignatures:()=>pQ,getPossibleOriginalInputExtensionForExtension:()=>Zy,getPossibleOriginalInputPathWithoutChangingExt:()=>ev,getPossibleTypeArgumentsInfo:()=>fQ,getPreEmitDiagnostics:()=>$q,getPrecedingNonSpaceCharacterPosition:()=>ZY,getPrivateIdentifier:()=>fz,getProperties:()=>iz,getProperty:()=>Oe,getPropertyArrayElementValue:()=>Qf,getPropertyAssignmentAliasLikeExpression:()=>Th,getPropertyNameForPropertyNameNode:()=>Hh,getPropertyNameFromType:()=>mC,getPropertyNameOfBindingOrAssignmentElement:()=>FA,getPropertySymbolFromBindingElement:()=>uY,getPropertySymbolsFromContextualType:()=>d7,getQuoteFromPreference:()=>oY,getQuotePreference:()=>iY,getRangesWhere:()=>Q,getRefactorContextSpan:()=>KZ,getReferencedFileLocation:()=>EU,getRegexFromPattern:()=>kk,getRegularExpressionForWildcard:()=>gk,getRegularExpressionsForWildcards:()=>hk,getRelativePathFromDirectory:()=>ua,getRelativePathFromFile:()=>da,getRelativePathToDirectoryOrUrl:()=>pa,getRenameLocation:()=>dZ,getReplacementSpanForContextToken:()=>PQ,getResolutionDiagnostic:()=>UU,getResolutionModeOverride:()=>uU,getResolveJsonModule:()=>LS,getResolvePackageJsonExports:()=>IS,getResolvePackageJsonImports:()=>OS,getResolvedExternalModuleName:()=>Vy,getResolvedModuleFromResolution:()=>gd,getResolvedTypeReferenceDirectiveFromResolution:()=>hd,getRestIndicatorOfBindingOrAssignmentElement:()=>EA,getRestParameterElementType:()=>Rf,getRightMostAssignedExpression:()=>ig,getRootDeclaration:()=>oy,getRootDirectoryOfResolutionCache:()=>ZV,getRootLength:()=>Lo,getScriptKind:()=>GY,getScriptKindFromFileName:()=>Ek,getScriptTargetFeatures:()=>sp,getSelectedEffectiveModifierFlags:()=>Uv,getSelectedSyntacticModifierFlags:()=>Vv,getSemanticClassifications:()=>j0,getSemanticJsxChildren:()=>gy,getSetAccessorTypeAnnotationNode:()=>pv,getSetAccessorValueParameter:()=>dv,getSetExternalModuleIndicator:()=>xS,getShebang:()=>vs,getSingleVariableOfVariableStatement:()=>Bg,getSnapshotText:()=>UQ,getSnippetElement:()=>jD,getSourceFileOfModule:()=>Dd,getSourceFileOfNode:()=>Cd,getSourceFilePathInNewDir:()=>iv,getSourceFileVersionAsHashFromText:()=>PW,getSourceFilesToEmit:()=>nv,getSourceMapRange:()=>mD,getSourceMapper:()=>A1,getSourceTextOfNodeFromSourceFile:()=>Xd,getSpanOfTokenAtPosition:()=>tf,getSpellingSuggestion:()=>Jt,getStartPositionOfLine:()=>Fd,getStartPositionOfRange:()=>tx,getStartsOnNewLine:()=>vD,getStaticPropertiesAndClassStaticBlock:()=>az,getStrictOptionValue:()=>HS,getStringComparer:()=>Pt,getSubPatternFromSpec:()=>bk,getSuperCallFromStatement:()=>tz,getSuperContainer:()=>_m,getSupportedCodeFixes:()=>Z8,getSupportedExtensions:()=>Bk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Jk,getSwitchedType:()=>TZ,getSymbolId:()=>YB,getSymbolNameForPrivateIdentifier:()=>Qh,getSymbolTarget:()=>KY,getSyntacticClassifications:()=>q0,getSyntacticModifierFlags:()=>Kv,getSyntacticModifierFlagsNoCache:()=>Zv,getSynthesizedDeepClone:()=>eZ,getSynthesizedDeepCloneWithReplacements:()=>tZ,getSynthesizedDeepClones:()=>rZ,getSynthesizedDeepClonesWithReplacements:()=>iZ,getSyntheticLeadingComments:()=>kD,getSyntheticTrailingComments:()=>DD,getTargetLabel:()=>aX,getTargetOfBindingOrAssignmentElement:()=>wA,getTemporaryModuleResolutionState:()=>aM,getTextOfConstantValue:()=>up,getTextOfIdentifierOrLiteral:()=>Kh,getTextOfJSDocComment:()=>gl,getTextOfJsxAttributeName:()=>lC,getTextOfJsxNamespacedName:()=>dC,getTextOfNode:()=>np,getTextOfNodeFromSourceText:()=>tp,getTextOfPropertyName:()=>$p,getThisContainer:()=>sm,getThisParameter:()=>fv,getTokenAtPosition:()=>XX,getTokenPosOfNode:()=>Hd,getTokenSourceMapRange:()=>hD,getTouchingPropertyName:()=>GX,getTouchingToken:()=>KX,getTrailingCommentRanges:()=>ys,getTrailingSemicolonDeferringWriter:()=>$y,getTransformers:()=>P$,getTsBuildInfoEmitOutputFilePath:()=>U$,getTsConfigObjectLiteralExpression:()=>Yf,getTsConfigPropArrayElementValue:()=>Zf,getTypeAnnotationNode:()=>Sv,getTypeArgumentOrTypeParameterList:()=>vQ,getTypeKeywordOfTypeOnlyImport:()=>mY,getTypeNode:()=>zD,getTypeNodeIfAccessible:()=>DZ,getTypeParameterFromJsDoc:()=>Zg,getTypeParameterOwner:()=>oc,getTypesPackageName:()=>EM,getUILocale:()=>Lt,getUniqueName:()=>_Z,getUniqueSymbolId:()=>QY,getUseDefineForClassFields:()=>zS,getWatchErrorSummaryDiagnosticMessage:()=>pW,getWatchFactory:()=>Pq,group:()=>Ve,groupBy:()=>We,guessIndentation:()=>$_,handleNoEmitOptions:()=>JU,handleWatchOptionsConfigDirTemplateSubstitution:()=>tR,hasAbstractModifier:()=>Bv,hasAccessorModifier:()=>zv,hasAmbientModifier:()=>Jv,hasChangesInResolutions:()=>kd,hasContextSensitiveParameters:()=>$T,hasDecorators:()=>qv,hasDocComment:()=>gQ,hasDynamicName:()=>Vh,hasEffectiveModifier:()=>Ov,hasEffectiveModifiers:()=>Av,hasEffectiveReadonlyModifier:()=>$v,hasExtension:()=>Fo,hasImplementationTSFileExtension:()=>qk,hasIndexSignature:()=>kZ,hasInferredType:()=>FC,hasInitializer:()=>j_,hasInvalidEscape:()=>xy,hasJSDocNodes:()=>L_,hasJSDocParameterTags:()=>$c,hasJSFileExtension:()=>zk,hasJsonModuleEmitEnabled:()=>qS,hasOnlyExpressionInitializer:()=>M_,hasOverrideModifier:()=>Mv,hasPossibleExternalModuleReference:()=>Ip,hasProperty:()=>Ie,hasPropertyAccessExpressionWithName:()=>sX,hasQuestionToken:()=>Ig,hasRecordedExternalHelpers:()=>xA,hasResolutionModeOverride:()=>hC,hasRestParameter:()=>V_,hasScopeMarker:()=>t_,hasStaticModifier:()=>jv,hasSyntacticModifier:()=>Lv,hasSyntacticModifiers:()=>Iv,hasTSFileExtension:()=>$k,hasTabstop:()=>tC,hasTrailingDirectorySeparator:()=>Ao,hasType:()=>R_,hasTypeArguments:()=>eh,hasZeroOrOneAsteriskCharacter:()=>rk,hostGetCanonicalFileName:()=>Uy,hostUsesCaseSensitiveFileNames:()=>qy,idText:()=>kc,identifierIsThisKeyword:()=>vv,identifierToKeywordKind:()=>Tc,identity:()=>dt,identitySourceMapConsumer:()=>MJ,ignoreSourceNewlines:()=>BD,ignoredPaths:()=>oo,importFromModuleSpecifier:()=>Dg,importSyntaxAffectsModuleResolution:()=>SS,indexOfAnyCharCode:()=>F,indexOfNode:()=>ip,indicesOf:()=>ee,inferredTypesContainingFile:()=>xU,injectClassNamedEvaluationHelperBlockIfMissing:()=>Mz,injectClassThisAssignmentIfMissing:()=>Az,insertImports:()=>fY,insertSorted:()=>ie,insertStatementAfterCustomPrologue:()=>qd,insertStatementAfterStandardPrologue:()=>$d,insertStatementsAfterCustomPrologue:()=>zd,insertStatementsAfterStandardPrologue:()=>Jd,intersperse:()=>S,intrinsicTagNameToString:()=>pC,introducesArgumentsExoticObject:()=>qf,inverseJsxOptionMap:()=>yO,isAbstractConstructorSymbol:()=>Sx,isAbstractModifier:()=>oE,isAccessExpression:()=>Px,isAccessibilityModifier:()=>CQ,isAccessor:()=>vu,isAccessorModifier:()=>sE,isAliasableExpression:()=>xh,isAmbientModule:()=>fp,isAmbientPropertyDeclaration:()=>Cp,isAnyDirectorySeparator:()=>So,isAnyImportOrBareOrAccessedRequire:()=>Np,isAnyImportOrReExport:()=>Op,isAnyImportOrRequireStatement:()=>Pp,isAnyImportSyntax:()=>Fp,isAnySupportedFileExtension:()=>sT,isApplicableVersionedTypesKey:()=>vM,isArgumentExpressionOfElementAccess:()=>fX,isArray:()=>nt,isArrayBindingElement:()=>Pu,isArrayBindingOrAssignmentElement:()=>Mu,isArrayBindingOrAssignmentPattern:()=>ju,isArrayBindingPattern:()=>YE,isArrayLiteralExpression:()=>eF,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>wQ,isArrayTypeNode:()=>IE,isArrowFunction:()=>uF,isAsExpression:()=>CF,isAssertClause:()=>fN,isAssertEntry:()=>mN,isAssertionExpression:()=>Yu,isAssertsKeyword:()=>tE,isAssignmentDeclaration:()=>Xm,isAssignmentExpression:()=>_b,isAssignmentOperator:()=>cb,isAssignmentPattern:()=>Nu,isAssignmentTarget:()=>ih,isAsteriskToken:()=>Uw,isAsyncFunction:()=>$h,isAsyncModifier:()=>eE,isAutoAccessorPropertyDeclaration:()=>bu,isAwaitExpression:()=>fF,isAwaitKeyword:()=>nE,isBigIntLiteral:()=>Aw,isBinaryExpression:()=>hF,isBinaryLogicalOperator:()=>nb,isBinaryOperatorToken:()=>HA,isBindableObjectDefinePropertyCall:()=>lg,isBindableStaticAccessExpression:()=>dg,isBindableStaticElementAccessExpression:()=>pg,isBindableStaticNameExpression:()=>fg,isBindingElement:()=>ZE,isBindingElementOfBareOrAccessedRequire:()=>Vm,isBindingName:()=>lu,isBindingOrAssignmentElement:()=>Iu,isBindingOrAssignmentPattern:()=>Ou,isBindingPattern:()=>Fu,isBlock:()=>OF,isBlockLike:()=>f0,isBlockOrCatchScoped:()=>dp,isBlockScope:()=>Dp,isBlockScopedContainerTopLevel:()=>yp,isBooleanLiteral:()=>pu,isBreakOrContinueStatement:()=>Al,isBreakStatement:()=>VF,isBuildCommand:()=>bG,isBuildInfoFile:()=>$$,isBuilderProgram:()=>gW,isBundle:()=>YN,isCallChain:()=>kl,isCallExpression:()=>iF,isCallExpressionTarget:()=>KK,isCallLikeExpression:()=>$u,isCallLikeOrFunctionLikeExpression:()=>zu,isCallOrNewExpression:()=>qu,isCallOrNewExpressionTarget:()=>QK,isCallSignatureDeclaration:()=>TE,isCallToHelper:()=>Nw,isCaseBlock:()=>cN,isCaseClause:()=>qN,isCaseKeyword:()=>uE,isCaseOrDefaultClause:()=>F_,isCatchClause:()=>WN,isCatchClauseVariableDeclaration:()=>UT,isCatchClauseVariableDeclarationOrBindingElement:()=>pp,isCheckJsEnabledForFile:()=>lT,isCircularBuildOrder:()=>KW,isClassDeclaration:()=>nN,isClassElement:()=>hu,isClassExpression:()=>SF,isClassInstanceProperty:()=>xu,isClassLike:()=>yu,isClassMemberModifier:()=>ou,isClassNamedEvaluationHelperBlock:()=>Lz,isClassOrTypeElement:()=>Cu,isClassStaticBlockDeclaration:()=>bE,isClassThisAssignmentBlock:()=>Nz,isColonToken:()=>Hw,isCommaExpression:()=>dA,isCommaListExpression:()=>PF,isCommaSequence:()=>pA,isCommaToken:()=>zw,isComment:()=>bQ,isCommonJsExportPropertyAssignment:()=>zf,isCommonJsExportedExpression:()=>Jf,isCompoundAssignment:()=>ZJ,isComputedNonLiteralName:()=>Jp,isComputedPropertyName:()=>dE,isConciseBody:()=>o_,isConditionalExpression:()=>yF,isConditionalTypeNode:()=>JE,isConstAssertion:()=>TC,isConstTypeReference:()=>Fl,isConstructSignatureDeclaration:()=>CE,isConstructorDeclaration:()=>xE,isConstructorTypeNode:()=>NE,isContextualKeyword:()=>Lh,isContinueStatement:()=>UF,isCustomPrologue:()=>bf,isDebuggerStatement:()=>YF,isDeclaration:()=>h_,isDeclarationBindingElement:()=>Au,isDeclarationFileName:()=>iO,isDeclarationName:()=>gh,isDeclarationNameOfEnumOrNamespace:()=>ax,isDeclarationReadonly:()=>lf,isDeclarationStatement:()=>y_,isDeclarationWithTypeParameterChildren:()=>Ep,isDeclarationWithTypeParameters:()=>wp,isDecorator:()=>mE,isDecoratorTarget:()=>ZK,isDefaultClause:()=>UN,isDefaultImport:()=>Pg,isDefaultModifier:()=>Zw,isDefaultedExpandoInitializer:()=>tg,isDeleteExpression:()=>_F,isDeleteTarget:()=>fh,isDeprecatedDeclaration:()=>o0,isDestructuringAssignment:()=>db,isDiskPathRoot:()=>Co,isDoStatement:()=>BF,isDocumentRegistryEntry:()=>V0,isDotDotDotToken:()=>Jw,isDottedName:()=>gb,isDynamicName:()=>Wh,isEffectiveExternalModule:()=>kp,isEffectiveStrictModeSourceFile:()=>Tp,isElementAccessChain:()=>Sl,isElementAccessExpression:()=>rF,isEmittedFileOfProgram:()=>Fq,isEmptyArrayLiteral:()=>Db,isEmptyBindingElement:()=>cc,isEmptyBindingPattern:()=>sc,isEmptyObjectLiteral:()=>Cb,isEmptyStatement:()=>RF,isEmptyStringLiteral:()=>Cm,isEntityName:()=>su,isEntityNameExpression:()=>fb,isEnumConst:()=>cf,isEnumDeclaration:()=>oN,isEnumMember:()=>XN,isEqualityOperatorKind:()=>xZ,isEqualsGreaterThanToken:()=>Kw,isExclamationToken:()=>Vw,isExcludedFile:()=>AR,isExclusivelyTypeOnlyImportOrExport:()=>aU,isExpandoPropertyDeclaration:()=>gC,isExportAssignment:()=>SN,isExportDeclaration:()=>kN,isExportModifier:()=>Yw,isExportName:()=>cA,isExportNamespaceAsDefaultDeclaration:()=>Qd,isExportOrDefaultModifier:()=>tI,isExportSpecifier:()=>CN,isExportsIdentifier:()=>og,isExportsOrModuleExportsOrAlias:()=>XM,isExpression:()=>Qu,isExpressionNode:()=>wm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>yX,isExpressionOfOptionalChainRoot:()=>Dl,isExpressionStatement:()=>jF,isExpressionWithTypeArguments:()=>TF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>pb,isExternalModule:()=>XI,isExternalModuleAugmentation:()=>bp,isExternalModuleImportEqualsDeclaration:()=>Pm,isExternalModuleIndicator:()=>r_,isExternalModuleNameRelative:()=>As,isExternalModuleReference:()=>NN,isExternalModuleSymbol:()=>rd,isExternalOrCommonJsModule:()=>af,isFileLevelReservedGeneratedIdentifier:()=>eu,isFileLevelUniqueName:()=>Ad,isFileProbablyExternalModule:()=>SI,isFirstDeclarationOfSymbolParameter:()=>TY,isFixablePromiseHandler:()=>z1,isForInOrOfStatement:()=>i_,isForInStatement:()=>$F,isForInitializer:()=>s_,isForOfStatement:()=>qF,isForStatement:()=>zF,isFullSourceFile:()=>Lm,isFunctionBlock:()=>Vf,isFunctionBody:()=>a_,isFunctionDeclaration:()=>tN,isFunctionExpression:()=>lF,isFunctionExpressionOrArrowFunction:()=>VT,isFunctionLike:()=>uu,isFunctionLikeDeclaration:()=>du,isFunctionLikeKind:()=>mu,isFunctionLikeOrClassStaticBlockDeclaration:()=>_u,isFunctionOrConstructorTypeNode:()=>Eu,isFunctionOrModuleBlock:()=>gu,isFunctionSymbol:()=>kg,isFunctionTypeNode:()=>FE,isGeneratedIdentifier:()=>Yl,isGeneratedPrivateIdentifier:()=>Zl,isGetAccessor:()=>O_,isGetAccessorDeclaration:()=>SE,isGetOrSetAccessorDeclaration:()=>bl,isGlobalScopeAugmentation:()=>vp,isGlobalSourceFile:()=>of,isGrammarError:()=>Ld,isHeritageClause:()=>VN,isHoistedFunction:()=>xf,isHoistedVariableStatement:()=>kf,isIdentifier:()=>Xw,isIdentifierANonContextualKeyword:()=>Mh,isIdentifierName:()=>vh,isIdentifierOrThisTypeNode:()=>BA,isIdentifierPart:()=>xs,isIdentifierStart:()=>bs,isIdentifierText:()=>Ss,isIdentifierTypePredicate:()=>Gf,isIdentifierTypeReference:()=>ET,isIfStatement:()=>MF,isIgnoredFileFromWildCardWatching:()=>Eq,isImplicitGlob:()=>yk,isImportAttribute:()=>hN,isImportAttributeName:()=>Ql,isImportAttributes:()=>gN,isImportCall:()=>gf,isImportClause:()=>dN,isImportDeclaration:()=>_N,isImportEqualsDeclaration:()=>uN,isImportKeyword:()=>lE,isImportMeta:()=>hf,isImportOrExportSpecifier:()=>Vl,isImportOrExportSpecifierName:()=>HY,isImportSpecifier:()=>xN,isImportTypeAssertionContainer:()=>pN,isImportTypeNode:()=>GE,isImportable:()=>v0,isInComment:()=>mQ,isInCompoundLikeAssignment:()=>oh,isInExpressionContext:()=>Em,isInJSDoc:()=>Jm,isInJSFile:()=>jm,isInJSXText:()=>lQ,isInJsonFile:()=>Mm,isInNonReferenceComment:()=>FQ,isInReferenceComment:()=>EQ,isInRightSideOfInternalImportEqualsDeclaration:()=>GK,isInString:()=>oQ,isInTemplateString:()=>cQ,isInTopLevelContext:()=>lm,isInTypeQuery:()=>hv,isIncrementalBuildInfo:()=>xV,isIncrementalBundleEmitBuildInfo:()=>bV,isIncrementalCompilation:()=>MS,isIndexSignatureDeclaration:()=>DE,isIndexedAccessTypeNode:()=>VE,isInferTypeNode:()=>zE,isInfinityOrNaNString:()=>qT,isInitializedProperty:()=>sz,isInitializedVariable:()=>cx,isInsideJsxElement:()=>uQ,isInsideJsxElementOrAttribute:()=>aQ,isInsideNodeModules:()=>VZ,isInsideTemplateLiteral:()=>TQ,isInstanceOfExpression:()=>kb,isInstantiatedModule:()=>ZB,isInterfaceDeclaration:()=>rN,isInternalDeclaration:()=>G_,isInternalModuleImportEqualsDeclaration:()=>Om,isInternalName:()=>aA,isIntersectionTypeNode:()=>BE,isIntrinsicJsxName:()=>jy,isIterationStatement:()=>Zu,isJSDoc:()=>pP,isJSDocAllType:()=>oP,isJSDocAugmentsTag:()=>gP,isJSDocAuthorTag:()=>hP,isJSDocCallbackTag:()=>vP,isJSDocClassTag:()=>yP,isJSDocCommentContainingNode:()=>P_,isJSDocConstructSignature:()=>Og,isJSDocDeprecatedTag:()=>DP,isJSDocEnumTag:()=>EP,isJSDocFunctionType:()=>uP,isJSDocImplementsTag:()=>jP,isJSDocImportTag:()=>JP,isJSDocIndexSignature:()=>zm,isJSDocLikeText:()=>xI,isJSDocLink:()=>nP,isJSDocLinkCode:()=>rP,isJSDocLinkLike:()=>U_,isJSDocLinkPlain:()=>iP,isJSDocMemberName:()=>tP,isJSDocNameReference:()=>eP,isJSDocNamepathType:()=>dP,isJSDocNamespaceBody:()=>u_,isJSDocNode:()=>N_,isJSDocNonNullableType:()=>cP,isJSDocNullableType:()=>sP,isJSDocOptionalParameter:()=>nC,isJSDocOptionalType:()=>lP,isJSDocOverloadTag:()=>CP,isJSDocOverrideTag:()=>TP,isJSDocParameterTag:()=>FP,isJSDocPrivateTag:()=>xP,isJSDocPropertyLikeTag:()=>Ol,isJSDocPropertyTag:()=>RP,isJSDocProtectedTag:()=>SP,isJSDocPublicTag:()=>bP,isJSDocReadonlyTag:()=>kP,isJSDocReturnTag:()=>NP,isJSDocSatisfiesExpression:()=>oC,isJSDocSatisfiesTag:()=>MP,isJSDocSeeTag:()=>wP,isJSDocSignature:()=>mP,isJSDocTag:()=>A_,isJSDocTemplateTag:()=>IP,isJSDocThisTag:()=>PP,isJSDocThrowsTag:()=>BP,isJSDocTypeAlias:()=>Lg,isJSDocTypeAssertion:()=>fA,isJSDocTypeExpression:()=>ZN,isJSDocTypeLiteral:()=>fP,isJSDocTypeTag:()=>AP,isJSDocTypedefTag:()=>OP,isJSDocUnknownTag:()=>LP,isJSDocUnknownType:()=>aP,isJSDocVariadicType:()=>_P,isJSXTagName:()=>Dm,isJsonEqual:()=>xT,isJsonSourceFile:()=>sf,isJsxAttribute:()=>MN,isJsxAttributeLike:()=>C_,isJsxAttributeName:()=>uC,isJsxAttributes:()=>BN,isJsxCallLike:()=>E_,isJsxChild:()=>T_,isJsxClosingElement:()=>ON,isJsxClosingFragment:()=>jN,isJsxElement:()=>PN,isJsxExpression:()=>zN,isJsxFragment:()=>LN,isJsxNamespacedName:()=>$N,isJsxOpeningElement:()=>IN,isJsxOpeningFragment:()=>RN,isJsxOpeningLikeElement:()=>w_,isJsxOpeningLikeElementTagName:()=>eX,isJsxSelfClosingElement:()=>AN,isJsxSpreadAttribute:()=>JN,isJsxTagNameExpression:()=>k_,isJsxText:()=>Ow,isJumpStatementTarget:()=>cX,isKeyword:()=>Ah,isKeywordOrPunctuation:()=>Oh,isKnownSymbol:()=>Yh,isLabelName:()=>uX,isLabelOfLabeledStatement:()=>lX,isLabeledStatement:()=>KF,isLateVisibilityPaintedStatement:()=>Ap,isLeftHandSideExpression:()=>Vu,isLet:()=>ff,isLineBreak:()=>Qa,isLiteralComputedPropertyDeclarationName:()=>yh,isLiteralExpression:()=>Jl,isLiteralExpressionOfObject:()=>zl,isLiteralImportTypeNode:()=>yf,isLiteralKind:()=>Bl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>hX,isLiteralTypeLiteral:()=>Xu,isLiteralTypeNode:()=>HE,isLocalName:()=>sA,isLogicalOperator:()=>rb,isLogicalOrCoalescingAssignmentExpression:()=>ob,isLogicalOrCoalescingAssignmentOperator:()=>ib,isLogicalOrCoalescingBinaryExpression:()=>sb,isLogicalOrCoalescingBinaryOperator:()=>ab,isMappedTypeNode:()=>WE,isMemberName:()=>vl,isMetaProperty:()=>EF,isMethodDeclaration:()=>vE,isMethodOrAccessor:()=>Su,isMethodSignature:()=>yE,isMinusToken:()=>qw,isMissingDeclaration:()=>wN,isMissingPackageJsonInfo:()=>yj,isModifier:()=>au,isModifierKind:()=>ru,isModifierLike:()=>ku,isModuleAugmentationExternal:()=>xp,isModuleBlock:()=>sN,isModuleBody:()=>c_,isModuleDeclaration:()=>aN,isModuleExportName:()=>DN,isModuleExportsAccessExpression:()=>sg,isModuleIdentifier:()=>ag,isModuleName:()=>$A,isModuleOrEnumDeclaration:()=>d_,isModuleReference:()=>S_,isModuleSpecifierLike:()=>cY,isModuleWithStringLiteralName:()=>mp,isNameOfFunctionDeclaration:()=>gX,isNameOfModuleDeclaration:()=>mX,isNamedDeclaration:()=>Nc,isNamedEvaluation:()=>ny,isNamedEvaluationSource:()=>ty,isNamedExportBindings:()=>Il,isNamedExports:()=>TN,isNamedImportBindings:()=>__,isNamedImports:()=>bN,isNamedImportsOrExports:()=>Ix,isNamedTupleMember:()=>LE,isNamespaceBody:()=>l_,isNamespaceExport:()=>vN,isNamespaceExportDeclaration:()=>lN,isNamespaceImport:()=>yN,isNamespaceReexportDeclaration:()=>Nm,isNewExpression:()=>oF,isNewExpressionTarget:()=>XK,isNewScopeNode:()=>jC,isNoSubstitutionTemplateLiteral:()=>Rw,isNodeArray:()=>Ml,isNodeArrayMultiLine:()=>Zb,isNodeDescendantOf:()=>mh,isNodeKind:()=>Ll,isNodeLikeSystem:()=>mn,isNodeModulesDirectory:()=>ma,isNodeWithPossibleHoistedDeclaration:()=>ah,isNonContextualKeyword:()=>Rh,isNonGlobalAmbientModule:()=>gp,isNonNullAccess:()=>iC,isNonNullChain:()=>Pl,isNonNullExpression:()=>wF,isNonStaticMethodOrAccessorWithPrivateName:()=>cz,isNotEmittedStatement:()=>EN,isNullishCoalesce:()=>El,isNumber:()=>ot,isNumericLiteral:()=>Pw,isNumericLiteralName:()=>HT,isObjectBindingElementWithoutPropertyName:()=>lY,isObjectBindingOrAssignmentElement:()=>Ru,isObjectBindingOrAssignmentPattern:()=>Lu,isObjectBindingPattern:()=>QE,isObjectLiteralElement:()=>B_,isObjectLiteralElementLike:()=>Du,isObjectLiteralExpression:()=>tF,isObjectLiteralMethod:()=>Wf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Hf,isObjectTypeDeclaration:()=>Fx,isOmittedExpression:()=>kF,isOptionalChain:()=>Tl,isOptionalChainRoot:()=>Cl,isOptionalDeclaration:()=>rC,isOptionalJSDocPropertyLikeTag:()=>ZT,isOptionalTypeNode:()=>RE,isOuterExpression:()=>gA,isOutermostOptionalChain:()=>wl,isOverrideModifier:()=>aE,isPackageJsonInfo:()=>hj,isPackedArrayLiteral:()=>MT,isParameter:()=>fE,isParameterPropertyDeclaration:()=>ac,isParameterPropertyModifier:()=>iu,isParenthesizedExpression:()=>cF,isParenthesizedTypeNode:()=>$E,isParseTreeNode:()=>vc,isPartOfParameterDeclaration:()=>iy,isPartOfTypeNode:()=>Af,isPartOfTypeOnlyImportOrExportDeclaration:()=>Kl,isPartOfTypeQuery:()=>Fm,isPartiallyEmittedExpression:()=>NF,isPatternMatch:()=>rn,isPinnedComment:()=>Vd,isPlainJsFile:()=>wd,isPlusToken:()=>$w,isPossiblyTypeArgumentPosition:()=>dQ,isPostfixUnaryExpression:()=>gF,isPrefixUnaryExpression:()=>mF,isPrimitiveLiteralValue:()=>wC,isPrivateIdentifier:()=>Qw,isPrivateIdentifierClassElementDeclaration:()=>tu,isPrivateIdentifierPropertyAccessExpression:()=>nu,isPrivateIdentifierSymbol:()=>Zh,isProgramUptoDate:()=>FU,isPrologueDirective:()=>vf,isPropertyAccessChain:()=>xl,isPropertyAccessEntityNameExpression:()=>hb,isPropertyAccessExpression:()=>nF,isPropertyAccessOrQualifiedName:()=>Ju,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Bu,isPropertyAssignment:()=>HN,isPropertyDeclaration:()=>hE,isPropertyName:()=>cu,isPropertyNameLiteral:()=>Gh,isPropertySignature:()=>gE,isPrototypeAccess:()=>vb,isPrototypePropertyAssignment:()=>bg,isPunctuation:()=>Ih,isPushOrUnshiftIdentifier:()=>ry,isQualifiedName:()=>_E,isQuestionDotToken:()=>Gw,isQuestionOrExclamationToken:()=>MA,isQuestionOrPlusOrMinusToken:()=>zA,isQuestionToken:()=>Ww,isReadonlyKeyword:()=>rE,isReadonlyKeywordOrPlusOrMinusToken:()=>JA,isRecognizedTripleSlashComment:()=>Ud,isReferenceFileLocation:()=>wU,isReferencedFile:()=>DU,isRegularExpressionLiteral:()=>Lw,isRequireCall:()=>$m,isRequireVariableStatement:()=>Hm,isRestParameter:()=>W_,isRestTypeNode:()=>jE,isReturnStatement:()=>WF,isReturnStatementWithFixablePromiseHandler:()=>J1,isRightSideOfAccessExpression:()=>xb,isRightSideOfInstanceofExpression:()=>Tb,isRightSideOfPropertyAccess:()=>pX,isRightSideOfQualifiedName:()=>dX,isRightSideOfQualifiedNameOrPropertyAccess:()=>bb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Sb,isRootedDiskPath:()=>To,isSameEntityName:()=>rg,isSatisfiesExpression:()=>DF,isSemicolonClassElement:()=>IF,isSetAccessor:()=>I_,isSetAccessorDeclaration:()=>kE,isShiftOperatorOrHigher:()=>qA,isShorthandAmbientModuleSymbol:()=>hp,isShorthandPropertyAssignment:()=>GN,isSideEffectImport:()=>NC,isSignedNumericLiteral:()=>Uh,isSimpleCopiableExpression:()=>QJ,isSimpleInlineableExpression:()=>YJ,isSimpleParameterList:()=>yz,isSingleOrDoubleQuote:()=>Gm,isSolutionConfig:()=>uR,isSourceElement:()=>xC,isSourceFile:()=>QN,isSourceFileFromLibrary:()=>_0,isSourceFileJS:()=>Rm,isSourceFileNotJson:()=>Bm,isSourceMapping:()=>NJ,isSpecialPropertyDeclaration:()=>xg,isSpreadAssignment:()=>KN,isSpreadElement:()=>xF,isStatement:()=>b_,isStatementButNotDeclaration:()=>v_,isStatementOrBlock:()=>x_,isStatementWithLocals:()=>Ed,isStatic:()=>Rv,isStaticModifier:()=>iE,isString:()=>it,isStringANonContextualKeyword:()=>jh,isStringAndEmptyAnonymousObjectIntersection:()=>kQ,isStringDoubleQuoted:()=>Km,isStringLiteral:()=>Iw,isStringLiteralLike:()=>q_,isStringLiteralOrJsxExpression:()=>D_,isStringLiteralOrTemplate:()=>SZ,isStringOrNumericLiteralLike:()=>qh,isStringOrRegularExpressionOrTemplateLiteral:()=>xQ,isStringTextContainingNode:()=>Xl,isSuperCall:()=>mf,isSuperKeyword:()=>cE,isSuperProperty:()=>pm,isSupportedSourceFileName:()=>Wk,isSwitchStatement:()=>GF,isSyntaxList:()=>zP,isSyntheticExpression:()=>FF,isSyntheticReference:()=>FN,isTagName:()=>_X,isTaggedTemplateExpression:()=>aF,isTaggedTemplateTag:()=>YK,isTemplateExpression:()=>vF,isTemplateHead:()=>jw,isTemplateLiteral:()=>Uu,isTemplateLiteralKind:()=>$l,isTemplateLiteralToken:()=>ql,isTemplateLiteralTypeNode:()=>XE,isTemplateLiteralTypeSpan:()=>KE,isTemplateMiddle:()=>Mw,isTemplateMiddleOrTemplateTail:()=>Ul,isTemplateSpan:()=>AF,isTemplateTail:()=>Bw,isTextWhiteSpaceLike:()=>bY,isThis:()=>xX,isThisContainerOrFunctionBlock:()=>cm,isThisIdentifier:()=>gv,isThisInTypeQuery:()=>yv,isThisInitializedDeclaration:()=>mm,isThisInitializedObjectBindingExpression:()=>gm,isThisProperty:()=>fm,isThisTypeNode:()=>qE,isThisTypeParameter:()=>KT,isThisTypePredicate:()=>Kf,isThrowStatement:()=>XF,isToken:()=>jl,isTokenKind:()=>Rl,isTraceEnabled:()=>HR,isTransientSymbol:()=>nd,isTrivia:()=>Bh,isTryStatement:()=>QF,isTupleTypeNode:()=>OE,isTypeAlias:()=>Rg,isTypeAliasDeclaration:()=>iN,isTypeAssertionExpression:()=>sF,isTypeDeclaration:()=>QT,isTypeElement:()=>Tu,isTypeKeyword:()=>JQ,isTypeKeywordTokenOrIdentifier:()=>$Q,isTypeLiteralNode:()=>AE,isTypeNode:()=>wu,isTypeNodeKind:()=>Nx,isTypeOfExpression:()=>dF,isTypeOnlyExportDeclaration:()=>Hl,isTypeOnlyImportDeclaration:()=>Wl,isTypeOnlyImportOrExportDeclaration:()=>Gl,isTypeOperatorNode:()=>UE,isTypeParameterDeclaration:()=>pE,isTypePredicateNode:()=>wE,isTypeQueryNode:()=>PE,isTypeReferenceNode:()=>EE,isTypeReferenceType:()=>J_,isTypeUsableAsPropertyName:()=>fC,isUMDExportSymbol:()=>Cx,isUnaryExpression:()=>Hu,isUnaryExpressionWithWrite:()=>Ku,isUnicodeIdentifierStart:()=>Ia,isUnionTypeNode:()=>ME,isUrl:()=>ko,isValidBigIntString:()=>DT,isValidESSymbolDeclaration:()=>$f,isValidTypeOnlyAliasUseSite:()=>wT,isValueSignatureDeclaration:()=>sh,isVarAwaitUsing:()=>uf,isVarConst:()=>df,isVarConstLike:()=>pf,isVarUsing:()=>_f,isVariableDeclaration:()=>ZF,isVariableDeclarationInVariableStatement:()=>Bf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Um,isVariableDeclarationInitializedToRequire:()=>qm,isVariableDeclarationList:()=>eN,isVariableLike:()=>Mf,isVariableStatement:()=>LF,isVoidExpression:()=>pF,isWatchSet:()=>lx,isWhileStatement:()=>JF,isWhiteSpaceLike:()=>Ka,isWhiteSpaceSingleLine:()=>Xa,isWithStatement:()=>HF,isWriteAccess:()=>gx,isWriteOnlyAccess:()=>mx,isYieldExpression:()=>bF,jsxModeNeedsExplicitImport:()=>u0,keywordPart:()=>EY,last:()=>Te,lastOrUndefined:()=>ke,length:()=>p,libMap:()=>xO,libs:()=>bO,lineBreakPart:()=>$Y,loadModuleFromGlobalCache:()=>RM,loadWithModeAwareCache:()=>yU,makeIdentifierFromModuleName:()=>_p,makeImport:()=>eY,makeStringLiteral:()=>tY,mangleScopedPackageName:()=>FM,map:()=>O,mapAllOrFail:()=>$,mapDefined:()=>q,mapDefinedIterator:()=>U,mapEntries:()=>K,mapIterator:()=>L,mapOneOrMany:()=>QZ,mapToDisplayParts:()=>qY,matchFiles:()=>Tk,matchPatternOrExact:()=>_T,matchedText:()=>Yt,matchesExclude:()=>OR,matchesExcludeWorker:()=>LR,maxBy:()=>Dt,maybeBind:()=>Xe,maybeSetLocalizedDiagnosticMessages:()=>Qx,memoize:()=>ht,memoizeOne:()=>yt,min:()=>wt,minAndMax:()=>fT,missingFileModifiedTime:()=>Hi,modifierToFlag:()=>tb,modifiersToFlags:()=>eb,moduleExportNameIsDefault:()=>ep,moduleExportNameTextEscaped:()=>Zd,moduleExportNameTextUnescaped:()=>Yd,moduleOptionDeclaration:()=>CO,moduleResolutionIsEqualTo:()=>md,moduleResolutionNameAndModeGetter:()=>pU,moduleResolutionOptionDeclarations:()=>PO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>WS,moduleResolutionUsesNodeModules:()=>ZQ,moduleSpecifierToValidIdentifier:()=>n0,moduleSpecifiers:()=>eB,moduleSymbolToValidIdentifier:()=>t0,moveEmitHelpers:()=>RD,moveRangeEnd:()=>zb,moveRangePastDecorators:()=>qb,moveRangePastModifiers:()=>Ub,moveRangePos:()=>$b,moveSyntheticComments:()=>FD,mutateMap:()=>xx,mutateMapSkippingNewValues:()=>bx,needsParentheses:()=>yZ,needsScopeMarker:()=>n_,newCaseClauseTracker:()=>d0,newPrivateEnvironment:()=>pz,noEmitNotification:()=>M$,noEmitSubstitution:()=>j$,noTransformers:()=>N$,noTruncationMaximumTruncationLength:()=>Y_,nodeCanBeDecorated:()=>vm,nodeCoreModules:()=>OC,nodeHasName:()=>Ec,nodeIsDecorated:()=>bm,nodeIsMissing:()=>Id,nodeIsPresent:()=>Od,nodeIsSynthesized:()=>sy,nodeModuleNameResolver:()=>Jj,nodeModulesPathPart:()=>Wj,nodeNextJsonConfigResolver:()=>zj,nodeOrChildIsDecorated:()=>xm,nodeOverlapsWithStartEnd:()=>FX,nodePosToString:()=>Nd,nodeSeenTracker:()=>qQ,nodeStartsNewLexicalEnvironment:()=>ay,noop:()=>ct,noopFileWatcher:()=>CW,normalizePath:()=>Go,normalizeSlashes:()=>$o,normalizeSpans:()=>Qs,not:()=>sn,notImplemented:()=>gt,notImplementedResolver:()=>dq,nullNodeConverters:()=>qC,nullParenthesizerRules:()=>JC,nullTransformationContext:()=>J$,objectAllocator:()=>Vx,operatorPart:()=>NY,optionDeclarations:()=>wO,optionMapToObject:()=>jL,optionsAffectingProgramStructure:()=>IO,optionsForBuild:()=>BO,optionsForWatch:()=>SO,optionsHaveChanges:()=>sd,or:()=>an,orderedRemoveItem:()=>Wt,orderedRemoveItemAt:()=>Ht,packageIdToPackageName:()=>bd,packageIdToString:()=>xd,parameterIsThisKeyword:()=>mv,parameterNamePart:()=>PY,parseBaseNodeFactory:()=>hI,parseBigInt:()=>TT,parseBuildCommand:()=>sL,parseCommandLine:()=>nL,parseCommandLineWorker:()=>YO,parseConfigFileTextToJson:()=>_L,parseConfigFileWithSystem:()=>uW,parseConfigHostFromCompilerHostLike:()=>$U,parseCustomTypeOption:()=>GO,parseIsolatedEntityName:()=>GI,parseIsolatedJSDocComment:()=>YI,parseJSDocTypeExpressionForTests:()=>ZI,parseJsonConfigFileContent:()=>GL,parseJsonSourceFileConfigFileContent:()=>KL,parseJsonText:()=>KI,parseListTypeOption:()=>KO,parseNodeFactory:()=>yI,parseNodeModuleFromPath:()=>Gj,parsePackageName:()=>pM,parsePseudoBigInt:()=>ST,parseValidBigInt:()=>CT,pasteEdits:()=>Nfe,patchWriteFileEnsuringDirectory:()=>mo,pathContainsNodeModules:()=>Hj,pathIsAbsolute:()=>Do,pathIsBareSpecifier:()=>Eo,pathIsRelative:()=>wo,patternText:()=>Qt,performIncrementalCompilation:()=>MW,performance:()=>Kn,positionBelongsToNode:()=>PX,positionIsASICandidate:()=>AZ,positionIsSynthesized:()=>rT,positionsAreOnSameLine:()=>ex,preProcessFile:()=>N1,probablyUsesSemicolons:()=>IZ,processCommentPragmas:()=>aO,processPragmasIntoFields:()=>sO,processTaggedTemplateExpression:()=>$z,programContainsEsModules:()=>KQ,programContainsModules:()=>GQ,projectReferenceIsEqualTo:()=>fd,propertyNamePart:()=>AY,pseudoBigIntToString:()=>kT,punctuationPart:()=>FY,pushIfUnique:()=>pe,quote:()=>bZ,quotePreferenceFromString:()=>rY,rangeContainsPosition:()=>CX,rangeContainsPositionExclusive:()=>DX,rangeContainsRange:()=>ix,rangeContainsRangeExclusive:()=>TX,rangeContainsStartEnd:()=>wX,rangeEndIsOnSameLineAsRangeStart:()=>Xb,rangeEndPositionsAreOnSameLine:()=>Gb,rangeEquals:()=>he,rangeIsOnSingleLine:()=>Wb,rangeOfNode:()=>mT,rangeOfTypeParameters:()=>gT,rangeOverlapsWithStartEnd:()=>EX,rangeStartIsOnSameLineAsRangeEnd:()=>Kb,rangeStartPositionsAreOnSameLine:()=>Hb,readBuilderProgram:()=>BW,readConfigFile:()=>uL,readJson:()=>Ob,readJsonConfigFile:()=>dL,readJsonOrUndefined:()=>Ib,reduceEachLeadingCommentRange:()=>fs,reduceEachTrailingCommentRange:()=>ms,reduceLeft:()=>Pe,reduceLeftIterator:()=>y,reducePathComponents:()=>qo,refactor:()=>u6,regExpEscape:()=>ck,regularExpressionFlagToCharacterCode:()=>Ba,relativeComplement:()=>ce,removeAllComments:()=>uD,removeEmitHelper:()=>OD,removeExtension:()=>Yk,removeFileExtension:()=>Xk,removeIgnoredPath:()=>zV,removeMinAndVersionNumbers:()=>Vt,removePrefix:()=>tn,removeSuffix:()=>qt,removeTrailingDirectorySeparator:()=>Qo,repeatString:()=>VQ,replaceElement:()=>Ee,replaceFirstStar:()=>vC,resolutionExtensionIsTSOrJson:()=>oT,resolveConfigFileProjectName:()=>VW,resolveJSModule:()=>Rj,resolveLibrary:()=>Aj,resolveModuleName:()=>Oj,resolveModuleNameFromCache:()=>Ij,resolvePackageNameToPackageJson:()=>mj,resolvePath:()=>Vo,resolveProjectReferencePath:()=>qU,resolveTripleslashReference:()=>Lq,resolveTypeReferenceDirective:()=>dj,resolvingEmptyArray:()=>K_,returnFalse:()=>lt,returnNoopFileWatcher:()=>DW,returnTrue:()=>ut,returnUndefined:()=>_t,returnsPromise:()=>B1,rewriteModuleSpecifier:()=>vz,sameFlatMap:()=>z,sameMap:()=>R,sameMapping:()=>FJ,scanTokenAtPosition:()=>nf,scanner:()=>UK,semanticDiagnosticsOptionDeclarations:()=>EO,serializeCompilerOptions:()=>zL,server:()=>zhe,servicesVersion:()=>A8,setCommentRange:()=>SD,setConfigFileInOptions:()=>XL,setConstantValue:()=>PD,setEmitFlags:()=>_D,setGetSourceFileAsHashVersioned:()=>AW,setIdentifierAutoGenerate:()=>UD,setIdentifierGeneratedImportReference:()=>WD,setIdentifierTypeArguments:()=>$D,setInternalEmitFlags:()=>pD,setLocalizedDiagnosticMessages:()=>Xx,setNodeChildren:()=>VP,setNodeFlags:()=>OT,setObjectAllocator:()=>Gx,setOriginalNode:()=>sD,setParent:()=>LT,setParentRecursive:()=>RT,setPrivateIdentifier:()=>mz,setSnippetElement:()=>MD,setSourceMapRange:()=>gD,setStackTraceLimit:()=>Ui,setStartsOnNewLine:()=>bD,setSyntheticLeadingComments:()=>TD,setSyntheticTrailingComments:()=>wD,setSys:()=>ho,setSysLog:()=>co,setTextRange:()=>fI,setTextRangeEnd:()=>PT,setTextRangePos:()=>NT,setTextRangePosEnd:()=>AT,setTextRangePosWidth:()=>IT,setTokenSourceMapRange:()=>yD,setTypeNode:()=>JD,setUILocale:()=>Rt,setValueDeclaration:()=>Sg,shouldAllowImportingTsExtension:()=>LM,shouldPreserveConstEnums:()=>jS,shouldRewriteModuleSpecifier:()=>Eg,shouldUseUriStyleNodeCoreModules:()=>a0,showModuleSpecifier:()=>Dx,signatureHasRestParameter:()=>iJ,signatureToDisplayParts:()=>WY,single:()=>De,singleElementArray:()=>ln,singleIterator:()=>H,singleOrMany:()=>we,singleOrUndefined:()=>Ce,skipAlias:()=>px,skipConstraint:()=>WQ,skipOuterExpressions:()=>hA,skipParentheses:()=>ph,skipPartiallyEmittedExpressions:()=>Nl,skipTrivia:()=>is,skipTypeChecking:()=>hT,skipTypeCheckingIgnoringNoCheck:()=>yT,skipTypeParentheses:()=>dh,skipWhile:()=>fn,sliceAfter:()=>dT,some:()=>X,sortAndDeduplicate:()=>oe,sortAndDeduplicateDiagnostics:()=>Is,sourceFileAffectingCompilerOptions:()=>AO,sourceFileMayBeEmitted:()=>rv,sourceMapCommentRegExp:()=>SJ,sourceMapCommentRegExpDontCareLineStart:()=>xJ,spacePart:()=>wY,spanMap:()=>G,startEndContainsRange:()=>ox,startEndOverlapsWithStartEnd:()=>NX,startOnNewLine:()=>vA,startTracing:()=>hr,startsWith:()=>en,startsWithDirectory:()=>ca,startsWithUnderscore:()=>i0,startsWithUseStrict:()=>_A,stringContainsAt:()=>r0,stringToToken:()=>ja,stripQuotes:()=>Ry,supportedDeclarationExtensions:()=>Rk,supportedJSExtensionsFlat:()=>Ik,supportedLocaleDirectories:()=>mc,supportedTSExtensionsFlat:()=>Nk,supportedTSImplementationExtensions:()=>jk,suppressLeadingAndTrailingTrivia:()=>oZ,suppressLeadingTrivia:()=>aZ,suppressTrailingTrivia:()=>sZ,symbolEscapedNameNoDefault:()=>sY,symbolName:()=>Cc,symbolNameNoDefault:()=>aY,symbolToDisplayParts:()=>VY,sys:()=>go,sysLog:()=>so,tagNamesAreEquivalent:()=>fO,takeWhile:()=>pn,targetOptionDeclaration:()=>TO,targetToLibMap:()=>Os,testFormatSettings:()=>IK,textChangeRangeIsUnchanged:()=>tc,textChangeRangeNewSpan:()=>ec,textChanges:()=>Z_e,textOrKeywordPart:()=>IY,textPart:()=>OY,textRangeContainsPositionInclusive:()=>Bs,textRangeContainsTextSpan:()=>$s,textRangeIntersectsWithTextSpan:()=>Ks,textSpanContainsPosition:()=>Ms,textSpanContainsTextRange:()=>zs,textSpanContainsTextSpan:()=>Js,textSpanEnd:()=>Rs,textSpanIntersection:()=>Xs,textSpanIntersectsWith:()=>Ws,textSpanIntersectsWithPosition:()=>Gs,textSpanIntersectsWithTextSpan:()=>Vs,textSpanIsEmpty:()=>js,textSpanOverlap:()=>Us,textSpanOverlapsWith:()=>qs,textSpansEqual:()=>gY,textToKeywordObj:()=>ba,timestamp:()=>Gn,toArray:()=>rt,toBuilderFileEmit:()=>AV,toBuilderStateFileInfoForMultiEmit:()=>PV,toEditorSettings:()=>K8,toFileNameLowerCase:()=>mt,toPath:()=>Xo,toProgramEmitPending:()=>IV,toSorted:()=>me,tokenIsIdentifierOrKeyword:()=>ya,tokenIsIdentifierOrKeywordOrGreaterThan:()=>va,tokenToString:()=>Ra,trace:()=>WR,tracing:()=>Yn,tracingEnabled:()=>Zn,transferSourceFileChildren:()=>HP,transform:()=>f7,transformClassFields:()=>Wz,transformDeclarations:()=>w$,transformECMAScriptModule:()=>y$,transformES2015:()=>p$,transformES2016:()=>_$,transformES2017:()=>Qz,transformES2018:()=>Zz,transformES2019:()=>e$,transformES2020:()=>t$,transformES2021:()=>n$,transformESDecorators:()=>Xz,transformESNext:()=>r$,transformGenerators:()=>f$,transformImpliedNodeFormatDependentModule:()=>v$,transformJsx:()=>l$,transformLegacyDecorators:()=>Kz,transformModule:()=>m$,transformNamedEvaluation:()=>Jz,transformNodes:()=>B$,transformSystemModule:()=>h$,transformTypeScript:()=>Vz,transpile:()=>t2,transpileDeclaration:()=>K1,transpileModule:()=>G1,transpileOptionValueCompilerOptions:()=>OO,tryAddToSet:()=>W,tryAndIgnoreErrors:()=>MZ,tryCast:()=>at,tryDirectoryExists:()=>jZ,tryExtractTSExtension:()=>Eb,tryFileExists:()=>RZ,tryGetClassExtendingExpressionWithTypeArguments:()=>lb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>ub,tryGetDirectories:()=>OZ,tryGetExtensionFromPath:()=>cT,tryGetImportFromModuleSpecifier:()=>wg,tryGetJSDocSatisfiesTypeNode:()=>sC,tryGetModuleNameFromFile:()=>CA,tryGetModuleSpecifierFromDeclaration:()=>Cg,tryGetNativePerformanceHooks:()=>Vn,tryGetPropertyAccessOrIdentifierToString:()=>yb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>NA,tryGetSourceMappingURL:()=>CJ,tryGetTextOfPropertyName:()=>zp,tryParseJson:()=>Lb,tryParsePattern:()=>eT,tryParsePatterns:()=>nT,tryParseRawSourceMap:()=>wJ,tryReadDirectory:()=>LZ,tryReadFile:()=>pL,tryRemoveDirectoryPrefix:()=>ak,tryRemoveExtension:()=>Qk,tryRemovePrefix:()=>nn,tryRemoveSuffix:()=>Ut,tscBuildOption:()=>MO,typeAcquisitionDeclarations:()=>zO,typeAliasNamePart:()=>LY,typeDirectiveIsEqualTo:()=>Sd,typeKeywords:()=>BQ,typeParameterNamePart:()=>RY,typeToDisplayParts:()=>UY,unchangedPollThresholds:()=>Yi,unchangedTextChangeRange:()=>rc,unescapeLeadingUnderscores:()=>Sc,unmangleScopedPackageName:()=>PM,unorderedRemoveItem:()=>Kt,unprefixedNodeCoreModules:()=>AC,unreachableCodeIsError:()=>US,unsetNodeChildren:()=>WP,unusedLabelIsError:()=>VS,unwrapInnermostStatementOfLabel:()=>Uf,unwrapParenthesizedExpression:()=>EC,updateErrorForNoInputFiles:()=>dR,updateLanguageServiceSourceFile:()=>r7,updateMissingFilePathsWatch:()=>Dq,updateResolutionField:()=>nj,updateSharedExtendedConfigFileWatcher:()=>kq,updateSourceFile:()=>QI,updateWatchingWildcardDirectories:()=>wq,usingSingleLineStringWriter:()=>dd,utf16EncodeAsString:()=>ws,validateLocaleAndSetLanguage:()=>gc,version:()=>c,versionMajorMinor:()=>i,visitArray:()=>lJ,visitCommaListElements:()=>gJ,visitEachChild:()=>hJ,visitFunctionBody:()=>fJ,visitIterationBody:()=>mJ,visitLexicalEnvironment:()=>_J,visitNode:()=>sJ,visitNodes:()=>cJ,visitParameterList:()=>dJ,walkUpBindingElementsAndPatterns:()=>lc,walkUpOuterExpressions:()=>yA,walkUpParenthesizedExpressions:()=>uh,walkUpParenthesizedTypes:()=>lh,walkUpParenthesizedTypesAndGetParentAndChild:()=>_h,whitespaceOrMapCommentRegExp:()=>kJ,writeCommentRange:()=>Fv,writeFile:()=>av,writeFileEnsuringDirectories:()=>cv,zipWith:()=>x}),e.exports=r;var i="5.7",c="5.7.2",l=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(l||{}),u=[],d=new Map;function p(e){return void 0!==e?e.length:0}function f(e,t){if(void 0!==e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function g(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function D(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function E(e,t,n=bt){if(void 0!==e)for(let r=0;r{const[i,o]=t(r,e);n.set(i,o)})),n}function X(e,t){if(void 0!==e){if(void 0===t)return e.length>0;for(let n=0;nn(e[t],e[r])||Tt(t,r)))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;ne[t]))}function ne(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?te(e,t,n):function(e,t){const n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&gn.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&gn.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function le(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function ue(e,t){return void 0===e?t:void 0===t?e:nt(e)?nt(t)?Y(e,t):le(e,t):nt(t)?le(t,e):[e,t]}function _e(e,t){return t<0?e.length+t:t}function de(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:_e(t,n),r=void 0===r?t.length:_e(t,r);for(let i=n;i=0;t--)yield e[t]}function he(e,t,n,r){for(;nnull==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=_e(e,t))>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function Pe(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var Ae=Object.prototype.hasOwnProperty;function Ie(e,t){return Ae.call(e,t)}function Oe(e,t){return Ae.call(e,t)?e[t]:void 0}function Le(e){const t=[];for(const n in e)Ae.call(e,n)&&t.push(n);return t}function Re(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)pe(t,e)}while(e=Object.getPrototypeOf(e));return t}function je(e){const t=[];for(const n in e)Ae.call(e,n)&&t.push(e[n]);return t}function Me(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function tt(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())nt(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);return nt(o)?E(o,r,t):t(o,r)},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(nt(e))E(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(nt(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function nt(e){return Array.isArray(e)}function rt(e){return nt(e)?e:[e]}function it(e){return"string"==typeof e}function ot(e){return"number"==typeof e}function at(e,t){return void 0!==e&&t(e)?e:void 0}function st(e,t){return void 0!==e&&t(e)?e:gn.fail(`Invalid cast. The supplied value ${e} did not pass the test '${gn.getFunctionName(t)}'.`)}function ct(e){}function lt(){return!1}function ut(){return!0}function _t(){}function dt(e){return e}function pt(e){return e.toLowerCase()}var ft=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function mt(e){return ft.test(e)?e.replace(ft,pt):e}function gt(){throw new Error("Not implemented")}function ht(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function yt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}var vt=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(vt||{});function bt(e,t){return e===t}function xt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function St(e,t){return bt(e,t)}function kt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n))}function Et(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Ft(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Nt(e,t){return kt(e,t)}function Pt(e){return e?Et:Nt}var At,It,Ot=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Lt(){return It}function Rt(e){It!==e&&(It=e,At=void 0)}function jt(e,t){return At??(At=Ot(It)),At(e,t)}function Mt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Bt(e,t){return Tt(e?1:0,t?1:0)}function Jt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=zt(e,t,o-.1);if(void 0===n)continue;gn.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let u=a;for(let e=1;en)return;const _=r;r=i,i=_}const a=r[t.length];return a>n?void 0:a}function $t(e,t,n){const r=e.length-t.length;return r>=0&&(n?xt(e.slice(r),t):e.indexOf(t,r)===r)}function qt(e,t){return $t(e,t)?e.slice(0,e.length-t.length):e}function Ut(e,t){return $t(e,t)?e.slice(0,e.length-t.length):void 0}function Vt(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function Wt(e,t){for(let n=0;ne===t))}function Xt(e){return e?dt:mt}function Qt({prefix:e,suffix:t}){return`${e}*${t}`}function Yt(e,t){return gn.assert(rn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function Zt(e,t,n){let r,i=-1;for(let o=0;oi&&rn(s,n)&&(i=s.prefix.length,r=a)}return r}function en(e,t,n){return n?xt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function tn(e,t){return en(e,t)?e.substr(t.length):e}function nn(e,t,n=dt){return en(n(e),n(t))?e.substring(t.length):void 0}function rn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&en(n,e)&&$t(n,t)}function on(e,t){return n=>e(n)&&t(n)}function an(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function sn(e){return(...t)=>!e(...t)}function cn(e){}function ln(e){return void 0===e?void 0:[e]}function un(e,t,n,r,i,o){o??(o=ct);let a=0,s=0;const c=e.length,l=t.length;let u=!1;for(;a(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(hn||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=ct,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function u(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||u))}function _(e,t,n){null==e&&l(t,n||_)}function d(e,t,n){for(const r of e)_(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&Ie(e,"kind")&&Ie(e,"pos")?"SyntaxKind: "+h(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if(Ie(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=me(n,((e,t)=>Tt(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Le(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${h(t.kind)} was unexpected.`,r||e)},e.assert=u,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=_,e.checkDefined=function e(t,n,r){return _(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&u(void 0===n||k(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${f(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&u(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&u(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${h(t.kind)} should not have passed test '${f(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&u(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&u(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} was not a '${h(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&u(void 0===t,n||"Unexpected node.",(()=>`Node ${h(t.kind)} was unexpected'.`),r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${Sc(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${O(e.declarations,(e=>h(e.kind)))} }`},e.formatEnum=m;const g=new Map;function h(e){return m(e,vr,!1)}function y(e){return m(e,br,!0)}function v(e){return m(e,xr,!0)}function b(e){return m(e,Fi,!0)}function S(e){return m(e,Pi,!0)}function T(e){return m(e,Hr,!0)}function C(e){return m(e,Qr,!0)}function D(e){return m(e,oi,!0)}function w(e){return m(e,Yr,!0)}function E(e){return m(e,Er,!0)}e.formatSyntaxKind=h,e.formatSnippetKind=function(e){return m(e,Ni,!1)},e.formatScriptKind=function(e){return m(e,ki,!1)},e.formatNodeFlags=y,e.formatNodeCheckFlags=function(e){return m(e,Xr,!0)},e.formatModifierFlags=v,e.formatTransformFlags=b,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=C,e.formatSignatureFlags=D,e.formatObjectFlags=w,e.formatFlowFlags=E,e.formatRelationComparisonResult=function(e){return m(e,kr,!0)},e.formatCheckMode=function(e){return m(e,VB,!0)},e.formatSignatureCheckMode=function(e){return m(e,WB,!0)},e.formatTypeFacts=function(e){return m(e,qB,!0)};let F,N,P=!1;function A(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${E(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Er,!0)}},__debugToString:{value(){return R(this)}}})}function I(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return P&&("function"==typeof Object.setPrototypeOf?(F||(F=Object.create(Object.prototype),A(F)),Object.setPrototypeOf(e,F)):A(e)),e},e.attachNodeArrayDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(N||(N=Object.create(Array.prototype),I(N)),Object.setPrototypeOf(e,N)):I(e))},e.enableDebugInfo=function(){if(P)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Vx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${Cc(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(Vx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${Cc(this.symbol)}'`:""}${t?` (${w(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?w(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Vx.getSignatureConstructor().prototype,{__debugFlags:{get(){return D(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Vx.getNodeConstructor(),Vx.getIdentifierConstructor(),Vx.getTokenConstructor(),Vx.getSourceFileConstructor()];for(const e of n)Ie(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${Yl(this)?"GeneratedIdentifier":Xw(this)?`Identifier '${kc(this)}'`:Qw(this)?`PrivateIdentifier '${kc(this)}'`:Iw(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Pw(this)?`NumericLiteral ${this.text}`:Aw(this)?`BigIntLiteral ${this.text}n`:pE(this)?"TypeParameterDeclaration":fE(this)?"ParameterDeclaration":xE(this)?"ConstructorDeclaration":SE(this)?"GetAccessorDeclaration":kE(this)?"SetAccessorDeclaration":TE(this)?"CallSignatureDeclaration":CE(this)?"ConstructSignatureDeclaration":DE(this)?"IndexSignatureDeclaration":wE(this)?"TypePredicateNode":EE(this)?"TypeReferenceNode":FE(this)?"FunctionTypeNode":NE(this)?"ConstructorTypeNode":PE(this)?"TypeQueryNode":AE(this)?"TypeLiteralNode":IE(this)?"ArrayTypeNode":OE(this)?"TupleTypeNode":RE(this)?"OptionalTypeNode":jE(this)?"RestTypeNode":ME(this)?"UnionTypeNode":BE(this)?"IntersectionTypeNode":JE(this)?"ConditionalTypeNode":zE(this)?"InferTypeNode":$E(this)?"ParenthesizedTypeNode":qE(this)?"ThisTypeNode":UE(this)?"TypeOperatorNode":VE(this)?"IndexedAccessTypeNode":WE(this)?"MappedTypeNode":HE(this)?"LiteralTypeNode":LE(this)?"NamedTupleMember":GE(this)?"ImportTypeNode":h(this.kind)}${this.flags?` (${y(this.flags)})`:""}`}},__debugKind:{get(){return h(this.kind)}},__debugNodeFlags:{get(){return y(this.flags)}},__debugModifierFlags:{get(){return v(Yv(this))}},__debugTransformFlags:{get(){return b(this.transformFlags)}},__debugIsParseTreeNode:{get(){return vc(this)}},__debugEmitFlags:{get(){return S(op(this))}},__debugGetText:{value(e){if(sy(this))return"";let n=t.get(this);if(void 0===n){const r=bc(this),i=r&&Cd(r);n=i?Xd(i,r,e):"",t.set(this,n)}return n}}});P=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class L{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return x(this.sources,this.targets||O(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return x(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function R(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=f(e,new Set);for(const e of c)e.text=y(e.flowNode,e.circular),g(e);const u=function e(t){let n=0;for(const r of d(t))n=Math.max(n,e(r));return n+1}(l),_=function(e){const t=b(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(u);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=d(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(l,0),function(){const e=_.length,t=Dt(c,0,(e=>e.lane))+1,n=b(Array(t),""),r=_.map((()=>Array(t))),i=_.map((()=>b(Array(t),0)));for(const e of c){r[e.level][e.lane]=e;const t=d(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=0,"Invalid argument: major"),gn.assert(t>=0,"Invalid argument: minor"),gn.assert(n>=0,"Invalid argument: patch");const o=r?nt(r)?r:r.split("."):u,a=i?nt(i)?i:i.split("."):u;gn.assert(k(o,(e=>bn.test(e))),"Invalid argument: prerelease"),gn.assert(k(a,(e=>Sn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=Dn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:Tt(this.major,e.major)||Tt(this.minor,e.minor)||Tt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function In(e){const t=[];for(let n of e.trim().split(En)){if(!n)continue;const e=[];n=n.trim();const r=Pn.exec(n);if(r){if(!Ln(r[1],r[2],e))return}else for(const t of n.split(Fn)){const n=An.exec(t.trim());if(!n||!Rn(n[1],n[2],e))return}t.push(e)}return t}function On(e){const t=Nn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new Cn(jn(n)?0:parseInt(n,10),jn(n)||jn(r)?0:parseInt(r,10),jn(n)||jn(r)||jn(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function Ln(e,t,n){const r=On(e);if(!r)return!1;const i=On(t);return!!i&&(jn(r.major)||n.push(Mn(">=",r.version)),jn(i.major)||n.push(jn(i.minor)?Mn("<",i.version.increment("major")):jn(i.patch)?Mn("<",i.version.increment("minor")):Mn("<=",i.version)),!0)}function Rn(e,t,n){const r=On(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(jn(o))"<"!==e&&">"!==e||n.push(Mn("<",Cn.zero));else switch(e){case"~":n.push(Mn(">=",i)),n.push(Mn("<",i.increment(jn(a)?"major":"minor")));break;case"^":n.push(Mn(">=",i)),n.push(Mn("<",i.increment(i.major>0||jn(a)?"major":i.minor>0||jn(s)?"minor":"patch")));break;case"<":case">=":n.push(jn(a)||jn(s)?Mn(e,i.with({prerelease:"0"})):Mn(e,i));break;case"<=":case">":n.push(jn(a)?Mn("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):jn(s)?Mn("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):Mn(e,i));break;case"=":case void 0:jn(a)||jn(s)?(n.push(Mn(">=",i.with({prerelease:"0"}))),n.push(Mn("<",i.increment(jn(a)?"major":"minor").with({prerelease:"0"})))):n.push(Mn("=",i));break;default:return!1}return!0}function jn(e){return"*"===e||"x"===e||"X"===e}function Mn(e,t){return{operator:e,operand:t}}function Bn(e,t){for(const n of t)if(!Jn(e,n.operator,n.operand))return!1;return!0}function Jn(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return gn.assertNever(t)}}function zn(e){return O(e,$n).join(" ")}function $n(e){return`${e.operator}${e.operand}`}var qn=function(){const e=function(){if(mn())try{const{performance:e}=require("perf_hooks");if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance:performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:n}=e,r={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof n.timeOrigin&&"function"==typeof n.now&&(r.performanceTime=n),r.performanceTime&&"function"==typeof n.mark&&"function"==typeof n.measure&&"function"==typeof n.clearMarks&&"function"==typeof n.clearMeasures&&(r.performance=n),r}(),Un=null==qn?void 0:qn.performanceTime;function Vn(){return qn}var Wn,Hn,Gn=Un?()=>Un.now():Date.now,Kn={};function Xn(e,t,n,r){return e?Qn(t,n,r):er}function Qn(e,t,n){let r=0;return{enter:function(){1==++r&&ar(t)},exit:function(){0==--r?(ar(n),sr(e,t,n)):r<0&&gn.fail("enter/exit count does not match.")}}}n(Kn,{clearMarks:()=>pr,clearMeasures:()=>dr,createTimer:()=>Qn,createTimerIf:()=>Xn,disable:()=>gr,enable:()=>mr,forEachMark:()=>_r,forEachMeasure:()=>ur,getCount:()=>cr,getDuration:()=>lr,isEnabled:()=>fr,mark:()=>ar,measure:()=>sr,nullTimer:()=>er});var Yn,Zn,er={enter:ct,exit:ct},tr=!1,nr=Gn(),rr=new Map,ir=new Map,or=new Map;function ar(e){if(tr){const t=ir.get(e)??0;ir.set(e,t+1),rr.set(e,Gn()),null==Hn||Hn.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function sr(e,t,n){if(tr){const r=(void 0!==n?rr.get(n):void 0)??Gn(),i=(void 0!==t?rr.get(t):void 0)??nr,o=or.get(e)||0;or.set(e,o+(r-i)),null==Hn||Hn.measure(e,t,n)}}function cr(e){return ir.get(e)||0}function lr(e){return or.get(e)||0}function ur(e){or.forEach(((t,n)=>e(n,t)))}function _r(e){rr.forEach(((t,n)=>e(n)))}function dr(e){void 0!==e?or.delete(e):or.clear(),null==Hn||Hn.clearMeasures(e)}function pr(e){void 0!==e?(ir.delete(e),rr.delete(e)):(ir.clear(),rr.clear()),null==Hn||Hn.clearMarks(e)}function fr(){return tr}function mr(e=go){var t;return tr||(tr=!0,Wn||(Wn=Vn()),(null==Wn?void 0:Wn.performance)&&(nr=Wn.performance.timeOrigin,(Wn.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(Hn=Wn.performance))),!0}function gr(){tr&&(rr.clear(),ir.clear(),or.clear(),Hn=void 0,tr=!1)}(e=>{let t,n,r=0,i=0;const o=[];let a;const s=[];var c;e.startTracing=function(c,l,u){if(gn.assert(!Yn,"Tracing already started"),void 0===t)try{t=require("fs")}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}n=c,o.length=0,void 0===a&&(a=Uo(l,"legend.json")),t.existsSync(l)||t.mkdirSync(l,{recursive:!0});const _="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",d=Uo(l,`trace${_}.json`),p=Uo(l,`types${_}.json`);s.push({configFilePath:u,tracePath:d,typesPath:p}),i=t.openSync(d,"w"),Yn=e;const f={cat:"__metadata",ph:"M",ts:1e3*Gn(),pid:1,tid:1};t.writeSync(i,"[\n"+[{name:"process_name",args:{name:"tsc"},...f},{name:"thread_name",args:{name:"Main"},...f},{name:"TracingStartedInBrowser",...f,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){gn.assert(Yn,"Tracing is not in progress"),gn.assert(!!o.length==("server"!==n)),t.writeSync(i,"\n]\n"),t.closeSync(i),Yn=void 0,o.length?function(e){var n,r,i,o,a,c,l,u,_,d,f,m,g,h,y,v,b,x,S;ar("beginDumpTypes");const k=s[s.length-1].typesPath,T=t.openSync(k,"w"),C=new Map;t.writeSync(T,"[");const D=e.length;for(let s=0;se.id)),referenceLocation:p(e.node)}}let A={};if(16777216&k.flags){const e=k;A={conditionalCheckType:null==(c=e.checkType)?void 0:c.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(u=e.resolvedTrueType)?void 0:u.id)??-1,conditionalFalseType:(null==(_=e.resolvedFalseType)?void 0:_.id)??-1}}let I={};if(33554432&k.flags){const e=k;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(f=e.constraint)?void 0:f.id}}let O={};if(1024&w){const e=k;O={reverseMappedSourceType:null==(m=e.source)?void 0:m.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,R={};if(256&w){const e=k;R={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const j=k.checker.getRecursionIdentity(k);j&&(L=C.get(j),L||(L=C.size,C.set(j,L)));const M={id:k.id,intrinsicName:k.intrinsicName,symbolName:(null==E?void 0:E.escapedName)&&Sc(E.escapedName),recursionId:L,isTuple:!!(8&w)||void 0,unionTypes:1048576&k.flags?null==(v=k.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&k.flags?k.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=k.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&k.flags?null==(x=k.type)?void 0:x.id:void 0,...N,...P,...A,...I,...O,...R,destructuringPattern:p(k.pattern),firstDeclaration:p(null==(S=null==E?void 0:E.declarations)?void 0:S[0]),flags:gn.formatTypeFlags(k.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(M)),s0),_(l.length-1,1e3*Gn(),e),l.length--},e.popAll=function(){const e=1e3*Gn();for(let t=l.length-1;t>=0;t--)_(t,e);l.length=0};const u=1e4;function _(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=l[e];s?(gn.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),d("E",r,i,o,void 0,t)):u-a%u<=t-a&&d("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function d(e,r,o,a,s,c=1e3*Gn()){"server"===n&&"checkTypes"===r||(ar("beginTracing"),t.writeSync(i,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${c},"name":"${o}"`),s&&t.writeSync(i,`,${s}`),a&&t.writeSync(i,`,"args":${JSON.stringify(a)}`),t.writeSync(i,"}"),ar("endTracing"),sr("Tracing","beginTracing","endTracing"))}function p(e){const t=Cd(e);return t?{path:t.path,start:n(Ga(t,e.pos)),end:n(Ga(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(Zn||(Zn={}));var hr=Zn.startTracing,yr=Zn.dumpLegend,vr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(br||{}),xr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(xr||{}),Sr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Sr||{}),kr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(kr||{}),Tr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(Tr||{}),Cr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Cr||{}),Dr=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(Dr||{}),wr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(wr||{}),Er=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Er||{}),Fr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Fr||{}),Nr=class{},Pr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(Pr||{}),Ar=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Ar||{}),Ir=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Ir||{}),Or=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Or||{}),Lr=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Lr||{}),Rr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Rr||{}),jr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(jr||{}),Mr=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Mr||{}),Br=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Br||{}),Jr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Jr||{}),zr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(zr||{}),$r=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))($r||{}),qr=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(qr||{}),Ur=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Ur||{}),Vr=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Vr||{}),Wr=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(Wr||{}),Hr=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Hr||{}),Gr=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Gr||{}),Kr=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Kr||{}),Xr=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Xr||{}),Qr=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(Qr||{}),Yr=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Yr||{}),Zr=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Zr||{}),ei=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(ei||{}),ti=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(ti||{}),ni=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(ni||{}),ri=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(ri||{}),ii=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(ii||{}),oi=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(oi||{}),ai=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ai||{}),si=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(si||{}),ci=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(ci||{}),li=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(li||{}),ui=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(ui||{}),_i=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(_i||{}),di=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(di||{});function pi(e,t=!0){const n=di[e.category];return t?n.toLowerCase():n}var fi=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(fi||{}),mi=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(mi||{}),gi=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(gi||{}),hi=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(hi||{}),yi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(yi||{}),vi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(vi||{}),bi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(bi||{}),xi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(xi||{}),Si=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Si||{}),ki=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(ki||{}),Ti=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Ti||{}),Ci=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Ci||{}),Di=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Di||{}),wi=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(wi||{}),Ei=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Ei||{}),Fi=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Fi||{}),Ni=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ni||{}),Pi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Pi||{}),Ai=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ai||{}),Ii={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Oi=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Oi||{}),Li=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Li||{}),Ri=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Assertions=6]="Assertions",e[e.All=31]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Ri||{}),ji=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(ji||{}),Mi=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Mi||{}),Ji=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Ji||{}),zi={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},$i=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))($i||{});function qi(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Vi||{}),Wi=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Wi||{}),Hi=new Date(0);function Gi(e,t){return e.getModifiedTime(t)||Hi}function Ki(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Xi={Low:32,Medium:64,High:256},Qi=Ki(Xi),Yi=Ki(Xi);function Zi(e,t,n,r,i){let o=n;for(let a=t.length;r&&a;++n===t.length&&(o{o.isClosed=!0,Kt(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,Qi[t.pollingInterval]),t.length?p(t.pollingInterval):(gn.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return Zi(e,t,i,o,(function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==Yi[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,_(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,_(e,250===r?500:2e3))}))}function u(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function _(e,t){u(t).push(e),d(t)}function d(e){u(e).pollScheduled||p(e)}function p(t){u(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",u(t))}}function to(e,t,n,r){const i=Qe(),o=r?new Map:void 0,a=new Map,s=Xt(t);return function(t,r,c,l){const u=s(t);1===i.add(u,r).length&&o&&o.set(u,n(t)||Hi);const _=Ro(u)||".",d=a.get(_)||function(t,r,c){const l=e(t,1,((e,r)=>{if(!it(r))return;const a=Ho(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||Hi,t.getTime()===i.getTime()))return;t||(t=n(a)||Hi),o.set(c,t),i===Hi?r=0:t===Hi&&(r=2)}for(const e of l)e(a,r,t)}}),!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Ro(t)||".",_,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(_)):d.referenceCount--,i.remove(u,r)}}}}function no(e,t,n,r,i){const o=Xt(t)(n),a=e.get(o);return a?a.callbacks.push(r):e.set(o,{watcher:i(((t,n,r)=>{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&Wt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),Iq(t))}}}function ro(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,io(n,r),t),!0)}function io(e,t){return 0===e?0:0===t?2:1}var oo=["/node_modules/.","/.git","/.#"],ao=ct;function so(e){return ao(e)}function co(e){ao=e}function lo({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:s}){const c=new Map,l=Qe(),_=new Map;let d;const p=Pt(!t),f=Xt(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){const p=f(t);let m=c.get(p);m?m.refCount++:(m={watcher:e(t,(e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=c.get(p))?void 0:r.targetWatcher)||g(t,p,e),b(t,p,n)):function(e,t,n,r){const o=c.get(t);o&&i(e,1)?function(e,t,n,r){const i=_.get(t);i?i.fileNames.push(n):_.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(s(d),d=void 0),d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(e,t,n),v(o),y(o))}(t,p,e,n))}),!1,n),refCount:1,childWatches:u,targetWatcher:void 0,links:void 0},c.set(p,m),b(t,p,n)),o&&(m.links??(m.links=new Set)).add(o);const S=r&&{dirName:t,callback:r};return S&&l.add(p,S),{dirName:t,close:()=>{var e;const t=gn.checkDefined(c.get(p));S&&l.remove(p,S),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(c.delete(p),t.links=void 0,Iq(t),v(t),t.childWatches.forEach(ux))}}}function g(e,t,n,r){var i,o;let a,s;it(n)?a=n:s=n,l.forEach(((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||en(t,n)&&t[n.length]===yo))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach((({callback:e})=>e(a)))})),null==(o=null==(i=c.get(t))?void 0:i.links)||o.forEach((t=>{const n=n=>Uo(t,ua(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))}))}function h(){var e;d=void 0,so(`sysLog:: onTimerToUpdateChildWatches:: ${_.size}`);const t=Gn(),n=new Map;for(;!d&&_.size;){const t=_.entries().next();gn.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;_.delete(r);const s=b(i,r,o);(null==(e=c.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}so(`sysLog:: invokingWatchers:: Elapsed:: ${Gn()-t}ms:: ${_.size}`),l.forEach(((e,t)=>{const r=n.get(t);r&&e.forEach((({callback:e,dirName:t})=>{nt(r)?r.forEach(e):e(t)}))})),so(`sysLog:: Elapsed:: ${Gn()-t}ms:: onTimerToUpdateChildWatches:: ${_.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=u;for(const e of t)e.close(),y(c.get(f(e.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=c.get(t);if(!a)return!1;const s=Go(o(e));let l,_;return 0===p(s,e)?l=un(i(e,1)?q(r(e),(t=>{const r=Ho(t,e);return x(r,n)||0!==p(r,Go(o(r)))?void 0:r})):u,a.childWatches,((e,t)=>p(e,t.dirName)),(function(e){d(m(e,n))}),ux,d):a.targetWatcher&&0===p(s,a.targetWatcher.dirName)?(l=!1,gn.assert(a.childWatches===u)):(v(a),a.targetWatcher=m(s,n,void 0,e),a.childWatches.forEach(ux),l=!0),a.childWatches=_||u,l;function d(e){(_||(_=[])).push(e)}}function x(e,r){return X(oo,(n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n)))||_o(e,r,t,n)}}var uo=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(uo||{});function _o(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(OR(e,null==t?void 0:t.excludeFiles,n,r())||OR(e,null==t?void 0:t.excludeDirectories,n,r()))}function po(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?Go(Uo(e,a)):e;a&&_o(o,n,r,i)||t(o)}}}function fo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:u,tscWatchFile:_,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,S,k,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,_){return c?P(e,1,po(e,t,_,a,s),i,500,Aq(_)):(k||(k=lo({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:F,realpath:u,setTimeout:n,clearTimeout:r})),k(e,t,i,_))}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(_){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return E(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return E(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?E(5,1,e):{watchFile:4}}}(i,d);const o=gn.checkDefined(i.watchFile);switch(o){case 0:return N(e,n,250,void 0);case 1:return N(e,n,r,void 0);case 2:return D()(e,n,r,void 0);case 3:return w()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||Hi),t(e,o!==Hi?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,Aq(i));case 5:return S||(S=to(P,a,t,m)),S(e,n,r,Aq(i));default:gn.assertNever(o)}}function D(){return b||(b=eo({getModifiedTime:t,setTimeout:n}))}function w(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:Gi(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,Kt(t,i)}}};function i(){n=void 0,r=Zi(e,t,r,Qi[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function E(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function F(e,t,n,r){gn.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=gn.checkDefined(i.watchDirectory);switch(o){case 1:return N(e,(()=>t(e)),500,void 0);case 2:return D()(e,(()=>t(e)),500,void 0);case 3:return w()(e,(()=>t(e)),void 0,void 0);case 0:return P(e,1,po(e,t,r,a,s),n,500,Aq(i));default:gn.assertNever(o)}}function N(t,n,r,i){return no(h,a,t,n,(n=>e(t,n,r,i)))}function P(e,n,r,s,c,l){return no(s?v:y,a,e,r,(r=>function(e,n,r,a,s,c){let l,u;f&&(l=e.substring(e.lastIndexOf(yo)),u=l.slice(yo.length));let _=o(e,n)?p():v();return{close:()=>{_&&(_.close(),_=void 0)}};function d(t){_&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),_.close(),_=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",(()=>{r("rename",""),d(v)})),t}catch(t){return T||(T="ENOSPC"===t.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&$t(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==u&&!$t(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||Hi;o&&r(n,o,a),r(n,i,a),f?d(a===Hi?v:p):a===Hi&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,((n,i,o)=>{0===i&&(o||(o=t(e)||Hi),o!==Hi&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,l)))}function A(e,n,r){let o=t(e)||Hi;return i(e,n,((n,i,a)=>{"change"===n&&(a||(a=t(e)||Hi),a.getTime()===o.getTime())||(o=a||t(e)||Hi,r(n,i,o))}))}}function mo(e){const t=e.writeFile;e.writeFile=(n,r,i)=>cv(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}var go=(()=>{let e;return mn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,t=o,n=a,r=s;let i,c;try{i=require("crypto")}catch{i=void 0}let l="./profile.cpuprofile";const u="darwin"===process.platform,d="linux"===process.platform||u,p={throwIfNoEntry:!1},f=r.platform(),m="win32"!==f&&"win64"!==f&&!P((C=__filename,C.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),g=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,h=__filename.endsWith("sys.js")?n.join(n.dirname(__dirname),"__fake__.js"):__filename,y="win32"===process.platform||u,x=ht((()=>process.cwd())),{watchFile:S,watchDirectory:k}=fo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:I,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,y?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:m,getCurrentDirectory:x,fileSystemEntryExists:N,fsSupportsRecursiveFsWatch:y,getAccessibleSortedChildDirectories:e=>F(e).directories,realpath:A,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:d,fsWatchWithTimestamp:u,sysLog:so}),T={args:process.argv.slice(2),newLine:r.EOL,useCaseSensitiveFileNames:m,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){let r;try{r=t.readFileSync(e)}catch{return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")},writeFile:function(e,n,r){let i;r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:S,watchDirectory:k,preferNonRecursiveWatch:!y,resolvePath:e=>n.resolve(e),fileExists:P,directoryExists:function(e){return N(e,1)},getAccessibleFileSystemEntries:F,createDirectory(e){if(!T.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>h,getCurrentDirectory:x,getDirectories:function(e){return F(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return Tk(e,t,n,r,m,process.cwd(),i,F,A)},getModifiedTime:I,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:i?O:qi,createSHA256Hash:i?O:void 0,getMemoryUsage:()=>(v.gc&&v.gc(),process.memoryUsage().heapUsed),getFileSize(e){const t=D(e);return(null==t?void 0:t.isFile())?t.size:0},exit(e){w((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(c)return t(),!1;const n=_;if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{c=r,l=e,t()}))})),!0},disableCPUProfiler:w,cpuProfilingEnabled:()=>!!c||E(process.execArgv,"--cpu-prof")||E(process.execArgv,"--prof"),realpath:A,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||X(process.execArgv,(e=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{Bi().install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const n=Rj(t,e,T);return{module:b(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var C;return T;function D(e){try{return t.statSync(e,p)}catch{return}}function w(r){if(c&&"stopping"!==c){const i=c;return c.post("Profiler.stop",((o,{profile:a})=>{var s;if(!o){(null==(s=D(l))?void 0:s.isDirectory())&&(l=n.join(l,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{t.mkdirSync(n.dirname(l),{recursive:!0})}catch{}t.writeFileSync(l,JSON.stringify(function(t){let r=0;const i=new Map,o=$o(n.dirname(h)),a=`file://${1===Lo(o)?"":"/"}${o}`;for(const n of t.nodes)if(n.callFrame.url){const t=$o(n.callFrame.url);sa(a,t,m)?n.callFrame.url=pa(a,t,a,Xt(m),!0):e.test(t)||(n.callFrame.url=(i.has(t)?i:i.set(t,`external${r}.js`)).get(t),r++)}return t}(a)))}c=void 0,i.disconnect(),r()})),c="stopping",!0}return r(),!1}function F(e){try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){if(o=D(Uo(e,n)),!o)continue}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch{return uT}}function N(e,t){const n=D(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}function P(e){return N(e,0)}function A(e){try{return g(e)}catch{return e}}function I(e){var t;return null==(t=D(e))?void 0:t.mtime}function O(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&mo(e),e})();function ho(e){go=e}go&&go.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,Wi);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&Ki(i?{...r,...i}:r)}Qi=r("TSC_WATCH_POLLINGCHUNKSIZE",Xi)||Qi,Yi=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Xi)||Yi}(go),gn.setAssertionLevel(/^development$/i.test(go.getEnvironmentVariable("NODE_ENV"))?1:0)),go&&go.debugMode&&(gn.isDebugging=!0);var yo="/",vo="\\",bo="://",xo=/\\/g;function So(e){return 47===e||92===e}function ko(e){return Oo(e)<0}function To(e){return Oo(e)>0}function Co(e){const t=Oo(e);return t>0&&t===e.length}function Do(e){return 0!==Oo(e)}function wo(e){return/^\.\.?(?:$|[\\/])/.test(e)}function Eo(e){return!Do(e)&&!wo(e)}function Fo(e){return jo(e).includes(".")}function No(e,t){return e.length>t.length&&$t(e,t)}function Po(e,t){for(const n of t)if(No(e,n))return!0;return!1}function Ao(e){return e.length>0&&So(e.charCodeAt(e.length-1))}function Io(e){return e>=97&&e<=122||e>=65&&e<=90}function Oo(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?yo:vo,2);return n<0?e.length:n+1}if(Io(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(bo);if(-1!==n){const t=n+bo.length,r=e.indexOf(yo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&Io(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function Lo(e){const t=Oo(e);return t<0?~t:t}function Ro(e){const t=Lo(e=$o(e));return t===e.length?e:(e=Qo(e)).slice(0,Math.max(t,e.lastIndexOf(yo)))}function jo(e,t,n){if(Lo(e=$o(e))===e.length)return"";const r=(e=Qo(e)).slice(Math.max(Lo(e),e.lastIndexOf(yo)+1)),i=void 0!==t&&void 0!==n?Bo(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Mo(e,t,n){if(en(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Bo(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Mo(e,t,n)||"";for(const r of t){const t=Mo(e,r,n);if(t)return t}return""}(Qo(e),t,n?xt:St);const r=jo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Jo(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(yo);return r.length&&!ke(r)&&r.pop(),[n,...r]}(e=Uo(t,e),Lo(e))}function zo(e,t){return 0===e.length?"":(e[0]&&Yo(e[0]))+e.slice(1,t).join(yo)}function $o(e){return e.includes("\\")?e.replace(xo,yo):e}function qo(e){if(!X(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function Uo(e,...t){e&&(e=$o(e));for(let n of t)n&&(n=$o(n),e=e&&0===Lo(n)?Yo(e)+n:n);return e}function Vo(e,...t){return Go(X(t)?Uo(e,...t):$o(e))}function Wo(e,t){return qo(Jo(e,t))}function Ho(e,t){return zo(Wo(e,t))}function Go(e){if(e=$o(e),!na.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!na.test(e)))return e;const n=zo(qo(Jo(e)));return n&&Ao(e)?Yo(n):n}function Ko(e,t){return 0===(n=Wo(e,t)).length?"":n.slice(1).join(yo);var n}function Xo(e,t,n){return n(To(e)?Go(e):Ho(e,t))}function Qo(e){return Ao(e)?e.substr(0,e.length-1):e}function Yo(e){return Ao(e)?e:e+yo}function Zo(e){return Do(e)||wo(e)?e:"./"+e}function ea(e,t,n,r){const i=void 0!==n&&void 0!==r?Bo(e,n,r):Bo(e);return i?e.slice(0,e.length-i.length)+(en(t,".")?t:"."+t):e}function ta(e,t){const n=oO(e);return n?e.slice(0,e.length-n.length)+(en(t,".")?t:"."+t):ea(e,t)}var na=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function ra(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,Lo(e)),i=t.substring(0,Lo(t)),o=Et(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!na.test(a)&&!na.test(s))return n(a,s);const c=qo(Jo(e)),l=qo(Jo(t)),u=Math.min(c.length,l.length);for(let e=1;e0==Lo(t)>0,"Paths must either both be absolute or both be relative"),zo(la(e,t,"boolean"==typeof n&&n?xt:St,"function"==typeof n?n:dt))}function _a(e,t,n){return To(e)?pa(t,e,t,n,!1):e}function da(e,t,n){return Zo(ua(Ro(e),t,n))}function pa(e,t,n,r,i){const o=la(Vo(n,e),Vo(n,t),St,r),a=o[0];if(i&&To(a)){const e=a.charAt(0)===yo?"file://":"file:///";o[0]=e+a}return zo(o)}function fa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Ro(e);if(r===e)return;e=r}}function ma(e){return $t(e,"/node_modules")}function ga(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var ha={Unterminated_string_literal:ga(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:ga(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:ga(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:ga(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:ga(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:ga(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:ga(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:ga(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:ga(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:ga(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:ga(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:ga(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:ga(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:ga(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:ga(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:ga(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:ga(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:ga(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:ga(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:ga(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:ga(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:ga(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:ga(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:ga(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:ga(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:ga(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:ga(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:ga(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:ga(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:ga(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:ga(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:ga(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:ga(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:ga(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:ga(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:ga(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:ga(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:ga(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:ga(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:ga(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:ga(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:ga(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:ga(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:ga(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:ga(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:ga(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:ga(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:ga(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:ga(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:ga(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","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:ga(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:ga(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:ga(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:ga(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:ga(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:ga(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:ga(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:ga(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:ga(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:ga(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:ga(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:ga(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:ga(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:ga(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:ga(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:ga(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:ga(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:ga(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:ga(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:ga(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:ga(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ga(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:ga(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:ga(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:ga(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:ga(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:ga(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:ga(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:ga(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:ga(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:ga(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:ga(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:ga(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:ga(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:ga(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:ga(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:ga(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:ga(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:ga(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:ga(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:ga(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:ga(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:ga(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:ga(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:ga(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:ga(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:ga(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:ga(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:ga(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:ga(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:ga(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:ga(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:ga(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:ga(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:ga(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:ga(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:ga(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:ga(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:ga(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:ga(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:ga(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:ga(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:ga(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:ga(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:ga(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:ga(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:ga(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:ga(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:ga(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:ga(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:ga(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:ga(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ga(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:ga(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:ga(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:ga(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:ga(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:ga(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:ga(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:ga(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:ga(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:ga(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:ga(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:ga(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:ga(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:ga(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:ga(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:ga(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:ga(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:ga(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:ga(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:ga(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:ga(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:ga(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:ga(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:ga(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:ga(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:ga(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:ga(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:ga(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:ga(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:ga(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:ga(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:ga(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:ga(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:ga(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:ga(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:ga(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:ga(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:ga(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:ga(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:ga(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:ga(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:ga(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:ga(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:ga(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:ga(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:ga(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:ga(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:ga(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:ga(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:ga(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:ga(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:ga(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:ga(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:ga(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:ga(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:ga(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ga(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ga(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:ga(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:ga(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:ga(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:ga(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:ga(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:ga(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:ga(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:ga(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:ga(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:ga(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:ga(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:ga(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:ga(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:ga(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:ga(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:ga(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:ga(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:ga(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:ga(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:ga(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:ga(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:ga(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:ga(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:ga(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:ga(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:ga(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:ga(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:ga(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:ga(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:ga(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:ga(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:ga(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:ga(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:ga(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:ga(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:ga(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:ga(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:ga(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:ga(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:ga(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:ga(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:ga(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:ga(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ga(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:ga(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:ga(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:ga(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ga(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ga(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ga(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ga(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ga(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ga(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ga(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ga(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ga(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ga(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ga(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:ga(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:ga(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ga(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:ga(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:ga(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:ga(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:ga(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:ga(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:ga(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:ga(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:ga(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:ga(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ga(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:ga(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve:ga(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:ga(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:ga(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:ga(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:ga(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:ga(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:ga(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:ga(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:ga(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:ga(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:ga(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:ga(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:ga(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:ga(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:ga(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:ga(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:ga(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:ga(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:ga(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:ga(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:ga(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:ga(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:ga(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:ga(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:ga(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:ga(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:ga(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:ga(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:ga(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:ga(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:ga(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:ga(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:ga(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ga(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:ga(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:ga(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:ga(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:ga(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:ga(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:ga(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:ga(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:ga(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:ga(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:ga(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ga(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:ga(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:ga(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ga(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:ga(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:ga(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:ga(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:ga(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ga(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ga(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ga(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ga(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:ga(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:ga(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:ga(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:ga(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:ga(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:ga(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:ga(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:ga(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:ga(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:ga(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:ga(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:ga(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:ga(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:ga(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:ga(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:ga(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:ga(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:ga(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:ga(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:ga(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:ga(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:ga(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:ga(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:ga(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:ga(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:ga(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:ga(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:ga(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:ga(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:ga(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:ga(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:ga(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:ga(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:ga(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:ga(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:ga(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:ga(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:ga(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:ga(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:ga(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:ga(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ga(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ga(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:ga(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:ga(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:ga(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:ga(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:ga(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:ga(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:ga(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:ga(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:ga(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:ga(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:ga(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:ga(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:ga(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:ga(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:ga(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:ga(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:ga(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:ga(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ga(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:ga(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:ga(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:ga(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:ga(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:ga(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:ga(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ga(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:ga(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:ga(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:ga(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ga(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:ga(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:ga(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:ga(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:ga(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:ga(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:ga(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:ga(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:ga(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:ga(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:ga(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ga(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ga(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:ga(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:ga(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:ga(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:ga(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:ga(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:ga(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:ga(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:ga(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:ga(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:ga(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:ga(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:ga(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:ga(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:ga(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:ga(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:ga(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:ga(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:ga(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:ga(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:ga(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:ga(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:ga(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:ga(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:ga(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:ga(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:ga(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:ga(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:ga(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:ga(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:ga(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:ga(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:ga(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:ga(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:ga(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:ga(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:ga(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:ga(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:ga(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:ga(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:ga(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:ga(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:ga(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:ga(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:ga(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ga(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:ga(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:ga(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:ga(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:ga(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:ga(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:ga(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:ga(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ga(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:ga(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:ga(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ga(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ga(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:ga(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:ga(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:ga(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:ga(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:ga(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:ga(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ga(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ga(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:ga(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:ga(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:ga(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ga(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ga(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:ga(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:ga(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:ga(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ga(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:ga(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:ga(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:ga(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:ga(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:ga(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:ga(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:ga(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:ga(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:ga(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:ga(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:ga(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:ga(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:ga(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:ga(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:ga(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:ga(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:ga(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:ga(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:ga(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:ga(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:ga(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:ga(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:ga(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:ga(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:ga(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:ga(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:ga(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:ga(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:ga(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:ga(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:ga(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:ga(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:ga(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:ga(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:ga(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:ga(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:ga(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:ga(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:ga(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:ga(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:ga(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:ga(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:ga(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:ga(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:ga(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:ga(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:ga(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:ga(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:ga(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:ga(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:ga(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:ga(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:ga(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:ga(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:ga(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ga(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ga(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:ga(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:ga(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:ga(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:ga(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:ga(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:ga(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:ga(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:ga(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:ga(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:ga(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:ga(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ga(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:ga(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:ga(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:ga(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ga(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:ga(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:ga(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:ga(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:ga(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:ga(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:ga(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:ga(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:ga(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:ga(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:ga(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:ga(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:ga(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:ga(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:ga(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:ga(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:ga(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:ga(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:ga(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:ga(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:ga(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:ga(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:ga(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:ga(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:ga(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:ga(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:ga(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:ga(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:ga(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:ga(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:ga(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:ga(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:ga(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:ga(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:ga(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:ga(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:ga(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:ga(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:ga(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:ga(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:ga(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:ga(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ga(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:ga(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:ga(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:ga(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:ga(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:ga(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:ga(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:ga(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:ga(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:ga(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:ga(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:ga(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:ga(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:ga(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:ga(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:ga(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:ga(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:ga(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:ga(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:ga(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:ga(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:ga(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:ga(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:ga(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:ga(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:ga(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:ga(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:ga(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:ga(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:ga(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:ga(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:ga(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:ga(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:ga(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:ga(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:ga(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:ga(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:ga(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:ga(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:ga(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:ga(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:ga(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:ga(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:ga(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:ga(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:ga(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:ga(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:ga(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:ga(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:ga(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:ga(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:ga(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:ga(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:ga(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:ga(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:ga(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:ga(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:ga(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:ga(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:ga(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:ga(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:ga(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:ga(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:ga(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:ga(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:ga(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:ga(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:ga(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:ga(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:ga(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:ga(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:ga(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:ga(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:ga(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:ga(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:ga(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:ga(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:ga(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:ga(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:ga(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:ga(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:ga(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:ga(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:ga(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:ga(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:ga(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:ga(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:ga(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:ga(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:ga(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:ga(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:ga(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:ga(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:ga(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:ga(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:ga(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:ga(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:ga(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:ga(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:ga(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:ga(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:ga(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:ga(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:ga(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:ga(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:ga(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:ga(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:ga(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ga(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ga(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:ga(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:ga(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:ga(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:ga(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:ga(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:ga(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:ga(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:ga(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:ga(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:ga(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:ga(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:ga(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:ga(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:ga(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:ga(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:ga(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:ga(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:ga(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:ga(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:ga(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:ga(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:ga(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:ga(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:ga(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:ga(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:ga(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:ga(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:ga(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:ga(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:ga(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:ga(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:ga(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:ga(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:ga(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:ga(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:ga(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:ga(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:ga(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:ga(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ga(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:ga(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ga(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:ga(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:ga(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:ga(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:ga(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:ga(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:ga(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:ga(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:ga(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:ga(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:ga(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:ga(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:ga(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:ga(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:ga(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ga(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:ga(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:ga(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:ga(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:ga(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:ga(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:ga(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:ga(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:ga(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:ga(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:ga(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:ga(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:ga(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:ga(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:ga(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:ga(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:ga(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:ga(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:ga(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:ga(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:ga(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:ga(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:ga(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:ga(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:ga(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:ga(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:ga(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:ga(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:ga(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:ga(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:ga(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:ga(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:ga(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:ga(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:ga(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:ga(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:ga(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:ga(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:ga(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:ga(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:ga(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:ga(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:ga(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:ga(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:ga(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:ga(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:ga(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:ga(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:ga(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:ga(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:ga(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:ga(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:ga(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:ga(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:ga(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:ga(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:ga(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:ga(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:ga(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:ga(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:ga(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:ga(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:ga(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:ga(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:ga(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:ga(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:ga(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:ga(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ga(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:ga(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:ga(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:ga(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:ga(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:ga(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:ga(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:ga(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ga(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:ga(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:ga(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:ga(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:ga(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:ga(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ga(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ga(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:ga(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:ga(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:ga(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:ga(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:ga(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:ga(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:ga(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:ga(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:ga(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:ga(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:ga(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:ga(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:ga(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:ga(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:ga(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:ga(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:ga(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:ga(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:ga(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:ga(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:ga(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:ga(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:ga(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:ga(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:ga(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:ga(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:ga(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:ga(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:ga(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:ga(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:ga(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:ga(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:ga(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:ga(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:ga(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:ga(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:ga(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:ga(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:ga(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:ga(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:ga(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:ga(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:ga(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:ga(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:ga(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ga(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:ga(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:ga(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:ga(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ga(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:ga(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:ga(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:ga(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:ga(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:ga(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:ga(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:ga(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:ga(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:ga(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:ga(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:ga(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:ga(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:ga(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:ga(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:ga(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:ga(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:ga(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:ga(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:ga(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:ga(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:ga(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:ga(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:ga(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:ga(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:ga(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:ga(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:ga(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:ga(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:ga(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ga(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:ga(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:ga(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:ga(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:ga(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:ga(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:ga(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:ga(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:ga(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:ga(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:ga(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:ga(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:ga(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:ga(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:ga(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:ga(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:ga(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:ga(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:ga(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:ga(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:ga(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:ga(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:ga(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:ga(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:ga(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:ga(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:ga(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:ga(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ga(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:ga(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ga(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:ga(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:ga(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:ga(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ga(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:ga(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:ga(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:ga(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:ga(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:ga(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:ga(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ga(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:ga(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:ga(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:ga(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:ga(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:ga(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:ga(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ga(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ga(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ga(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:ga(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ga(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:ga(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:ga(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:ga(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:ga(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:ga(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:ga(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:ga(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:ga(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ga(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ga(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:ga(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:ga(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:ga(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:ga(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:ga(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:ga(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:ga(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:ga(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:ga(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:ga(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:ga(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:ga(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:ga(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_declaration_0_is_using_private_name_1:ga(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:ga(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:ga(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ga(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ga(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ga(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:ga(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:ga(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ga(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:ga(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:ga(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ga(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:ga(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:ga(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:ga(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:ga(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:ga(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ga(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:ga(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:ga(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:ga(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:ga(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:ga(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ga(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ga(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:ga(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ga(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ga(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:ga(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ga(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:ga(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ga(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ga(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:ga(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:ga(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ga(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ga(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ga(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ga(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:ga(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:ga(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:ga(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:ga(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:ga(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:ga(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:ga(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:ga(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:ga(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ga(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:ga(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ga(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:ga(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:ga(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:ga(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:ga(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:ga(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:ga(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ga(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:ga(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:ga(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:ga(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:ga(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:ga(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:ga(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ga(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:ga(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ga(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:ga(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ga(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ga(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:ga(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:ga(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ga(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:ga(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:ga(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:ga(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:ga(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:ga(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ga(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:ga(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:ga(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:ga(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:ga(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:ga(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:ga(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:ga(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:ga(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:ga(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:ga(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:ga(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:ga(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:ga(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:ga(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:ga(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:ga(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:ga(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:ga(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:ga(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:ga(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ga(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:ga(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:ga(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:ga(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:ga(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:ga(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:ga(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:ga(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:ga(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:ga(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:ga(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:ga(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:ga(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:ga(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:ga(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:ga(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:ga(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:ga(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:ga(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:ga(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:ga(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:ga(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:ga(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:ga(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:ga(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:ga(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:ga(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:ga(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:ga(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:ga(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:ga(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:ga(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:ga(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:ga(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:ga(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:ga(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:ga(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:ga(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:ga(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:ga(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:ga(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:ga(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:ga(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:ga(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:ga(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:ga(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:ga(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:ga(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:ga(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:ga(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:ga(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:ga(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:ga(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:ga(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:ga(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:ga(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:ga(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:ga(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:ga(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:ga(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:ga(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:ga(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:ga(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:ga(6024,3,"options_6024","options"),file:ga(6025,3,"file_6025","file"),Examples_Colon_0:ga(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:ga(6027,3,"Options_Colon_6027","Options:"),Version_0:ga(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:ga(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:ga(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:ga(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:ga(6034,3,"KIND_6034","KIND"),FILE:ga(6035,3,"FILE_6035","FILE"),VERSION:ga(6036,3,"VERSION_6036","VERSION"),LOCATION:ga(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:ga(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:ga(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:ga(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:ga(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:ga(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:ga(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:ga(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:ga(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:ga(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:ga(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:ga(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:ga(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:ga(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:ga(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:ga(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:ga(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:ga(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:ga(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:ga(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:ga(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:ga(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:ga(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:ga(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:ga(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:ga(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:ga(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:ga(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:ga(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:ga(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:ga(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:ga(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:ga(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:ga(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:ga(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:ga(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:ga(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:ga(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:ga(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:ga(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:ga(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:ga(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:ga(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:ga(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:ga(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:ga(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:ga(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:ga(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:ga(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:ga(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:ga(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:ga(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:ga(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:ga(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:ga(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:ga(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:ga(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:ga(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:ga(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:ga(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:ga(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:ga(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:ga(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:ga(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:ga(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:ga(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:ga(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:ga(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:ga(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:ga(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:ga(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:ga(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:ga(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:ga(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:ga(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:ga(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:ga(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:ga(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:ga(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:ga(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:ga(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:ga(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:ga(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:ga(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:ga(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:ga(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:ga(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:ga(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:ga(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:ga(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:ga(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:ga(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:ga(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:ga(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:ga(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:ga(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:ga(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:ga(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:ga(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:ga(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:ga(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:ga(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:ga(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:ga(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:ga(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:ga(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:ga(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:ga(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:ga(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:ga(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:ga(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:ga(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:ga(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:ga(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:ga(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:ga(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:ga(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:ga(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:ga(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:ga(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:ga(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:ga(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ga(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ga(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:ga(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:ga(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:ga(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:ga(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:ga(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:ga(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:ga(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:ga(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:ga(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:ga(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:ga(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:ga(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:ga(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:ga(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:ga(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:ga(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:ga(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:ga(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:ga(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:ga(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:ga(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:ga(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:ga(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:ga(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:ga(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:ga(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:ga(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:ga(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:ga(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:ga(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:ga(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:ga(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:ga(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:ga(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:ga(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:ga(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:ga(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:ga(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:ga(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:ga(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:ga(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:ga(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:ga(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:ga(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:ga(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:ga(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:ga(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:ga(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:ga(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:ga(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:ga(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:ga(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:ga(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:ga(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:ga(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:ga(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:ga(6244,3,"Modules_6244","Modules"),File_Management:ga(6245,3,"File_Management_6245","File Management"),Emit:ga(6246,3,"Emit_6246","Emit"),JavaScript_Support:ga(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:ga(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:ga(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:ga(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:ga(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:ga(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:ga(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:ga(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:ga(6255,3,"Projects_6255","Projects"),Output_Formatting:ga(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:ga(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:ga(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:ga(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:ga(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:ga(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:ga(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:ga(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:ga(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:ga(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:ga(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:ga(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ga(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:ga(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:ga(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:ga(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:ga(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ga(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:ga(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:ga(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:ga(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:ga(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:ga(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:ga(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:ga(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:ga(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:ga(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:ga(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:ga(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:ga(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:ga(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:ga(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:ga(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:ga(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:ga(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:ga(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:ga(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:ga(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:ga(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:ga(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:ga(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:ga(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:ga(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:ga(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:ga(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:ga(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:ga(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:ga(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:ga(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:ga(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:ga(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:ga(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:ga(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:ga(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:ga(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:ga(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:ga(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ga(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:ga(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:ga(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:ga(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:ga(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ga(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ga(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ga(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:ga(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ga(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ga(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ga(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ga(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ga(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ga(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:ga(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:ga(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:ga(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:ga(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:ga(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:ga(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:ga(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:ga(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:ga(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:ga(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:ga(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:ga(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:ga(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:ga(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:ga(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:ga(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:ga(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:ga(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:ga(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:ga(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:ga(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:ga(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:ga(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:ga(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:ga(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:ga(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:ga(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:ga(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:ga(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:ga(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:ga(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:ga(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:ga(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:ga(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:ga(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:ga(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ga(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:ga(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:ga(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:ga(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:ga(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:ga(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:ga(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:ga(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:ga(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:ga(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:ga(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:ga(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:ga(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:ga(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:ga(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:ga(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:ga(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:ga(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:ga(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:ga(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:ga(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:ga(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:ga(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:ga(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:ga(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:ga(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:ga(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:ga(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:ga(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:ga(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:ga(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:ga(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:ga(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:ga(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:ga(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:ga(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:ga(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:ga(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:ga(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:ga(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:ga(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:ga(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:ga(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:ga(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:ga(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:ga(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:ga(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:ga(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:ga(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:ga(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:ga(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:ga(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:ga(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:ga(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:ga(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:ga(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:ga(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:ga(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:ga(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:ga(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:ga(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:ga(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:ga(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:ga(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:ga(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:ga(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:ga(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:ga(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:ga(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:ga(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:ga(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:ga(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:ga(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:ga(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:ga(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:ga(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:ga(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:ga(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:ga(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:ga(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:ga(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:ga(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:ga(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:ga(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:ga(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:ga(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:ga(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:ga(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:ga(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:ga(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:ga(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:ga(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:ga(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:ga(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:ga(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:ga(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:ga(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:ga(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:ga(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:ga(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:ga(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:ga(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:ga(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:ga(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:ga(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:ga(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:ga(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:ga(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:ga(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:ga(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:ga(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:ga(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:ga(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:ga(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:ga(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:ga(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:ga(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:ga(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:ga(6902,3,"type_Colon_6902","type:"),default_Colon:ga(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:ga(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:ga(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:ga(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:ga(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:ga(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:ga(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:ga(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:ga(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:ga(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:ga(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:ga(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:ga(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:ga(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:ga(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:ga(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:ga(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:ga(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:ga(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:ga(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:ga(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:ga(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:ga(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:ga(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:ga(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:ga(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:ga(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:ga(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:ga(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:ga(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:ga(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:ga(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:ga(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:ga(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ga(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:ga(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ga(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ga(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:ga(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:ga(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:ga(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:ga(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:ga(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ga(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:ga(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ga(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ga(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:ga(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:ga(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:ga(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:ga(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:ga(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:ga(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:ga(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:ga(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:ga(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:ga(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:ga(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:ga(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:ga(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:ga(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:ga(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:ga(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:ga(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:ga(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ga(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ga(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ga(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:ga(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ga(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:ga(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:ga(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:ga(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:ga(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:ga(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:ga(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:ga(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:ga(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:ga(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:ga(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:ga(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:ga(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:ga(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:ga(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:ga(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:ga(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:ga(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:ga(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:ga(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:ga(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:ga(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:ga(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:ga(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:ga(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:ga(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:ga(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:ga(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:ga(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:ga(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:ga(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:ga(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:ga(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:ga(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:ga(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:ga(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:ga(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:ga(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:ga(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:ga(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:ga(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:ga(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:ga(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:ga(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:ga(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:ga(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:ga(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:ga(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:ga(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:ga(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:ga(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:ga(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ga(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ga(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ga(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ga(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:ga(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:ga(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:ga(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:ga(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:ga(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:ga(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:ga(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:ga(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:ga(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:ga(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:ga(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:ga(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:ga(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:ga(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:ga(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:ga(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:ga(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:ga(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:ga(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:ga(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:ga(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:ga(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:ga(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:ga(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:ga(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:ga(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:ga(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:ga(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:ga(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:ga(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:ga(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ga(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ga(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:ga(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:ga(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:ga(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:ga(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:ga(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:ga(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:ga(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:ga(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:ga(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:ga(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:ga(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ga(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ga(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:ga(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:ga(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:ga(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:ga(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:ga(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:ga(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:ga(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:ga(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:ga(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:ga(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:ga(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:ga(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:ga(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:ga(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:ga(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:ga(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:ga(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:ga(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:ga(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:ga(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:ga(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:ga(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:ga(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:ga(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:ga(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:ga(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:ga(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:ga(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:ga(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:ga(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:ga(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:ga(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:ga(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:ga(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:ga(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:ga(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:ga(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:ga(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:ga(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:ga(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:ga(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:ga(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:ga(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:ga(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:ga(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:ga(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:ga(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:ga(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:ga(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:ga(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:ga(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:ga(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:ga(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:ga(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:ga(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:ga(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:ga(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:ga(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:ga(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:ga(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:ga(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:ga(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:ga(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:ga(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:ga(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:ga(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:ga(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:ga(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:ga(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:ga(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:ga(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:ga(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:ga(95005,3,"Extract_function_95005","Extract function"),Extract_constant:ga(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:ga(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:ga(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:ga(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:ga(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:ga(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:ga(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:ga(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:ga(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:ga(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:ga(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:ga(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:ga(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:ga(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:ga(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:ga(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:ga(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:ga(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:ga(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:ga(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:ga(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:ga(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:ga(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:ga(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:ga(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:ga(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:ga(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:ga(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:ga(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:ga(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:ga(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:ga(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:ga(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:ga(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:ga(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:ga(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:ga(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:ga(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:ga(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:ga(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:ga(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:ga(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:ga(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:ga(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:ga(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:ga(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:ga(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:ga(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:ga(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:ga(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:ga(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:ga(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:ga(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:ga(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:ga(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:ga(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:ga(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:ga(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:ga(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:ga(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:ga(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:ga(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:ga(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:ga(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:ga(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:ga(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:ga(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:ga(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:ga(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:ga(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:ga(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:ga(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:ga(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:ga(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:ga(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:ga(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:ga(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:ga(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:ga(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:ga(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:ga(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:ga(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:ga(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:ga(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:ga(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:ga(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:ga(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:ga(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:ga(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:ga(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:ga(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:ga(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:ga(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:ga(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:ga(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:ga(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:ga(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:ga(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:ga(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:ga(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:ga(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:ga(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:ga(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:ga(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:ga(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:ga(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:ga(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:ga(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:ga(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:ga(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:ga(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:ga(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:ga(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:ga(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:ga(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:ga(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:ga(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:ga(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:ga(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:ga(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:ga(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:ga(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:ga(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:ga(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:ga(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:ga(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:ga(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:ga(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:ga(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:ga(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:ga(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:ga(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:ga(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:ga(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:ga(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:ga(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:ga(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:ga(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:ga(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:ga(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:ga(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:ga(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:ga(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:ga(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:ga(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:ga(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:ga(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:ga(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:ga(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:ga(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:ga(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:ga(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:ga(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:ga(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:ga(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:ga(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:ga(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:ga(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:ga(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:ga(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:ga(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:ga(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:ga(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:ga(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:ga(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:ga(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:ga(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:ga(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:ga(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:ga(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:ga(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:ga(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:ga(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:ga(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:ga(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:ga(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:ga(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:ga(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:ga(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:ga(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:ga(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:ga(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:ga(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:ga(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:ga(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:ga(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:ga(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:ga(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:ga(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:ga(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:ga(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:ga(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:ga(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:ga(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:ga(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:ga(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:ga(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:ga(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:ga(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:ga(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:ga(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:ga(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:ga(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:ga(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:ga(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:ga(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:ga(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:ga(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:ga(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:ga(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:ga(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:ga(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:ga(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:ga(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:ga(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:ga(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:ga(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:ga(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:ga(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:ga(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:ga(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:ga(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:ga(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:ga(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:ga(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:ga(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:ga(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:ga(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:ga(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:ga(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:ga(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:ga(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:ga(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function ya(e){return e>=80}function va(e){return 32===e||ya(e)}var ba={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},xa=new Map(Object.entries(ba)),Sa=new Map(Object.entries({...ba,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ka=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Ta=new Map([[1,Ii.RegularExpressionFlagsHasIndices],[16,Ii.RegularExpressionFlagsDotAll],[32,Ii.RegularExpressionFlagsUnicode],[64,Ii.RegularExpressionFlagsUnicodeSets],[128,Ii.RegularExpressionFlagsSticky]]),Ca=[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],Da=[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],wa=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Ea=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Fa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Na=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Pa=/@(?:see|link)/i;function Aa(e,t){if(e=2?wa:Ca)}function Oa(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}var La=Oa(Sa);function Ra(e){return La[e]}function ja(e){return Sa.get(e)}var Ma=Oa(ka);function Ba(e){return Ma[e]}function Ja(e){return ka.get(e)}function za(e){const t=[];let n=0,r=0;for(;n127&&Qa(i)&&(t.push(r),r=n)}}return t.push(r),t}function $a(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):qa(Ua(e),t,n,e.text,r)}function qa(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:gn.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?ae(e,za(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Qa(e){return 10===e||13===e||8232===e||8233===e}function Ya(e){return e>=48&&e<=57}function Za(e){return Ya(e)||e>=65&&e<=70||e>=97&&e<=102}function es(e){return e>=65&&e<=90||e>=97&&e<=122}function ts(e){return es(e)||Ya(e)||95===e}function ns(e){return e>=48&&e<=55}function rs(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function is(e,t,n,r,i){if(rT(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&Ka(a)){t++;continue}}return t}}var os=7;function as(e,t){if(gn.assert(t>=0),0===t||Qa(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+os=0&&n127&&Ka(a)){_&&Qa(a)&&(u=!0),n++;continue}break e}}return _&&(p=i(s,c,l,u,o,p)),p}function ds(e,t,n,r){return _s(!1,e,t,!1,n,r)}function ps(e,t,n,r){return _s(!1,e,t,!0,n,r)}function fs(e,t,n,r,i){return _s(!0,e,t,!1,n,r,i)}function ms(e,t,n,r,i){return _s(!0,e,t,!0,n,r,i)}function gs(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function hs(e,t){return fs(e,t,gs,void 0,void 0)}function ys(e,t){return ms(e,t,gs,void 0,void 0)}function vs(e){const t=cs.exec(e);if(t)return t[0]}function bs(e,t){return es(e)||36===e||95===e||e>127&&Ia(e,t)}function xs(e,t,n){return ts(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Aa(e,t>=2?Ea:Da)}(e,t)}function Ss(e,t,n){let r=Ts(e,0);if(!bs(r,t))return!1;for(let i=Cs(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>_,getTokenStart:()=>u,getTokenPos:()=>u,getTokenText:()=>g.substring(u,s),getTokenValue:()=>d,hasUnicodeEscape:()=>!!(1024&p),hasExtendedUnicodeEscape:()=>!!(8&p),hasPrecedingLineBreak:()=>!!(1&p),hasPrecedingJSDocComment:()=>!!(2&p),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&p),isIdentifier:()=>80===_||_>118,isReservedWord:()=>_>=83&&_<=118,isUnterminated:()=>!!(4&p),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&p,getTokenFlags:()=>p,reScanGreaterToken:function(){if(32===_){if(62===k(s))return 62===k(s+1)?61===k(s+2)?(s+=3,_=73):(s+=2,_=50):61===k(s+1)?(s+=2,_=72):(s++,_=49);if(61===k(s))return s++,_=34}return _},reScanAsteriskEqualsToken:function(){return gn.assert(67===_,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=u+1,_=64},reScanSlashToken:function(t){if(44===_||69===_){const n=u+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=T(s);if(-1===e||Qa(e)){p|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==T(s+1)||60!==T(s+2)||61===T(s+3)||33===T(s+3)||(i=!0)}s++}const l=s;if(4&p){s=n,r=!1;let e=0,t=!1,i=0;for(;s{!function(t,n,r){var i,a,l,_,p=!!(64&t),m=!!(96&t),h=m||!n,y=!1,v=0,b=[];function x(e){for(;;){if(b.push(_),_=void 0,D(e),_=b.pop(),124!==T(s))return;s++}}function D(t){let n=!1;for(;;){const r=s,i=T(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(T(++s)){case 98:case 66:s++,n=!1;break;default:E(),n=!0}break;case 40:if(63===T(++s))switch(T(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(T(++s)){case 61:case 33:s++,n=!1;break;default:A(!1),H(62),e<5&&C(ha.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=w(0);45===T(s)&&(s++,w(i),s===r+1&&C(ha.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),H(58),n=!0}else v++,n=!0;x(!0),H(41);break;case 123:const o=++s;F();const a=d;if(!h&&!a){n=!0;break}if(44===T(s)){s++,F();const e=d;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===T(s))&&C(ha.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(ha.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==T(s)){if(!h){n=!0;break}C(ha._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(ha.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,p?R():L(),H(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:W(),n=!0}}}function w(t){for(;;){const n=S(s);if(-1===n||!xs(n,e))break;const r=Cs(n),i=Ja(n);void 0===i?C(ha.Unknown_regular_expression_flag,s,r):t&i?C(ha.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,V(i,r)):C(ha.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function E(){switch(gn.assertEqual(k(s-1),92),T(s)){case 107:60===T(++s)?(s++,A(!0),H(62)):(h||r)&&C(ha.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(p){s++,C(ha.q_is_only_available_inside_character_class,s-2,2);break}default:gn.assert($()||N()||P(!0))}}function N(){gn.assertEqual(k(s-1),92);const e=T(s);if(e>=49&&e<=57){const e=s;return F(),l=le(l,{pos:e,end:s,value:+d}),!0}return!1}function P(e){gn.assertEqual(k(s-1),92);let t=T(s);switch(t){case-1:return C(ha.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),es(t))return s++,String.fromCharCode(31&t);if(h)C(ha.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,O(12|(m?16:0)|(e?32:0))}}function A(t){gn.assertEqual(k(s-1),60),u=s,U(S(s),e),s===u?C(ha.Expected_a_capturing_group_name):t?a=le(a,{pos:u,end:s,name:d}):(null==_?void 0:_.has(d))||b.some((e=>null==e?void 0:e.has(d)))?C(ha.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,u,s-u):(_??(_=new Set),_.add(d),i??(i=new Set),i.add(d))}function I(e){return 93===e||-1===e||s>=c}function L(){for(gn.assertEqual(k(s-1),91),94===T(s)&&s++;;){if(I(T(s)))return;const e=s,t=z();if(45===T(s)){if(I(T(++s)))return;!t&&h&&C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=z();if(!r&&h){C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=Ts(t,0),o=Ts(r,0);t.length===Cs(i)&&r.length===Cs(o)&&i>o&&C(ha.Range_out_of_order_in_character_class,e,s-e)}}}function R(){gn.assertEqual(k(s-1),91);let e=!1;94===T(s)&&(s++,e=!0);let t=!1,n=T(s);if(I(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":C(ha.Expected_a_class_set_operand),y=!1;break;default:r=M()}switch(T(s)){case 45:if(45===T(s+1))return e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,j(3),void(y=!e&&t);break;case 38:if(38===T(s+1))return j(2),e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=T(s),-1!==n;){switch(n){case 45:if(n=T(++s),I(n))return void(y=!e&&t);if(45===n){s++,C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=M();if(e&&y&&C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){C(ha.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=Ts(r,0),c=Ts(o,0);r.length===Cs(a)&&o.length===Cs(c)&&a>c&&C(ha.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(I(T(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=M()}}y=!e&&t}function j(e){let t=y;for(;;){let n=T(s);if(I(n))break;switch(n){case 45:45===T(++s)?(s++,3!==e&&C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===T(++s)?(s++,2!==e&&C(ha.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(ha._0_expected,s,0,"--");break;case 2:C(ha._0_expected,s,0,"&&")}}if(n=T(s),I(n)){C(ha.Expected_a_class_set_operand);break}M(),t&&(t=y)}y=t}function M(){switch(y=!1,T(s)){case-1:return"";case 91:return s++,R(),H(93),"";case 92:if(s++,$())return"";if(113===T(s))return 123===T(++s)?(s++,B(),H(125),""):(C(ha.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return J()}}function B(){gn.assertEqual(k(s-1),123);let e=0;for(;;)switch(T(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:J(),e++}}function J(){const e=T(s);if(-1===e)return"";if(92===e){const e=T(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return P(!1)}}else if(e===T(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return C(ha.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return C(ha.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return W()}function z(){if(92!==T(s))return W();{const e=T(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return $()?"":P(!1)}}}function $(){gn.assertEqual(k(s-1),92);let e=!1;const t=s-1,n=T(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===T(++s)){const n=++s,r=q();if(61===T(s)){const e=Es.get(r);if(s===n)C(ha.Expected_a_Unicode_property_name);else if(void 0===e){C(ha.Unknown_Unicode_property_name,n,s-n);const e=Jt(r,Es.keys(),dt);e&&C(ha.Did_you_mean_0,n,s-n,e)}const t=++s,i=q();if(s===t)C(ha.Expected_a_Unicode_property_value);else if(void 0!==e&&!Ps[e].has(i)){C(ha.Unknown_Unicode_property_value,t,s-t);const n=Jt(i,Ps[e],dt);n&&C(ha.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(ha.Expected_a_Unicode_property_name_or_value);else if(Ns.has(r))p?e?C(ha.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(ha.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!Ps.General_Category.has(r)&&!Fs.has(r)){C(ha.Unknown_Unicode_property_name_or_value,n,s-n);const e=Jt(r,[...Ps.General_Category,...Fs,...Ns],dt);e&&C(ha.Did_you_mean_0,n,s-n,e)}H(125),m||C(ha.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;C(ha._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function q(){let e="";for(;;){const t=T(s);if(-1===t||!ts(t))break;e+=String.fromCharCode(t),s++}return e}function W(){const e=m?Cs(S(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function H(e){T(s)===e?s++:C(ha._0_expected,s,0,String.fromCharCode(e))}x(!1),f(a,(e=>{if(!(null==i?void 0:i.has(e.name))&&(C(ha.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),i)){const t=Jt(e.name,i,dt);t&&C(ha.Did_you_mean_0,e.pos,e.end-e.pos,t)}})),f(l,(e=>{e.value>v&&(v?C(ha.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):C(ha.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))}))}(r,!0,i)}))}d=g.substring(u,s),_=14}return _},reScanTemplateToken:function(e){return s=u,_=I(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=u,_=I(!0)},scanJsxIdentifier:function(){if(ya(_)){for(;s=c)return _=1;for(let t=k(s);s=0&&Xa(k(s-1))&&!(s+1{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function x(e){return Ts(g,e)}function S(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=g.substring(r,s),p|=4,C(ha.Unterminated_string_literal);break}const i=k(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),p|=4,C(ha.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=O(3),r=s}return n}function I(e){const t=96===k(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),p|=4,C(ha.Unterminated_template_literal),n=t?15:18;break}const o=k(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return C(ha.Unexpected_end_of_text),"";const r=k(s);switch(s++,r){case 48:if(s>=c||!Ya(k(s)))return"\0";case 49:case 50:case 51:s=55296&&i<=56319&&s+6=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s1114111&&(e&&C(ha.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(ha.Unexpected_end_of_text),o=!0):125===k(s)?s++:(e&&C(ha.Unterminated_Unicode_escape_sequence),o=!0),o?(p|=2048,g.substring(t,s)):(p|=8,ws(i))}function R(){if(s+5=0&&xs(r,e)){t+=L(!0),n=s;continue}if(r=R(),!(r>=0&&xs(r,e)))break;p|=1024,t+=g.substring(n,s),t+=ws(r),n=s+=6}}return t+=g.substring(n,s),t}function B(){const e=d.length;if(e>=2&&e<=12){const e=d.charCodeAt(0);if(e>=97&&e<=122){const e=xa.get(d);if(void 0!==e)return _=e}}return _=80}function J(e){let t="",n=!1,r=!1;for(;;){const i=k(s);if(95!==i){if(n=!0,!Ya(i)||i-48>=e)break;t+=g[s],s++,r=!1}else p|=512,n?(n=!1,r=!0):C(r?ha.Multiple_consecutive_numeric_separators_are_not_permitted:ha.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===k(s-1)&&C(ha.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===k(s))return d+="n",384&p&&(d=ST(d)+"n"),s++,10;{const e=128&p?parseInt(d.slice(2),2):256&p?parseInt(d.slice(2),8):+d;return d=""+e,9}}function $(){for(l=s,p=0;;){if(u=s,s>=c)return _=1;const r=x(s);if(0===s&&35===r&&ls(g,s)){if(s=us(g,s),t)continue;return _=6}switch(r){case 10:case 13:if(p|=1,t){s++;continue}return 13===r&&s+1=0&&bs(i,e))return d=L(!0)+M(),_=B();const o=R();return o>=0&&bs(o,e)?(s+=6,p|=1024,d=String.fromCharCode(o)+M(),_=B()):(C(ha.Invalid_character),s++,_=0);case 35:if(0!==s&&"!"===g[s+1])return C(ha.can_only_be_used_at_the_start_of_a_file,s,2),s++,_=0;const a=x(s+1);if(92===a){s++;const t=j();if(t>=0&&bs(t,e))return d="#"+L(!0)+M(),_=81;const n=R();if(n>=0&&bs(n,e))return s+=6,p|=1024,d="#"+String.fromCharCode(n)+M(),_=81;s--}return bs(a,e)?(s++,U(a,e)):(d="#",C(ha.Invalid_character,s++,Cs(r))),_=81;case 65533:return C(ha.File_appears_to_be_binary,0,0),s=c,_=8;default:const l=U(r,e);if(l)return _=l;if(Xa(r)){s+=Cs(r);continue}if(Qa(r)){p|=1,s+=Cs(r);continue}const f=Cs(r);return C(ha.Invalid_character,s,f),s+=f,_=0}}}function q(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Pa.test(g.slice(l,s))}function U(e,t){let n=e;if(bs(n,t)){for(s+=Cs(n);s=c)return _=1;let t=k(s);if(60===t)return 47===k(s+1)?(s+=2,_=31):(s++,_=30);if(123===t)return s++,_=19;let n=0;for(;s0)break;Ka(t)||(n=s)}s++}return d=g.substring(l,s),-1===n?13:12}function G(){switch(l=s,k(s)){case 34:case 39:return d=A(!0),_=11;default:return $()}}function K(){if(l=u=s,p=0,s>=c)return _=1;const t=x(s);switch(s+=Cs(t),t){case 9:case 11:case 12:case 32:for(;s=0&&bs(t,e))return d=L(!0)+M(),_=B();const n=R();return n>=0&&bs(n,e)?(s+=6,p|=1024,d=String.fromCharCode(n)+M(),_=B()):(s++,_=0)}if(bs(t,e)){let n=t;for(;s=0),s=e,l=e,u=e,_=0,d=void 0,p=0}}function Ts(e,t){return e.codePointAt(t)}function Cs(e){return e>=65536?2:-1===e?0:1}var Ds=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(gn.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function ws(e){return Ds(e)}var Es=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Fs=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Ns=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ps={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function As(e){return wo(e)||To(e)}function Is(e){return oe(e,uS,fS)}Ps.Script_Extensions=Ps.Script;var Os=new Map([[99,"lib.esnext.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Ls(e){const t=DS(e);switch(t){case 99:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Os.get(t);default:return"lib.d.ts"}}function Rs(e){return e.start+e.length}function js(e){return 0===e.length}function Ms(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Js(e,t){return t.start>=e.start&&Rs(t)<=Rs(e)}function zs(e,t){return t.pos>=e.start&&t.end<=Rs(e)}function $s(e,t){return t.start>=e.pos&&Rs(t)<=e.end}function qs(e,t){return void 0!==Us(e,t)}function Us(e,t){const n=Xs(e,t);return n&&0===n.length?void 0:n}function Vs(e,t){return Hs(e.start,e.length,t.start,t.length)}function Ws(e,t,n){return Hs(e.start,e.length,t,n)}function Hs(e,t,n,r){return n<=e+t&&n+r>=e}function Gs(e,t){return t<=Rs(e)&&t>=e.start}function Ks(e,t){return Ws(t,e.pos,e.end-e.pos)}function Xs(e,t){const n=Math.max(e.start,t.start),r=Math.min(Rs(e),Rs(t));return n<=r?Zs(n,r):void 0}function Qs(e){e=e.filter((e=>e.length>0)).sort(((e,t)=>e.start!==t.start?e.start-t.start:e.length-t.length));const t=[];let n=0;for(;n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Sc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function kc(e){return Sc(e.escapedText)}function Tc(e){const t=ja(e.escapedText);return t?at(t,Ah):void 0}function Cc(e){return e.valueDeclaration&&tu(e.valueDeclaration)?kc(e.valueDeclaration.name):Sc(e.escapedName)}function Dc(e){const t=e.parent.parent;if(t){if(h_(t))return wc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return wc(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(Xw(t))return t}break;case 217:return wc(t.expression);case 256:if(h_(t.statement)||Qu(t.statement))return wc(t.statement)}}}function wc(e){const t=Ac(e);return t&&Xw(t)?t:void 0}function Ec(e,t){return!(!Nc(e)||!Xw(e.name)||kc(e.name)!==kc(t))||!(!LF(e)||!X(e.declarationList.declarations,(e=>Ec(e,t))))}function Fc(e){return e.name||Dc(e)}function Nc(e){return!!e.name}function Pc(e){switch(e.kind){case 80:return e;case 348:case 341:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(cg(t)){case 1:case 4:case 5:case 3:return gg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 346:return Fc(e);case 340:return Dc(e);case 277:{const{expression:t}=e;return Xw(t)?t:void 0}case 212:const t=e;if(pg(t))return t.argumentExpression}return e.name}function Ac(e){if(void 0!==e)return Pc(e)||(lF(e)||uF(e)||SF(e)?Ic(e):void 0)}function Ic(e){if(e.parent){if(HN(e.parent)||ZE(e.parent))return e.parent.name;if(hF(e.parent)&&e===e.parent.right){if(Xw(e.parent.left))return e.parent.left;if(Px(e.parent.left))return gg(e.parent.left)}else if(ZF(e.parent)&&Xw(e.parent.name))return e.parent.name}}function Oc(e){if(qv(e))return P(e.modifiers,mE)}function Lc(e){if(Lv(e,98303))return P(e.modifiers,au)}function Rc(e,t){if(e.name){if(Xw(e.name)){const n=e.name.escapedText;return _l(e.parent,t).filter((e=>FP(e)&&Xw(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);gn.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=_l(e.parent,t).filter(FP);if(nIP(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Jc(e){return Bc(e,!1)}function zc(e){return Bc(e,!0)}function $c(e){return!!pl(e,FP)}function qc(e){return pl(e,gP)}function Uc(e){return fl(e,jP)}function Vc(e){return pl(e,yP)}function Wc(e){return pl(e,bP)}function Hc(e){return pl(e,bP,!0)}function Gc(e){return pl(e,xP)}function Kc(e){return pl(e,xP,!0)}function Xc(e){return pl(e,SP)}function Qc(e){return pl(e,SP,!0)}function Yc(e){return pl(e,kP)}function Zc(e){return pl(e,kP,!0)}function el(e){return pl(e,TP,!0)}function tl(e){return pl(e,DP)}function nl(e){return pl(e,DP,!0)}function rl(e){return pl(e,EP)}function il(e){return pl(e,PP)}function ol(e){return pl(e,NP)}function al(e){return pl(e,IP)}function sl(e){return pl(e,MP)}function cl(e){const t=pl(e,AP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function ll(e){let t=pl(e,AP);return!t&&fE(e)&&(t=T(jc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function ul(e){const t=ol(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=cl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(AE(e)){const t=T(e.members,TE);return t&&t.type}if(FE(e)||uP(e))return e.type}}function _l(e,t){var n;if(!$g(e))return u;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=qg(e,t);gn.assert(n.length<2||n[0]!==n[1]),r=M(n,(e=>pP(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function dl(e){return _l(e,!1)}function pl(e,t,n){return T(_l(e,n),t)}function fl(e,t){return dl(e).filter(t)}function ml(e,t){return dl(e).filter((e=>e.kind===t))}function gl(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>321===e.kind?e.text:function(e){const t=324===e.kind?"link":325===e.kind?"linkcode":"linkplain",n=e.name?qp(e.name):"",r=e.name&&(""===e.text||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function hl(e){if(mP(e)){if(CP(e.parent)){const t=Yg(e.parent);if(t&&p(t.tags))return M(t.tags,(e=>IP(e)?e.typeParameters:void 0))}return u}if(Lg(e))return gn.assert(320===e.parent.kind),M(e.parent.tags,(e=>IP(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(LA(e)&&e.typeParameters)return e.typeParameters;if(jm(e)){const t=Tv(e);if(t.length)return t;const n=ll(e);if(n&&FE(n)&&n.typeParameters)return n.typeParameters}return u}function yl(e){return e.constraint?e.constraint:IP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function vl(e){return 80===e.kind||81===e.kind}function bl(e){return 178===e.kind||177===e.kind}function xl(e){return nF(e)&&!!(64&e.flags)}function Sl(e){return rF(e)&&!!(64&e.flags)}function kl(e){return iF(e)&&!!(64&e.flags)}function Tl(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function Cl(e){return Tl(e)&&!wF(e)&&!!e.questionDotToken}function Dl(e){return Cl(e.parent)&&e.parent.expression===e}function wl(e){return!Tl(e.parent)||Cl(e.parent)||e!==e.parent.expression}function El(e){return 226===e.kind&&61===e.operatorToken.kind}function Fl(e){return EE(e)&&Xw(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Nl(e){return hA(e,8)}function Pl(e){return wF(e)&&!!(64&e.flags)}function Al(e){return 252===e.kind||251===e.kind}function Il(e){return 280===e.kind||279===e.kind}function Ol(e){return 348===e.kind||341===e.kind}function Ll(e){return e>=166}function Rl(e){return e>=0&&e<=165}function jl(e){return Rl(e.kind)}function Ml(e){return Ie(e,"pos")&&Ie(e,"end")}function Bl(e){return 9<=e&&e<=15}function Jl(e){return Bl(e.kind)}function zl(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function $l(e){return 15<=e&&e<=18}function ql(e){return $l(e.kind)}function Ul(e){const t=e.kind;return 17===t||18===t}function Vl(e){return xN(e)||CN(e)}function Wl(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Hl(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Gl(e){return Wl(e)||Hl(e)}function Kl(e){return void 0!==yc(e,Gl)}function Xl(e){return 11===e.kind||$l(e.kind)}function Ql(e){return Iw(e)||Xw(e)}function Yl(e){var t;return Xw(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Zl(e){var t;return Qw(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function eu(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function tu(e){return(hE(e)||Su(e))&&Qw(e.name)}function nu(e){return nF(e)&&Qw(e.name)}function ru(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function iu(e){return!!(31&tb(e))}function ou(e){return iu(e)||126===e||164===e||129===e}function au(e){return ru(e.kind)}function su(e){const t=e.kind;return 166===t||80===t}function cu(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function lu(e){const t=e.kind;return 80===t||206===t||207===t}function uu(e){return!!e&&mu(e.kind)}function _u(e){return!!e&&(mu(e.kind)||bE(e))}function du(e){return e&&fu(e.kind)}function pu(e){return 112===e.kind||97===e.kind}function fu(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function mu(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return fu(e)}}function gu(e){return QN(e)||sN(e)||OF(e)&&uu(e.parent)}function hu(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function yu(e){return e&&(263===e.kind||231===e.kind)}function vu(e){return e&&(177===e.kind||178===e.kind)}function bu(e){return hE(e)&&zv(e)}function xu(e){return jm(e)&&gC(e)?!(dg(e)&&vb(e.expression)||fg(e,!0)):e.parent&&yu(e.parent)&&hE(e)&&!zv(e)}function Su(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function ku(e){return au(e)||mE(e)}function Tu(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t||354===t}function Cu(e){return Tu(e)||hu(e)}function Du(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function wu(e){return Nx(e.kind)}function Eu(e){switch(e.kind){case 184:case 185:return!0}return!1}function Fu(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function Nu(e){const t=e.kind;return 209===t||210===t}function Pu(e){const t=e.kind;return 208===t||232===t}function Au(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Iu(e){return ZF(e)||fE(e)||Ru(e)||Mu(e)}function Ou(e){return Lu(e)||ju(e)}function Lu(e){switch(e.kind){case 206:case 210:return!0}return!1}function Ru(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function ju(e){switch(e.kind){case 207:case 209:return!0}return!1}function Mu(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return _b(e,!0)}function Bu(e){const t=e.kind;return 211===t||166===t||205===t}function Ju(e){const t=e.kind;return 211===t||166===t}function zu(e){return $u(e)||VT(e)}function $u(e){switch(e.kind){case 213:case 214:case 215:case 170:case 286:case 285:case 289:return!0;case 226:return 104===e.operatorToken.kind;default:return!1}}function qu(e){return 213===e.kind||214===e.kind}function Uu(e){const t=e.kind;return 228===t||15===t}function Vu(e){return Wu(Nl(e).kind)}function Wu(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function Hu(e){return Gu(Nl(e).kind)}function Gu(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return Wu(e)}}function Ku(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function Xu(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Jl(e)}}function Qu(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return Gu(e)}}(Nl(e).kind)}function Yu(e){const t=e.kind;return 216===t||234===t}function Zu(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Zu(e.statement,t)}return!1}function e_(e){return SN(e)||kN(e)}function t_(e){return X(e,e_)}function n_(e){return!(Op(e)||SN(e)||Lv(e,32)||fp(e))}function r_(e){return Op(e)||SN(e)||Lv(e,32)}function i_(e){return 249===e.kind||250===e.kind}function o_(e){return OF(e)||Qu(e)}function a_(e){return OF(e)}function s_(e){return eN(e)||Qu(e)}function c_(e){const t=e.kind;return 268===t||267===t||80===t}function l_(e){const t=e.kind;return 268===t||267===t}function u_(e){const t=e.kind;return 80===t||267===t}function __(e){const t=e.kind;return 275===t||274===t}function d_(e){return 267===e.kind||266===e.kind}function p_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function f_(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function m_(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function g_(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||353===e}function h_(e){return 168===e.kind?e.parent&&345!==e.parent.kind||jm(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||346===t||338===t||348===t||202===t;var t}function y_(e){return m_(e.kind)}function v_(e){return g_(e.kind)}function b_(e){const t=e.kind;return g_(t)||m_(t)||function(e){return 241===e.kind&&((void 0===e.parent||258!==e.parent.kind&&299!==e.parent.kind)&&!Vf(e))}(e)}function x_(e){const t=e.kind;return g_(t)||m_(t)||241===t}function S_(e){const t=e.kind;return 283===t||166===t||80===t}function k_(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function T_(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function C_(e){const t=e.kind;return 291===t||293===t}function D_(e){const t=e.kind;return 11===t||294===t}function w_(e){const t=e.kind;return 286===t||285===t}function E_(e){const t=e.kind;return 286===t||285===t||289===t}function F_(e){const t=e.kind;return 296===t||297===t}function N_(e){return e.kind>=309&&e.kind<=351}function P_(e){return 320===e.kind||319===e.kind||321===e.kind||U_(e)||A_(e)||fP(e)||mP(e)}function A_(e){return e.kind>=327&&e.kind<=351}function I_(e){return 178===e.kind}function O_(e){return 177===e.kind}function L_(e){if(!$g(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function R_(e){return!!e.type}function j_(e){return!!e.initializer}function M_(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function B_(e){return 291===e.kind||293===e.kind||Du(e)}function J_(e){return 183===e.kind||233===e.kind}var z_=1073741823;function $_(e){let t=z_;for(const n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?Y(ys(o,is(o,i.end+1,!1,!0)),hs(o,e.pos)):ys(o,is(o,e.pos,!1,!0));return X(a)&&H_(Te(a),t)}return!!f(n&&Tf(n,t),(e=>H_(e,t)))}var K_=[],X_="tslib",Q_=160,Y_=1e6;function Z_(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function ed(e,t){return P(e.declarations||u,(e=>e.kind===t))}function td(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function nd(e){return!!(33554432&e.flags)}function rd(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var id=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Ka(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:ct,decreaseIndent:ct,clear:()=>e=""}}();function od(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return sd(e,t,PO)}(e,t)}function ad(e,t){return sd(e,t,IO)}function sd(e,t,n){return e!==t&&n.some((n=>!xT(ZS(e,n),ZS(t,n))))}function cd(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(QN(e))return;e=e.parent}}function ld(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function ud(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function _d(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function dd(e){const t=id.getText();try{return e(id),id.getText()}finally{id.clear(),id.writeKeyword(t)}}function pd(e){return e.end-e.pos}function fd(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function md(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDependencies)&&e.alternateResult===t.alternateResult;var n,r}function gd(e){return e.resolvedModule}function hd(e){return e.resolvedTypeReferenceDirective}function yd(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===ES(t.getCompilerOptions())?[ha.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[ha.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(Wj+"@types/")?`@types/${FM(i)}`:i]]),c=s?sS(void 0,s[0],...s[1]):t.typesPackageExists(i)?sS(void 0,ha.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,FM(i)):t.packageBundlesTypes(i)?sS(void 0,ha.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):sS(void 0,ha.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,FM(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function vd(e){const t=cT(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,Uo(n.packageDirectory,"package.json")):sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Uo(n.packageDirectory,"package.json")):r?sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):sS(void 0,ha.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function bd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function xd(e){return`${bd(e)}@${e.version}${e.peerDependencies??""}`}function Sd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function kd(e,t,n,r){gn.assert(e.length===t.length);for(let i=0;i=0),Ua(t)[e]}function Nd(e){const t=Cd(e),n=Ga(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Pd(e,t){gn.assert(e>=0);const n=Ua(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(gn.assert(Qa(i.charCodeAt(t)));e<=t&&Qa(i.charCodeAt(t));)t--;return t}}function Ad(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Id(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Od(e){return!Id(e)}function Ld(e,t){return pE(e)?t===e.expression:bE(e)?t===e.modifiers:gE(e)?t===e.initializer:hE(e)?t===e.questionToken&&bu(e):HN(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Rd(e.modifiers,t,ku):GN(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Rd(e.modifiers,t,ku):vE(e)?t===e.exclamationToken:xE(e)?t===e.typeParameters||t===e.type||Rd(e.typeParameters,t,pE):SE(e)?t===e.typeParameters||Rd(e.typeParameters,t,pE):kE(e)?t===e.typeParameters||t===e.type||Rd(e.typeParameters,t,pE):!!lN(e)&&(t===e.modifiers||Rd(e.modifiers,t,ku))}function Rd(e,t,n){return!(!e||nt(t)||!n(t))&&E(e,t)}function jd(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${Ga(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Be(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function Hd(e,t,n){if(Id(e))return e.pos;if(N_(e)||12===e.kind)return is((t??Cd(e)).text,e.pos,!1,!0);if(n&&L_(e))return Hd(e.jsDoc[0],t);if(352===e.kind){t??(t=Cd(e));const r=ve(UP(e,t));if(r)return Hd(r,t,n)}return is((t??Cd(e)).text,e.pos,!1,!1,Jm(e))}function Gd(e,t){const n=!Id(e)&&mI(e)?C(e.modifiers,mE):void 0;return n?is((t||Cd(e)).text,n.end):Hd(e,t)}function Kd(e,t){const n=!Id(e)&&mI(e)&&e.modifiers?Te(e.modifiers):void 0;return n?is((t||Cd(e)).text,n.end):Hd(e,t)}function Xd(e,t,n=!1){return tp(e.text,t,n)}function Qd(e){return!!(kN(e)&&e.exportClause&&vN(e.exportClause)&&ep(e.exportClause.name))}function Yd(e){return 11===e.kind?e.text:Sc(e.escapedText)}function Zd(e){return 11===e.kind?xc(e.text):e.escapedText}function ep(e){return"default"===(11===e.kind?e.text:e.escapedText)}function tp(e,t,n=!1){if(Id(t))return"";let r=e.substring(n?t.pos:is(e,t.pos),t.end);return function(e){return!!yc(e,ZN)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function np(e,t=!1){return Xd(Cd(e),e,t)}function rp(e){return e.pos}function ip(e,t){return Fe(e,t,rp,Tt)}function op(e){const t=e.emitNode;return t&&t.flags||0}function ap(e){const t=e.emitNode;return t&&t.internalFlags||0}var sp=ht((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:u})),AsyncIterator:new Map(Object.entries({es2015:u})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:u})),AsyncIterableIterator:new Map(Object.entries({es2018:u})),AsyncGenerator:new Map(Object.entries({es2018:u})),AsyncGeneratorFunction:new Map(Object.entries({es2018:u})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:u,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:u})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:u,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:u,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),cp=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(cp||{});function lp(e,t,n){if(t&&function(e,t){if(sy(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(Pw(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!Aw(e)}(e,n))return Xd(t,e);switch(e.kind){case 11:{const t=2&n?Ly:1&n||16777216&op(e)?Ey:Ny;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&op(e)?Ey:Ny,r=e.rawText??vy(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return gn.fail(`Literal kind '${e.kind}' not accounted for.`)}function up(e){return it(e)?`"${Ey(e)}"`:""+e}function _p(e){return jo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function dp(e){return!!(7&pc(e))||pp(e)}function pp(e){const t=oy(e);return 260===t.kind&&299===t.parent.kind}function fp(e){return aN(e)&&(11===e.name.kind||vp(e))}function mp(e){return aN(e)&&11===e.name.kind}function gp(e){return aN(e)&&Iw(e.name)}function hp(e){return function(e){return!!e&&267===e.kind&&!e.body}(e.valueDeclaration)}function yp(e){return 307===e.kind||267===e.kind||_u(e)}function vp(e){return!!(2048&e.flags)}function bp(e){return fp(e)&&xp(e)}function xp(e){switch(e.parent.kind){case 307:return XI(e.parent);case 268:return fp(e.parent.parent)&&QN(e.parent.parent.parent)&&!XI(e.parent.parent.parent)}return!1}function Sp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(bp(e)||aN(e)&&vp(e))))}function kp(e,t){return XI(e)||(1===(n=wS(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Tp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!HS(t,"alwaysStrict")&&!_A(e.statements)&&!XI(e)&&!NS(t))}function Cp(e){return!!(33554432&e.flags)||Lv(e,128)}function Dp(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!_u(t)}return!1}function wp(e){switch(gn.type(e),e.kind){case 338:case 346:case 323:return!0;default:return Ep(e)}}function Ep(e){switch(gn.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Fp(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Np(e){return Fp(e)||Um(e)}function Pp(e){return Fp(e)||Hm(e)}function Ap(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Ip(e){return Op(e)||aN(e)||GE(e)||gf(e)}function Op(e){return Fp(e)||kN(e)}function Lp(e){return yc(e.parent,(e=>!!(1&QM(e))))}function Rp(e){return yc(e.parent,(e=>Dp(e,e.parent)))}function jp(e,t){let n=Rp(e);for(;n;)t(n),n=Rp(n)}function Mp(e){return e&&0!==pd(e)?np(e):"(Missing)"}function Bp(e){return e.declaration?Mp(e.declaration.parameters[0].name):void 0}function Jp(e){return 167===e.kind&&!qh(e.expression)}function zp(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return xc(e.text);case 167:return qh(e.expression)?xc(e.expression.text):void 0;case 295:return _C(e);default:return gn.assertNever(e)}}function $p(e){return gn.checkDefined(zp(e))}function qp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===pd(e)?kc(e):np(e);case 166:return qp(e.left)+"."+qp(e.right);case 211:return Xw(e.name)||Qw(e.name)?qp(e.expression)+"."+qp(e.name):gn.assertNever(e.name);case 311:return qp(e.left)+"#"+qp(e.right);case 295:return qp(e.namespace)+":"+qp(e.name);default:return gn.assertNever(e)}}function Up(e,t,...n){return Wp(Cd(e),e,t,...n)}function Vp(e,t,n,...r){const i=is(e.text,t.pos);return rS(e,i,t.end-i,n,...r)}function Wp(e,t,n,...r){const i=rf(e,t);return rS(e,i.start,i.length,n,...r)}function Hp(e,t,n,r){const i=rf(e,t);return Xp(e,i.start,i.length,n,r)}function Gp(e,t,n,r){const i=is(e.text,t.pos);return Xp(e,i,t.end-i,n,r)}function Kp(e,t,n){gn.assertGreaterThanOrEqual(t,0),gn.assertGreaterThanOrEqual(n,0),gn.assertLessThanOrEqual(t,e.length),gn.assertLessThanOrEqual(t+n,e.length)}function Xp(e,t,n,r,i){return Kp(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function Qp(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Yp(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Zp(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function ef(e,...t){return{code:e.code,messageText:iS(e,...t)}}function tf(e,t){const n=ks(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),Zs(n.getTokenStart(),n.getTokenEnd())}function nf(e,t){const n=ks(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function rf(e,t){let n=t;switch(t.kind){case 307:{const t=is(e.text,0,!1);return t===e.text.length?Ys(0,0):tf(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=is(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=Ga(e,t.body.pos),{line:i}=Ga(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 253:case 229:return tf(e,is(e.text,t.pos));case 238:return tf(e,is(e.text,t.expression.end));case 350:return tf(e,is(e.text,t.tagName.pos));case 176:{const n=t,r=is(e.text,n.pos),i=ks(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return Zs(r,i.getTokenEnd())}}if(void 0===n)return tf(e,t.pos);gn.assert(!pP(n));const r=Id(n),i=r||Ow(t)?n.pos:is(e.text,n.pos);return r?(gn.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),gn.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(gn.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),gn.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Zs(i,n.end)}function of(e){return 307===e.kind&&!af(e)}function af(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function sf(e){return 6===e.scriptKind}function cf(e){return!!(4096&_c(e))}function lf(e){return!(!(8&_c(e))||ac(e,e.parent))}function uf(e){return 6==(7&pc(e))}function _f(e){return 4==(7&pc(e))}function df(e){return 2==(7&pc(e))}function pf(e){const t=7&pc(e);return 2===t||4===t||6===t}function ff(e){return 1==(7&pc(e))}function mf(e){return 213===e.kind&&108===e.expression.kind}function gf(e){return 213===e.kind&&102===e.expression.kind}function hf(e){return EF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function yf(e){return GE(e)&&HE(e.argument)&&Iw(e.argument.literal)}function vf(e){return 244===e.kind&&11===e.expression.kind}function bf(e){return!!(2097152&op(e))}function xf(e){return bf(e)&&tN(e)}function Sf(e){return Xw(e.name)&&!e.initializer}function kf(e){return bf(e)&&LF(e)&&k(e.declarationList.declarations,Sf)}function Tf(e,t){return 12!==e.kind?hs(t.text,e.pos):void 0}function Cf(e,t){return P(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?Y(ys(t,e.pos),hs(t,e.pos)):hs(t,e.pos),(n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3)))}var Df=/^\/\/\/\s*/,wf=/^\/\/\/\s*/,Ef=/^\/\/\/\s*/,Ff=/^\/\/\/\s*/,Nf=/^\/\/\/\s*/,Pf=/^\/\/\/\s*/;function Af(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return If(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),gn.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return If(t);case 168:case 345:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return E(t.typeArguments,e)}}}return!1}function If(e){return jP(e.parent)||gP(e.parent)||VN(e.parent)&&!pb(e)}function Of(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return qI(n,e)}}(e)}function Lf(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(uu(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else Af(n)||qI(n,e)}}(e)}function Rf(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?Ce(e.typeArguments):void 0}function jf(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Mf(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Bf(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Jf(e){return!!jm(e)&&(tF(e.parent)&&hF(e.parent.parent)&&2===cg(e.parent.parent)||zf(e.parent))}function zf(e){return!!jm(e)&&hF(e)&&1===cg(e)}function $f(e){return(ZF(e)?df(e)&&Xw(e.name)&&Bf(e):hE(e)?$v(e)&&jv(e):gE(e)&&$v(e))||zf(e)}function qf(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Uf(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function Vf(e){return e&&241===e.kind&&uu(e.parent)}function Wf(e){return e&&174===e.kind&&210===e.parent.kind}function Hf(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function Gf(e){return e&&1===e.kind}function Kf(e){return e&&0===e.kind}function Xf(e,t,n,r){return f(null==e?void 0:e.properties,(e=>{if(!HN(e))return;const i=zp(e.name);return t===i||r&&r===i?n(e):void 0}))}function Qf(e,t,n){return Xf(e,t,(e=>eF(e.initializer)?T(e.initializer.elements,(e=>Iw(e)&&e.text===n)):void 0))}function Yf(e){if(e&&e.statements.length)return at(e.statements[0].expression,tF)}function Zf(e,t,n){return em(e,t,(e=>eF(e.initializer)?T(e.initializer.elements,(e=>Iw(e)&&e.text===n)):void 0))}function em(e,t,n){return Xf(Yf(e),t,n)}function tm(e){return yc(e.parent,uu)}function nm(e){return yc(e.parent,du)}function rm(e){return yc(e.parent,yu)}function im(e){return yc(e.parent,(e=>yu(e)||uu(e)?"quit":bE(e)))}function om(e){return yc(e.parent,_u)}function am(e){const t=yc(e.parent,(e=>yu(e)?"quit":mE(e)));return t&&yu(t.parent)?rm(t.parent):rm(t??e)}function sm(e,t,n){for(gn.assert(307!==e.kind);;){if(!(e=e.parent))return gn.fail();switch(e.kind){case 167:if(n&&yu(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&hu(e.parent.parent)?e=e.parent.parent:hu(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function cm(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function lm(e){return Xw(e)&&(nN(e.parent)||tN(e.parent))&&e.parent.name===e&&(e=e.parent),QN(sm(e,!0,!1))}function um(e){const t=sm(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function _m(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&hu(e.parent.parent)?e=e.parent.parent:hu(e.parent)&&(e=e.parent)}}}function dm(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function pm(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function fm(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function mm(e){var t;return!!e&&ZF(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function gm(e){return!!e&&(GN(e)||HN(e))&&hF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function hm(e){switch(e.kind){case 183:return e.typeName;case 233:return fb(e.expression)?e.expression:void 0;case 80:case 166:return e}}function ym(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;case 289:return e;default:return e.expression}}function vm(e,t,n,r){if(e&&Nc(t)&&Qw(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?nN(n):yu(n)&&!Bv(t)&&!Jv(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?nN(n):yu(n));case 169:return!!e&&void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&fv(n)!==t&&void 0!==r&&263===r.kind}return!1}function bm(e,t,n,r){return qv(t)&&vm(e,t,n,r)}function xm(e,t,n,r){return bm(e,t,n,r)||Sm(e,t,n)}function Sm(e,t,n){switch(t.kind){case 263:return X(t.members,(r=>xm(e,r,t,n)));case 231:return!e&&X(t.members,(r=>xm(e,r,t,n)));case 174:case 178:case 176:return X(t.parameters,(r=>bm(e,r,t,n)));default:return!1}}function km(e,t){if(bm(e,t))return!0;const n=_v(t);return!!n&&Sm(e,n,t)}function Tm(e,t,n){let r;if(vu(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=bv(n.members,t),a=qv(e)?e:i&&qv(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else vE(t)&&(r=t.parameters);if(bm(e,t,n))return!0;if(r)for(const i of r)if(!mv(i)&&bm(e,i,t,n))return!0;return!1}function Cm(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Cm(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function Dm(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function wm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!VN(e.parent)&&!gP(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||U_(e.parent)||eP(e.parent)||tP(e.parent)||Dm(e);case 311:for(;tP(e.parent);)e=e.parent;return 186===e.parent.kind||U_(e.parent)||eP(e.parent)||tP(e.parent)||Dm(e);case 81:return hF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||U_(e.parent)||eP(e.parent)||tP(e.parent)||Dm(e))return!0;case 9:case 10:case 11:case 15:case 110:return Em(e);default:return!1}}function Em(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Af(t);case 304:return t.objectAssignmentInitializer===e;default:return wm(t)}}function Fm(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function Nm(e){return vN(e)&&!!e.parent.moduleSpecifier}function Pm(e){return 271===e.kind&&283===e.moduleReference.kind}function Am(e){return gn.assert(Pm(e)),e.moduleReference.expression}function Im(e){return Um(e)&&Ox(e.initializer).arguments[0]}function Om(e){return 271===e.kind&&283!==e.moduleReference.kind}function Lm(e){return 307===(null==e?void 0:e.kind)}function Rm(e){return jm(e)}function jm(e){return!!e&&!!(524288&e.flags)}function Mm(e){return!!e&&!!(134217728&e.flags)}function Bm(e){return!sf(e)}function Jm(e){return!!e&&!!(16777216&e.flags)}function zm(e){return EE(e)&&Xw(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function $m(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||q_(i)}function qm(e){return Wm(e,!1)}function Um(e){return Wm(e,!0)}function Vm(e){return ZE(e)&&Um(e.parent.parent)}function Wm(e,t){return ZF(e)&&!!e.initializer&&$m(t?Ox(e.initializer):e.initializer,!0)}function Hm(e){return LF(e)&&e.declarationList.declarations.length>0&&k(e.declarationList.declarations,(e=>qm(e)))}function Gm(e){return 39===e||34===e}function Km(e,t){return 34===Xd(t,e).charCodeAt(0)}function Xm(e){return hF(e)||Px(e)||Xw(e)||iF(e)}function Qm(e){return jm(e)&&e.initializer&&hF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&fb(e.name)&&rg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Ym(e){const t=Qm(e);return t&&eg(t,vb(e.name))}function Zm(e){if(e&&e.parent&&hF(e.parent)&&64===e.parent.operatorToken.kind){const t=vb(e.parent.left);return eg(e.parent.right,t)||function(e,t,n){const r=hF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&eg(t.right,n);if(r&&rg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&iF(e)&&lg(e)){const t=function(e,t){return f(e.properties,(e=>HN(e)&&Xw(e.name)&&"value"===e.name.escapedText&&e.initializer&&eg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function eg(e,t){if(iF(e)){const t=ph(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||tF(e)&&(0===e.properties.length||t)?e:void 0}function tg(e){const t=ZF(e.parent)?e.parent.name:hF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&eg(e.right,vb(t))&&fb(t)&&rg(t,e.left)}function ng(e){if(hF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!hF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&Xw(t.left))return t.left}else if(ZF(e.parent))return e.parent.name}function rg(e,t){return Gh(e)&&Gh(t)?Kh(e)===Kh(t):vl(e)&&ug(t)&&(110===t.expression.kind||Xw(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?rg(e,mg(t)):!(!ug(e)||!ug(t))&&hg(e)===hg(t)&&rg(e.expression,t.expression)}function ig(e){for(;_b(e,!0);)e=e.right;return e}function og(e){return Xw(e)&&"exports"===e.escapedText}function ag(e){return Xw(e)&&"module"===e.escapedText}function sg(e){return(nF(e)||_g(e))&&ag(e.expression)&&"exports"===hg(e)}function cg(e){const t=function(e){if(iF(e)){if(!lg(e))return 0;const t=e.arguments[0];return og(t)||sg(t)?8:dg(t)&&"prototype"===hg(t)?9:7}return 64!==e.operatorToken.kind||!Px(e.left)||function(e){return pF(e)&&Pw(e.expression)&&"0"===e.expression.text}(ig(e))?0:fg(e.left.expression,!0)&&"prototype"===hg(e.left)&&tF(vg(e))?6:yg(e.left)}(e);return 5===t||jm(e)?t:0}function lg(e){return 3===p(e.arguments)&&nF(e.expression)&&Xw(e.expression.expression)&&"Object"===kc(e.expression.expression)&&"defineProperty"===kc(e.expression.name)&&qh(e.arguments[1])&&fg(e.arguments[0],!0)}function ug(e){return nF(e)||_g(e)}function _g(e){return rF(e)&&qh(e.argumentExpression)}function dg(e,t){return nF(e)&&(!t&&110===e.expression.kind||Xw(e.name)&&fg(e.expression,!0))||pg(e,t)}function pg(e,t){return _g(e)&&(!t&&110===e.expression.kind||fb(e.expression)||dg(e.expression,!0))}function fg(e,t){return fb(e)||dg(e,t)}function mg(e){return nF(e)?e.name:e.argumentExpression}function gg(e){if(nF(e))return e.name;const t=ph(e.argumentExpression);return Pw(t)||q_(t)?t:e}function hg(e){const t=gg(e);if(t){if(Xw(t))return t.escapedText;if(q_(t)||Pw(t))return xc(t.text)}}function yg(e){if(110===e.expression.kind)return 4;if(sg(e))return 2;if(fg(e.expression,!0)){if(vb(e.expression))return 3;let t=e;for(;!Xw(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===hg(t))&&dg(e))return 1;if(fg(e,!0)||rF(e)&&Wh(e))return 5}return 0}function vg(e){for(;hF(e.right);)e=e.right;return e.right}function bg(e){return hF(e)&&3===cg(e)}function xg(e){return jm(e)&&e.parent&&244===e.parent.kind&&(!rF(e)||_g(e))&&!!cl(e.parent)}function Sg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||jm(t)||33554432&n.flags)&&Xm(n)&&!Xm(t)||n.kind!==t.kind&&function(e){return aN(e)||Xw(e)}(n))&&(e.valueDeclaration=t)}function kg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||ZF(t)&&t.initializer&&uu(t.initializer)}function Tg(e){switch(null==e?void 0:e.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function Cg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=yc(e.initializer,(e=>$m(e,!0))))?void 0:t.arguments[0];case 272:case 278:case 351:return at(e.moduleSpecifier,q_);case 271:return at(null==(n=at(e.moduleReference,NN))?void 0:n.expression,q_);case 273:case 280:return at(e.parent.moduleSpecifier,q_);case 274:case 281:return at(e.parent.parent.moduleSpecifier,q_);case 276:return at(e.parent.parent.parent.moduleSpecifier,q_);case 205:return yf(e)?e.argument.literal:void 0;default:gn.assertNever(e)}}function Dg(e){return wg(e)||gn.failBadSyntaxKind(e.parent)}function wg(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return gf(e.parent)||$m(e.parent,!1)?e.parent:void 0;case 201:if(!Iw(e))break;return at(e.parent.parent,GE);default:return}}function Eg(e,t){return!!t.rewriteRelativeImportExtensions&&wo(e)&&!iO(e)&&$k(e)}function Fg(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return yf(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return gn.assertNever(e)}}function Ng(e){switch(e.kind){case 272:return e.importClause&&at(e.importClause.namedBindings,yN);case 271:return e;case 278:return e.exportClause&&at(e.exportClause,vN);default:return gn.assertNever(e)}}function Pg(e){return!(272!==e.kind&&351!==e.kind||!e.importClause||!e.importClause.name)}function Ag(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=yN(e.namedBindings)?t(e.namedBindings):f(e.namedBindings.elements,t);if(n)return n}}function Ig(e){switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function Og(e){const t=uP(e)?ve(e.parameters):void 0,n=at(t&&t.name,Xw);return!!n&&"new"===n.escapedText}function Lg(e){return 346===e.kind||338===e.kind||340===e.kind}function Rg(e){return Lg(e)||iN(e)}function jg(e){return jF(e)&&hF(e.expression)&&0!==cg(e.expression)&&hF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Mg(e){switch(e.kind){case 243:const t=Bg(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Bg(e){return LF(e)?ve(e.declarationList.declarations):void 0}function Jg(e){return aN(e)&&e.body&&267===e.body.kind?e.body:void 0}function zg(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function $g(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function qg(e,t){let n;Mf(e)&&j_(e)&&L_(e.initializer)&&(n=de(n,Ug(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(L_(r)&&(n=de(n,Ug(e,r.jsDoc))),169===r.kind){n=de(n,(t?Mc:jc)(r));break}if(168===r.kind){n=de(n,(t?zc:Jc)(r));break}r=Vg(r)}return n||u}function Ug(e,t){const n=Te(t);return M(t,(t=>{if(t===n){const n=P(t.tags,(t=>function(e,t){return!((AP(t)||MP(t))&&t.parent&&pP(t.parent)&&cF(t.parent.parent)&&t.parent.parent!==e)}(e,t)));return t.tags===n?[t]:n}return P(t.tags,CP)}))}function Vg(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Jg(t)||_b(e)?t:t.parent&&(Bg(t.parent)===e||_b(t))?t.parent:t.parent&&t.parent.parent&&(Bg(t.parent.parent)||Mg(t.parent.parent)===e||jg(t.parent.parent))?t.parent.parent:void 0}function Wg(e){if(e.symbol)return e.symbol;if(!Xw(e.name))return;const t=e.name.escapedText,n=Kg(e);if(!n)return;const r=T(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Hg(e){if(pP(e.parent)&&e.parent.tags){const t=T(e.parent.tags,Lg);if(t)return t}return Kg(e)}function Gg(e){return fl(e,CP)}function Kg(e){const t=Xg(e);if(t)return gE(t)&&t.type&&uu(t.type)?t.type:uu(t)?t:void 0}function Xg(e){const t=Qg(e);if(t)return jg(t)||function(e){return jF(e)&&hF(e.expression)&&64===e.expression.operatorToken.kind?ig(e.expression):void 0}(t)||Mg(t)||Bg(t)||Jg(t)||t}function Qg(e){const t=Yg(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===ke(n.jsDoc)?n:void 0}function Yg(e){return yc(e.parent,pP)}function Zg(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&T(n,(e=>e.name.escapedText===t))}function eh(e){return!!e.typeArguments}var th=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(th||{});function nh(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return cb(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 249:case 250:const o=t;return o.initializer===e?o:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function rh(e){const t=nh(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||ib(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function ih(e){return!!nh(e)}function oh(e){const t=nh(e);return!!t&&_b(t,!0)&&function(e){const t=ph(e.right);return 226===t.kind&&qA(t.operatorToken.kind)}(t)}function ah(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function sh(e){return lF(e)||uF(e)||Su(e)||tN(e)||xE(e)}function ch(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function lh(e){return ch(e,196)}function uh(e){return ch(e,217)}function _h(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function dh(e){for(;$E(e);)e=e.type;return e}function ph(e,t){return hA(e,t?-2147483647:1)}function fh(e){return(211===e.kind||212===e.kind)&&(e=uh(e.parent))&&220===e.kind}function mh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function gh(e){return!QN(e)&&!Fu(e)&&h_(e.parent)&&e.parent.name===e}function hh(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(dE(t))return t.parent;case 80:if(h_(t))return t.name===e?t:void 0;if(_E(t)){const e=t.parent;return FP(e)&&e.name===t?e:void 0}{const n=t.parent;return hF(n)&&0!==cg(n)&&(n.left.symbol||n.symbol)&&Ac(n)===e?n:void 0}case 81:return h_(t)&&t.name===e?t:void 0;default:return}}function yh(e){return qh(e)&&167===e.parent.kind&&h_(e.parent.parent)}function vh(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function bh(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return bh(e)}}function xh(e){return fb(e)||SF(e)}function Sh(e){return xh(kh(e))}function kh(e){return SN(e)?e.expression:e.right}function Th(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function Ch(e){const t=Dh(e);if(t&&jm(e)){const t=qc(e);if(t)return t.class}return t}function Dh(e){const t=Nh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function wh(e){if(jm(e))return Uc(e).map((e=>e.class));{const t=Nh(e.heritageClauses,119);return null==t?void 0:t.types}}function Eh(e){return rN(e)?Fh(e)||u:yu(e)&&Y(ln(Ch(e)),wh(e))||u}function Fh(e){const t=Nh(e.heritageClauses,96);return t?t.types:void 0}function Nh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Ph(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ah(e){return 83<=e&&e<=165}function Ih(e){return 19<=e&&e<=79}function Oh(e){return Ah(e)||Ih(e)}function Lh(e){return 128<=e&&e<=165}function Rh(e){return Ah(e)&&!Lh(e)}function jh(e){const t=ja(e);return void 0!==t&&Rh(t)}function Mh(e){const t=Tc(e);return!!t&&!Lh(t)}function Bh(e){return 2<=e&&e<=7}var Jh=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Jh||{});function zh(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Lv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function $h(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&Lv(e,1024)}return!1}function qh(e){return q_(e)||Pw(e)}function Uh(e){return mF(e)&&(40===e.operator||41===e.operator)&&Pw(e.operand)}function Vh(e){const t=Ac(e);return!!t&&Wh(t)}function Wh(e){if(167!==e.kind&&212!==e.kind)return!1;const t=rF(e)?ph(e.argumentExpression):e.expression;return!qh(t)&&!Uh(t)}function Hh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return xc(e.text);case 167:const t=e.expression;return qh(t)?xc(t.text):Uh(t)?41===t.operator?Ra(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return _C(e);default:return gn.assertNever(e)}}function Gh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Kh(e){return vl(e)?kc(e):$N(e)?dC(e):e.text}function Xh(e){return vl(e)?e.escapedText:$N(e)?_C(e):xc(e.text)}function Qh(e,t){return`__#${YB(e)}@${t}`}function Yh(e){return en(e.escapedName,"__@")}function Zh(e){return en(e.escapedName,"__#")}function ey(e,t){switch((e=hA(e)).kind){case 231:if(jz(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function ty(e){switch(e.kind){case 303:return!function(e){return Xw(e)?"__proto__"===kc(e):Iw(e)&&"__proto__"===e.text}(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Xw(e.name)&&!!e.initializer;case 169:case 208:return Xw(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Xw(e.left)}break;case 277:return!0}return!1}function ny(e,t){if(!ty(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return ey(e.initializer,t);case 304:return ey(e.objectAssignmentInitializer,t);case 226:return ey(e.right,t);case 277:return ey(e.expression,t)}}function ry(e){return"push"===e.escapedText||"unshift"===e.escapedText}function iy(e){return 169===oy(e).kind}function oy(e){for(;208===e.kind;)e=e.parent.parent;return e}function ay(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||307===t}function sy(e){return rT(e.pos)||rT(e.end)}var cy=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(cy||{});function ly(e){const t=dy(e),n=214===e.kind&&void 0!==e.arguments;return uy(e.kind,t,n)}function uy(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function _y(e){const t=dy(e),n=214===e.kind&&void 0!==e.arguments;return fy(e.kind,t,n)}function dy(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}var py=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(py||{});function fy(e,t,n){switch(e){case 356:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return my(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function my(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function gy(e){return P(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function hy(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),ie(t,i.file.fileName,Nt))):(r&&(r=!1,e=e.slice()),o=e),ie(o,i,_S,fS)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Fe(r,t,dt,_S);return i>=0?r[i]:~i>0&&fS(t,r[~i-1])?r[~i-1]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=B(t,(e=>n.get(e)));return e.length?(i.unshift(...e),i):i}}}var yy=/\$\{/g;function vy(e){return e.replace(yy,"\\${")}function by(e){return!!(2048&(e.templateFlags||0))}function xy(e){return e&&!!(Rw(e)?by(e):by(e.head)||X(e.templateSpans,(e=>by(e.literal))))}var Sy=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,ky=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,Ty=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,Cy=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Dy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function wy(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Cy.get(e)||Dy(e.charCodeAt(0))}function Ey(e,t){const n=96===t?Ty:39===t?ky:Sy;return e.replace(n,wy)}var Fy=/[^\u0000-\u007F]/g;function Ny(e,t){return e=Ey(e,t),Fy.test(e)?e.replace(Fy,(e=>Dy(e.charCodeAt(0)))):e}var Py=/["\u0000-\u001f\u2028\u2029\u0085]/g,Ay=/['\u0000-\u001f\u2028\u2029\u0085]/g,Iy=new Map(Object.entries({'"':""","'":"'"}));function Oy(e){return 0===e.charCodeAt(0)?"�":Iy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ly(e,t){const n=39===t?Ay:Py;return e.replace(n,Oy)}function Ry(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function jy(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var My=[""," "];function By(e){const t=My[1];for(let n=My.length;n<=e;n++)My.push(My[n-1]+t);return My[e]}function Jy(){return My[1].length}function zy(e){var t,n,r,i,o,a=!1;function s(e){const n=za(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+Te(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=By(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function u(){t="",n=0,r=!0,i=0,o=0,a=!1}return u(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*Jy():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&Ka(t.charCodeAt(t.length-1)),clear:u,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function $y(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function qy(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Uy(e){return Xt(qy(e))}function Vy(e,t,n){return t.moduleName||Gy(e,t.fileName,n&&n.fileName)}function Wy(e,t){return e.getCanonicalFileName(Ho(t,e.getCurrentDirectory()))}function Hy(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=Fg(n);return!i||!q_(i)||wo(i.text)||Wy(e,r.path).includes(Wy(e,Yo(e.getCommonSourceDirectory())))?Vy(e,r):void 0}function Gy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=Xo(n?Ro(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=Xk(pa(i,Ho(t,e.getCurrentDirectory()),i,r,!1));return n?Zo(o):o}function Ky(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?Xk(iv(e,t,r.outDir)):Xk(e),i+n}function Xy(e,t){return Qy(e,t.getCompilerOptions(),t)}function Qy(e,t,n){const r=t.declarationDir||t.outDir,i=r?ov(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e))):e,o=Yy(i);return Xk(i)+o}function Yy(e){return Po(e,[".mjs",".mts"])?".d.mts":Po(e,[".cjs",".cts"])?".d.cts":Po(e,[".json"])?".d.json.ts":".d.ts"}function Zy(e){return Po(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Po(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Po(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function ev(e,t,n,r){return n?Vo(r(),ua(n,e,t)):e}function tv(e,t){var n;if(e.paths)return e.baseUrl??gn.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function nv(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=wS(r),i=r.emitDeclarationOnly||2===t||4===t;return P(e.getSourceFiles(),(t=>(i||!XI(t))&&rv(t,e,n)))}return P(void 0===t?e.getSourceFiles():[t],(t=>rv(t,e,n)))}function rv(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Rm(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!sf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=Ho(rq(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=ov(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===aa(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function iv(e,t,n){return ov(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function ov(e,t,n,r,i){let o=Ho(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,Uo(t,o)}function av(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(oS(ha.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function sv(e,t,n){e.length>Lo(e)&&!n(e)&&(sv(Ro(e),t,n),t(e))}function cv(e,t,n,r,i,o){try{r(e,t,n)}catch{sv(Ro(Go(e)),i,o),r(e,t,n)}}function lv(e,t){return Wa(Ua(e),t)}function uv(e,t){return Wa(e,t)}function _v(e){return T(e.members,(e=>xE(e)&&Od(e.body)))}function dv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&mv(e.parameters[0]);return e.parameters[t?1:0]}}function pv(e){const t=dv(e);return t&&t.type}function fv(e){if(e.parameters.length&&!mP(e)){const t=e.parameters[0];if(mv(t))return t}}function mv(e){return gv(e.name)}function gv(e){return!!e&&80===e.kind&&vv(e)}function hv(e){return!!yc(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function yv(e){if(!gv(e))return!1;for(;_E(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function vv(e){return"this"===e.escapedText}function bv(e,t){let n,r,i,o;return Vh(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:gn.fail("Accessor has wrong kind")):f(e,(e=>{vu(e)&&Rv(e)===Rv(t)&&Hh(e.name)===Hh(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function xv(e){if(!jm(e)&&tN(e))return;if(iN(e))return;const t=e.type;return t||!jm(e)?t:Ol(e)?e.typeExpression&&e.typeExpression.type:ll(e)}function Sv(e){return e.type}function kv(e){return mP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(jm(e)?ul(e):void 0)}function Tv(e){return M(dl(e),(e=>function(e){return IP(e)&&!(320===e.parent.kind&&(e.parent.tags.some(Lg)||e.parent.tags.some(CP)))}(e)?e.typeParameters:void 0))}function Cv(e){const t=dv(e);return t&&xv(t)}function Dv(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&uv(e,n)!==uv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}function wv(e,t,n,r){n!==r&&uv(e,n)!==uv(e,r)&&t.writeLine()}function Ev(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=P(hs(e,i.pos),(function(t){return Vd(e,t.pos)}))):s=hs(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=uv(t,l.end);if(uv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=uv(t,Te(a).end);uv(t,is(e,i.pos))>=l+2&&(Dv(t,n,i,s),function(e,t,n,r,i,o,a,s){if(r&&r.length>0){let i=!1;for(const o of r)i&&(n.writeSpace(" "),i=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():i=!0;i&&o&&n.writeSpace(" ")}}(e,t,n,a,0,!0,o,r),c={nodePos:i.pos,detachedCommentEndPos:Te(a).end})}}return c}function Fv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Va(t,r),s=t.length;let c;for(let l=r,u=a.line;l0){let e=i%Jy();const t=By((i-e)/Jy());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Nv(e,i,n,o,l,_),l=_}}else n.writeComment(e.substring(r,i))}function Nv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Pv(e,t,n){let r=0;for(;t=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Zv(e)),n||t&&jm(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|Xv(e)),Qv(e.modifierFlagsCache)):function(e){return 65535&e}(e.modifierFlagsCache))}function Hv(e){return Wv(e,!0)}function Gv(e){return Wv(e,!0,!0)}function Kv(e){return Wv(e,!1)}function Xv(e){let t=0;return e.parent&&!fE(e)&&(jm(e)&&(Hc(e)&&(t|=8388608),Kc(e)&&(t|=16777216),Qc(e)&&(t|=33554432),Zc(e)&&(t|=67108864),el(e)&&(t|=134217728)),nl(e)&&(t|=65536)),t}function Qv(e){return 131071&e|(260046848&e)>>>23}function Yv(e){return Zv(e)|function(e){return Qv(Xv(e))}(e)}function Zv(e){let t=mI(e)?eb(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function eb(e){let t=0;if(e)for(const n of e)t|=tb(n.kind);return t}function tb(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function nb(e){return 57===e||56===e}function rb(e){return nb(e)||54===e}function ib(e){return 76===e||77===e||78===e}function ob(e){return hF(e)&&ib(e.operatorToken.kind)}function ab(e){return nb(e)||61===e}function sb(e){return hF(e)&&ab(e.operatorToken.kind)}function cb(e){return e>=64&&e<=79}function lb(e){const t=ub(e);return t&&!t.isImplements?t.class:void 0}function ub(e){if(TF(e)){if(VN(e.parent)&&yu(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(gP(e.parent)){const t=Xg(e.parent);if(t&&yu(t))return{class:t,isImplements:!1}}}}function _b(e,t){return hF(e)&&(t?64===e.operatorToken.kind:cb(e.operatorToken.kind))&&Vu(e.left)}function db(e){if(_b(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function pb(e){return void 0!==lb(e)}function fb(e){return 80===e.kind||hb(e)}function mb(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function gb(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&gb(e.expression)||217===e.kind&&gb(e.expression)}function hb(e){return nF(e)&&Xw(e.name)&&fb(e.expression)}function yb(e){if(nF(e)){const t=yb(e.expression);if(void 0!==t)return t+"."+qp(e.name)}else if(rF(e)){const t=yb(e.expression);if(void 0!==t&&cu(e.argumentExpression))return t+"."+Hh(e.argumentExpression)}else{if(Xw(e))return Sc(e.escapedText);if($N(e))return dC(e)}}function vb(e){return dg(e)&&"prototype"===hg(e)}function bb(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function xb(e){return!!e.parent&&(nF(e.parent)&&e.parent.name===e||rF(e.parent)&&e.parent.argumentExpression===e)}function Sb(e){return _E(e.parent)&&e.parent.right===e||nF(e.parent)&&e.parent.name===e||tP(e.parent)&&e.parent.right===e}function kb(e){return hF(e)&&104===e.operatorToken.kind}function Tb(e){return kb(e.parent)&&e===e.parent.right}function Cb(e){return 210===e.kind&&0===e.properties.length}function Db(e){return 209===e.kind&&0===e.elements.length}function wb(e){if(function(e){return e&&p(e.declarations)>0&&Lv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function Eb(e){return T(Ak,(t=>No(e,t)))}var Fb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Nb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):gn.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Fb.charAt(o)+Fb.charAt(a)+Fb.charAt(s)+Fb.charAt(c),r+=3;return t}function Pb(e,t){return e&&e.base64encode?e.base64encode(t):Nb(t)}function Ab(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function zb(e,t){return Jb(e.pos,t)}function $b(e,t){return Jb(t,e.end)}function qb(e){const t=mI(e)?C(e.modifiers,mE):void 0;return t&&!rT(t.end)?$b(e,t.end):e}function Ub(e){if(hE(e)||vE(e))return $b(e,e.name.pos);const t=mI(e)?ke(e.modifiers):void 0;return t&&!rT(t.end)?$b(e,t.end):qb(e)}function Vb(e,t){return Jb(e,e+Ra(t).length)}function Wb(e,t){return Kb(e,e,t)}function Hb(e,t,n){return ex(tx(e,n,!1),tx(t,n,!1),n)}function Gb(e,t,n){return ex(e.end,t.end,n)}function Kb(e,t,n){return ex(tx(e,n,!1),t.end,n)}function Xb(e,t,n){return ex(e.end,tx(t,n,!1),n)}function Qb(e,t,n,r){const i=tx(t,n,r);return Ha(n,e.end,i)}function Yb(e,t,n){return Ha(n,e.end,t.end)}function Zb(e,t){return!ex(e.pos,e.end,t)}function ex(e,t,n){return 0===Ha(n,e,t)}function tx(e,t,n){return rT(e.pos)?-1:is(t.text,e.pos,!1,n)}function nx(e,t,n,r){const i=is(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!Ka(n.text.charCodeAt(e)))return e}(i,t,n);return Ha(n,o??t,i)}function rx(e,t,n,r){const i=is(n.text,e,!1,r);return Ha(n,e,Math.min(t,i))}function ix(e,t){return ox(e.pos,e.end,t)}function ox(e,t,n){return e<=n.pos&&t>=n.end}function ax(e){const t=bc(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function sx(e){return P(e.declarations,cx)}function cx(e){return ZF(e)&&void 0!==e.initializer}function lx(e){return e.watch&&Ie(e,"watch")}function ux(e){e.close()}function _x(e){return 33554432&e.flags?e.links.checkFlags:0}function dx(e,t=!1){if(e.valueDeclaration){const n=_c(t&&e.declarations&&T(e.declarations,kE)||32768&e.flags&&T(e.declarations,SE)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&_x(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function px(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function fx(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function mx(e){return 1===hx(e)}function gx(e){return 0!==hx(e)}function hx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return hx(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&cb(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:hx(t);case 303:{const n=hx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return gn.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:hx(t.parent);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function yx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!yx(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function vx(e,t){e.forEach(t),e.clear()}function bx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))}))}function xx(e,t,n){bx(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function Sx(e){if(32&e.flags){const t=kx(e);return!!t&&Lv(t,64)}return!1}function kx(e){var t;return null==(t=e.declarations)?void 0:t.find(yu)}function Tx(e){return 3899393&e.flags?e.objectFlags:0}function Cx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&lN(e.declarations[0])}function Dx({moduleSpecifier:e}){return Iw(e)?e.text:np(e)}function wx(e){let t;return qI(e,(e=>{Od(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(Od(e[n])){t=e[n];break}})),t}function Ex(e,t){return!e.has(t)&&(e.add(t),!0)}function Fx(e){return yu(e)||rN(e)||AE(e)}function Nx(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e}function Px(e){return 211===e.kind||212===e.kind}function Ax(e){return 211===e.kind?e.name:(gn.assert(212===e.kind),e.argumentExpression)}function Ix(e){return 275===e.kind||279===e.kind}function Ox(e){for(;Px(e);)e=e.expression;return e}function Lx(e,t){if(Px(e.parent)&&xb(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!Xw(n.argumentExpression)&&!q_(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return Px(n.expression)?e(n.expression):Xw(n.expression)?t(n.expression):void 0}(e.parent)}function Rx(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function jx(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Mx(e,t){this.flags=t,(gn.isDebugging||Yn)&&(this.checker=e)}function Bx(e,t){this.flags=t,gn.isDebugging&&(this.checker=e)}function Jx(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function zx(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function $x(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function qx(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var Ux,Vx={getNodeConstructor:()=>Jx,getTokenConstructor:()=>zx,getIdentifierConstructor:()=>$x,getPrivateIdentifierConstructor:()=>Jx,getSourceFileConstructor:()=>Jx,getSymbolConstructor:()=>jx,getTypeConstructor:()=>Mx,getSignatureConstructor:()=>Bx,getSourceMapSourceConstructor:()=>qx},Wx=[];function Hx(e){Wx.push(e),e(Vx)}function Gx(e){Object.assign(Vx,e),f(Wx,(e=>e(Vx)))}function Kx(e,t){return e.replace(/\{(\d+)\}/g,((e,n)=>""+gn.checkDefined(t[+n])))}function Xx(e){Ux=e}function Qx(e){!Ux&&e&&(Ux=e())}function Yx(e){return Ux&&Ux[e.key]||e.message}function Zx(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),Kp(t,n,r);let a=Yx(i);return X(o)&&(a=Kx(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function eS(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function tS(e,t){const n=t.fileName||"",r=t.text.length;gn.assertEqual(e.fileName,n),gn.assertLessThanOrEqual(e.start,r),gn.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)eS(o)&&o.fileName===n?(gn.assertLessThanOrEqual(o.start,r),gn.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(tS(o,t))):i.relatedInformation.push(o)}return i}function nS(e,t){const n=[];for(const r of e)n.push(tS(r,t));return n}function rS(e,t,n,r,...i){Kp(e.text,t,n);let o=Yx(r);return X(i)&&(o=Kx(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function iS(e,...t){let n=Yx(e);return X(t)&&(n=Kx(n,t)),n}function oS(e,...t){let n=Yx(e);return X(t)&&(n=Kx(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function aS(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function sS(e,t,...n){let r=Yx(t);return X(n)&&(r=Kx(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function cS(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function lS(e){return e.file?e.file.path:void 0}function uS(e,t){return _S(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?Tt(t.relatedInformation.length,e.relatedInformation.length)||f(e.relatedInformation,((e,n)=>uS(e,t.relatedInformation[n])))||0:e.relatedInformation?-1:1:0}(e,t)||0}function _S(e,t){const n=mS(e),r=mS(t);return Nt(lS(e),lS(t))||Tt(e.start,t.start)||Tt(e.length,t.length)||Tt(n,r)||function(e,t){let n=gS(e),r=gS(t);"string"!=typeof n&&(n=n.messageText),"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=Nt(n,r);return a||(c=o,a=void 0===(s=i)&&void 0===c?0:void 0===s?1:void 0===c?-1:dS(s,c)||pS(s,c),a||(e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0));var s,c}(e,t)||0}function dS(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=Tt(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=SI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=SI(e)};case 2:const t=[SI];4!==e.jsx&&5!==e.jsx||t.push(vS),t.push(bS);const n=an(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function SS(e){const t=ES(e);return 3<=t&&t<=99||IS(e)||OS(e)}var kS={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:kS.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(kS.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===kS.module.computeValue(e)||199===kS.module.computeValue(e)?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(kS.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:kS.esModuleInterop.computeValue(e)||4===kS.module.computeValue(e)||100===kS.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=kS.moduleResolution.computeValue(e);if(!WS(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=kS.moduleResolution.computeValue(e);if(!WS(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===kS.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!kS.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!kS.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?kS.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>HS(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>HS(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>HS(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>HS(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>HS(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>HS(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>HS(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>HS(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>HS(e,"useUnknownInCatchVariables")}},TS=kS,CS=kS.allowImportingTsExtensions.computeValue,DS=kS.target.computeValue,wS=kS.module.computeValue,ES=kS.moduleResolution.computeValue,FS=kS.moduleDetection.computeValue,NS=kS.isolatedModules.computeValue,PS=kS.esModuleInterop.computeValue,AS=kS.allowSyntheticDefaultImports.computeValue,IS=kS.resolvePackageJsonExports.computeValue,OS=kS.resolvePackageJsonImports.computeValue,LS=kS.resolveJsonModule.computeValue,RS=kS.declaration.computeValue,jS=kS.preserveConstEnums.computeValue,MS=kS.incremental.computeValue,BS=kS.declarationMap.computeValue,JS=kS.allowJs.computeValue,zS=kS.useDefineForClassFields.computeValue;function $S(e){return e>=5&&e<=99}function qS(e){switch(wS(e)){case 0:case 4:case 3:return!1}return!0}function US(e){return!1===e.allowUnreachableCode}function VS(e){return!1===e.allowUnusedLabels}function WS(e){return e>=3&&e<=99||100===e}function HS(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function GS(e){return ld(TO.type,((t,n)=>t===e?n:void 0))}function KS(e){return!1!==e.useDefineForClassFields&&DS(e)>=9}function XS(e,t){return sd(t,e,EO)}function QS(e,t){return sd(t,e,FO)}function YS(e,t){return sd(t,e,NO)}function ZS(e,t){return t.strictFlag?HS(e,t.name):t.allowJsFlag?JS(e):e[t.name]}function ek(e){const t=e.jsx;return 2===t||4===t||5===t}function tk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=nt(n)?n[n.length-1]:n,i=null==t?void 0:t.pragmas.get("jsxruntime"),o=nt(i)?i[i.length-1]:i;if("classic"!==(null==o?void 0:o.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==o?void 0:o.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function nk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function rk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=Xo(i,e,t);JT(a)||(a=Yo(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=Qe())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){gn.assert(!o),o=!0,e((e=>a(this,e.resolvedModule))),t((e=>a(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>a(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!ld(n,(e=>!!e))}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(Xo(o,e,t),i);const[a,s]=function(e,t,n,r){const i=Jo(Ho(e,n)),o=Jo(Ho(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!ok(i[i.length-2],r)&&!ok(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[zo(i),zo(o)]:void 0}(i,o,e,t)||u;a&&s&&n.setSymlinkedDirectory(s,{real:Yo(a),realPath:Yo(Xo(a,e,t))})}}function ok(e,t){return void 0!==e&&("node_modules"===t(e)||en(e,"@"))}function ak(e,t,n){const r=nn(e,t,n);return void 0===r?void 0:So((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var sk=/[^\w\s/]/g;function ck(e){return e.replace(sk,lk)}function lk(e){return"\\"+e}var uk=[42,63],_k=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,dk={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${_k}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>xk(e,dk.singleAsteriskRegexFragment)},pk={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${_k}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>xk(e,pk.singleAsteriskRegexFragment)},fk={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>xk(e,fk.singleAsteriskRegexFragment)},mk={files:dk,directories:pk,exclude:fk};function gk(e,t,n){const r=hk(e,t,n);if(r&&r.length)return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function hk(e,t,n){if(void 0!==e&&0!==e.length)return M(e,(e=>e&&bk(e,t,n,mk[n])))}function yk(e){return!/[.*?]/.test(e)}function vk(e,t,n){const r=e&&bk(e,t,n,mk[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function bk(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=mk[n]){let a="",s=!1;const c=Wo(e,t),l=Te(c);if("exclude"!==n&&"**"===l)return;c[0]=Qo(c[0]),yk(l)&&c.push("**","*");let u=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(",u++),s&&(a+=yo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="([^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(sk,o),t!==e&&(a+=_k),a+=t}else a+=e.replace(sk,o);s=!0}for(;u>0;)a+=")?",u--;return a}function xk(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Sk(e,t,n,r,i){e=Go(e);const o=Uo(i=Go(i),e);return{includeFilePatterns:O(hk(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:gk(n,o,"files"),includeDirectoryPattern:gk(n,o,"directories"),excludePattern:gk(t,o,"exclude"),basePaths:Ck(e,n,r)}}function kk(e,t){return new RegExp(e,t?"":"i")}function Tk(e,t,n,r,i,o,a,s,c){e=Go(e),o=Go(o);const l=Sk(e,n,r,i,o),u=l.includeFilePatterns&&l.includeFilePatterns.map((e=>kk(e,i))),_=l.includeDirectoryPattern&&kk(l.includeDirectoryPattern,i),d=l.excludePattern&&kk(l.excludePattern,i),p=u?u.map((()=>[])):[[]],f=new Map,m=Xt(i);for(const e of l.basePaths)g(e,Uo(o,e),a);return j(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of me(o,Nt)){const i=Uo(e,r),o=Uo(n,r);if((!t||Po(i,t))&&(!d||!d.test(o)))if(u){const e=D(u,(e=>e.test(o)));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!=--r)for(const t of me(a,Nt)){const i=Uo(e,t),o=Uo(n,t);_&&!_.test(o)||d&&d.test(o)||g(i,o,r)}}}function Ck(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=To(n)?n:Go(Uo(e,n));i.push(Dk(t))}i.sort(Pt(!n));for(const t of i)k(r,(r=>!sa(r,t,e,!n)))&&r.push(t)}return r}function Dk(e){const t=F(e,uk);return t<0?Fo(e)?Qo(Ro(e)):e:e.substring(0,e.lastIndexOf(yo,t))}function wk(e,t){return t||Ek(e)||3}function Ek(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var Fk=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Nk=j(Fk),Pk=[...Fk,[".json"]],Ak=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Ik=j([[".js",".jsx"],[".mjs"],[".cjs"]]),Ok=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Lk=[...Ok,[".json"]],Rk=[".d.ts",".d.cts",".d.mts"],jk=[".ts",".cts",".mts",".tsx"],Mk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function Bk(e,t){const n=e&&JS(e);if(!t||0===t.length)return n?Ok:Fk;const r=n?Ok:Fk,i=j(r);return[...r,...q(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t}))]}function Jk(e,t){return e&&LS(e)?t===Ok?Lk:t===Fk?Pk:[...t,[".json"]]:t}function zk(e){return X(Ik,(t=>No(e,t)))}function $k(e){return X(Nk,(t=>No(e,t)))}function qk(e){return X(jk,(t=>No(e,t)))&&!iO(e)}var Uk=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Uk||{});function Vk(e,t,n,r){const i=ES(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?LM(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:LM(n)?a():r&&function({imports:e},t=an(zk,$k)){return g(e,(({text:e})=>wo(e)&&!Po(e,Mk)?t(e):void 0))||!1}(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&Rm(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Hm(r)?t=Y(t,r.declarationList.declarations.map((e=>e.initializer))):jF(r)&&$m(r.expression,!0)?t=le(t,r.expression):n++}return t||u}(r).map((e=>e.arguments[0])):u;for(const a of i)if(wo(a.text)){if(o&&1===t&&99===sU(r,a,n))continue;if(Po(a.text,Mk))continue;if($k(a.text))return 3;zk(a.text)&&(e=!0)}return e?2:0}}function Wk(e,t,n){if(!e)return!1;const r=Bk(t,n);for(const n of j(Jk(t,r)))if(No(e,n))return!0;return!1}function Hk(e){const t=e.match(/\//g);return t?t.length:0}function Gk(e,t){return Tt(Hk(e),Hk(t))}var Kk=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Xk(e){for(const t of Kk){const n=Qk(e,t);if(void 0!==n)return n}return e}function Qk(e,t){return No(e,t)?Yk(e,t):void 0}function Yk(e,t){return e.substring(0,e.length-t.length)}function Zk(e,t){return ea(e,t,Kk,!1)}function eT(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var tT=new WeakMap;function nT(e){let t,n,r=tT.get(e);if(void 0!==r)return r;const i=Le(e);for(const e of i){const r=eT(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return tT.set(e,r={matchableStringSet:t,patterns:n}),r}function rT(e){return!(e>=0)}function iT(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||en(e,".d.")&&$t(e,".ts")}function oT(e){return iT(e)||".json"===e}function aT(e){const t=cT(e);return void 0!==t?t:gn.fail(`File ${e} has unknown extension.`)}function sT(e){return void 0!==cT(e)}function cT(e){return T(Kk,(t=>No(e,t)))}function lT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var uT={files:u,directories:u};function _T(e,t){const{matchableStringSet:n,patterns:r}=e;return(null==n?void 0:n.has(t))?t:void 0!==r&&0!==r.length?Zt(r,(e=>e),t):void 0}function dT(e,t){const n=e.indexOf(t);return gn.assert(-1!==n),e.slice(n)}function pT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),gn.assert(e.relatedInformation!==u,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function fT(e,t){gn.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function mT(e){return{pos:Hd(e),end:e.end}}function gT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,is(e.text,t.end)+1)}}function hT(e,t,n){return vT(e,t,n,!1)}function yT(e,t,n){return vT(e,t,n,!0)}function vT(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!bT(e,t)}function bT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&lT(e,t);return wd(e,t.checkJs)||n||7===e.scriptKind}function xT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&ze(e,t,xT)}function ST(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function kT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function TT(e){if(DT(e,!1))return CT(e)}function CT(e){const t=e.startsWith("-");return{negative:t,base10Value:ST(`${t?e.slice(1):e}n`)}}function DT(e,t){if(""===e)return!1;const n=ks(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===kT({negative:o,base10Value:ST(n.getTokenValue())}))}function wT(e){return!!(33554432&e.flags)||Fm(e)||function(e){if(80!==e.kind)return!1;const t=yc(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(Lv(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(wm(e)||function(e){return Xw(e)&&GN(e.parent)&&e.parent.name===e}(e))}function ET(e){return EE(e)&&Xw(e.typeName)}function FT(e,t=bt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;re.includes(t)))}function zT(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return gI(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(A_(e))return fP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Tu(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 356:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return wu(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return T_(e)?t.children:void 0;case 286:case 285:return wu(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 307:return t.statements;case 269:return t.clauses;case 263:case 231:return hu(e)?t.members:void 0;case 266:return XN(e)?t.members:void 0}}function $T(e){if(!e.typeParameters){if(X(e.parameters,(e=>!xv(e))))return!0;if(219!==e.kind){const t=ve(e.parameters);if(!t||!mv(t))return!0}}return!1}function qT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function UT(e){return 260===e.kind&&299===e.parent.kind}function VT(e){return 218===e.kind||219===e.kind}function WT(e){return e.replace(/\$/g,(()=>"\\$"))}function HT(e){return(+e).toString()===e}function GT(e,t,n,r,i){const o=i&&"new"===e;return!o&&Ss(e,t)?oD.createIdentifier(e):!r&&!o&&HT(e)&&+e>=0?oD.createNumericLiteral(+e):oD.createStringLiteral(e,!!n)}function KT(e){return!!(262144&e.flags&&e.isThisType)}function XT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(Wj,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(Wj,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function QT(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function YT(e){return oN(e)||LF(e)||tN(e)||nN(e)||rN(e)||QT(e)||aN(e)&&!bp(e)&&!vp(e)}function ZT(e){if(!Ol(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&316===n.type.kind}function eC(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&bs(e.charCodeAt(1),t):bs(n,t)}function tC(e){var t;return 0===(null==(t=jD(e))?void 0:t.kind)}function nC(e){return jm(e)&&(e.type&&316===e.type.kind||jc(e).some(ZT))}function rC(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||nC(e);case 348:case 341:return ZT(e);default:return!1}}function iC(e){const t=e.kind;return(211===t||212===t)&&wF(e.expression)}function oC(e){return jm(e)&&cF(e)&&L_(e)&&!!sl(e)}function aC(e){return gn.checkDefined(sC(e))}function sC(e){const t=sl(e);return t&&t.typeExpression&&t.typeExpression.type}function cC(e){return Xw(e)?e.escapedText:_C(e)}function lC(e){return Xw(e)?kc(e):dC(e)}function uC(e){const t=e.kind;return 80===t||295===t}function _C(e){return`${e.namespace.escapedText}:${kc(e.name)}`}function dC(e){return`${kc(e.namespace)}:${kc(e.name)}`}function pC(e){return Xw(e)?kc(e):dC(e)}function fC(e){return!!(8576&e.flags)}function mC(e){return 8192&e.flags?e.escapedName:384&e.flags?xc(""+e.value):gn.fail()}function gC(e){return!!e&&(nF(e)||rF(e)||hF(e))}function hC(e){return void 0!==e&&!!uU(e.attributes)}var yC=String.prototype.replace;function vC(e,t){return yC.call(e,"*",t)}function bC(e){return Xw(e.name)?e.name.escapedText:xc(e.name.text)}function xC(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function SC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function kC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(r,i){let o=!1,a=!1,s=!1;switch((r=ph(r)).kind){case 224:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return SC(c.value,o,a,s);case 41:return SC(-c.value,o,a,s);case 55:return SC(~c.value,o,a,s)}break;case 226:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return SC(e.value|t.value,o,a,s);case 51:return SC(e.value&t.value,o,a,s);case 49:return SC(e.value>>t.value,o,a,s);case 50:return SC(e.value>>>t.value,o,a,s);case 48:return SC(e.value<=2)break;case 174:case 176:case 177:case 178:case 262:if(3&p&&"arguments"===I){D=n;break e}break;case 218:if(3&p&&"arguments"===I){D=n;break e}if(16&p){const e=s.name;if(e&&I===e.escapedText){D=s.symbol;break e}}break;case 170:s.parent&&169===s.parent.kind&&(s=s.parent),s.parent&&(hu(s.parent)||263===s.parent.kind)&&(s=s.parent);break;case 346:case 338:case 340:case 351:const o=Yg(s);o&&(s=o.parent);break;case 169:w&&(w===s.initializer||w===s.name&&Fu(w))&&(N||(N=s));break;case 208:w&&(w===s.initializer||w===s.name&&Fu(w))&&iy(s)&&!N&&(N=s);break;case 195:if(262144&p){const e=s.typeParameter.name;if(e&&I===e.escapedText){D=s.typeParameter.symbol;break e}}break;case 281:w&&w===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}y(s,w)&&(E=s),w=s,s=IP(s)?Hg(s)||s.parent:(FP(s)||NP(s))&&Kg(s)||s.parent}if(!b||!D||E&&D===E.symbol||(D.isReferenced|=p),!D){if(w&&(gn.assertNode(w,QN),w.commonJsModuleIndicator&&"exports"===I&&p&w.symbol.flags))return w.symbol;x||(D=a(o,I,p))}if(!D&&C&&jm(C)&&C.parent&&$m(C.parent,!1))return t;if(f){if(F&&l(C,I,F,D))return;D?_(C,D,p,w,N,A):u(C,c,p,f)}return D};function g(t,n,r){const i=DS(e),o=n;if(fE(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=f(o.parameters,(function(e){return a(e.name)||!!e.initializer&&a(e.initializer)}))||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return a(e.name);case 172:return jv(e)?!p:a(e.name);default:return El(e)||Tl(e)?i<7:ZE(e)&&e.dotDotDotToken&&QE(e.parent)?i<4:!wu(e)&&(qI(e,a)||!1)}}}function h(e,t){return 219!==e.kind&&218!==e.kind?PE(e)||(du(e)||172===e.kind&&!Rv(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!Lv(e,1024)&&dm(e))}function y(e,t){switch(e.kind){case 169:return!!t&&t===e.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function v(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind&&(IP(n.parent)?Qg(n.parent):n.parent)===t)return!(IP(n.parent)&&T(n.parent.parent.tags,Lg));return!1}}function wC(e,t=!0){switch(gn.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return 41===e.operator?Pw(e.operand)||t&&Aw(e.operand):40===e.operator&&Pw(e.operand);default:return!1}}function EC(e){for(;217===e.kind;)e=e.expression;return e}function FC(e){switch(gn.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:case 304:case 341:case 348:return!0;default:return!1}}function NC(e){const t=yc(e,_N);return!!t&&!t.importClause}var PC=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],AC=new Set(PC),IC=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),OC=new Set([...PC,...PC.map((e=>`node:${e}`)),...IC]);function LC(e,t,n,r){const i=jm(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=RC(e,o.lastIndex,t);if(i&&$m(a,n))r(a,a.arguments[0]);else if(gf(a)&&a.arguments.length>=1&&(!n||q_(a.arguments[0])))r(a,a.arguments[0]);else if(t&&yf(a))r(a,a.argument.literal);else if(t&&JP(a)){const e=Fg(a);e&&Iw(e)&&e.text&&r(a,e)}}}function RC(e,t,n){const r=jm(e);let i=e;const o=e=>{if(e.pos<=t&&(to(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return pA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=fy(227,58),r=Nl(t);return 1!==Tt(_y(r),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return pA(Nl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Nl(t);let r=pA(n);if(!r)switch(Rx(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Rx(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return Vu(t)?t:fI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return Hu(t)?t:fI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=R(t,c);return fI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=Nl(t);if(iF(n)){const r=n.expression,i=Nl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,fI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Rx(n,!1).kind;return 210===r||218===r?fI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return OF(t)||!pA(t)&&210!==Rx(t,!1).kind?t:fI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 194===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(R(t,u))},parenthesizeConstituentTypeOfUnionType:u,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(R(t,_))},parenthesizeConstituentTypeOfIntersectionType:_,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 198===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(R(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if(X(t))return e.createNodeArray(R(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Bl((e=Nl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Bl(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===Nl(n).kind?n:function(e,t,n,i){const o=fy(226,e),a=uy(226,e),s=Nl(t);if(!n&&219===t.kind&&o>3)return!0;switch(Tt(_y(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(hF(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Bl(e)&&e===r(s))return!1}}return 0===ly(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=Nl(t);return!Vu(r)||214===r.kind&&!r.arguments||!n&&Tl(r)?fI(e.createParenthesizedExpression(t),t):t}function c(t){return _y(Nl(t))>fy(226,28)?t:fI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return u(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):_(t)}function p(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return sP(e)?e.postfix:LE(e)||FE(e)||NE(e)||UE(e)?m(e.type):JE(e)?m(e.falseType):ME(e)||BE(e)?m(Te(e.types)):!!zE(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return Eu(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var JC={getParenthesizeLeftSideOfBinaryForOperator:e=>dt,getParenthesizeRightSideOfBinaryForOperator:e=>dt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:dt,parenthesizeConditionOfConditionalExpression:dt,parenthesizeBranchOfConditionalExpression:dt,parenthesizeExpressionOfExportDefault:dt,parenthesizeExpressionOfNew:e=>st(e,Vu),parenthesizeLeftSideOfAccess:e=>st(e,Vu),parenthesizeOperandOfPostfixUnary:e=>st(e,Vu),parenthesizeOperandOfPrefixUnary:e=>st(e,Hu),parenthesizeExpressionsOfCommaDelimitedList:e=>st(e,Ml),parenthesizeExpressionForDisallowedComma:dt,parenthesizeExpressionOfExpressionStatement:dt,parenthesizeConciseBodyOfArrowFunction:dt,parenthesizeCheckTypeOfConditionalType:dt,parenthesizeExtendsTypeOfConditionalType:dt,parenthesizeConstituentTypesOfUnionType:e=>st(e,Ml),parenthesizeConstituentTypeOfUnionType:dt,parenthesizeConstituentTypesOfIntersectionType:e=>st(e,Ml),parenthesizeConstituentTypeOfIntersectionType:dt,parenthesizeOperandOfTypeOperator:dt,parenthesizeOperandOfReadonlyTypeOperator:dt,parenthesizeNonArrayTypeOfPostfixType:dt,parenthesizeElementTypesOfTupleType:e=>st(e,Ml),parenthesizeElementTypeOfTupleType:dt,parenthesizeTypeOfOptionalType:dt,parenthesizeTypeArguments:e=>e&&st(e,Ml),parenthesizeLeadingTypeArgument:dt};function zC(e){return{convertToFunctionBlock:function(t,n){if(OF(t))return t;const r=e.createReturnStatement(t);fI(r,t);const i=e.createBlock([r],n);return fI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return gn.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Lc(t))?void 0:n.filter((e=>!Yw(e)&&!Zw(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return sD(r,t),fI(r,t),vD(t)&&bD(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!Yw(e)&&!Zw(e))),t.name,t.typeParameters,t.heritageClauses,t.members);return sD(r,t),fI(r,t),vD(t)&&bD(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(ZE(t)){if(t.dotDotDotToken)return gn.assertNode(t.name,Xw),sD(fI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?sD(fI(e.createAssignment(n,t.initializer),t),t):n}return st(t,Qu)}function n(t){if(ZE(t)){if(t.dotDotDotToken)return gn.assertNode(t.name,Xw),sD(fI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return sD(fI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return gn.assertNode(t.name,Xw),sD(fI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return st(t,Du)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return QE(t)?sD(fI(e.createObjectLiteralExpression(O(t.elements,n)),t),t):st(t,tF)}function o(n){return YE(n)?sD(fI(e.createArrayLiteralExpression(O(n.elements,t)),n),n):st(n,eF)}function a(e){return Fu(e)?r(e):st(e,Qu)}}var $C,qC={convertToFunctionBlock:gt,convertToFunctionExpression:gt,convertToClassExpression:gt,convertToArrayAssignmentElement:gt,convertToObjectAssignmentElement:gt,convertToAssignmentPattern:gt,convertToObjectAssignmentPattern:gt,convertToArrayAssignmentPattern:gt,convertToAssignmentElementTarget:gt},UC=0,VC=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(VC||{}),WC=[];function HC(e){WC.push(e)}function GC(e,t){const n=8&e?dt:sD,r=ht((()=>1&e?JC:BC(v))),i=ht((()=>2&e?qC:zC(v))),o=yt((e=>(t,n)=>Ot(t,e,n))),a=yt((e=>t=>At(e,t))),s=yt((e=>t=>It(t,e))),c=yt((e=>()=>function(e){return x(e)}(e))),l=yt((e=>t=>dr(e,t))),_=yt((e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(dr(e,n),t):t}(e,t,n))),d=yt((e=>(t,n)=>_r(e,t,n))),p=yt((e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(_r(e,n,t.postfix),t):t}(e,t,n))),m=yt((e=>(t,n)=>Or(e,t,n))),g=yt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Oi(Or(e,n,r),t):t}(e,t,n,r))),h=yt((e=>(t,n,r)=>Lr(e,t,n,r))),y=yt((e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Oi(Lr(e,n,r,i),t):t}(e,t,n,r,i))),v={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:b,createNumericLiteral:C,createBigIntLiteral:D,createStringLiteral:E,createStringLiteralFromNode:function(e){const t=w(Kh(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return C(t,0);case 10:return D(t);case 11:return E(t,void 0);case 12:return Wr(t,!1);case 13:return Wr(t,!0);case 14:return F(t);case 15:return zt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;return e&&(t|=8),P("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return gn.assert(!(7&t),"Argument out of range: flags"),gn.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),P(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return en(e,"#")||gn.fail("First character of private identifier must be #: "+e),L(xc(e))},createUniquePrivateName:function(e,t,n){return e&&!en(e,"#")&&gn.fail("First character of private identifier must be #: "+e),R(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=vl(e)?aI(!0,t,e,n,kc):`#generated@${QB(e)}`,i=R(r,4|(t||n?16:0),t,n);return i.original=e,i},createToken:M,createSuper:function(){return M(108)},createThis:B,createNull:J,createTrue:$,createFalse:q,createModifier:U,createModifiersFromModifierFlags:V,createQualifiedName:W,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Oi(W(t,n),e):e},createComputedPropertyName:H,updateComputedPropertyName:function(e,t){return e.expression!==t?Oi(H(t),e):e},createTypeParameterDeclaration:G,updateTypeParameterDeclaration:K,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Oi(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:te,createPropertyDeclaration:ne,updatePropertyDeclaration:re,createMethodSignature:ie,updateMethodSignature:oe,createMethodDeclaration:ae,updateMethodDeclaration:se,createConstructorDeclaration:ue,updateConstructorDeclaration:_e,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:ge,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ge(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(he(t,n,r),e):e},createIndexSignature:ye,updateIndexSignature:ve,createClassStaticBlockDeclaration:ce,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=ce(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createTemplateLiteralTypeSpan:be,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Oi(be(t,n),e):e},createKeywordTypeNode:function(e){return M(e)},createTypePredicateNode:xe,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Oi(xe(t,n,r),e):e},createTypeReferenceNode:Se,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Oi(Se(t,n),e):e},createFunctionTypeNode:Te,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Te(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),T(i,o)):e;var i,o},createConstructorTypeNode:De,updateConstructorTypeNode:function(...e){return 5===e.length?Ee(...e):4===e.length?function(e,t,n,r){return Ee(e,e.modifiers,t,n,r)}(...e):gn.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Fe,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Oi(Fe(t,n),e):e},createTypeLiteralNode:Ne,updateTypeLiteralNode:function(e,t){return e.members!==t?Oi(Ne(t),e):e},createArrayTypeNode:Ae,updateArrayTypeNode:function(e,t){return e.elementType!==t?Oi(Ae(t),e):e},createTupleTypeNode:Oe,updateTupleTypeNode:function(e,t){return e.elements!==t?Oi(Oe(t),e):e},createNamedTupleMember:Le,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Oi(Le(t,n,r,i),e):e},createOptionalTypeNode:Re,updateOptionalTypeNode:function(e,t){return e.type!==t?Oi(Re(t),e):e},createRestTypeNode:je,updateRestTypeNode:function(e,t){return e.type!==t?Oi(je(t),e):e},createUnionTypeNode:function(e){return Me(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Me(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Je,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Oi(Je(t,n,r,i),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Oi(ze(t),e):e},createImportTypeNode:qe,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Oi(qe(t,n,r,i,o),e):e},createParenthesizedType:Ue,updateParenthesizedType:function(e,t){return e.type!==t?Oi(Ue(t),e):e},createThisTypeNode:function(){const e=x(197);return e.transformFlags=1,e},createTypeOperatorNode:Ve,updateTypeOperatorNode:function(e,t){return e.type!==t?Oi(Ve(e.operator,t),e):e},createIndexedAccessTypeNode:We,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Oi(We(t,n),e):e},createMappedTypeNode:He,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Oi(He(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ge,updateLiteralTypeNode:function(e,t){return e.literal!==t?Oi(Ge(t),e):e},createTemplateLiteralType:$e,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi($e(t,n),e):e},createObjectBindingPattern:Ke,updateObjectBindingPattern:function(e,t){return e.elements!==t?Oi(Ke(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Oi(Xe(t),e):e},createBindingElement:Qe,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Oi(Qe(t,n,r,i),e):e},createArrayLiteralExpression:Ye,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Oi(Ye(t,e.multiLine),e):e},createObjectLiteralExpression:Ze,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Oi(Ze(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>_D(tt(e,t),262144):tt,updatePropertyAccessExpression:function(e,t,n){return xl(e)?it(e,t,e.questionDotToken,st(n,Xw)):e.expression!==t||e.name!==n?Oi(tt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>_D(rt(e,t,n),262144):rt,updatePropertyAccessChain:it,createElementAccessExpression:at,updateElementAccessExpression:function(e,t,n){return Sl(e)?lt(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Oi(at(t,n),e):e},createElementAccessChain:ct,updateElementAccessChain:lt,createCallExpression:pt,updateCallExpression:function(e,t,n,r){return kl(e)?mt(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(pt(t,n,r),e):e},createCallChain:ft,updateCallChain:mt,createNewExpression:gt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(gt(t,n,r),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Oi(vt(t,n,r),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:St,updateParenthesizedExpression:kt,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:Dt,updateArrowFunction:wt,createDeleteExpression:Et,updateDeleteExpression:function(e,t){return e.expression!==t?Oi(Et(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?Oi(Ft(t),e):e},createVoidExpression:Nt,updateVoidExpression:function(e,t){return e.expression!==t?Oi(Nt(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?Oi(Pt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Oi(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Oi(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Oi(Ot(t,n,r),e):e},createConditionalExpression:Rt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Oi(Rt(t,n,r,i,o),e):e},createTemplateExpression:jt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi(jt(t,n),e):e},createTemplateHead:function(e,t,n){return zt(16,e=Mt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return zt(17,e=Mt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return zt(18,e=Mt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Jt(15,e=Mt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:zt,createYieldExpression:$t,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Oi($t(t,n),e):e},createSpreadElement:qt,updateSpreadElement:function(e,t){return e.expression!==t?Oi(qt(t),e):e},createClassExpression:Ut,updateClassExpression:Vt,createOmittedExpression:function(){return x(232)},createExpressionWithTypeArguments:Wt,updateExpressionWithTypeArguments:Ht,createAsExpression:Gt,updateAsExpression:Kt,createNonNullExpression:Xt,updateNonNullExpression:Qt,createSatisfiesExpression:Yt,updateSatisfiesExpression:Zt,createNonNullChain:tn,updateNonNullChain:nn,createMetaProperty:rn,updateMetaProperty:function(e,t){return e.name!==t?Oi(rn(e.keywordToken,t),e):e},createTemplateSpan:on,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Oi(on(t,n),e):e},createSemicolonClassElement:function(){const e=x(240);return e.transformFlags|=1024,e},createBlock:an,updateBlock:function(e,t){return e.statements!==t?Oi(an(t,e.multiLine),e):e},createVariableStatement:sn,updateVariableStatement:cn,createEmptyStatement:ln,createExpressionStatement:un,updateExpressionStatement:function(e,t){return e.expression!==t?Oi(un(t),e):e},createIfStatement:_n,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Oi(_n(t,n,r),e):e},createDoStatement:dn,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Oi(dn(t,n),e):e},createWhileStatement:pn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(pn(t,n),e):e},createForStatement:fn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Oi(fn(t,n,r,i),e):e},createForInStatement:mn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Oi(mn(t,n,r),e):e},createForOfStatement:hn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Oi(hn(t,n,r,i),e):e},createContinueStatement:yn,updateContinueStatement:function(e,t){return e.label!==t?Oi(yn(t),e):e},createBreakStatement:vn,updateBreakStatement:function(e,t){return e.label!==t?Oi(vn(t),e):e},createReturnStatement:bn,updateReturnStatement:function(e,t){return e.expression!==t?Oi(bn(t),e):e},createWithStatement:xn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(xn(t,n),e):e},createSwitchStatement:Sn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Oi(Sn(t,n),e):e},createLabeledStatement:kn,updateLabeledStatement:Tn,createThrowStatement:Cn,updateThrowStatement:function(e,t){return e.expression!==t?Oi(Cn(t),e):e},createTryStatement:Dn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Oi(Dn(t,n,r),e):e},createDebuggerStatement:function(){const e=x(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:wn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Oi(wn(t,n,r,i),e):e},createVariableDeclarationList:En,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Oi(En(t,e.flags),e):e},createFunctionDeclaration:Fn,updateFunctionDeclaration:Nn,createClassDeclaration:Pn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:Rn,createEnumDeclaration:jn,updateEnumDeclaration:Mn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:zn,updateModuleBlock:function(e,t){return e.statements!==t?Oi(zn(t),e):e},createCaseBlock:$n,updateCaseBlock:function(e,t){return e.clauses!==t?Oi($n(t),e):e},createNamespaceExportDeclaration:qn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((n=qn(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createImportEqualsDeclaration:Un,updateImportEqualsDeclaration:Vn,createImportDeclaration:Wn,updateImportDeclaration:Hn,createImportClause:Gn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?Oi(Gn(t,n,r),e):e},createAssertClause:Kn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Kn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Oi(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Oi(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Oi(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Oi(er(t),e):e},createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Oi(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Oi(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Oi(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=S(282);return e.jsDoc=void 0,e},createExternalModuleReference:ur,updateExternalModuleReference:function(e,t){return e.expression!==t?Oi(ur(t),e):e},get createJSDocAllType(){return c(312)},get createJSDocUnknownType(){return c(313)},get createJSDocNonNullableType(){return d(315)},get updateJSDocNonNullableType(){return p(315)},get createJSDocNullableType(){return d(314)},get updateJSDocNullableType(){return p(314)},get createJSDocOptionalType(){return l(316)},get updateJSDocOptionalType(){return _(316)},get createJSDocVariadicType(){return l(318)},get updateJSDocVariadicType(){return _(318)},get createJSDocNamepathType(){return l(319)},get updateJSDocNamepathType(){return _(319)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Oi(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Oi(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Oi(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Oi(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Oi(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(xr(t,n,r,i),e):e},createJSDocParameterTag:Sr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(Sr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:kr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(kr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(Cr(t,n,r),e):e},createJSDocAugmentsTag:Dr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(Dr(t,n,r),e):e},createJSDocImplementsTag:wr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(wr(t,n,r),e):e},createJSDocSeeTag:Er,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Oi(Er(t,n,r),e):e},createJSDocImportTag:Mr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi(Mr(t,n,r,i,o),e):e},createJSDocNameReference:Fr,updateJSDocNameReference:function(e,t){return e.name!==t?Oi(Fr(t),e):e},createJSDocMemberName:Nr,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Oi(Nr(t,n),e):e},createJSDocLink:Pr,updateJSDocLink:function(e,t,n){return e.name!==t?Oi(Pr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Oi(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Oi(Ir(t,n),e):e},get createJSDocTypeTag(){return h(344)},get updateJSDocTypeTag(){return y(344)},get createJSDocReturnTag(){return h(342)},get updateJSDocReturnTag(){return y(342)},get createJSDocThisTag(){return h(343)},get updateJSDocThisTag(){return y(343)},get createJSDocAuthorTag(){return m(330)},get updateJSDocAuthorTag(){return g(330)},get createJSDocClassTag(){return m(332)},get updateJSDocClassTag(){return g(332)},get createJSDocPublicTag(){return m(333)},get updateJSDocPublicTag(){return g(333)},get createJSDocPrivateTag(){return m(334)},get updateJSDocPrivateTag(){return g(334)},get createJSDocProtectedTag(){return m(335)},get updateJSDocProtectedTag(){return g(335)},get createJSDocReadonlyTag(){return m(336)},get updateJSDocReadonlyTag(){return g(336)},get createJSDocOverrideTag(){return m(337)},get updateJSDocOverrideTag(){return g(337)},get createJSDocDeprecatedTag(){return m(331)},get updateJSDocDeprecatedTag(){return g(331)},get createJSDocThrowsTag(){return h(349)},get updateJSDocThrowsTag(){return y(349)},get createJSDocSatisfiesTag(){return h(350)},get updateJSDocSatisfiesTag(){return y(350)},createJSDocEnumTag:jr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(jr(t,n,r),e):e},createJSDocUnknownTag:Rr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Oi(Rr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Oi(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Oi(Jr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Oi(zr(t,n,r),e):e},createJsxSelfClosingElement:$r,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi($r(t,n,r),e):e},createJsxOpeningElement:qr,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi(qr(t,n,r),e):e},createJsxClosingElement:Ur,updateJsxClosingElement:function(e,t){return e.tagName!==t?Oi(Ur(t),e):e},createJsxFragment:Vr,createJsxText:Wr,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Oi(Wr(t,n),e):e},createJsxOpeningFragment:function(){const e=x(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=x(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Oi(Vr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(Hr(t,n),e):e},createJsxAttributes:Gr,updateJsxAttributes:function(e,t){return e.properties!==t?Oi(Gr(t),e):e},createJsxSpreadAttribute:Kr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Oi(Kr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Oi(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Oi(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Oi(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Oi(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Oi(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Oi(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?((r=ii(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken,r.equalsToken=i.equalsToken),Oi(r,i)):e;var r,i},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Oi(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(307);return i.statements=b(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=eD(i.statements)|ZC(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==a?Oi(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=b(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=eD(s.statements)|ZC(s.endOfFileToken),s}(e,t,n,r,i,o,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Oi(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=x(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=x(352);return t._children=e,t},createNotEmittedStatement:function(e){const t=x(353);return t.original=e,fI(t,e),t},createNotEmittedTypeElement:function(){return x(354)},createPartiallyEmittedExpression:ui,updatePartiallyEmittedExpression:_i,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Oi(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Oi(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return pt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,an(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return pt(Dt(void 0,void 0,t?[t]:[],void 0,void 0,an(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?v.createStrictEquality(e,J()):"undefined"===t?v.createStrictEquality(e,gi()):v.createStrictEquality(Ft(e),E(t))},createIsNotTypeCheck:function(e,t){return"null"===t?v.createStrictInequality(e,J()):"undefined"===t?v.createStrictInequality(e,gi()):v.createStrictInequality(Ft(e),E(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Pi(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Pi(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Pi(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Pi(e.enumerable)),vi(n,"configurable",Pi(e.configurable));let r=vi(n,"writable",Pi(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,gn.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ze(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=hA(e,31);let a,s;return pm(o)?(a=B(),s=o):cE(o)?(a=B(),s=void 0!==n&&n<2?fI(A("_super"),o):o):8192&op(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):nF(o)?bi(o.expression,i)?(a=I(t),s=tt(fI(v.createAssignment(a,o.expression),o.expression),o.name),fI(s,o)):(a=o.expression,s=o):rF(o)?bi(o.expression,i)?(a=I(t),s=at(fI(v.createAssignment(a,o.expression),o.expression),o.argumentExpression),fI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return tt(St(Ze([fe(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],an([un(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):Pe(e,v.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:Si,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:ki,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&Lv(t,32)?ki(e,xi(t),n,r):Si(t,n,r)},restoreOuterExpressions:function e(t,n,r=31){return t&&gA(t,r)&&!function(e){return cF(e)&&sy(e)&&sy(mD(e))&&sy(xD(e))&&!X(kD(e))&&!X(DD(e))}(t)?function(e,t){switch(e.kind){case 217:return kt(e,t);case 216:return xt(e,e.type,t);case 234:return Kt(e,t,e.type);case 238:return Zt(e,t,e.type);case 235:return Qt(e,t);case 233:return Ht(e,t,e.typeArguments);case 355:return _i(e,t)}}(t,e(t.expression,n)):n},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=Tn(n,n.label,KF(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:Ci,copyPrologue:function(e,t,n,r){const i=Di(e,t,0,n);return wi(e,t,i,r)},copyStandardPrologue:Di,copyCustomPrologue:wi,ensureUseStrict:function(e){return uA(e)?e:fI(b([Ci(),...e]),e)},liftToBlock:function(e){return gn.assert(k(e,x_),"Cannot lift nodes to a Block."),Ce(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!X(t))return e;const n=Ei(e,vf,0),r=Ei(e,xf,n),i=Ei(e,kf,r),o=Ei(t,vf,0),a=Ei(t,xf,o),s=Ei(t,kf,a),c=Ei(t,bf,s);gn.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Ml(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return Ml(e)?fI(b(l,e.hasTrailingComma),e):e},replaceModifiers:function(e,t){let n;return n="number"==typeof t?V(t):t,pE(e)?K(e,n,e.name,e.constraint,e.default):fE(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):NE(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):gE(e)?te(e,n,e.name,e.questionToken,e.type):hE(e)?re(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):yE(e)?oe(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):vE(e)?se(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):xE(e)?_e(e,n,e.parameters,e.body):SE(e)?pe(e,n,e.name,e.parameters,e.type,e.body):kE(e)?me(e,n,e.name,e.parameters,e.body):DE(e)?ve(e,n,e.parameters,e.type):lF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):uF(e)?wt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):SF(e)?Vt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):LF(e)?cn(e,n,e.declarationList):tN(e)?Nn(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):nN(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):rN(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):iN(e)?Rn(e,n,e.name,e.typeParameters,e.type):oN(e)?Mn(e,n,e.name,e.members):aN(e)?Jn(e,n,e.name,e.body):uN(e)?Vn(e,n,e.isTypeOnly,e.name,e.moduleReference):_N(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):SN(e)?or(e,n,e.expression):kN(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):gn.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return fE(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):hE(e)?re(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):vE(e)?se(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):SE(e)?pe(e,t,e.name,e.parameters,e.type,e.body):kE(e)?me(e,t,e.name,e.parameters,e.body):SF(e)?Vt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):nN(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):gn.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return se(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return oe(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return re(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return te(e,e.modifiers,t,e.questionToken,e.type);case 303:return ri(e,t,e.initializer)}}};return f(WC,(e=>e(v))),v;function b(e,t){if(void 0===e||e===u)e=[];else if(Ml(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&tD(e),gn.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,gn.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,tD(r),gn.attachNodeArrayDebugInfo(r),r}function x(e){return t.createBaseNode(e)}function S(e){const t=x(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Oi(e,t)}function C(e,t=0){const n="number"==typeof e?e+"":e;gn.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=S(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function D(e){const t=j(10);return t.text="string"==typeof e?e:kT(e)+"n",t.transformFlags|=32,t}function w(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function E(e,t,n){const r=w(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=j(14);return t.text=e,t}function N(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function P(e,t,n,r){const i=N(xc(e));return UD(i,{flags:t,id:UC,prefix:n,suffix:r}),UC++,i}function A(e,t,n){void 0===t&&e&&(t=ja(e)),80===t&&(t=void 0);const r=N(xc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=P("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){gn.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=P(e?vl(e)?aI(!1,n,e,r,kc):`generated@${QB(e)}`:"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function R(e,t,n,r){const i=L(xc(e));return UD(i,{flags:t,id:UC,prefix:n,suffix:r}),UC++,i}function j(e){return t.createBaseTokenNode(e)}function M(e){gn.assert(e>=0&&e<=165,"Invalid token"),gn.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),gn.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),gn.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=j(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function B(){return M(110)}function J(){return M(106)}function $(){return M(112)}function q(){return M(97)}function U(e){return M(e)}function V(e){const t=[];return 32&e&&t.push(U(95)),128&e&&t.push(U(138)),2048&e&&t.push(U(90)),4096&e&&t.push(U(87)),1&e&&t.push(U(125)),2&e&&t.push(U(123)),4&e&&t.push(U(124)),64&e&&t.push(U(128)),256&e&&t.push(U(126)),16&e&&t.push(U(164)),8&e&&t.push(U(148)),512&e&&t.push(U(129)),1024&e&&t.push(U(134)),8192&e&&t.push(U(103)),16384&e&&t.push(U(147)),t.length?t:void 0}function W(e,t){const n=x(166);return n.left=e,n.right=Ni(t),n.transformFlags|=ZC(n.left)|YC(n.right),n.flowNode=void 0,n}function H(e){const t=x(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|ZC(t.expression),t}function G(e,t,n,r){const i=S(168);return i.modifiers=Fi(e),i.name=Ni(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function K(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Oi(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){const a=S(169);return a.modifiers=Fi(e),a.dotDotDotToken=t,a.name=Ni(n),a.questionToken=r,a.type=i,a.initializer=Ai(o),gv(a.name)?a.transformFlags=1:a.transformFlags=eD(a.modifiers)|ZC(a.dotDotDotToken)|QC(a.name)|ZC(a.questionToken)|ZC(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&eb(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Oi(Q(t,n,r,i,o,a),e):e}function Z(e){const t=x(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|ZC(t.expression),t}function ee(e,t,n,r){const i=S(171);return i.modifiers=Fi(e),i.name=Ni(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function te(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((o=ee(t,n,r,i))!==(a=e)&&(o.initializer=a.initializer),Oi(o,a)):e;var o,a}function ne(e,t,n,r,i){const o=S(172);o.modifiers=Fi(e),o.name=Ni(t),o.questionToken=n&&Ww(n)?n:void 0,o.exclamationToken=n&&Vw(n)?n:void 0,o.type=r,o.initializer=Ai(i);const a=33554432&o.flags||128&eb(o.modifiers);return o.transformFlags=eD(o.modifiers)|QC(o.name)|ZC(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(dE(o.name)||256&eb(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function re(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&Ww(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&Vw(r)?r:void 0)||e.type!==i||e.initializer!==o?Oi(ne(t,n,r,i,o),e):e}function ie(e,t,n,r,i,o){const a=S(173);return a.modifiers=Fi(e),a.name=Ni(t),a.questionToken=n,a.typeParameters=Fi(r),a.parameters=Fi(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function oe(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(ie(t,n,r,i,o,a),e):e}function ae(e,t,n,r,i,o,a,s){const c=S(174);if(c.modifiers=Fi(e),c.asteriskToken=t,c.name=Ni(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Fi(i),c.parameters=b(o),c.type=a,c.body=s,c.body){const e=1024&eb(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=eD(c.modifiers)|ZC(c.asteriskToken)|QC(c.name)|ZC(c.questionToken)|eD(c.typeParameters)|eD(c.parameters)|ZC(c.type)|-67108865&ZC(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function se(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?((l=ae(t,n,r,i,o,a,s,c))!==(u=e)&&(l.exclamationToken=u.exclamationToken),Oi(l,u)):e;var l,u}function ce(e){const t=S(175);return t.body=e,t.transformFlags=16777216|ZC(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function ue(e,t,n){const r=S(176);return r.modifiers=Fi(e),r.parameters=b(t),r.body=n,r.body?r.transformFlags=eD(r.modifiers)|eD(r.parameters)|-67108865&ZC(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function _e(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=ue(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),T(i,o)):e;var i,o}function de(e,t,n,r,i){const o=S(177);return o.modifiers=Fi(e),o.name=Ni(t),o.parameters=b(n),o.type=r,o.body=i,o.body?o.transformFlags=eD(o.modifiers)|QC(o.name)|eD(o.parameters)|ZC(o.type)|-67108865&ZC(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=de(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),T(a,s)):e;var a,s}function fe(e,t,n,r){const i=S(178);return i.modifiers=Fi(e),i.name=Ni(t),i.parameters=b(n),i.body=r,i.body?i.transformFlags=eD(i.modifiers)|QC(i.name)|eD(i.parameters)|-67108865&ZC(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function me(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=fe(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),T(o,a)):e;var o,a}function ge(e,t,n){const r=S(179);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=S(180);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n){const r=S(181);return r.modifiers=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ve(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(ye(t,n,r),e):e}function be(e,t){const n=x(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function xe(e,t,n){const r=x(182);return r.assertsModifier=e,r.parameterName=Ni(t),r.type=n,r.transformFlags=1,r}function Se(e,t){const n=x(183);return n.typeName=Ni(e),n.typeArguments=t&&r().parenthesizeTypeArguments(b(t)),n.transformFlags=1,n}function Te(e,t,n){const r=S(184);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function De(...e){return 4===e.length?we(...e):3===e.length?function(e,t,n){return we(void 0,e,t,n)}(...e):gn.fail("Incorrect number of arguments specified.")}function we(e,t,n,r){const i=S(185);return i.modifiers=Fi(e),i.typeParameters=Fi(t),i.parameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ee(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(De(t,n,r,i),e):e}function Fe(e,t){const n=x(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ne(e){const t=S(187);return t.members=b(e),t.transformFlags=1,t}function Ae(e){const t=x(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=x(189);return t.elements=b(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Re(e){const t=x(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function je(e){const t=x(191);return t.type=e,t.transformFlags=1,t}function Me(e,t,n){const r=x(e);return r.types=v.createNodeArray(n(t)),r.transformFlags=1,r}function Be(e,t,n){return e.types!==t?Oi(Me(e.kind,t,n),e):e}function Je(e,t,n,i){const o=x(194);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function ze(e){const t=x(195);return t.typeParameter=e,t.transformFlags=1,t}function $e(e,t){const n=x(203);return n.head=e,n.templateSpans=b(t),n.transformFlags=1,n}function qe(e,t,n,i,o=!1){const a=x(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ue(e){const t=x(196);return t.type=e,t.transformFlags=1,t}function Ve(e,t){const n=x(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function We(e,t){const n=x(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&b(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ge(e){const t=x(201);return t.literal=e,t.transformFlags=1,t}function Ke(e){const t=x(206);return t.elements=b(e),t.transformFlags|=525312|eD(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=x(207);return t.elements=b(e),t.transformFlags|=525312|eD(t.elements),t}function Qe(e,t,n,r){const i=S(208);return i.dotDotDotToken=e,i.propertyName=Ni(t),i.name=Ni(n),i.initializer=Ai(r),i.transformFlags|=ZC(i.dotDotDotToken)|QC(i.propertyName)|QC(i.name)|ZC(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ye(e,t){const n=x(209),i=e&&ke(e),o=b(e,!(!i||!kF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=eD(n.elements),n}function Ze(e,t){const n=S(210);return n.properties=b(e),n.multiLine=t,n.transformFlags|=eD(n.properties),n.jsDoc=void 0,n}function et(e,t,n){const r=S(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=ZC(r.expression)|ZC(r.questionDotToken)|(Xw(r.name)?YC(r.name):536870912|ZC(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function tt(e,t){const n=et(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ni(t));return cE(e)&&(n.transformFlags|=384),n}function rt(e,t,n){const i=et(r().parenthesizeLeftSideOfAccess(e,!0),t,Ni(n));return i.flags|=64,i.transformFlags|=32,i}function it(e,t,n,r){return gn.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Oi(rt(t,n,r),e):e}function ot(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=ZC(r.expression)|ZC(r.questionDotToken)|ZC(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function at(e,t){const n=ot(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Pi(t));return cE(e)&&(n.transformFlags|=384),n}function ct(e,t,n){const i=ot(r().parenthesizeLeftSideOfAccess(e,!0),t,Pi(n));return i.flags|=64,i.transformFlags|=32,i}function lt(e,t,n,r){return gn.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Oi(ct(t,n,r),e):e}function _t(e,t,n,r){const i=S(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=ZC(i.expression)|ZC(i.questionDotToken)|eD(i.typeArguments)|eD(i.arguments),i.typeArguments&&(i.transformFlags|=1),pm(i.expression)&&(i.transformFlags|=16384),i}function pt(e,t,n){const i=_t(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Fi(t),r().parenthesizeExpressionsOfCommaDelimitedList(b(n)));return lE(i.expression)&&(i.transformFlags|=8388608),i}function ft(e,t,n,i){const o=_t(r().parenthesizeLeftSideOfAccess(e,!0),t,Fi(n),r().parenthesizeExpressionsOfCommaDelimitedList(b(i)));return o.flags|=64,o.transformFlags|=32,o}function mt(e,t,n,r,i){return gn.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Oi(ft(t,n,r,i),e):e}function gt(e,t,n){const i=S(214);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Fi(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=ZC(i.expression)|eD(i.typeArguments)|eD(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=x(215);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Fi(t),i.template=n,i.transformFlags|=ZC(i.tag)|eD(i.typeArguments)|ZC(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),xy(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=x(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=ZC(n.expression)|ZC(n.type)|1,n}function xt(e,t,n){return e.type!==t||e.expression!==n?Oi(bt(t,n),e):e}function St(e){const t=x(217);return t.expression=e,t.transformFlags=ZC(t.expression),t.jsDoc=void 0,t}function kt(e,t){return e.expression!==t?Oi(St(t),e):e}function Tt(e,t,n,r,i,o,a){const s=S(218);s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ni(n),s.typeParameters=Fi(r),s.parameters=b(i),s.type=o,s.body=a;const c=1024&eb(s.modifiers),l=!!s.asteriskToken,u=c&&l;return s.transformFlags=eD(s.modifiers)|ZC(s.asteriskToken)|QC(s.name)|eD(s.typeParameters)|eD(s.parameters)|ZC(s.type)|-67108865&ZC(s.body)|(u?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Ct(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(Tt(t,n,r,i,o,a,s),e):e}function Dt(e,t,n,i,o,a){const s=S(219);s.modifiers=Fi(e),s.typeParameters=Fi(t),s.parameters=b(n),s.type=i,s.equalsGreaterThanToken=o??M(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&eb(s.modifiers);return s.transformFlags=eD(s.modifiers)|eD(s.typeParameters)|eD(s.parameters)|ZC(s.type)|ZC(s.equalsGreaterThanToken)|-67108865&ZC(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function wt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(Dt(t,n,r,i,o,a),e):e}function Et(e){const t=x(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ZC(t.expression),t}function Ft(e){const t=x(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ZC(t.expression),t}function Nt(e){const t=x(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ZC(t.expression),t}function Pt(e){const t=x(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|ZC(t.expression),t}function At(e,t){const n=x(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=ZC(n.operand),46!==e&&47!==e||!Xw(n.operand)||Yl(n.operand)||sA(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=x(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=ZC(n.operand),!Xw(n.operand)||Yl(n.operand)||sA(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(226),o="number"==typeof(a=t)?M(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=ZC(i.left)|ZC(i.operatorToken)|ZC(i.right),61===s?i.transformFlags|=32:64===s?tF(i.left)?i.transformFlags|=5248|Lt(i.left):eF(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:ib(s)&&(i.transformFlags|=16),103===s&&Qw(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return pI(e)?65536:0}function Rt(e,t,n,i,o){const a=x(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??M(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??M(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=ZC(a.condition)|ZC(a.questionToken)|ZC(a.whenTrue)|ZC(a.colonToken)|ZC(a.whenFalse),a}function jt(e,t){const n=x(228);return n.head=e,n.templateSpans=b(t),n.transformFlags|=ZC(n.head)|eD(n.templateSpans)|1024,n}function Mt(e,t,n,r=0){let i;if(gn.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch($C||($C=ks(99,!1,0)),e){case 15:$C.setText("`"+t+"`");break;case 16:$C.setText("`"+t+"${");break;case 17:$C.setText("}"+t+"${");break;case 18:$C.setText("}"+t+"`")}let n,r=$C.scan();if(20===r&&(r=$C.reScanTemplateToken(!1)),$C.isUnterminated())return $C.setText(void 0),XC;switch(r){case 15:case 16:case 17:case 18:n=$C.getTokenValue()}return void 0===n||1!==$C.scan()?($C.setText(void 0),XC):($C.setText(void 0),n)}(e,n),"object"==typeof i))return gn.fail("Invalid raw text");if(void 0===t){if(void 0===i)return gn.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&gn.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Bt(e){let t=1024;return e&&(t|=128),t}function Jt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}function zt(e,t,n,r){return 15===e?Jt(e,t,n,r):function(e,t,n,r){const i=j(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}(e,t,n,r)}function $t(e,t){gn.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=x(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=ZC(n.expression)|ZC(n.asteriskToken)|1049728,n}function qt(e){const t=x(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|ZC(t.expression),t}function Ut(e,t,n,r,i){const o=S(231);return o.modifiers=Fi(e),o.name=Ni(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=b(i),o.transformFlags|=eD(o.modifiers)|QC(o.name)|eD(o.typeParameters)|eD(o.heritageClauses)|eD(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Vt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Ut(t,n,r,i,o),e):e}function Wt(e,t){const n=x(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=ZC(n.expression)|eD(n.typeArguments)|1024,n}function Ht(e,t,n){return e.expression!==t||e.typeArguments!==n?Oi(Wt(t,n),e):e}function Gt(e,t){const n=x(234);return n.expression=e,n.type=t,n.transformFlags|=ZC(n.expression)|ZC(n.type)|1,n}function Kt(e,t,n){return e.expression!==t||e.type!==n?Oi(Gt(t,n),e):e}function Xt(e){const t=x(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|ZC(t.expression),t}function Qt(e,t){return Pl(e)?nn(e,t):e.expression!==t?Oi(Xt(t),e):e}function Yt(e,t){const n=x(238);return n.expression=e,n.type=t,n.transformFlags|=ZC(n.expression)|ZC(n.type)|1,n}function Zt(e,t,n){return e.expression!==t||e.type!==n?Oi(Yt(t,n),e):e}function tn(e){const t=x(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|ZC(t.expression),t}function nn(e,t){return gn.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Oi(tn(t),e):e}function rn(e,t){const n=x(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=ZC(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return gn.assertNever(e)}return n.flowNode=void 0,n}function on(e,t){const n=x(239);return n.expression=e,n.literal=t,n.transformFlags|=ZC(n.expression)|ZC(n.literal)|1024,n}function an(e,t){const n=x(241);return n.statements=b(e),n.multiLine=t,n.transformFlags|=eD(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=x(243);return n.modifiers=Fi(e),n.declarationList=nt(t)?En(t):t,n.transformFlags|=eD(n.modifiers)|ZC(n.declarationList),128&eb(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function cn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Oi(sn(t,n),e):e}function ln(){const e=x(242);return e.jsDoc=void 0,e}function un(e){const t=x(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=ZC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function _n(e,t,n){const r=x(245);return r.expression=e,r.thenStatement=Ii(t),r.elseStatement=Ii(n),r.transformFlags|=ZC(r.expression)|ZC(r.thenStatement)|ZC(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function dn(e,t){const n=x(246);return n.statement=Ii(e),n.expression=t,n.transformFlags|=ZC(n.statement)|ZC(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function pn(e,t){const n=x(247);return n.expression=e,n.statement=Ii(t),n.transformFlags|=ZC(n.expression)|ZC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t,n,r){const i=x(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ii(r),i.transformFlags|=ZC(i.initializer)|ZC(i.condition)|ZC(i.incrementor)|ZC(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function mn(e,t,n){const r=x(249);return r.initializer=e,r.expression=t,r.statement=Ii(n),r.transformFlags|=ZC(r.initializer)|ZC(r.expression)|ZC(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function hn(e,t,n,i){const o=x(250);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ii(i),o.transformFlags|=ZC(o.awaitModifier)|ZC(o.initializer)|ZC(o.expression)|ZC(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function yn(e){const t=x(251);return t.label=Ni(e),t.transformFlags|=4194304|ZC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=x(252);return t.label=Ni(e),t.transformFlags|=4194304|ZC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=x(253);return t.expression=e,t.transformFlags|=4194432|ZC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=x(254);return n.expression=e,n.statement=Ii(t),n.transformFlags|=ZC(n.expression)|ZC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Sn(e,t){const n=x(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=ZC(n.expression)|ZC(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function kn(e,t){const n=x(256);return n.label=Ni(e),n.statement=Ii(t),n.transformFlags|=ZC(n.label)|ZC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Tn(e,t,n){return e.label!==t||e.statement!==n?Oi(kn(t,n),e):e}function Cn(e){const t=x(257);return t.expression=e,t.transformFlags|=ZC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function Dn(e,t,n){const r=x(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=ZC(r.tryBlock)|ZC(r.catchClause)|ZC(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function wn(e,t,n,r){const i=S(260);return i.name=Ni(e),i.exclamationToken=t,i.type=n,i.initializer=Ai(r),i.transformFlags|=QC(i.name)|ZC(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function En(e,t=0){const n=x(261);return n.flags|=7&t,n.declarations=b(e),n.transformFlags|=4194304|eD(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Fn(e,t,n,r,i,o,a){const s=S(262);if(s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ni(n),s.typeParameters=Fi(r),s.parameters=b(i),s.type=o,s.body=a,!s.body||128&eb(s.modifiers))s.transformFlags=1;else{const e=1024&eb(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=eD(s.modifiers)|ZC(s.asteriskToken)|QC(s.name)|eD(s.typeParameters)|eD(s.parameters)|ZC(s.type)|-67108865&ZC(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Nn(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Fn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),T(c,l)):e;var c,l}function Pn(e,t,n,r,i){const o=S(263);return o.modifiers=Fi(e),o.name=Ni(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=b(i),128&eb(o.modifiers)?o.transformFlags=1:(o.transformFlags|=eD(o.modifiers)|QC(o.name)|eD(o.typeParameters)|eD(o.heritageClauses)|eD(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Pn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=S(264);return o.modifiers=Fi(e),o.name=Ni(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=b(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=S(265);return i.modifiers=Fi(e),i.name=Ni(t),i.typeParameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Rn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Oi(Ln(t,n,r,i),e):e}function jn(e,t,n){const r=S(266);return r.modifiers=Fi(e),r.name=Ni(t),r.members=b(n),r.transformFlags|=eD(r.modifiers)|ZC(r.name)|eD(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Mn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Oi(jn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=S(267);return i.modifiers=Fi(e),i.flags|=2088&r,i.name=t,i.body=n,128&eb(i.modifiers)?i.transformFlags=1:i.transformFlags|=eD(i.modifiers)|ZC(i.name)|ZC(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Oi(Bn(t,n,r,e.flags),e):e}function zn(e){const t=x(268);return t.statements=b(e),t.transformFlags|=eD(t.statements),t.jsDoc=void 0,t}function $n(e){const t=x(269);return t.clauses=b(e),t.transformFlags|=eD(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function qn(e){const t=S(270);return t.name=Ni(e),t.transformFlags|=1|YC(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Un(e,t,n,r){const i=S(271);return i.modifiers=Fi(e),i.name=Ni(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=eD(i.modifiers)|YC(i.name)|ZC(i.moduleReference),NN(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Vn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Oi(Un(t,n,r,i),e):e}function Wn(e,t,n,r){const i=x(272);return i.modifiers=Fi(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=ZC(i.importClause)|ZC(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi(Wn(t,n,r,i),e):e}function Gn(e,t,n){const r=S(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=ZC(r.name)|ZC(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Kn(e,t){const n=x(300);return n.elements=b(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=x(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=x(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=x(300);return r.token=n??118,r.elements=b(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=x(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(274);return t.name=e,t.transformFlags|=ZC(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(280);return t.name=e,t.transformFlags|=32|ZC(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=x(275);return t.elements=b(e),t.transformFlags|=eD(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=ZC(r.propertyName)|ZC(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(277);return i.modifiers=Fi(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=eD(i.modifiers)|ZC(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Oi(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=S(278);return o.modifiers=Fi(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=eD(o.modifiers)|ZC(o.exportClause)|ZC(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?((a=ar(t,n,r,i,o))!==(s=e)&&a.modifiers===s.modifiers&&(a.modifiers=s.modifiers),Oi(a,s)):e;var a,s}function cr(e){const t=x(279);return t.elements=b(e),t.transformFlags|=eD(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=x(281);return r.isTypeOnly=e,r.propertyName=Ni(t),r.name=Ni(n),r.transformFlags|=ZC(r.propertyName)|ZC(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function ur(e){const t=x(283);return t.expression=e,t.transformFlags|=ZC(t.expression),t.transformFlags&=-67108865,t}function _r(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=x(e);return n.type=t,n}function pr(e,t){const n=S(317);return n.parameters=Fi(e),n.type=t,n.transformFlags=eD(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=S(322);return n.jsDocPropertyTags=Fi(e),n.isArrayType=t,n}function mr(e){const t=x(309);return t.type=e,t}function gr(e,t,n){const r=S(323);return r.typeParameters=Fi(e),r.parameters=b(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=KC(e.kind);return e.tagName.escapedText===xc(t)?e.tagName:A(t)}function yr(e,t,n){const r=x(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(345,e??A("template"),r);return i.constraint=t,i.typeParameters=b(n),i}function xr(e,t,n,r){const i=vr(346,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=IA(n),i.locals=void 0,i.nextContainer=void 0,i}function Sr(e,t,n,r,i,o){const a=vr(341,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function kr(e,t,n,r,i,o){const a=vr(348,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(338,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=IA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(339,e??A("overload"),n);return r.typeExpression=t,r}function Dr(e,t,n){const r=yr(328,e??A("augments"),n);return r.class=t,r}function wr(e,t,n){const r=yr(329,e??A("implements"),n);return r.class=t,r}function Er(e,t,n){const r=yr(347,e??A("see"),n);return r.name=t,r}function Fr(e){const t=x(310);return t.name=e,t}function Nr(e,t){const n=x(311);return n.left=e,n.right=t,n.transformFlags|=ZC(n.left)|ZC(n.right),n}function Pr(e,t){const n=x(324);return n.name=e,n.text=t,n}function Ar(e,t){const n=x(325);return n.name=e,n.text=t,n}function Ir(e,t){const n=x(326);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(KC(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(KC(e)),r);return i.typeExpression=n,i}function Rr(e,t){return yr(327,e,t)}function jr(e,t,n){const r=vr(340,e??A(KC(340)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Mr(e,t,n,r,i){const o=yr(351,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=x(321);return t.text=e,t}function Jr(e,t){const n=x(320);return n.comment=e,n.tags=Fi(t),n}function zr(e,t,n){const r=x(284);return r.openingElement=e,r.children=b(t),r.closingElement=n,r.transformFlags|=ZC(r.openingElement)|eD(r.children)|ZC(r.closingElement)|2,r}function $r(e,t,n){const r=x(285);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=ZC(r.tagName)|eD(r.typeArguments)|ZC(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function qr(e,t,n){const r=x(286);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=ZC(r.tagName)|eD(r.typeArguments)|ZC(r.attributes)|2,t&&(r.transformFlags|=1),r}function Ur(e){const t=x(287);return t.tagName=e,t.transformFlags|=2|ZC(t.tagName),t}function Vr(e,t,n){const r=x(288);return r.openingFragment=e,r.children=b(t),r.closingFragment=n,r.transformFlags|=ZC(r.openingFragment)|eD(r.children)|ZC(r.closingFragment)|2,r}function Wr(e,t){const n=x(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=S(291);return n.name=e,n.initializer=t,n.transformFlags|=ZC(n.name)|ZC(n.initializer)|2,n}function Gr(e){const t=S(292);return t.properties=b(e),t.transformFlags|=2|eD(t.properties),t}function Kr(e){const t=x(293);return t.expression=e,t.transformFlags|=2|ZC(t.expression),t}function Xr(e,t){const n=x(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=ZC(n.dotDotDotToken)|ZC(n.expression)|2,n}function Qr(e,t){const n=x(295);return n.namespace=e,n.name=t,n.transformFlags|=ZC(n.namespace)|ZC(n.name)|2,n}function Yr(e,t){const n=x(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=b(t),n.transformFlags|=ZC(n.expression)|eD(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=x(297);return t.statements=b(e),t.transformFlags=eD(t.statements),t}function ei(e,t){const n=x(298);switch(n.token=e,n.types=b(t),n.transformFlags|=eD(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return gn.assertNever(e)}return n}function ti(e,t){const n=x(299);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!ZF(e)?wn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=ZC(n.variableDeclaration)|ZC(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(303);return n.name=Ni(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=QC(n.name)|ZC(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?((r=ni(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken),Oi(r,i)):e;var r,i}function ii(e,t){const n=S(304);return n.name=Ni(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=YC(n.name)|ZC(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=S(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|ZC(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(306);return n.name=Ni(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=ZC(n.name)|ZC(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(307);n.flags|=-17&e.flags;for(const t in e)!Ie(n,t)&&Ie(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=x(308);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function ui(e,t){const n=x(355);return n.expression=e,n.original=t,n.transformFlags|=1|ZC(n.expression),fI(n,t),n}function _i(e,t){return e.expression!==t?Oi(ui(t,e.original),e):e}function di(e){if(sy(e)&&!vc(e)&&!e.original&&!e.emitNode&&!e.id){if(PF(e))return e.elements;if(hF(e)&&zw(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=x(356);return t.elements=b(z(e,di)),t.transformFlags|=eD(t.elements),t}function fi(e,t){const n=x(357);return n.expression=e,n.thisArg=t,n.transformFlags|=ZC(n.expression)|ZC(n.thisArg),n}function mi(e){if(void 0===e)return e;if(QN(e))return ci(e);if(Yl(e))return function(e){const t=N(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),UD(t,{...e.emitNode.autoGenerate}),t}(e);if(Xw(e))return function(e){const t=N(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=qD(e);return r&&$D(t,r),t}(e);if(Zl(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),UD(t,{...e.emitNode.autoGenerate}),t}(e);if(Qw(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Ll(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!Ie(r,t)&&Ie(e,t)&&(r[t]=e[t]);return r}function gi(){return Nt(C("0"))}function hi(e,t,n){return kl(e)?ft(rt(e,void 0,t),void 0,void 0,n):pt(tt(e,t),void 0,n)}function yi(e,t,n){return hi(A(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=ph(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Pc(e):Ac(e);if(o&&Xw(o)&&!Yl(o)){const e=LT(fI(mi(o),o),o.parent);return r|=op(o),n||(r|=96),t||(r|=3072),r&&_D(e,r),e}return O(e)}function Si(e,t,n){return xi(e,t,n,16384)}function ki(e,t,n,r){const i=tt(e,sy(t)?t:mi(t));fI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&_D(i,o),i}function Ti(e){return Iw(e.expression)&&"use strict"===e.expression.text}function Ci(){return vA(un(E("use strict")))}function Di(e,t,n=0,r){gn.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 355:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}(e.kind);return Nc(e)&&cu(e.name)?function(e,t){return t|134234112&e.transformFlags}(e.name,t):t}function eD(e){return e?e.transformFlags:0}function tD(e){let t=0;for(const n of e)t|=ZC(n);e.transformFlags=t}var nD=MC();function rD(e){return e.flags|=16,e}var iD,oD=GC(4,{createBaseSourceFileNode:e=>rD(nD.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>rD(nD.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>rD(nD.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>rD(nD.createBaseTokenNode(e)),createBaseNode:e=>rD(nD.createBaseNode(e))});function aD(e,t,n){return new(iD||(iD=Vx.getSourceMapSourceConstructor()))(e,t,n)}function sD(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:u,startsOnNewLine:_,snippetElement:d,classThis:p,assignedName:f}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=de(i.slice(),t.leadingComments)),o&&(t.trailingComments=de(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),u)for(const e of u)t.helpers=fe(t.helpers,e);return void 0!==_&&(t.startsOnNewLine=_),void 0!==d&&(t.snippetElement=d),p&&(t.classThis=p),f&&(t.assignedName=f),t}(n,e.emitNode))}return e}function cD(e){if(e.emitNode)gn.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(vc(e)){if(307===e.kind)return e.emitNode={annotatedNodes:[e]};cD(Cd(bc(Cd(e)))??gn.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function lD(e){var t,n;const r=null==(n=null==(t=Cd(bc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function uD(e){const t=cD(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function _D(e,t){return cD(e).flags=t,e}function dD(e,t){const n=cD(e);return n.flags=n.flags|t,e}function pD(e,t){return cD(e).internalFlags=t,e}function fD(e,t){const n=cD(e);return n.internalFlags=n.internalFlags|t,e}function mD(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function gD(e,t){return cD(e).sourceMapRange=t,e}function hD(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function yD(e,t,n){const r=cD(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function vD(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function bD(e,t){return cD(e).startsOnNewLine=t,e}function xD(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function SD(e,t){return cD(e).commentRange=t,e}function kD(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function TD(e,t){return cD(e).leadingComments=t,e}function CD(e,t,n,r){return TD(e,le(kD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function DD(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function wD(e,t){return cD(e).trailingComments=t,e}function ED(e,t,n,r){return wD(e,le(DD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function FD(e,t){TD(e,kD(t)),wD(e,DD(t));const n=cD(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function ND(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function PD(e,t){return cD(e).constantValue=t,e}function AD(e,t){const n=cD(e);return n.helpers=le(n.helpers,t),e}function ID(e,t){if(X(t)){const n=cD(e);for(const e of t)n.helpers=fe(n.helpers,e)}return e}function OD(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&Wt(r,t)}function LD(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function RD(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!X(i))return;const o=cD(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function jD(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function MD(e,t){return cD(e).snippetElement=t,e}function BD(e){return cD(e).internalFlags|=4,e}function JD(e,t){return cD(e).typeNode=t,e}function zD(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function $D(e,t){return cD(e).identifierTypeArguments=t,e}function qD(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function UD(e,t){return cD(e).autoGenerate=t,e}function VD(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function WD(e,t){return cD(e).generatedImportReference=t,e}function HD(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var GD=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(GD||{});function KD(e){const t=e.factory,n=ht((()=>pD(t.createTrue(),8))),r=ht((()=>pD(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(YD);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(ZD),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(ew),fI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(tw),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(nw),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return DS(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(rw),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(iw),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(iw),e.requestEmitHelper(ow),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(iw),e.requestEmitHelper(aw),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(sw),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(cw);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;i= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},ZD={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},ew={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},tw={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},nw={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},rw={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},iw={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},ow={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[iw],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},aw={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[iw],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},sw={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},cw={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},lw={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},uw={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},_w={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},dw={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},pw={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},fw={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},mw={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},gw={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},hw={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},yw={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},vw={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[yw,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},bw={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},xw={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[yw],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},Sw={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},kw={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},Tw={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},Cw={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},Dw={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},ww={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},Ew={name:"typescript:async-super",scoped:!0,text:QD` const ${"_superIndex"} = name => super[name];`},Fw={name:"typescript:advanced-async-super",scoped:!0,text:QD` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`};function Nw(e,t){return iF(e)&&Xw(e.expression)&&!!(8192&op(e.expression))&&e.expression.escapedText===t}function Pw(e){return 9===e.kind}function Aw(e){return 10===e.kind}function Iw(e){return 11===e.kind}function Ow(e){return 12===e.kind}function Lw(e){return 14===e.kind}function Rw(e){return 15===e.kind}function jw(e){return 16===e.kind}function Mw(e){return 17===e.kind}function Bw(e){return 18===e.kind}function Jw(e){return 26===e.kind}function zw(e){return 28===e.kind}function $w(e){return 40===e.kind}function qw(e){return 41===e.kind}function Uw(e){return 42===e.kind}function Vw(e){return 54===e.kind}function Ww(e){return 58===e.kind}function Hw(e){return 59===e.kind}function Gw(e){return 29===e.kind}function Kw(e){return 39===e.kind}function Xw(e){return 80===e.kind}function Qw(e){return 81===e.kind}function Yw(e){return 95===e.kind}function Zw(e){return 90===e.kind}function eE(e){return 134===e.kind}function tE(e){return 131===e.kind}function nE(e){return 135===e.kind}function rE(e){return 148===e.kind}function iE(e){return 126===e.kind}function oE(e){return 128===e.kind}function aE(e){return 164===e.kind}function sE(e){return 129===e.kind}function cE(e){return 108===e.kind}function lE(e){return 102===e.kind}function uE(e){return 84===e.kind}function _E(e){return 166===e.kind}function dE(e){return 167===e.kind}function pE(e){return 168===e.kind}function fE(e){return 169===e.kind}function mE(e){return 170===e.kind}function gE(e){return 171===e.kind}function hE(e){return 172===e.kind}function yE(e){return 173===e.kind}function vE(e){return 174===e.kind}function bE(e){return 175===e.kind}function xE(e){return 176===e.kind}function SE(e){return 177===e.kind}function kE(e){return 178===e.kind}function TE(e){return 179===e.kind}function CE(e){return 180===e.kind}function DE(e){return 181===e.kind}function wE(e){return 182===e.kind}function EE(e){return 183===e.kind}function FE(e){return 184===e.kind}function NE(e){return 185===e.kind}function PE(e){return 186===e.kind}function AE(e){return 187===e.kind}function IE(e){return 188===e.kind}function OE(e){return 189===e.kind}function LE(e){return 202===e.kind}function RE(e){return 190===e.kind}function jE(e){return 191===e.kind}function ME(e){return 192===e.kind}function BE(e){return 193===e.kind}function JE(e){return 194===e.kind}function zE(e){return 195===e.kind}function $E(e){return 196===e.kind}function qE(e){return 197===e.kind}function UE(e){return 198===e.kind}function VE(e){return 199===e.kind}function WE(e){return 200===e.kind}function HE(e){return 201===e.kind}function GE(e){return 205===e.kind}function KE(e){return 204===e.kind}function XE(e){return 203===e.kind}function QE(e){return 206===e.kind}function YE(e){return 207===e.kind}function ZE(e){return 208===e.kind}function eF(e){return 209===e.kind}function tF(e){return 210===e.kind}function nF(e){return 211===e.kind}function rF(e){return 212===e.kind}function iF(e){return 213===e.kind}function oF(e){return 214===e.kind}function aF(e){return 215===e.kind}function sF(e){return 216===e.kind}function cF(e){return 217===e.kind}function lF(e){return 218===e.kind}function uF(e){return 219===e.kind}function _F(e){return 220===e.kind}function dF(e){return 221===e.kind}function pF(e){return 222===e.kind}function fF(e){return 223===e.kind}function mF(e){return 224===e.kind}function gF(e){return 225===e.kind}function hF(e){return 226===e.kind}function yF(e){return 227===e.kind}function vF(e){return 228===e.kind}function bF(e){return 229===e.kind}function xF(e){return 230===e.kind}function SF(e){return 231===e.kind}function kF(e){return 232===e.kind}function TF(e){return 233===e.kind}function CF(e){return 234===e.kind}function DF(e){return 238===e.kind}function wF(e){return 235===e.kind}function EF(e){return 236===e.kind}function FF(e){return 237===e.kind}function NF(e){return 355===e.kind}function PF(e){return 356===e.kind}function AF(e){return 239===e.kind}function IF(e){return 240===e.kind}function OF(e){return 241===e.kind}function LF(e){return 243===e.kind}function RF(e){return 242===e.kind}function jF(e){return 244===e.kind}function MF(e){return 245===e.kind}function BF(e){return 246===e.kind}function JF(e){return 247===e.kind}function zF(e){return 248===e.kind}function $F(e){return 249===e.kind}function qF(e){return 250===e.kind}function UF(e){return 251===e.kind}function VF(e){return 252===e.kind}function WF(e){return 253===e.kind}function HF(e){return 254===e.kind}function GF(e){return 255===e.kind}function KF(e){return 256===e.kind}function XF(e){return 257===e.kind}function QF(e){return 258===e.kind}function YF(e){return 259===e.kind}function ZF(e){return 260===e.kind}function eN(e){return 261===e.kind}function tN(e){return 262===e.kind}function nN(e){return 263===e.kind}function rN(e){return 264===e.kind}function iN(e){return 265===e.kind}function oN(e){return 266===e.kind}function aN(e){return 267===e.kind}function sN(e){return 268===e.kind}function cN(e){return 269===e.kind}function lN(e){return 270===e.kind}function uN(e){return 271===e.kind}function _N(e){return 272===e.kind}function dN(e){return 273===e.kind}function pN(e){return 302===e.kind}function fN(e){return 300===e.kind}function mN(e){return 301===e.kind}function gN(e){return 300===e.kind}function hN(e){return 301===e.kind}function yN(e){return 274===e.kind}function vN(e){return 280===e.kind}function bN(e){return 275===e.kind}function xN(e){return 276===e.kind}function SN(e){return 277===e.kind}function kN(e){return 278===e.kind}function TN(e){return 279===e.kind}function CN(e){return 281===e.kind}function DN(e){return 80===e.kind||11===e.kind}function wN(e){return 282===e.kind}function EN(e){return 353===e.kind}function FN(e){return 357===e.kind}function NN(e){return 283===e.kind}function PN(e){return 284===e.kind}function AN(e){return 285===e.kind}function IN(e){return 286===e.kind}function ON(e){return 287===e.kind}function LN(e){return 288===e.kind}function RN(e){return 289===e.kind}function jN(e){return 290===e.kind}function MN(e){return 291===e.kind}function BN(e){return 292===e.kind}function JN(e){return 293===e.kind}function zN(e){return 294===e.kind}function $N(e){return 295===e.kind}function qN(e){return 296===e.kind}function UN(e){return 297===e.kind}function VN(e){return 298===e.kind}function WN(e){return 299===e.kind}function HN(e){return 303===e.kind}function GN(e){return 304===e.kind}function KN(e){return 305===e.kind}function XN(e){return 306===e.kind}function QN(e){return 307===e.kind}function YN(e){return 308===e.kind}function ZN(e){return 309===e.kind}function eP(e){return 310===e.kind}function tP(e){return 311===e.kind}function nP(e){return 324===e.kind}function rP(e){return 325===e.kind}function iP(e){return 326===e.kind}function oP(e){return 312===e.kind}function aP(e){return 313===e.kind}function sP(e){return 314===e.kind}function cP(e){return 315===e.kind}function lP(e){return 316===e.kind}function uP(e){return 317===e.kind}function _P(e){return 318===e.kind}function dP(e){return 319===e.kind}function pP(e){return 320===e.kind}function fP(e){return 322===e.kind}function mP(e){return 323===e.kind}function gP(e){return 328===e.kind}function hP(e){return 330===e.kind}function yP(e){return 332===e.kind}function vP(e){return 338===e.kind}function bP(e){return 333===e.kind}function xP(e){return 334===e.kind}function SP(e){return 335===e.kind}function kP(e){return 336===e.kind}function TP(e){return 337===e.kind}function CP(e){return 339===e.kind}function DP(e){return 331===e.kind}function wP(e){return 347===e.kind}function EP(e){return 340===e.kind}function FP(e){return 341===e.kind}function NP(e){return 342===e.kind}function PP(e){return 343===e.kind}function AP(e){return 344===e.kind}function IP(e){return 345===e.kind}function OP(e){return 346===e.kind}function LP(e){return 327===e.kind}function RP(e){return 348===e.kind}function jP(e){return 329===e.kind}function MP(e){return 350===e.kind}function BP(e){return 349===e.kind}function JP(e){return 351===e.kind}function zP(e){return 352===e.kind}var $P,qP=new WeakMap;function UP(e,t){var n;const r=e.kind;return Ll(r)?352===r?e._children:null==(n=qP.get(t))?void 0:n.get(e):u}function VP(e,t,n){352===e.kind&&gn.fail("Should not need to re-set the children of a SyntaxList.");let r=qP.get(t);return void 0===r&&(r=new WeakMap,qP.set(t,r)),r.set(e,n),n}function WP(e,t){var n;352===e.kind&&gn.fail("Did not expect to unset the children of a SyntaxList."),null==(n=qP.get(t))||n.delete(e)}function HP(e,t){const n=qP.get(e);void 0!==n&&(qP.delete(e),qP.set(t,n))}function GP(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function KP(e,t,n,r){if(dE(n))return fI(e.createElementAccessExpression(t,n.expression),r);{const r=fI(vl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return dD(r,128),r}}function XP(e,t){const n=yI.createIdentifier(e||"React");return LT(n,bc(t)),n}function QP(e,t,n){if(_E(t)){const r=QP(e,t.left,n),i=e.createIdentifier(kc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return XP(kc(t),n)}function YP(e,t,n,r){return t?QP(e,t,r):e.createPropertyAccessExpression(XP(n,r),"createElement")}function ZP(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)vA(e),a.push(e);else a.push(i[0]);return fI(e.createCallExpression(t,void 0,a),o)}function eA(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?QP(e,t,r):e.createPropertyAccessExpression(XP(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)vA(e),c.push(e);else c.push(i[0]);return fI(e.createCallExpression(YP(e,t,r,o),void 0,c),a)}function tA(e,t,n){if(eN(t)){const r=xe(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return fI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=fI(e.createAssignment(t,n),t);return fI(e.createExpressionStatement(r),t)}}function nA(e,t){if(_E(t)){const n=nA(e,t.left),r=LT(fI(e.cloneNode(t.right),t.right),t.right.parent);return fI(e.createPropertyAccessExpression(n,r),t)}return LT(fI(e.cloneNode(t),t),t.parent)}function rA(e,t){return Xw(t)?e.createStringLiteralFromNode(t):dE(t)?LT(fI(e.cloneNode(t.expression),t.expression),t.expression.parent):LT(fI(e.cloneNode(t),t),t.parent)}function iA(e,t,n,r){switch(n.name&&Qw(n.name)&&gn.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=bv(t,n);if(n===o)return fI(e.createObjectDefinePropertyCall(r,rA(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&fI(sD(e.createFunctionExpression(Lc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&fI(sD(e.createFunctionExpression(Lc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 303:return function(e,t,n){return sD(fI(e.createAssignment(KP(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return sD(fI(e.createAssignment(KP(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return sD(fI(e.createAssignment(KP(e,n,t.name,t.name),sD(fI(e.createFunctionExpression(Lc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function oA(e,t,n,r,i){const o=t.operator;gn.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);fI(n=e.createAssignment(a,n),t.operand);let s=mF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return fI(s,t),i&&(s=e.createAssignment(i,s),fI(s,t)),fI(n=e.createComma(n,s),t),gF(t)&&fI(n=e.createComma(n,a),t),n}function aA(e){return!!(65536&op(e))}function sA(e){return!!(32768&op(e))}function cA(e){return!!(16384&op(e))}function lA(e){return Iw(e.expression)&&"use strict"===e.expression.text}function uA(e){for(const t of e){if(!vf(t))break;if(lA(t))return t}}function _A(e){const t=ve(e);return void 0!==t&&vf(t)&&lA(t)}function dA(e){return 226===e.kind&&28===e.operatorToken.kind}function pA(e){return dA(e)||PF(e)}function fA(e){return cF(e)&&jm(e)&&!!cl(e)}function mA(e){const t=ll(e);return gn.assertIsDefined(t),t}function gA(e,t=31){switch(e.kind){case 217:return!(-2147483648&t&&fA(e)||!(1&t));case 216:case 234:case 238:return!!(2&t);case 233:return!!(16&t);case 235:return!!(4&t);case 355:return!!(8&t)}return!1}function hA(e,t=31){for(;gA(e,t);)e=e.expression;return e}function yA(e,t=31){let n=e.parent;for(;gA(n,t);)n=n.parent,gn.assert(n);return n}function vA(e){return bD(e,!0)}function bA(e){const t=hc(e,QN),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function xA(e){const t=hc(e,QN),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function SA(e,t,n,r,i,o,a){if(r.importHelpers&&kp(n,r)){const s=wS(r),c=jU(n,r),l=function(e){return P(LD(e),(e=>!e.scoped))}(n);if(s>=5&&s<=99||99===c||void 0===c&&200===s){if(l){const r=[];for(const e of l){const t=e.importName;t&&pe(r,t)}if(X(r)){r.sort(Nt);const i=e.createNamedImports(O(r,(r=>Ad(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))));cD(hc(n,QN)).externalHelpers=!0;const o=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,i),e.createStringLiteral(X_),void 0);return fD(o,2),o}}}else{const t=function(e,t,n,r,i,o){const a=bA(t);if(a)return a;const s=X(r)||(i||PS(n)&&o)&&RU(t,n)<4;if(s){const n=cD(hc(t,QN));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(X_))}}(e,n,r,l,i,o||a);if(t){const n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(X_)));return fD(n,2),n}}}}function kA(e,t,n){const r=Ng(t);if(r&&!Pg(t)&&!Qd(t)){const i=r.name;return 11===i.kind?e.getGeneratedNameForNode(t):Yl(i)?i:e.createIdentifier(Xd(n,i)||kc(i))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function TA(e,t,n,r,i,o){const a=Fg(t);if(a&&Iw(a))return function(e,t,n,r,i){return CA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function CA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(Gy(n,t.fileName)):void 0}function DA(e){if(Au(e))return e.initializer;if(HN(e)){const t=e.initializer;return _b(t,!0)?t.right:void 0}return GN(e)?e.objectAssignmentInitializer:_b(e,!0)?e.right:xF(e)?DA(e.expression):void 0}function wA(e){if(Au(e))return e.name;if(!Du(e))return _b(e,!0)?wA(e.left):xF(e)?wA(e.expression):e;switch(e.kind){case 303:return wA(e.initializer);case 304:return e.name;case 305:return wA(e.expression)}}function EA(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function FA(e){const t=NA(e);return gn.assert(!!t||KN(e),"Invalid property name for binding element."),t}function NA(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return Qw(t)?gn.failBadSyntaxKind(t):dE(t)&&PA(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return Qw(t)?gn.failBadSyntaxKind(t):dE(t)&&PA(t.expression)?t.expression:t}break;case 305:return e.name&&Qw(e.name)?gn.failBadSyntaxKind(e.name):e.name}const t=wA(e);if(t&&cu(t))return t}function PA(e){const t=e.kind;return 11===t||9===t}function AA(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function IA(e){if(e){let t=e;for(;;){if(Xw(t)||!t.body)return Xw(t)?t:t.name;t=t.body}}}function OA(e){const t=e.kind;return 176===t||178===t}function LA(e){const t=e.kind;return 176===t||177===t||178===t}function RA(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function jA(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function MA(e){return Ww(e)||Vw(e)}function BA(e){return Xw(e)||qE(e)}function JA(e){return rE(e)||$w(e)||qw(e)}function zA(e){return Ww(e)||$w(e)||qw(e)}function $A(e){return Xw(e)||Iw(e)}function qA(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function UA(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||qA(e)}(e)}function VA(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||UA(e)}(e)}function WA(e){return function(e){return 61===e||VA(e)||cb(e)}(e)||28===e}function HA(e){return WA(e.kind)}(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return gn.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,u){gn.assertEqual(r[t],n),gn.assertIsDefined(e.onLeft),r[t]=s(e,n);const _=e.onLeft(i[t].left,o[t],i[t]);return _?(l(t,i,_),c(t,r,i,o,_)):t}function r(e,t,n,i,o,a,c){return gn.assertEqual(n[t],r),gn.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,u){gn.assertEqual(n[t],i),gn.assertIsDefined(e.onRight),n[t]=s(e,i);const _=e.onRight(r[t].right,o[t],r[t]);return _?(l(t,r,_),c(t,n,r,o,_)):t}function o(e,t,n,r,i,a,c){gn.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return gn.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:gn.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(gn.shouldAssert(2))for(;e>=0;)gn.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})($P||($P={}));var GA,KA,XA,QA,YA,ZA=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}};function eI(e,t,n,r,i,o){const a=new ZA(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[$P.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==$P.done;)s=r[s](a,s,r,i,o,n,t);return gn.assertEqual(s,0),n.value}}function tI(e){return function(e){return 95===e||90===e}(e.kind)}function nI(e,t){if(void 0!==t)return 0===t.length?t:fI(e.createNodeArray([],t.hasTrailingComma),t)}function rI(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(vl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function iI(e,t){return"object"==typeof e?aI(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function oI(e,t){return"string"==typeof e?e:function(e,t){return Zl(e)?t(e).slice(1):Yl(e)?t(e):Qw(e)?e.escapedText.slice(1):kc(e)}(e,gn.checkDefined(t))}function aI(e,t,n,r,i){return t=iI(t,i),r=iI(r,i),`${e?"#":""}${t}${n=oI(n,i)}${r}`}function sI(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function cI(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function lI(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function uI(e){let t=e.expression;for(;;)if(t=hA(t),PF(t))t=Te(t.elements);else{if(!dA(t)){if(_b(t,!0)&&Yl(t.left))return t;break}t=t.right}}function _I(e,t){if(function(e){return cF(e)&&sy(e)&&!e.emitNode}(e))_I(e.expression,t);else if(dA(e))_I(e.left,t),_I(e.right,t);else if(PF(e))for(const n of e.elements)_I(n,t);else t.push(e)}function dI(e){const t=[];return _I(e,t),t}function pI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of AA(e)){const e=wA(t);if(e&&Nu(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&pI(e))return!0}}return!1}function fI(e,t){return t?AT(e,t.pos,t.end):e}function mI(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function gI(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var hI={createBaseSourceFileNode:e=>new(YA||(YA=Vx.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(XA||(XA=Vx.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(QA||(QA=Vx.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(KA||(KA=Vx.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(GA||(GA=Vx.getNodeConstructor()))(e,-1,-1)},yI=GC(1,hI);function vI(e,t){return t&&e(t)}function bI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function xI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function SI(e){return f(e.statements,kI)||function(e){return 8388608&e.flags?TI(e):void 0}(e)}function kI(e){return mI(e)&&function(e,t){return X(e.modifiers,(e=>e.kind===t))}(e,95)||uN(e)&&NN(e.moduleReference)||_N(e)||SN(e)||kN(e)?e:void 0}function TI(e){return function(e){return EF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:qI(e,TI)}var CI,DI={166:function(e,t,n){return vI(t,e.left)||vI(t,e.right)},168:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.constraint)||vI(t,e.default)||vI(t,e.expression)},304:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.questionToken)||vI(t,e.exclamationToken)||vI(t,e.equalsToken)||vI(t,e.objectAssignmentInitializer)},305:function(e,t,n){return vI(t,e.expression)},169:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.dotDotDotToken)||vI(t,e.name)||vI(t,e.questionToken)||vI(t,e.type)||vI(t,e.initializer)},172:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.questionToken)||vI(t,e.exclamationToken)||vI(t,e.type)||vI(t,e.initializer)},171:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.questionToken)||vI(t,e.type)||vI(t,e.initializer)},303:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.questionToken)||vI(t,e.exclamationToken)||vI(t,e.initializer)},260:function(e,t,n){return vI(t,e.name)||vI(t,e.exclamationToken)||vI(t,e.type)||vI(t,e.initializer)},208:function(e,t,n){return vI(t,e.dotDotDotToken)||vI(t,e.propertyName)||vI(t,e.name)||vI(t,e.initializer)},181:function(e,t,n){return bI(t,n,e.modifiers)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)},185:function(e,t,n){return bI(t,n,e.modifiers)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)},184:function(e,t,n){return bI(t,n,e.modifiers)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)},179:wI,180:wI,174:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.asteriskToken)||vI(t,e.name)||vI(t,e.questionToken)||vI(t,e.exclamationToken)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)||vI(t,e.body)},173:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.questionToken)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)},176:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)||vI(t,e.body)},177:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)||vI(t,e.body)},178:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)||vI(t,e.body)},262:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.asteriskToken)||vI(t,e.name)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)||vI(t,e.body)},218:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.asteriskToken)||vI(t,e.name)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)||vI(t,e.body)},219:function(e,t,n){return bI(t,n,e.modifiers)||bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)||vI(t,e.equalsGreaterThanToken)||vI(t,e.body)},175:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.body)},183:function(e,t,n){return vI(t,e.typeName)||bI(t,n,e.typeArguments)},182:function(e,t,n){return vI(t,e.assertsModifier)||vI(t,e.parameterName)||vI(t,e.type)},186:function(e,t,n){return vI(t,e.exprName)||bI(t,n,e.typeArguments)},187:function(e,t,n){return bI(t,n,e.members)},188:function(e,t,n){return vI(t,e.elementType)},189:function(e,t,n){return bI(t,n,e.elements)},192:EI,193:EI,194:function(e,t,n){return vI(t,e.checkType)||vI(t,e.extendsType)||vI(t,e.trueType)||vI(t,e.falseType)},195:function(e,t,n){return vI(t,e.typeParameter)},205:function(e,t,n){return vI(t,e.argument)||vI(t,e.attributes)||vI(t,e.qualifier)||bI(t,n,e.typeArguments)},302:function(e,t,n){return vI(t,e.assertClause)},196:FI,198:FI,199:function(e,t,n){return vI(t,e.objectType)||vI(t,e.indexType)},200:function(e,t,n){return vI(t,e.readonlyToken)||vI(t,e.typeParameter)||vI(t,e.nameType)||vI(t,e.questionToken)||vI(t,e.type)||bI(t,n,e.members)},201:function(e,t,n){return vI(t,e.literal)},202:function(e,t,n){return vI(t,e.dotDotDotToken)||vI(t,e.name)||vI(t,e.questionToken)||vI(t,e.type)},206:NI,207:NI,209:function(e,t,n){return bI(t,n,e.elements)},210:function(e,t,n){return bI(t,n,e.properties)},211:function(e,t,n){return vI(t,e.expression)||vI(t,e.questionDotToken)||vI(t,e.name)},212:function(e,t,n){return vI(t,e.expression)||vI(t,e.questionDotToken)||vI(t,e.argumentExpression)},213:PI,214:PI,215:function(e,t,n){return vI(t,e.tag)||vI(t,e.questionDotToken)||bI(t,n,e.typeArguments)||vI(t,e.template)},216:function(e,t,n){return vI(t,e.type)||vI(t,e.expression)},217:function(e,t,n){return vI(t,e.expression)},220:function(e,t,n){return vI(t,e.expression)},221:function(e,t,n){return vI(t,e.expression)},222:function(e,t,n){return vI(t,e.expression)},224:function(e,t,n){return vI(t,e.operand)},229:function(e,t,n){return vI(t,e.asteriskToken)||vI(t,e.expression)},223:function(e,t,n){return vI(t,e.expression)},225:function(e,t,n){return vI(t,e.operand)},226:function(e,t,n){return vI(t,e.left)||vI(t,e.operatorToken)||vI(t,e.right)},234:function(e,t,n){return vI(t,e.expression)||vI(t,e.type)},235:function(e,t,n){return vI(t,e.expression)},238:function(e,t,n){return vI(t,e.expression)||vI(t,e.type)},236:function(e,t,n){return vI(t,e.name)},227:function(e,t,n){return vI(t,e.condition)||vI(t,e.questionToken)||vI(t,e.whenTrue)||vI(t,e.colonToken)||vI(t,e.whenFalse)},230:function(e,t,n){return vI(t,e.expression)},241:AI,268:AI,307:function(e,t,n){return bI(t,n,e.statements)||vI(t,e.endOfFileToken)},243:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.declarationList)},261:function(e,t,n){return bI(t,n,e.declarations)},244:function(e,t,n){return vI(t,e.expression)},245:function(e,t,n){return vI(t,e.expression)||vI(t,e.thenStatement)||vI(t,e.elseStatement)},246:function(e,t,n){return vI(t,e.statement)||vI(t,e.expression)},247:function(e,t,n){return vI(t,e.expression)||vI(t,e.statement)},248:function(e,t,n){return vI(t,e.initializer)||vI(t,e.condition)||vI(t,e.incrementor)||vI(t,e.statement)},249:function(e,t,n){return vI(t,e.initializer)||vI(t,e.expression)||vI(t,e.statement)},250:function(e,t,n){return vI(t,e.awaitModifier)||vI(t,e.initializer)||vI(t,e.expression)||vI(t,e.statement)},251:II,252:II,253:function(e,t,n){return vI(t,e.expression)},254:function(e,t,n){return vI(t,e.expression)||vI(t,e.statement)},255:function(e,t,n){return vI(t,e.expression)||vI(t,e.caseBlock)},269:function(e,t,n){return bI(t,n,e.clauses)},296:function(e,t,n){return vI(t,e.expression)||bI(t,n,e.statements)},297:function(e,t,n){return bI(t,n,e.statements)},256:function(e,t,n){return vI(t,e.label)||vI(t,e.statement)},257:function(e,t,n){return vI(t,e.expression)},258:function(e,t,n){return vI(t,e.tryBlock)||vI(t,e.catchClause)||vI(t,e.finallyBlock)},299:function(e,t,n){return vI(t,e.variableDeclaration)||vI(t,e.block)},170:function(e,t,n){return vI(t,e.expression)},263:OI,231:OI,264:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||bI(t,n,e.typeParameters)||bI(t,n,e.heritageClauses)||bI(t,n,e.members)},265:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||bI(t,n,e.typeParameters)||vI(t,e.type)},266:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||bI(t,n,e.members)},306:function(e,t,n){return vI(t,e.name)||vI(t,e.initializer)},267:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.body)},271:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||vI(t,e.moduleReference)},272:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.importClause)||vI(t,e.moduleSpecifier)||vI(t,e.attributes)},273:function(e,t,n){return vI(t,e.name)||vI(t,e.namedBindings)},300:function(e,t,n){return bI(t,n,e.elements)},301:function(e,t,n){return vI(t,e.name)||vI(t,e.value)},270:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)},274:function(e,t,n){return vI(t,e.name)},280:function(e,t,n){return vI(t,e.name)},275:LI,279:LI,278:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.exportClause)||vI(t,e.moduleSpecifier)||vI(t,e.attributes)},276:RI,281:RI,277:function(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.expression)},228:function(e,t,n){return vI(t,e.head)||bI(t,n,e.templateSpans)},239:function(e,t,n){return vI(t,e.expression)||vI(t,e.literal)},203:function(e,t,n){return vI(t,e.head)||bI(t,n,e.templateSpans)},204:function(e,t,n){return vI(t,e.type)||vI(t,e.literal)},167:function(e,t,n){return vI(t,e.expression)},298:function(e,t,n){return bI(t,n,e.types)},233:function(e,t,n){return vI(t,e.expression)||bI(t,n,e.typeArguments)},283:function(e,t,n){return vI(t,e.expression)},282:function(e,t,n){return bI(t,n,e.modifiers)},356:function(e,t,n){return bI(t,n,e.elements)},284:function(e,t,n){return vI(t,e.openingElement)||bI(t,n,e.children)||vI(t,e.closingElement)},288:function(e,t,n){return vI(t,e.openingFragment)||bI(t,n,e.children)||vI(t,e.closingFragment)},285:jI,286:jI,292:function(e,t,n){return bI(t,n,e.properties)},291:function(e,t,n){return vI(t,e.name)||vI(t,e.initializer)},293:function(e,t,n){return vI(t,e.expression)},294:function(e,t,n){return vI(t,e.dotDotDotToken)||vI(t,e.expression)},287:function(e,t,n){return vI(t,e.tagName)},295:function(e,t,n){return vI(t,e.namespace)||vI(t,e.name)},190:MI,191:MI,309:MI,315:MI,314:MI,316:MI,318:MI,317:function(e,t,n){return bI(t,n,e.parameters)||vI(t,e.type)},320:function(e,t,n){return("string"==typeof e.comment?void 0:bI(t,n,e.comment))||bI(t,n,e.tags)},347:function(e,t,n){return vI(t,e.tagName)||vI(t,e.name)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))},310:function(e,t,n){return vI(t,e.name)},311:function(e,t,n){return vI(t,e.left)||vI(t,e.right)},341:BI,348:BI,330:function(e,t,n){return vI(t,e.tagName)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))},329:function(e,t,n){return vI(t,e.tagName)||vI(t,e.class)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))},328:function(e,t,n){return vI(t,e.tagName)||vI(t,e.class)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))},345:function(e,t,n){return vI(t,e.tagName)||vI(t,e.constraint)||bI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))},346:function(e,t,n){return vI(t,e.tagName)||(e.typeExpression&&309===e.typeExpression.kind?vI(t,e.typeExpression)||vI(t,e.fullName)||("string"==typeof e.comment?void 0:bI(t,n,e.comment)):vI(t,e.fullName)||vI(t,e.typeExpression)||("string"==typeof e.comment?void 0:bI(t,n,e.comment)))},338:function(e,t,n){return vI(t,e.tagName)||vI(t,e.fullName)||vI(t,e.typeExpression)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))},342:JI,344:JI,343:JI,340:JI,350:JI,349:JI,339:JI,323:function(e,t,n){return f(e.typeParameters,t)||f(e.parameters,t)||vI(t,e.type)},324:zI,325:zI,326:zI,322:function(e,t,n){return f(e.jsDocPropertyTags,t)},327:$I,332:$I,333:$I,334:$I,335:$I,336:$I,331:$I,337:$I,351:function(e,t,n){return vI(t,e.tagName)||vI(t,e.importClause)||vI(t,e.moduleSpecifier)||vI(t,e.attributes)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))},355:function(e,t,n){return vI(t,e.expression)}};function wI(e,t,n){return bI(t,n,e.typeParameters)||bI(t,n,e.parameters)||vI(t,e.type)}function EI(e,t,n){return bI(t,n,e.types)}function FI(e,t,n){return vI(t,e.type)}function NI(e,t,n){return bI(t,n,e.elements)}function PI(e,t,n){return vI(t,e.expression)||vI(t,e.questionDotToken)||bI(t,n,e.typeArguments)||bI(t,n,e.arguments)}function AI(e,t,n){return bI(t,n,e.statements)}function II(e,t,n){return vI(t,e.label)}function OI(e,t,n){return bI(t,n,e.modifiers)||vI(t,e.name)||bI(t,n,e.typeParameters)||bI(t,n,e.heritageClauses)||bI(t,n,e.members)}function LI(e,t,n){return bI(t,n,e.elements)}function RI(e,t,n){return vI(t,e.propertyName)||vI(t,e.name)}function jI(e,t,n){return vI(t,e.tagName)||bI(t,n,e.typeArguments)||vI(t,e.attributes)}function MI(e,t,n){return vI(t,e.type)}function BI(e,t,n){return vI(t,e.tagName)||(e.isNameFirst?vI(t,e.name)||vI(t,e.typeExpression):vI(t,e.typeExpression)||vI(t,e.name))||("string"==typeof e.comment?void 0:bI(t,n,e.comment))}function JI(e,t,n){return vI(t,e.tagName)||vI(t,e.typeExpression)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))}function zI(e,t,n){return vI(t,e.name)}function $I(e,t,n){return vI(t,e.tagName)||("string"==typeof e.comment?void 0:bI(t,n,e.comment))}function qI(e,t,n){if(void 0===e||e.kind<=165)return;const r=DI[e.kind];return void 0===r?void 0:r(e,t,n)}function UI(e,t,n){const r=VI(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=166)for(const t of VI(e))r.push(t),i.push(e)}}}function VI(e){const t=[];return qI(e,n,n),t;function n(e){t.unshift(e)}}function WI(e){e.externalModuleIndicator=SI(e)}function HI(e,t,n,r=!1,i){var o,a;let s;null==(o=Yn)||o.push(Yn.Phase.Parse,"createSourceFile",{path:e},!0),ar("beforeParse");const{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:u,jsDocParsingMode:_}="object"==typeof n?n:{languageVersion:n};if(100===c)s=CI.parseSourceFile(e,t,c,void 0,r,6,ct,_);else{const n=void 0===u?l:e=>(e.impliedNodeFormat=u,(l||WI)(e));s=CI.parseSourceFile(e,t,c,void 0,r,i,n,_)}return ar("afterParse"),sr("Parse","beforeParse","afterParse"),null==(a=Yn)||a.pop(),s}function GI(e,t){return CI.parseIsolatedEntityName(e,t)}function KI(e,t){return CI.parseJsonText(e,t)}function XI(e){return void 0!==e.externalModuleIndicator}function QI(e,t,n,r=!1){const i=eO.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function YI(e,t,n){const r=CI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&CI.fixupParentReferences(r.jsDoc),r}function ZI(e,t,n){return CI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=ks(99,!0),s=40960;function c(e){return x++,e}var l,_,p,f,m,g,h,y,v,b,x,S,k,T,C,w,E=GC(11,{createBaseSourceFileNode:e=>c(new o(e,0,0)),createBaseIdentifierNode:e=>c(new r(e,0,0)),createBasePrivateIdentifierNode:e=>c(new i(e,0,0)),createBaseTokenNode:e=>c(new n(e,0,0)),createBaseNode:e=>c(new t(e,0,0))}),{createNodeArray:F,createNumericLiteral:N,createStringLiteral:P,createLiteralLikeNode:A,createIdentifier:I,createPrivateIdentifier:O,createToken:L,createArrayLiteralExpression:R,createObjectLiteralExpression:j,createPropertyAccessExpression:M,createPropertyAccessChain:B,createElementAccessExpression:J,createElementAccessChain:z,createCallExpression:$,createCallChain:U,createNewExpression:V,createParenthesizedExpression:W,createBlock:H,createVariableStatement:G,createExpressionStatement:K,createIfStatement:Q,createWhileStatement:Z,createForStatement:ee,createForOfStatement:te,createVariableDeclaration:ne,createVariableDeclarationList:re}=E,ie=!0,oe=!1;function ae(e,t,n=2,r,i=!1){se(e,t,n,r,6,0),_=w,Ve();const o=Je();let a,s;if(1===$e())a=St([],o,o),s=yt();else{let e;for(;1!==$e();){let t;switch($e()){case 23:t=li();break;case 112:case 97:case 106:t=yt();break;case 41:t=tt((()=>9===Ve()&&59!==Ve()))?Mr():_i();break;case 9:case 11:if(tt((()=>59!==Ve()))){t=yn();break}default:t=_i()}e&&nt(e)?e.push(t):e?e=[e,t]:(e=t,1!==$e()&&Le(ha.Unexpected_token))}const t=nt(e)?kt(R(e),o):gn.checkDefined(e),n=K(t);kt(n,o),a=St([n],o),s=ht(1,ha.Unexpected_token)}const c=fe(e,2,6,!1,a,s,_,ct);i&&pe(c),c.nodeCount=x,c.identifierCount=k,c.identifiers=S,c.parseDiagnostics=nS(h,c),y&&(c.jsDocDiagnostics=nS(y,c));const l=c;return ce(),l}function se(e,s,c,u,d,y){switch(t=Vx.getNodeConstructor(),n=Vx.getTokenConstructor(),r=Vx.getIdentifierConstructor(),i=Vx.getPrivateIdentifierConstructor(),o=Vx.getSourceFileConstructor(),l=Go(e),p=s,f=c,v=u,m=d,g=hS(d),h=[],T=0,S=new Map,k=0,x=0,_=0,ie=!0,m){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}oe=!1,a.setText(p),a.setOnError(Be),a.setScriptTarget(f),a.setLanguageVariant(g),a.setScriptKind(m),a.setJSDocParsingMode(y)}function ce(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),p=void 0,f=void 0,v=void 0,m=void 0,g=void 0,_=0,h=void 0,y=void 0,T=0,S=void 0,C=void 0,ie=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,s,c=0){var f;if(6===(o=wk(e,o))){const o=ae(e,t,n,r,i);return AL(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=u,o.typeReferenceDirectives=u,o.libReferenceDirectives=u,o.amdDependencies=u,o.hasNoDefaultLib=!1,o.pragmas=d,o}se(e,t,n,r,o,c);const m=function(e,t,n,r,i){const o=iO(l);o&&(w|=33554432),_=w,Ve();const s=Yt(0,Oi);gn.assert(1===$e());const c=ze(),u=_e(yt(),c),d=fe(l,e,n,o,s,u,_,r);return aO(d,p),sO(d,f),d.commentDirectives=a.getCommentDirectives(),d.nodeCount=x,d.identifierCount=k,d.identifiers=S,d.parseDiagnostics=nS(h,d),d.jsDocParsingMode=i,y&&(d.jsDocDiagnostics=nS(y,d)),t&&pe(d),d;function f(e,t,n){h.push(Zx(l,p,e,t,n))}}(n,i,o,s||WI,c);return ce(),m},e.parseIsolatedEntityName=function(e,t){se("",e,t,void 0,1,0),Ve();const n=ln(!0),r=1===$e()&&!h.length;return ce(),r?n:void 0},e.parseJsonText=ae;let ue=!1;function _e(e,t){if(!t)return e;gn.assert(!e.jsDoc);const n=q(Cf(e,p),(t=>Jo.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),ue&&(ue=!1,e.flags|=536870912),e}function pe(e){RT(e,!0)}function fe(e,t,n,r,i,o,s,c){let l=E.createSourceFile(i,o,s);if(IT(l,0,p.length),u(l),!r&&XI(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=v,n=eO.createSyntaxCursor(e);v={currentNode:function(e){const t=n.currentNode(e);return ie&&t&&c(t)&&rO(t),t}};const r=[],i=h;h=[];let o=0,s=l(e.statements,0);for(;-1!==s;){const t=e.statements[o],n=e.statements[s];de(r,e.statements,o,s),o=u(e.statements,s);const c=D(i,(e=>e.start>=t.pos)),_=c>=0?D(i,(e=>e.start>=n.pos),c):-1;c>=0&&de(h,i,c,_>=0?_:void 0),et((()=>{const t=w;for(w|=65536,a.resetTokenState(n.pos),Ve();1!==$e();){const t=a.getTokenFullStart(),n=Zt(0,Oi);if(r.push(n),t===a.getTokenFullStart()&&Ve(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=u(e.statements,o+1))}}w=t}),2),s=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];de(r,e.statements,o);const n=D(i,(e=>e.start>=t.pos));n>=0&&de(h,i,n)}return v=t,E.updateSourceFile(e,fI(F(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n118}function ot(){return 80===$e()||(127!==$e()||!Ne())&&(135!==$e()||!Oe())&&$e()>118}function at(e,t,n=!0){return $e()===e?(n&&Ve(),!0):(t?Le(t):Le(ha._0_expected,Ra(e)),!1)}e.fixupParentReferences=pe;const st=Object.keys(ba).filter((e=>e.length>2));function lt(e){if(aF(e))return void je(is(p,e.template.pos),e.template.end,ha.Module_declaration_names_may_only_use_or_quoted_strings);const t=Xw(e)?kc(e):void 0;if(!t||!Ss(t,f))return void Le(ha._0_expected,Ra(27));const n=is(p,e.pos);switch(t){case"const":case"let":case"var":return void je(n,e.end,ha.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ut(ha.Interface_name_cannot_be_0,ha.Interface_must_be_given_a_name,19);case"is":return void je(n,a.getTokenStart(),ha.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ut(ha.Namespace_name_cannot_be_0,ha.Namespace_must_be_given_a_name,19);case"type":return void ut(ha.Type_alias_name_cannot_be_0,ha.Type_alias_must_be_given_a_name,64)}const r=Jt(t,st,dt)??function(e){for(const t of st)if(e.length>t.length+2&&en(e,t))return`${t} ${e.slice(t.length)}`}(t);r?je(n,e.end,ha.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==$e()&&je(n,e.end,ha.Unexpected_keyword_or_identifier)}function ut(e,t,n){$e()===n?Le(t):Le(e,a.getTokenValue())}function _t(e){return $e()===e?(We(),!0):(gn.assert(Oh(e)),Le(ha._0_expected,Ra(e)),!1)}function pt(e,t,n,r){if($e()===t)return void Ve();const i=Le(ha._0_expected,Ra(t));n&&i&&pT(i,Zx(l,p,r,1,ha.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Ra(e),Ra(t)))}function ft(e){return $e()===e&&(Ve(),!0)}function mt(e){if($e()===e)return yt()}function gt(e){if($e()===e)return function(){const e=Je(),t=$e();return We(),kt(L(t),e)}()}function ht(e,t,n){return mt(e)||Tt(e,!1,t||ha._0_expected,n||Ra(e))}function yt(){const e=Je(),t=$e();return Ve(),kt(L(t),e)}function vt(){return 27===$e()||20===$e()||1===$e()||a.hasPrecedingLineBreak()}function bt(){return!!vt()&&(27===$e()&&Ve(),!0)}function xt(){return bt()||at(27)}function St(e,t,n,r){const i=F(e,r);return AT(i,t,n??a.getTokenFullStart()),i}function kt(e,t,n){return AT(e,t,n??a.getTokenFullStart()),w&&(e.flags|=w),oe&&(oe=!1,e.flags|=262144),e}function Tt(e,t,n,...r){t?Re(a.getTokenFullStart(),0,n,...r):n&&Le(n,...r);const i=Je();return kt(80===e?I("",void 0):$l(e)?E.createTemplateLiteralLikeNode(e,"","",void 0):9===e?N("",void 0):11===e?P("",void 0):282===e?E.createMissingDeclaration():L(e),i)}function Ct(e){let t=S.get(e);return void 0===t&&S.set(e,t=e),t}function Dt(e,t,n){if(e){k++;const e=a.hasPrecedingJSDocLeadingAsterisks()?a.getTokenStart():Je(),t=$e(),n=Ct(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return qe(),kt(I(n,t,r),e)}if(81===$e())return Le(n||ha.Private_identifiers_are_not_allowed_outside_class_bodies),Dt(!0);if(0===$e()&&a.tryScan((()=>80===a.reScanInvalidIdentifier())))return Dt(!0);k++;const r=1===$e(),i=a.isReservedWord(),o=a.getTokenText(),s=i?ha.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ha.Identifier_expected;return Tt(80,r,t||s,o)}function wt(e){return Dt(it(),void 0,e)}function Et(e,t){return Dt(ot(),e,t)}function Ft(e){return Dt(ya($e()),e)}function Nt(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Le(ha.Unicode_escape_sequence_cannot_appear_here),Dt(ya($e()))}function Pt(){return ya($e())||11===$e()||9===$e()||10===$e()}function At(e){if(11===$e()||9===$e()||10===$e()){const e=yn();return e.text=Ct(e.text),e}return 23===$e()?function(){const e=Je();at(23);const t=Te(Tr);return at(24),kt(E.createComputedPropertyName(t),e)}():81===$e()?Ot():Ft()}function It(){return At()}function Ot(){const e=Je(),t=O(Ct(a.getTokenValue()));return Ve(),kt(t,e)}function Lt(e){return $e()===e&&rt(jt)}function Rt(){return Ve(),!a.hasPrecedingLineBreak()&&zt()}function jt(){switch($e()){case 87:return 94===Ve();case 95:return Ve(),90===$e()?tt($t):156===$e()?tt(Bt):Mt();case 90:return $t();case 126:return Ve(),zt();case 139:case 153:return Ve(),23===$e()||Pt();default:return Rt()}}function Mt(){return 60===$e()||42!==$e()&&130!==$e()&&19!==$e()&&zt()}function Bt(){return Ve(),Mt()}function zt(){return 23===$e()||19===$e()||42===$e()||26===$e()||Pt()}function $t(){return Ve(),86===$e()||100===$e()||120===$e()||60===$e()||128===$e()&&tt(Si)||134===$e()&&tt(ki)}function qt(e,t){if(tn(e))return!0;switch(e){case 0:case 1:case 3:return!(27===$e()&&t)&&wi();case 2:return 84===$e()||90===$e();case 4:return tt(zn);case 5:return tt(no)||27===$e()&&!t;case 6:return 23===$e()||Pt();case 12:switch($e()){case 23:case 42:case 26:case 25:return!0;default:return Pt()}case 18:return Pt();case 9:return 23===$e()||26===$e()||Pt();case 24:return ya($e())||11===$e();case 7:return 19===$e()?tt(Ut):t?ot()&&!Gt():Sr()&&!Gt();case 8:return qi();case 10:return 28===$e()||26===$e()||qi();case 19:return 103===$e()||87===$e()||ot();case 15:switch($e()){case 28:case 25:return!0}case 11:return 26===$e()||kr();case 16:return Nn(!1);case 17:return Nn(!0);case 20:case 21:return 28===$e()||ar();case 22:return ho();case 23:return(161!==$e()||!tt(Mi))&&(11===$e()||ya($e()));case 13:return ya($e())||19===$e();case 14:case 25:return!0;case 26:return gn.fail("ParsingContext.Count used as a context");default:gn.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function Ut(){if(gn.assert(19===$e()),20===Ve()){const e=Ve();return 28===e||19===e||96===e||119===e}return!0}function Vt(){return Ve(),ot()}function Wt(){return Ve(),ya($e())}function Ht(){return Ve(),va($e())}function Gt(){return(119===$e()||96===$e())&&tt(Kt)}function Kt(){return Ve(),kr()}function Xt(){return Ve(),ar()}function Qt(e){if(1===$e())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===$e();case 3:return 20===$e()||84===$e()||90===$e();case 7:return 19===$e()||96===$e()||119===$e();case 8:return!!vt()||!!Ir($e())||39===$e();case 19:return 32===$e()||21===$e()||19===$e()||96===$e()||119===$e();case 11:return 22===$e()||27===$e();case 15:case 21:case 10:return 24===$e();case 17:case 16:case 18:return 22===$e()||24===$e();case 20:return 28!==$e();case 22:return 19===$e()||20===$e();case 13:return 32===$e()||44===$e();case 14:return 30===$e()&&tt(To);default:return!1}}function Yt(e,t){const n=T;T|=1<=0)}function an(e){return 6===e?ha.An_enum_member_name_must_be_followed_by_a_or:void 0}function sn(){const e=St([],Je());return e.isMissingList=!0,e}function cn(e,t,n,r){if(at(n)){const n=on(e,t);return at(r),n}return sn()}function ln(e,t){const n=Je();let r=e?Ft(t):Et(t);for(;ft(25)&&30!==$e();)r=kt(E.createQualifiedName(r,_n(e,!1,!0)),n);return r}function un(e,t){return kt(E.createQualifiedName(e,t),e.pos)}function _n(e,t,n){if(a.hasPrecedingLineBreak()&&ya($e())&&tt(xi))return Tt(80,!0,ha.Identifier_expected);if(81===$e()){const e=Ot();return t?e:Tt(80,!0,ha.Identifier_expected)}return e?n?Ft():Nt():Et()}function dn(e){const t=Je();return kt(E.createTemplateExpression(vn(e),function(e){const t=Je(),n=[];let r;do{r=hn(e),n.push(r)}while(17===r.literal.kind);return St(n,t)}(e)),t)}function pn(){const e=Je();return kt(E.createTemplateLiteralType(vn(!1),function(){const e=Je(),t=[];let n;do{n=fn(),t.push(n)}while(17===n.literal.kind);return St(t,e)}()),e)}function fn(){const e=Je();return kt(E.createTemplateLiteralTypeSpan(br(),mn(!1)),e)}function mn(e){return 20===$e()?(Ke(e),function(){const e=bn($e());return gn.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):ht(18,ha._0_expected,Ra(20))}function hn(e){const t=Je();return kt(E.createTemplateSpan(Te(Tr),mn(e)),t)}function yn(){return bn($e())}function vn(e){!e&&26656&a.getTokenFlags()&&Ke(!1);const t=bn($e());return gn.assert(16===t.kind,"Template head has wrong token kind"),t}function bn(e){const t=Je(),n=$l(e)?E.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const t=15===e||18===e,n=a.getTokenText();return n.substring(1,n.length-(a.isUnterminated()?0:t?1:2))}(e),7176&a.getTokenFlags()):9===e?N(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?P(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):Bl(e)?A(e,a.getTokenValue()):gn.fail();return a.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(n.isUnterminated=!0),Ve(),kt(n,t)}function xn(){return ln(!0,ha.Type_expected)}function Sn(){if(!a.hasPrecedingLineBreak()&&30===Xe())return cn(20,br,30,32)}function kn(){const e=Je();return kt(E.createTypeReferenceNode(xn(),Sn()),e)}function Tn(e){switch(e.kind){case 183:return Id(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||Tn(n)}case 196:return Tn(e.type);default:return!1}}function Cn(){const e=Je();return Ve(),kt(E.createThisTypeNode(),e)}function Dn(){const e=Je();let t;return 110!==$e()&&105!==$e()||(t=Ft(),at(59)),kt(E.createParameterDeclaration(void 0,void 0,t,void 0,wn(),void 0),e)}function wn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Je();if(ft(144)){const t=E.createJSDocNamepathType(void 0);e:for(;;)switch($e()){case 20:case 1:case 28:case 5:break e;default:We()}return a.setSkipJsDocLeadingAsterisks(!1),kt(t,e)}const t=ft(26);let n=yr();return a.setSkipJsDocLeadingAsterisks(!1),t&&(n=kt(E.createJSDocVariadicType(n),e)),64===$e()?(Ve(),kt(E.createJSDocOptionalType(n),e)):n}function En(){const e=Je(),t=so(!1,!0),n=Et();let r,i;ft(96)&&(ar()||!kr()?r=br():i=Br());const o=ft(64)?br():void 0,a=E.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,kt(a,e)}function Fn(){if(30===$e())return cn(19,En,30,32)}function Nn(e){return 26===$e()||qi()||ru($e())||60===$e()||ar(!e)}function Pn(e){return An(e)}function An(e,t=!0){const n=Je(),r=ze(),i=e?we((()=>so(!0))):Ee((()=>so(!0)));if(110===$e()){const e=E.createParameterDeclaration(i,void 0,Dt(!0),void 0,xr(),void 0),t=ve(i);return t&&Me(t,ha.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),_e(kt(e,n),r)}const o=ie;ie=!1;const a=mt(26);if(!t&&!it()&&23!==$e()&&19!==$e())return;const s=_e(kt(E.createParameterDeclaration(i,a,function(e){const t=Ui(ha.Private_identifiers_cannot_be_used_as_parameters);return 0===pd(t)&&!X(e)&&ru($e())&&Ve(),t}(i),mt(58),xr(),Cr()),n),r);return ie=o,s}function In(e,t){if(function(e,t){return 39===e?(at(e),!0):!!ft(59)||!(!t||39!==$e())&&(Le(ha._0_expected,Ra(59)),Ve(),!0)}(e,t))return Ce(yr)}function On(e,t){const n=Ne(),r=Oe();he(!!(1&e)),be(!!(2&e));const i=32&e?on(17,Dn):on(16,(()=>t?Pn(r):An(r,!1)));return he(n),be(r),i}function Ln(e){if(!at(21))return sn();const t=On(e,!0);return at(22),t}function Rn(){ft(28)||xt()}function jn(e){const t=Je(),n=ze();180===e&&at(105);const r=Fn(),i=Ln(4),o=In(59,!0);return Rn(),_e(kt(179===e?E.createCallSignature(r,i,o):E.createConstructSignature(r,i,o),t),n)}function Mn(){return 23===$e()&&tt(Bn)}function Bn(){if(Ve(),26===$e()||24===$e())return!0;if(ru($e())){if(Ve(),ot())return!0}else{if(!ot())return!1;Ve()}return 59===$e()||28===$e()||58===$e()&&(Ve(),59===$e()||28===$e()||24===$e())}function Jn(e,t,n){const r=cn(16,(()=>Pn(!1)),23,24),i=xr();return Rn(),_e(kt(E.createIndexSignature(n,r,i),e),t)}function zn(){if(21===$e()||30===$e()||139===$e()||153===$e())return!0;let e=!1;for(;ru($e());)e=!0,Ve();return 23===$e()||(Pt()&&(e=!0,Ve()),!!e&&(21===$e()||30===$e()||58===$e()||59===$e()||28===$e()||vt()))}function $n(){if(21===$e()||30===$e())return jn(179);if(105===$e()&&tt(qn))return jn(180);const e=Je(),t=ze(),n=so(!1);return Lt(139)?to(e,t,n,177,4):Lt(153)?to(e,t,n,178,4):Mn()?Jn(e,t,n):function(e,t,n){const r=It(),i=mt(58);let o;if(21===$e()||30===$e()){const e=Fn(),t=Ln(4),a=In(59,!0);o=E.createMethodSignature(n,r,i,e,t,a)}else{const e=xr();o=E.createPropertySignature(n,r,i,e),64===$e()&&(o.initializer=Cr())}return Rn(),_e(kt(o,e),t)}(e,t,n)}function qn(){return Ve(),21===$e()||30===$e()}function Un(){return 25===Ve()}function Vn(){switch(Ve()){case 21:case 30:case 25:return!0}return!1}function Wn(){let e;return at(19)?(e=Yt(4,$n),at(20)):e=sn(),e}function Hn(){return Ve(),40===$e()||41===$e()?148===Ve():(148===$e()&&Ve(),23===$e()&&Vt()&&103===Ve())}function Gn(){const e=Je();let t;at(19),148!==$e()&&40!==$e()&&41!==$e()||(t=yt(),148!==t.kind&&at(148)),at(23);const n=function(){const e=Je(),t=Ft();at(103);const n=br();return kt(E.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=ft(130)?br():void 0;let i;at(24),58!==$e()&&40!==$e()&&41!==$e()||(i=yt(),58!==i.kind&&at(58));const o=xr();xt();const a=Yt(4,$n);return at(20),kt(E.createMappedTypeNode(t,n,r,i,o,a),e)}function Kn(){const e=Je();if(ft(26))return kt(E.createRestTypeNode(br()),e);const t=br();if(sP(t)&&t.pos===t.type.pos){const e=E.createOptionalTypeNode(t.type);return fI(e,t),e.flags=t.flags,e}return t}function Xn(){return 59===Ve()||58===$e()&&59===Ve()}function Qn(){return 26===$e()?ya(Ve())&&Xn():ya($e())&&Xn()}function Yn(){if(tt(Qn)){const e=Je(),t=ze(),n=mt(26),r=Ft(),i=mt(58);at(59);const o=Kn();return _e(kt(E.createNamedTupleMember(n,r,i,o),e),t)}return Kn()}function Zn(){const e=Je(),t=ze(),n=function(){let e;if(128===$e()){const t=Je();Ve(),e=St([kt(L(128),t)],t)}return e}(),r=ft(105);gn.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Fn(),o=Ln(4),a=In(39,!1);return _e(kt(r?E.createConstructorTypeNode(n,i,o,a):E.createFunctionTypeNode(i,o,a),e),t)}function er(){const e=yt();return 25===$e()?void 0:e}function tr(e){const t=Je();e&&Ve();let n=112===$e()||97===$e()||106===$e()?yt():bn($e());return e&&(n=kt(E.createPrefixUnaryExpression(41,n),t)),kt(E.createLiteralTypeNode(n),t)}function nr(){return Ve(),102===$e()}function rr(){_|=4194304;const e=Je(),t=ft(114);at(102),at(21);const n=br();let r;if(ft(28)){const e=a.getTokenStart();at(19);const t=$e();if(118===t||132===t?Ve():Le(ha._0_expected,Ra(118)),at(59),r=Eo(t,!0),!at(20)){const t=ke(h);t&&t.code===ha._0_expected.code&&pT(t,Zx(l,p,e,1,ha.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}at(22);const i=ft(25)?xn():void 0,o=Sn();return kt(E.createImportTypeNode(n,r,i,o,t),e)}function ir(){return Ve(),9===$e()||10===$e()}function or(){switch($e()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return rt(er)||kn();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Je();return Ve(),kt(E.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Je();return Ve(),28===$e()||20===$e()||22===$e()||32===$e()||64===$e()||52===$e()?kt(E.createJSDocUnknownType(),e):kt(E.createJSDocNullableType(br(),!1),e)}();case 100:return function(){const e=Je(),t=ze();if(rt(So)){const n=Ln(36),r=In(59,!1);return _e(kt(E.createJSDocFunctionType(n,r),e),t)}return kt(E.createTypeReferenceNode(Ft(),void 0),e)}();case 54:return function(){const e=Je();return Ve(),kt(E.createJSDocNonNullableType(or(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return tr();case 41:return tt(ir)?tr(!0):kn();case 116:return yt();case 110:{const t=Cn();return 142!==$e()||a.hasPrecedingLineBreak()?t:(e=t,Ve(),kt(E.createTypePredicateNode(void 0,e,br()),e.pos))}case 114:return tt(nr)?rr():function(){const e=Je();at(114);const t=ln(!0),n=a.hasPrecedingLineBreak()?void 0:go();return kt(E.createTypeQueryNode(t,n),e)}();case 19:return tt(Hn)?Gn():function(){const e=Je();return kt(E.createTypeLiteralNode(Wn()),e)}();case 23:return function(){const e=Je();return kt(E.createTupleTypeNode(cn(21,Yn,23,24)),e)}();case 21:return function(){const e=Je();at(21);const t=br();return at(22),kt(E.createParenthesizedType(t),e)}();case 102:return rr();case 131:return tt(xi)?function(){const e=Je(),t=ht(131),n=110===$e()?Cn():Et(),r=ft(142)?br():void 0;return kt(E.createTypePredicateNode(t,n,r),e)}():kn();case 16:return pn();default:return kn()}var e}function ar(e){switch($e()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(ir);case 21:return!e&&tt(sr);default:return ot()}}function sr(){return Ve(),22===$e()||Nn(!1)||ar()}function cr(){const e=Je();let t=or();for(;!a.hasPrecedingLineBreak();)switch($e()){case 54:Ve(),t=kt(E.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Xt))return t;Ve(),t=kt(E.createJSDocNullableType(t,!0),e);break;case 23:if(at(23),ar()){const n=br();at(24),t=kt(E.createIndexedAccessTypeNode(t,n),e)}else at(24),t=kt(E.createArrayTypeNode(t),e);break;default:return t}return t}function lr(){if(ft(96)){const e=De(br);if(Ae()||58!==$e())return e}}function ur(){const e=Je();return at(140),kt(E.createInferTypeNode(function(){const e=Je(),t=Et(),n=rt(lr);return kt(E.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}function _r(){const e=$e();switch(e){case 143:case 158:case 148:return function(e){const t=Je();return at(e),kt(E.createTypeOperatorNode(e,_r()),t)}(e);case 140:return ur()}return Ce(cr)}function dr(e){if(gr()){const t=Zn();let n;return n=FE(t)?e?ha.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ha.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?ha.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ha.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Me(t,n),t}}function pr(e,t,n){const r=Je(),i=52===e,o=ft(e);let a=o&&dr(i)||t();if($e()===e||o){const o=[a];for(;ft(e);)o.push(dr(i)||t());a=kt(n(St(o,r)),r)}return a}function fr(){return pr(51,_r,E.createIntersectionTypeNode)}function mr(){return Ve(),105===$e()}function gr(){return 30===$e()||!(21!==$e()||!tt(hr))||105===$e()||128===$e()&&tt(mr)}function hr(){if(Ve(),22===$e()||26===$e())return!0;if(function(){if(ru($e())&&so(!1),ot()||110===$e())return Ve(),!0;if(23===$e()||19===$e()){const e=h.length;return Ui(),e===h.length}return!1}()){if(59===$e()||28===$e()||58===$e()||64===$e())return!0;if(22===$e()&&(Ve(),39===$e()))return!0}return!1}function yr(){const e=Je(),t=ot()&&rt(vr),n=br();return t?kt(E.createTypePredicateNode(void 0,t,n),e):n}function vr(){const e=Et();if(142===$e()&&!a.hasPrecedingLineBreak())return Ve(),e}function br(){if(81920&w)return xe(81920,br);if(gr())return Zn();const e=Je(),t=pr(52,fr,E.createUnionTypeNode);if(!Ae()&&!a.hasPrecedingLineBreak()&&ft(96)){const n=De(br);at(58);const r=Ce(br);at(59);const i=Ce(br);return kt(E.createConditionalTypeNode(t,n,r,i),e)}return t}function xr(){return ft(59)?br():void 0}function Sr(){switch($e()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(Vn);default:return ot()}}function kr(){if(Sr())return!0;switch($e()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Lr()||ot()}}function Tr(){const e=Ie();e&&ye(!1);const t=Je();let n,r=Dr(!0);for(;n=mt(28);)r=Rr(r,n,Dr(!0),t);return e&&ye(!0),r}function Cr(){return ft(64)?Dr(!0):void 0}function Dr(e){if(127===$e()&&(Ne()||tt(Ti)))return function(){const e=Je();return Ve(),a.hasPrecedingLineBreak()||42!==$e()&&!kr()?kt(E.createYieldExpression(void 0,void 0),e):kt(E.createYieldExpression(mt(42),Dr(!0)),e)}();const t=function(e){const t=21===$e()||30===$e()||134===$e()?tt(Er):39===$e()?1:0;if(0!==t)return 1===t?Nr(!0,!0):rt((()=>function(e){const t=a.getTokenStart();if(null==C?void 0:C.has(t))return;const n=Nr(!1,e);return n||(C||(C=new Set)).add(t),n}(e)))}(e)||function(e){if(134===$e()&&1===tt(Fr)){const t=Je(),n=ze(),r=co();return wr(t,Ar(0),e,n,r)}}(e);if(t)return t;const n=Je(),r=ze(),i=Ar(0);return 80===i.kind&&39===$e()?wr(n,i,e,r,void 0):Vu(i)&&cb(Ge())?Rr(i,yt(),Dr(e),n):function(e,t,n){const r=mt(58);if(!r)return e;let i;return kt(E.createConditionalExpression(e,r,xe(s,(()=>Dr(!1))),i=ht(59),Od(i)?Dr(n):Tt(80,!1,ha._0_expected,Ra(59))),t)}(i,n,e)}function wr(e,t,n,r,i){gn.assert(39===$e(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=E.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);kt(o,t.pos);const a=St([o],o.pos,o.end),s=ht(39),c=Pr(!!i,n);return _e(kt(E.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function Er(){if(134===$e()){if(Ve(),a.hasPrecedingLineBreak())return 0;if(21!==$e()&&30!==$e())return 0}const e=$e(),t=Ve();if(21===e){if(22===t)switch(Ve()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(ru(t)&&134!==t&&tt(Vt))return 130===Ve()?0:1;if(!ot()&&110!==t)return 0;switch(Ve()){case 59:return 1;case 58:return Ve(),59===$e()||28===$e()||64===$e()||22===$e()?1:0;case 28:case 64:case 22:return 2}return 0}return gn.assert(30===e),ot()||87===$e()?1===g?tt((()=>{ft(87);const e=Ve();if(96===e)switch(Ve()){case 64:case 32:case 44:return!1;default:return!0}else if(28===e||64===e)return!0;return!1}))?1:0:2:0}function Fr(){if(134===$e()){if(Ve(),a.hasPrecedingLineBreak()||39===$e())return 0;const e=Ar(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===$e())return 1}return 0}function Nr(e,t){const n=Je(),r=ze(),i=co(),o=X(i,eE)?2:0,a=Fn();let s;if(at(21)){if(e)s=On(o,e);else{const t=On(o,e);if(!t)return;s=t}if(!at(22)&&!e)return}else{if(!e)return;s=sn()}const c=59===$e(),l=In(59,!1);if(l&&!e&&Tn(l))return;let u=l;for(;196===(null==u?void 0:u.kind);)u=u.type;const _=u&&uP(u);if(!e&&39!==$e()&&(_||19!==$e()))return;const d=$e(),p=ht(39),f=39===d||19===d?Pr(X(i,eE),t):Et();return t||!c||59===$e()?_e(kt(E.createArrowFunction(i,a,s,l,p,f),n),r):void 0}function Pr(e,t){if(19===$e())return mi(e?2:0);if(27!==$e()&&100!==$e()&&86!==$e()&&wi()&&(19===$e()||100===$e()||86===$e()||60===$e()||!kr()))return mi(16|(e?2:0));const n=ie;ie=!1;const r=e?we((()=>Dr(t))):Ee((()=>Dr(t)));return ie=n,r}function Ar(e){const t=Je();return Or(e,Br(),t)}function Ir(e){return 103===e||165===e}function Or(e,t,n){for(;;){Ge();const o=my($e());if(!(43===$e()?o>=e:o>e))break;if(103===$e()&&Pe())break;if(130===$e()||152===$e()){if(a.hasPrecedingLineBreak())break;{const e=$e();Ve(),t=152===e?(r=t,i=br(),kt(E.createSatisfiesExpression(r,i),r.pos)):jr(t,br())}}else t=Rr(t,yt(),Ar(o),n)}var r,i;return t}function Lr(){return(!Pe()||103!==$e())&&my($e())>0}function Rr(e,t,n,r){return kt(E.createBinaryExpression(e,t,n),r)}function jr(e,t){return kt(E.createAsExpression(e,t),e.pos)}function Mr(){const e=Je();return kt(E.createPrefixUnaryExpression($e(),Ue(Jr)),e)}function Br(){if(function(){switch($e()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==g)return!1;default:return!0}}()){const e=Je(),t=zr();return 43===$e()?Or(my($e()),t,e):t}const e=$e(),t=Jr();if(43===$e()){const n=is(p,t.pos),{end:r}=t;216===t.kind?je(n,r,ha.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(gn.assert(Oh(e)),je(n,r,ha.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,Ra(e)))}return t}function Jr(){switch($e()){case 40:case 41:case 55:case 54:return Mr();case 91:return function(){const e=Je();return kt(E.createDeleteExpression(Ue(Jr)),e)}();case 114:return function(){const e=Je();return kt(E.createTypeOfExpression(Ue(Jr)),e)}();case 116:return function(){const e=Je();return kt(E.createVoidExpression(Ue(Jr)),e)}();case 30:return 1===g?Ur(!0,void 0,void 0,!0):function(){gn.assert(1!==g,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Je();at(30);const t=br();at(32);const n=Jr();return kt(E.createTypeAssertion(t,n),e)}();case 135:if(135===$e()&&(Oe()||tt(Ti)))return function(){const e=Je();return kt(E.createAwaitExpression(Ue(Jr)),e)}();default:return zr()}}function zr(){if(46===$e()||47===$e()){const e=Je();return kt(E.createPrefixUnaryExpression($e(),Ue($r)),e)}if(1===g&&30===$e()&&tt(Ht))return Ur(!0);const e=$r();if(gn.assert(Vu(e)),(46===$e()||47===$e())&&!a.hasPrecedingLineBreak()){const t=$e();return Ve(),kt(E.createPostfixUnaryExpression(e,t),e.pos)}return e}function $r(){const e=Je();let t;return 102===$e()?tt(qn)?(_|=4194304,t=yt()):tt(Un)?(Ve(),Ve(),t=kt(E.createMetaProperty(102,Ft()),e),_|=8388608):t=qr():t=108===$e()?function(){const e=Je();let t=yt();if(30===$e()){const e=Je(),n=rt(oi);void 0!==n&&(je(e,Je(),ha.super_may_not_use_type_arguments),ti()||(t=E.createExpressionWithTypeArguments(t,n)))}return 21===$e()||25===$e()||23===$e()?t:(ht(25,ha.super_must_be_followed_by_an_argument_list_or_member_access),kt(M(t,_n(!0,!0,!0)),e))}():qr(),ri(e,t)}function qr(){return ei(Je(),ai(),!0)}function Ur(e,t,n,r=!1){const i=Je(),o=function(e){const t=Je();if(at(30),32===$e())return Ze(),kt(E.createJsxOpeningFragment(),t);const n=Hr(),r=524288&w?void 0:go(),i=function(){const e=Je();return kt(E.createJsxAttributes(Yt(13,Kr)),e)}();let o;return 32===$e()?(Ze(),o=E.createJsxOpeningElement(n,r,i)):(at(44),at(32,void 0,!1)&&(e?Ve():Ze()),o=E.createJsxSelfClosingElement(n,r,i)),kt(o,t)}(e);let a;if(286===o.kind){let t,r=Wr(o);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!fO(s.openingElement.tagName,s.closingElement.tagName)&&fO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=kt(E.createJsxElement(s.openingElement,s.children,kt(E.createJsxClosingElement(kt(I(""),e,e)),e,e)),s.openingElement.pos,e);r=St([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Je();at(31);const r=Hr();return at(32,void 0,!1)&&(t||!fO(e.tagName,r)?Ve():Ze()),kt(E.createJsxClosingElement(r),n)}(o,e),fO(o.tagName,t.tagName)||(n&&IN(n)&&fO(t.tagName,n.tagName)?Me(o.tagName,ha.JSX_element_0_has_no_corresponding_closing_tag,tp(p,o.tagName)):Me(t.tagName,ha.Expected_corresponding_JSX_closing_tag_for_0,tp(p,o.tagName)));a=kt(E.createJsxElement(o,r,t),i)}else 289===o.kind?a=kt(E.createJsxFragment(o,Wr(o),function(e){const t=Je();return at(31),at(32,ha.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Ve():Ze()),kt(E.createJsxJsxClosingFragment(),t)}(e)),i):(gn.assert(285===o.kind),a=o);if(!r&&e&&30===$e()){const e=void 0===t?a.pos:t,n=rt((()=>Ur(!0,e)));if(n){const t=Tt(28,!1);return IT(t,n.pos,0),je(is(p,e),n.end,ha.JSX_expressions_must_have_one_parent_element),kt(E.createBinaryExpression(a,t,n),i)}}return a}function Vr(e,t){switch(t){case 1:if(RN(e))Me(e,ha.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;je(Math.min(is(p,t.pos),t.end),t.end,ha.JSX_element_0_has_no_corresponding_closing_tag,tp(p,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Je(),t=E.createJsxText(a.getTokenValue(),13===b);return b=a.scanJsxToken(),kt(t,e)}();case 19:return Gr(!1);case 30:return Ur(!1,void 0,e);default:return gn.assertNever(t)}}function Wr(e){const t=[],n=Je(),r=T;for(T|=16384;;){const n=Vr(e,b=a.reScanJsxToken());if(!n)break;if(t.push(n),IN(e)&&284===(null==n?void 0:n.kind)&&!fO(n.openingElement.tagName,n.closingElement.tagName)&&fO(e.tagName,n.closingElement.tagName))break}return T=r,St(t,n)}function Hr(){const e=Je(),t=function(){const e=Je();Ye();const t=110===$e(),n=Nt();return ft(59)?(Ye(),kt(E.createJsxNamespacedName(n,Nt()),e)):t?kt(E.createToken(110),e):n}();if($N(t))return t;let n=t;for(;ft(25);)n=kt(M(n,_n(!0,!1,!1)),e);return n}function Gr(e){const t=Je();if(!at(19))return;let n,r;return 20!==$e()&&(e||(n=mt(26)),r=Tr()),e?at(20):at(20,void 0,!1)&&Ze(),kt(E.createJsxExpression(n,r),t)}function Kr(){if(19===$e())return function(){const e=Je();at(19),at(26);const t=Tr();return at(20),kt(E.createJsxSpreadAttribute(t),e)}();const e=Je();return kt(E.createJsxAttribute(function(){const e=Je();Ye();const t=Nt();return ft(59)?(Ye(),kt(E.createJsxNamespacedName(t,Nt()),e)):t}(),function(){if(64===$e()){if(11===(b=a.scanJsxAttributeValue()))return yn();if(19===$e())return Gr(!0);if(30===$e())return Ur(!0);Le(ha.or_JSX_element_expected)}}()),e)}function Xr(){return Ve(),ya($e())||23===$e()||ti()}function Qr(e){if(64&e.flags)return!0;if(wF(e)){let t=e.expression;for(;wF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;wF(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Yr(e,t,n){const r=_n(!0,!0,!0),i=n||Qr(t),o=i?B(t,n,r):M(t,r);return i&&Qw(o.name)&&Me(o.name,ha.An_optional_chain_cannot_contain_private_identifiers),TF(t)&&t.typeArguments&&je(t.typeArguments.pos-1,is(p,t.typeArguments.end)+1,ha.An_instantiation_expression_cannot_be_followed_by_a_property_access),kt(o,e)}function Zr(e,t,n){let r;if(24===$e())r=Tt(80,!0,ha.An_element_access_expression_should_take_an_argument);else{const e=Te(Tr);qh(e)&&(e.text=Ct(e.text)),r=e}return at(24),kt(n||Qr(t)?z(t,n,r):J(t,r),e)}function ei(e,t,n){for(;;){let r,i=!1;if(n&&29===$e()&&tt(Xr)?(r=ht(29),i=ya($e())):i=ft(25),i)t=Yr(e,t,r);else if(!r&&Ie()||!ft(23)){if(!ti()){if(!r){if(54===$e()&&!a.hasPrecedingLineBreak()){Ve(),t=kt(E.createNonNullExpression(t),e);continue}const n=rt(oi);if(n){t=kt(E.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==t.kind?ni(e,t,r,void 0):ni(e,t.expression,r,t.typeArguments)}else t=Zr(e,t,r)}}function ti(){return 15===$e()||16===$e()}function ni(e,t,n,r){const i=E.createTaggedTemplateExpression(t,r,15===$e()?(Ke(!0),yn()):dn(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,kt(i,e)}function ri(e,t){for(;;){let n;t=ei(e,t,!0);const r=mt(29);if(r&&(n=rt(oi),ti()))t=ni(e,t,r,n);else{if(!n&&21!==$e()){if(r){const n=Tt(80,!1,ha.Identifier_expected);t=kt(B(t,r,n),e)}break}{r||233!==t.kind||(n=t.typeArguments,t=t.expression);const i=ii();t=kt(r||Qr(t)?U(t,r,n,i):$(t,n,i),e)}}}return t}function ii(){at(21);const e=on(11,ci);return at(22),e}function oi(){if(524288&w)return;if(30!==Xe())return;Ve();const e=on(20,br);return 32===Ge()?(Ve(),e&&function(){switch($e()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Lr()||!kr()}()?e:void 0):void 0}function ai(){switch($e()){case 15:26656&a.getTokenFlags()&&Ke(!1);case 9:case 10:case 11:return yn();case 110:case 108:case 106:case 112:case 97:return yt();case 21:return function(){const e=Je(),t=ze();at(21);const n=Te(Tr);return at(22),_e(kt(W(n),e),t)}();case 23:return li();case 19:return _i();case 134:if(!tt(ki))break;return di();case 60:return function(){const e=Je(),t=ze(),n=so(!0);if(86===$e())return _o(e,t,n,231);const r=Tt(282,!0,ha.Expression_expected);return NT(r,e),r.modifiers=n,r}();case 86:return _o(Je(),ze(),void 0,231);case 100:return di();case 105:return function(){const e=Je();if(at(105),ft(25)){const t=Ft();return kt(E.createMetaProperty(105,t),e)}let t,n=ei(Je(),ai(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression),29===$e()&&Le(ha.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,tp(p,n));const r=21===$e()?ii():void 0;return kt(V(n,t,r),e)}();case 44:case 69:if(14===(b=a.reScanSlashToken()))return yn();break;case 16:return dn(!1);case 81:return Ot()}return Et(ha.Expression_expected)}function si(){return 26===$e()?function(){const e=Je();at(26);const t=Dr(!0);return kt(E.createSpreadElement(t),e)}():28===$e()?kt(E.createOmittedExpression(),Je()):Dr(!0)}function ci(){return xe(s,si)}function li(){const e=Je(),t=a.getTokenStart(),n=at(23),r=a.hasPrecedingLineBreak(),i=on(15,si);return pt(23,24,n,t),kt(R(i,r),e)}function ui(){const e=Je(),t=ze();if(mt(26)){const n=Dr(!0);return _e(kt(E.createSpreadAssignment(n),e),t)}const n=so(!0);if(Lt(139))return to(e,t,n,177,0);if(Lt(153))return to(e,t,n,178,0);const r=mt(42),i=ot(),o=It(),a=mt(58),s=mt(54);if(r||21===$e()||30===$e())return Yi(e,t,n,r,o,a,s);let c;if(i&&59!==$e()){const e=mt(64),t=e?Te((()=>Dr(!0))):void 0;c=E.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{at(59);const e=Te((()=>Dr(!0)));c=E.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,_e(kt(c,e),t)}function _i(){const e=Je(),t=a.getTokenStart(),n=at(19),r=a.hasPrecedingLineBreak(),i=on(12,ui,!0);return pt(19,20,n,t),kt(j(i,r),e)}function di(){const e=Ie();ye(!1);const t=Je(),n=ze(),r=so(!1);at(100);const i=mt(42),o=i?1:0,a=X(r,eE)?2:0,s=o&&a?Se(81920,pi):o?function(e){return Se(16384,e)}(pi):a?we(pi):pi(),c=Fn(),l=Ln(o|a),u=In(59,!1),_=mi(o|a);return ye(e),_e(kt(E.createFunctionExpression(r,i,s,c,l,u,_),t),n)}function pi(){return it()?wt():void 0}function fi(e,t){const n=Je(),r=ze(),i=a.getTokenStart(),o=at(19,t);if(o||e){const e=a.hasPrecedingLineBreak(),t=Yt(1,Oi);pt(19,20,o,i);const s=_e(kt(H(t,e),n),r);return 64===$e()&&(Le(ha.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ve()),s}{const e=sn();return _e(kt(H(e,void 0),n),r)}}function mi(e,t){const n=Ne();he(!!(1&e));const r=Oe();be(!!(2&e));const i=ie;ie=!1;const o=Ie();o&&ye(!1);const a=fi(!!(16&e),t);return o&&ye(!0),ie=i,he(n),be(r),a}function gi(){const e=Je(),t=ze();at(99);const n=mt(135);let r,i;if(at(21),27!==$e()&&(r=115===$e()||121===$e()||87===$e()||160===$e()&&tt(Fi)||135===$e()&&tt(Ai)?Hi(!0):Se(8192,Tr)),n?at(165):ft(165)){const e=Te((()=>Dr(!0)));at(22),i=te(n,r,e,Oi())}else if(ft(103)){const e=Te(Tr);at(22),i=E.createForInStatement(r,e,Oi())}else{at(27);const e=27!==$e()&&22!==$e()?Te(Tr):void 0;at(27);const t=22!==$e()?Te(Tr):void 0;at(22),i=ee(r,e,t,Oi())}return _e(kt(i,e),t)}function hi(e){const t=Je(),n=ze();at(252===e?83:88);const r=vt()?void 0:Et();return xt(),_e(kt(252===e?E.createBreakStatement(r):E.createContinueStatement(r),t),n)}function yi(){return 84===$e()?function(){const e=Je(),t=ze();at(84);const n=Te(Tr);at(59);const r=Yt(3,Oi);return _e(kt(E.createCaseClause(n,r),e),t)}():function(){const e=Je();at(90),at(59);const t=Yt(3,Oi);return kt(E.createDefaultClause(t),e)}()}function vi(){const e=Je(),t=ze();at(109),at(21);const n=Te(Tr);at(22);const r=function(){const e=Je();at(19);const t=Yt(2,yi);return at(20),kt(E.createCaseBlock(t),e)}();return _e(kt(E.createSwitchStatement(n,r),e),t)}function bi(){const e=Je(),t=ze();at(113);const n=fi(!1),r=85===$e()?function(){const e=Je();let t;at(85),ft(21)?(t=Wi(),at(22)):t=void 0;const n=fi(!1);return kt(E.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==$e()||(at(98,ha.catch_or_finally_expected),i=fi(!1)),_e(kt(E.createTryStatement(n,r,i),e),t)}function xi(){return Ve(),ya($e())&&!a.hasPrecedingLineBreak()}function Si(){return Ve(),86===$e()&&!a.hasPrecedingLineBreak()}function ki(){return Ve(),100===$e()&&!a.hasPrecedingLineBreak()}function Ti(){return Ve(),(ya($e())||9===$e()||10===$e()||11===$e())&&!a.hasPrecedingLineBreak()}function Ci(){for(;;)switch($e()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Pi();case 135:return Ii();case 120:case 156:return Ve(),!a.hasPrecedingLineBreak()&&ot();case 144:case 145:return Ve(),!a.hasPrecedingLineBreak()&&(ot()||11===$e());case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=$e();if(Ve(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===$e())return!0;continue;case 162:return Ve(),19===$e()||80===$e()||95===$e();case 102:return Ve(),11===$e()||42===$e()||19===$e()||ya($e());case 95:let t=Ve();if(156===t&&(t=tt(Ve)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:Ve();continue;default:return!1}}function Di(){return tt(Ci)}function wi(){switch($e()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 102:return Di()||tt(Vn);case 87:case 95:return Di();case 129:case 125:case 123:case 124:case 126:case 148:return Di()||!tt(xi);default:return kr()}}function Ei(){return Ve(),it()||19===$e()||23===$e()}function Fi(){return Ni(!0)}function Ni(e){return Ve(),(!e||165!==$e())&&(it()||19===$e())&&!a.hasPrecedingLineBreak()}function Pi(){return tt(Ni)}function Ai(e){return 160===Ve()&&Ni(e)}function Ii(){return tt(Ai)}function Oi(){switch($e()){case 27:return function(){const e=Je(),t=ze();return at(27),_e(kt(E.createEmptyStatement(),e),t)}();case 19:return fi(!1);case 115:return Ki(Je(),ze(),void 0);case 121:if(tt(Ei))return Ki(Je(),ze(),void 0);break;case 135:if(Ii())return Ki(Je(),ze(),void 0);break;case 160:if(Pi())return Ki(Je(),ze(),void 0);break;case 100:return Xi(Je(),ze(),void 0);case 86:return uo(Je(),ze(),void 0);case 101:return function(){const e=Je(),t=ze();at(101);const n=a.getTokenStart(),r=at(21),i=Te(Tr);pt(21,22,r,n);const o=Oi(),s=ft(93)?Oi():void 0;return _e(kt(Q(i,o,s),e),t)}();case 92:return function(){const e=Je(),t=ze();at(92);const n=Oi();at(117);const r=a.getTokenStart(),i=at(21),o=Te(Tr);return pt(21,22,i,r),ft(27),_e(kt(E.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Je(),t=ze();at(117);const n=a.getTokenStart(),r=at(21),i=Te(Tr);pt(21,22,r,n);const o=Oi();return _e(kt(Z(i,o),e),t)}();case 99:return gi();case 88:return hi(251);case 83:return hi(252);case 107:return function(){const e=Je(),t=ze();at(107);const n=vt()?void 0:Te(Tr);return xt(),_e(kt(E.createReturnStatement(n),e),t)}();case 118:return function(){const e=Je(),t=ze();at(118);const n=a.getTokenStart(),r=at(21),i=Te(Tr);pt(21,22,r,n);const o=Se(67108864,Oi);return _e(kt(E.createWithStatement(i,o),e),t)}();case 109:return vi();case 111:return function(){const e=Je(),t=ze();at(111);let n=a.hasPrecedingLineBreak()?void 0:Te(Tr);return void 0===n&&(k++,n=kt(I(""),Je())),bt()||lt(n),_e(kt(E.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return bi();case 89:return function(){const e=Je(),t=ze();return at(89),xt(),_e(kt(E.createDebuggerStatement(),e),t)}();case 60:return Ri();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Di())return Ri()}return function(){const e=Je();let t,n=ze();const r=21===$e(),i=Te(Tr);return Xw(i)&&ft(59)?t=E.createLabeledStatement(i,Oi()):(bt()||lt(i),t=K(i),r&&(n=!1)),_e(kt(t,e),n)}()}function Li(e){return 138===e.kind}function Ri(){const e=Je(),t=ze(),n=so(!0);if(X(n,Li)){const r=function(e){return Se(33554432,(()=>{const t=tn(T,e);if(t)return nn(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return Se(33554432,(()=>ji(e,t,n)))}return ji(e,t,n)}function ji(e,t,n){switch($e()){case 115:case 121:case 87:case 160:case 135:return Ki(e,t,n);case 100:return Xi(e,t,n);case 86:return uo(e,t,n);case 120:return function(e,t,n){at(120);const r=Et(),i=Fn(),o=po(),a=Wn(),s=E.createInterfaceDeclaration(n,r,i,o,a);return _e(kt(s,e),t)}(e,t,n);case 156:return function(e,t,n){at(156),a.hasPrecedingLineBreak()&&Le(ha.Line_break_not_permitted_here);const r=Et(),i=Fn();at(64);const o=141===$e()&&rt(er)||br();xt();const s=E.createTypeAliasDeclaration(n,r,i,o);return _e(kt(s,e),t)}(e,t,n);case 94:return function(e,t,n){at(94);const r=Et();let i;at(19)?(i=xe(81920,(()=>on(6,yo))),at(20)):i=sn();const o=E.createEnumDeclaration(n,r,i);return _e(kt(o,e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===$e())return xo(e,t,n);if(ft(145))r|=32;else if(at(144),11===$e())return xo(e,t,n);return bo(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){at(102);const r=a.getTokenFullStart();let i;ot()&&(i=Et());let o=!1;if("type"===(null==i?void 0:i.escapedText)&&(161!==$e()||ot()&&tt(Bi))&&(ot()||42===$e()||19===$e())&&(o=!0,i=ot()?Et():void 0),i&&28!==$e()&&161!==$e())return function(e,t,n,r,i){at(64);const o=149===$e()&&tt(So)?function(){const e=Je();at(149),at(21);const t=Fo();return at(22),kt(E.createExternalModuleReference(t),e)}():ln(!1);xt();const a=E.createImportEqualsDeclaration(n,i,r,o),s=_e(kt(a,e),t);return s}(e,t,n,i,o);const s=Co(i,r,o),c=Fo(),l=Do();xt();const u=E.createImportDeclaration(n,s,c,l);return _e(kt(u,e),t)}(e,t,n);case 95:switch(Ve(),$e()){case 90:case 64:return function(e,t,n){const r=Oe();let i;be(!0),ft(64)?i=!0:at(90);const o=Dr(!0);xt(),be(r);const a=E.createExportAssignment(n,i,o);return _e(kt(a,e),t)}(e,t,n);case 130:return function(e,t,n){at(130),at(145);const r=Et();xt();const i=E.createNamespaceExportDeclaration(r);return i.modifiers=n,_e(kt(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Oe();let i,o,s;be(!0);const c=ft(156),l=Je();ft(42)?(ft(130)&&(i=function(e){return kt(E.createNamespaceExport(Po(Ft)),e)}(l)),at(161),o=Fo()):(i=Ao(279),(161===$e()||11===$e()&&!a.hasPrecedingLineBreak())&&(at(161),o=Fo()));const u=$e();!o||118!==u&&132!==u||a.hasPrecedingLineBreak()||(s=Eo(u)),xt(),be(r);const _=E.createExportDeclaration(n,c,i,o,s);return _e(kt(_,e),t)}(e,t,n)}default:if(n){const t=Tt(282,!0,ha.Declaration_expected);return NT(t,e),t.modifiers=n,t}return}}function Mi(){return 11===Ve()}function Bi(){return Ve(),161===$e()||64===$e()}function Ji(e,t){if(19!==$e()){if(4&e)return void Rn();if(vt())return void xt()}return mi(e,t)}function zi(){const e=Je();if(28===$e())return kt(E.createOmittedExpression(),e);const t=mt(26),n=Ui(),r=Cr();return kt(E.createBindingElement(t,void 0,n,r),e)}function $i(){const e=Je(),t=mt(26),n=it();let r,i=It();n&&59!==$e()?(r=i,i=void 0):(at(59),r=Ui());const o=Cr();return kt(E.createBindingElement(t,i,r,o),e)}function qi(){return 19===$e()||23===$e()||81===$e()||it()}function Ui(e){return 23===$e()?function(){const e=Je();at(23);const t=Te((()=>on(10,zi)));return at(24),kt(E.createArrayBindingPattern(t),e)}():19===$e()?function(){const e=Je();at(19);const t=Te((()=>on(9,$i)));return at(20),kt(E.createObjectBindingPattern(t),e)}():wt(e)}function Vi(){return Wi(!0)}function Wi(e){const t=Je(),n=ze(),r=Ui(ha.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===$e()&&!a.hasPrecedingLineBreak()&&(i=yt());const o=xr(),s=Ir($e())?void 0:Cr();return _e(kt(ne(r,i,o,s),t),n)}function Hi(e){const t=Je();let n,r=0;switch($e()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:gn.assert(Ii()),r|=6,Ve();break;default:gn.fail()}if(Ve(),165===$e()&&tt(Gi))n=sn();else{const t=Pe();ge(e),n=on(8,e?Wi:Vi),ge(t)}return kt(re(n,r),t)}function Gi(){return Vt()&&22===Ve()}function Ki(e,t,n){const r=Hi(!1);return xt(),_e(kt(G(n,r),e),t)}function Xi(e,t,n){const r=Oe(),i=eb(n);at(100);const o=mt(42),a=2048&i?pi():wt(),s=o?1:0,c=1024&i?2:0,l=Fn();32&i&&be(!0);const u=Ln(s|c),_=In(59,!1),d=Ji(s|c,ha.or_expected);return be(r),_e(kt(E.createFunctionDeclaration(n,o,a,l,u,_,d),e),t)}function Qi(e,t,n){return rt((()=>{if(137===$e()?at(137):11===$e()&&21===tt(Ve)?rt((()=>{const e=yn();return"constructor"===e.text?e:void 0})):void 0){const r=Fn(),i=Ln(0),o=In(59,!1),a=Ji(0,ha.or_expected),s=E.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,_e(kt(s,e),t)}}))}function Yi(e,t,n,r,i,o,a,s){const c=r?1:0,l=X(n,eE)?2:0,u=Fn(),_=Ln(c|l),d=In(59,!1),p=Ji(c|l,s),f=E.createMethodDeclaration(n,r,i,o,u,_,d,p);return f.exclamationToken=a,_e(kt(f,e),t)}function Zi(e,t,n,r,i){const o=i||a.hasPrecedingLineBreak()?void 0:mt(54),s=xr(),c=xe(90112,Cr);return function(e,t,n){if(60!==$e()||a.hasPrecedingLineBreak())return 21===$e()?(Le(ha.Cannot_start_a_function_call_in_a_type_annotation),void Ve()):void(!t||vt()?bt()||(n?Le(ha._0_expected,Ra(27)):lt(e)):n?Le(ha._0_expected,Ra(27)):Le(ha.Expected_for_property_initializer));Le(ha.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c),_e(kt(E.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function eo(e,t,n){const r=mt(42),i=It(),o=mt(58);return r||21===$e()||30===$e()?Yi(e,t,n,r,i,o,void 0,ha.or_expected):Zi(e,t,n,i,o)}function to(e,t,n,r,i){const o=It(),a=Fn(),s=Ln(0),c=In(59,!1),l=Ji(i),u=177===r?E.createGetAccessorDeclaration(n,o,s,c,l):E.createSetAccessorDeclaration(n,o,s,l);return u.typeParameters=a,kE(u)&&(u.type=c),_e(kt(u,e),t)}function no(){let e;if(60===$e())return!0;for(;ru($e());){if(e=$e(),ou(e))return!0;Ve()}if(42===$e())return!0;if(Pt()&&(e=$e(),Ve()),23===$e())return!0;if(void 0!==e){if(!Ah(e)||153===e||139===e)return!0;switch($e()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return vt()}}return!1}function ro(e,t,n){ht(126);const r=function(){const e=Ne(),t=Oe();he(!1),be(!0);const n=fi(!1);return he(e),be(t),n}(),i=_e(kt(E.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}function io(){if(Oe()&&135===$e()){const e=Je(),t=Et(ha.Expression_expected);return Ve(),ri(e,ei(e,t,!0))}return $r()}function oo(){const e=Je();if(!ft(60))return;const t=Se(32768,io);return kt(E.createDecorator(t),e)}function ao(e,t,n){const r=Je(),i=$e();if(87===$e()&&t){if(!rt(Rt))return}else{if(n&&126===$e()&&tt(ko))return;if(e&&126===$e())return;if(!ru($e())||!rt(jt))return}return kt(L(i),r)}function so(e,t,n){const r=Je();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===$e())for(;o=oo();)i=le(i,o);for(;a=ao(s,t,n);)126===a.kind&&(s=!0),i=le(i,a),c=!0;if(c&&e&&60===$e())for(;o=oo();)i=le(i,o),l=!0;if(l)for(;a=ao(s,t,n);)126===a.kind&&(s=!0),i=le(i,a);return i&&St(i,r)}function co(){let e;if(134===$e()){const t=Je();Ve(),e=St([kt(L(134),t)],t)}return e}function lo(){const e=Je(),t=ze();if(27===$e())return Ve(),_e(kt(E.createSemicolonClassElement(),e),t);const n=so(!0,!0,!0);if(126===$e()&&tt(ko))return ro(e,t,n);if(Lt(139))return to(e,t,n,177,0);if(Lt(153))return to(e,t,n,178,0);if(137===$e()||11===$e()){const r=Qi(e,t,n);if(r)return r}if(Mn())return Jn(e,t,n);if(ya($e())||11===$e()||9===$e()||10===$e()||42===$e()||23===$e()){if(X(n,Li)){for(const e of n)e.flags|=33554432;return Se(33554432,(()=>eo(e,t,n)))}return eo(e,t,n)}if(n){const r=Tt(80,!0,ha.Declaration_expected);return Zi(e,t,n,r,void 0)}return gn.fail("Should not have attempted to parse class member declaration.")}function uo(e,t,n){return _o(e,t,n,263)}function _o(e,t,n,r){const i=Oe();at(86);const o=!it()||119===$e()&&tt(Wt)?void 0:Dt(it()),a=Fn();X(n,Yw)&&be(!0);const s=po();let c;return at(19)?(c=Yt(5,lo),at(20)):c=sn(),be(i),_e(kt(263===r?E.createClassDeclaration(n,o,a,s,c):E.createClassExpression(n,o,a,s,c),e),t)}function po(){if(ho())return Yt(22,fo)}function fo(){const e=Je(),t=$e();gn.assert(96===t||119===t),Ve();const n=on(7,mo);return kt(E.createHeritageClause(t,n),e)}function mo(){const e=Je(),t=$r();if(233===t.kind)return t;const n=go();return kt(E.createExpressionWithTypeArguments(t,n),e)}function go(){return 30===$e()?cn(20,br,30,32):void 0}function ho(){return 96===$e()||119===$e()}function yo(){const e=Je(),t=ze(),n=It(),r=Te(Cr);return _e(kt(E.createEnumMember(n,r),e),t)}function vo(){const e=Je();let t;return at(19)?(t=Yt(1,Oi),at(20)):t=sn(),kt(E.createModuleBlock(t),e)}function bo(e,t,n,r){const i=32&r,o=8&r?Ft():Et(),a=ft(25)?bo(Je(),!1,void 0,8|i):vo();return _e(kt(E.createModuleDeclaration(n,o,a,r),e),t)}function xo(e,t,n){let r,i,o=0;return 162===$e()?(r=Et(),o|=2048):(r=yn(),r.text=Ct(r.text)),19===$e()?i=vo():xt(),_e(kt(E.createModuleDeclaration(n,r,i,o),e),t)}function So(){return 21===Ve()}function ko(){return 19===Ve()}function To(){return 44===Ve()}function Co(e,t,n,r=!1){let i;return(e||42===$e()||19===$e())&&(i=function(e,t,n,r){let i;return e&&!ft(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),i=42===$e()?function(){const e=Je();at(42),at(130);const t=Et();return kt(E.createNamespaceImport(t),e)}():Ao(275),r&&a.setSkipJsDocLeadingAsterisks(!1)),kt(E.createImportClause(n,e,i),t)}(e,t,n,r),at(161)),i}function Do(){const e=$e();if((118===e||132===e)&&!a.hasPrecedingLineBreak())return Eo(e)}function wo(){const e=Je(),t=ya($e())?Ft():bn(11);at(59);const n=Dr(!0);return kt(E.createImportAttribute(t,n),e)}function Eo(e,t){const n=Je();t||at(e);const r=a.getTokenStart();if(at(19)){const t=a.hasPrecedingLineBreak(),i=on(24,wo,!0);if(!at(20)){const e=ke(h);e&&e.code===ha._0_expected.code&&pT(e,Zx(l,p,r,1,ha.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return kt(E.createImportAttributes(i,t,e),n)}{const t=St([],Je(),void 0,!1);return kt(E.createImportAttributes(t,!1,e),n)}}function Fo(){if(11===$e()){const e=yn();return e.text=Ct(e.text),e}return Tr()}function No(){return ya($e())||11===$e()}function Po(e){return 11===$e()?yn():e()}function Ao(e){const t=Je();return kt(275===e?E.createNamedImports(cn(23,Oo,19,20)):E.createNamedExports(cn(23,Io,19,20)),t)}function Io(){const e=ze();return _e(Lo(281),e)}function Oo(){return Lo(276)}function Lo(e){const t=Je();let n,r=Ah($e())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=Po(Ft);if(80===l.kind&&"type"===l.escapedText)if(130===$e()){const e=Ft();if(130===$e()){const t=Ft();No()?(s=!0,n=e,l=Po(u),c=!1):(n=l,l=t,c=!1)}else No()?(n=l,c=!1,l=Po(u)):(s=!0,l=e)}else No()&&(s=!0,l=Po(u));return c&&130===$e()&&(n=l,at(130),l=Po(u)),276===e&&(80!==l.kind?(je(is(p,l.pos),l.end,ha.Identifier_expected),l=AT(Tt(80,!1),l.pos,l.pos)):r&&je(i,o,ha.Identifier_expected)),kt(276===e?E.createImportSpecifier(s,n,l):E.createExportSpecifier(s,n,l),t);function u(){return r=Ah($e())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),Ft()}}let Ro;var jo;let Mo;var Bo;let Jo;(jo=Ro||(Ro={}))[jo.SourceElements=0]="SourceElements",jo[jo.BlockStatements=1]="BlockStatements",jo[jo.SwitchClauses=2]="SwitchClauses",jo[jo.SwitchClauseStatements=3]="SwitchClauseStatements",jo[jo.TypeMembers=4]="TypeMembers",jo[jo.ClassMembers=5]="ClassMembers",jo[jo.EnumMembers=6]="EnumMembers",jo[jo.HeritageClauseElement=7]="HeritageClauseElement",jo[jo.VariableDeclarations=8]="VariableDeclarations",jo[jo.ObjectBindingElements=9]="ObjectBindingElements",jo[jo.ArrayBindingElements=10]="ArrayBindingElements",jo[jo.ArgumentExpressions=11]="ArgumentExpressions",jo[jo.ObjectLiteralMembers=12]="ObjectLiteralMembers",jo[jo.JsxAttributes=13]="JsxAttributes",jo[jo.JsxChildren=14]="JsxChildren",jo[jo.ArrayLiteralMembers=15]="ArrayLiteralMembers",jo[jo.Parameters=16]="Parameters",jo[jo.JSDocParameters=17]="JSDocParameters",jo[jo.RestProperties=18]="RestProperties",jo[jo.TypeParameters=19]="TypeParameters",jo[jo.TypeArguments=20]="TypeArguments",jo[jo.TupleElementTypes=21]="TupleElementTypes",jo[jo.HeritageClauses=22]="HeritageClauses",jo[jo.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",jo[jo.ImportAttributes=24]="ImportAttributes",jo[jo.JSDocComment=25]="JSDocComment",jo[jo.Count=26]="Count",(Bo=Mo||(Mo={}))[Bo.False=0]="False",Bo[Bo.True=1]="True",Bo[Bo.Unknown=2]="Unknown",(e=>{function t(e){const t=Je(),n=(e?ft:at)(19),r=Se(16777216,wn);e&&!n||_t(20);const i=E.createJSDocTypeExpression(r);return pe(i),kt(i,t)}function n(){const e=Je(),t=ft(19),n=Je();let r=ln(!1);for(;81===$e();)Qe(),We(),r=kt(E.createJSDocMemberName(r,Et()),n);t&&_t(20);const i=E.createJSDocNameReference(r);return pe(i),kt(i,e)}let r;var i;let o;var s;function c(e=0,r){const i=p,o=void 0===r?i.length:e+r;if(r=o-e,gn.assert(e>=0),gn.assert(e<=o),gn.assert(o<=i.length),!xI(i,e))return;let s,c,u,_,d,f=[];const m=[],g=T;T|=1<<25;const h=a.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function l(e){t||(t=r),f.push(e),r+=e.length}for(We();Q(5););Q(4)&&(n=0,r=0);e:for(;;){switch($e()){case 60:v(f),d||(d=Je()),(p=C(r))&&(s?s.push(p):(s=[p],c=p.pos),u=p.end),n=0,t=void 0;break;case 4:f.push(a.getTokenText()),n=0,r=0;break;case 42:const i=a.getTokenText();1===n?(n=2,l(i)):(gn.assert(0===n),n=1,r+=i.length);break;case 5:gn.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=a.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,l(a.getTokenValue());break;case 19:n=2;const g=a.getTokenFullStart(),h=F(a.getTokenEnd()-1);if(h){_||y(f),m.push(kt(E.createJSDocText(f.join("")),_??e,g)),m.push(h),f=[],_=a.getTokenEnd();break}default:n=2,l(a.getTokenText())}2===n?He(!1):We()}var p;const g=f.join("").trimEnd();m.length&&g.length&&m.push(kt(E.createJSDocText(g),_??e,d)),m.length&&s&&gn.assertIsDefined(d,"having parsed tags implies that the end of the comment span should be set");const h=s&&St(s,c,u);return kt(E.createJSDocComment(m.length?St(m,e,d):g.length?g:void 0,h),e,o)}));return T=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.lengthV(n))))&&345!==t.kind;)if(s=!0,344===t.kind){if(r){const e=Le(ha.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&pT(e,Zx(l,p,0,0,ha.The_tag_was_first_specified_here));break}r=t}else o=le(o,t);if(s){const t=i&&188===i.type.kind,n=E.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!L(r.typeExpression.type)?r.typeExpression:kt(n,e),a=i.end}}a=a||void 0!==s?Je():(o??i??t).end,s||(s=D(e,a,n,r));const c=E.createJSDocTypedefTag(t,i,o,s);return kt(c,e,a)}(r,i,e,o);break;case"callback":c=function(e,t,n,r){const i=$();x();let o=w(n);const a=q(e,n);o||(o=D(e,Je(),n,r));const s=void 0!==o?Je():a.end;return kt(E.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":c=function(e,t,n,r){x();let i=w(n);const o=q(e,n);i||(i=D(e,Je(),n,r));const a=void 0!==i?Je():o.end;return kt(E.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":c=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?D(e,Je(),r,i):void 0;return kt(E.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":c=function(e,t,r,i){const o=23===$e()||tt((()=>60===We()&&ya(We())&&P(a.getTokenValue())))?void 0:n(),s=void 0!==r&&void 0!==i?D(e,Je(),r,i):void 0;return kt(E.createJSDocSeeTag(t,o,s),e)}(r,i,e,o);break;case"exception":case"throws":c=function(e,t,n,r){const i=A(),o=D(e,Je(),n,r);return kt(E.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;case"import":c=function(e,t,n,r){const i=a.getTokenFullStart();let o;ot()&&(o=Et());const s=Co(o,i,!0,!0),c=Fo(),l=Do(),u=void 0!==n&&void 0!==r?D(e,Je(),n,r):void 0;return kt(E.createJSDocImportTag(t,s,c,l,u),e)}(r,i,e,o);break;default:c=function(e,t,n,r){return kt(E.createJSDocUnknownTag(t,D(e,Je(),n,r)),e)}(r,i,e,o)}return c}function D(e,t,n,r){return r||(n+=t-e),w(n,r.slice(n))}function w(e,t){const n=Je();let r=[];const i=[];let o,s,c=0;function l(t){s||(s=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),c=1);let u=$e();e:for(;;){switch(u){case 4:c=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:gn.assert(2!==c&&3!==c,"whitespace shouldn't come from the scanner while saving comment text");const t=a.getTokenText();void 0!==s&&e+t.length>s&&(r.push(t.slice(s-e)),c=2),e+=t.length;break;case 19:c=2;const u=a.getTokenFullStart(),_=F(a.getTokenEnd()-1);_?(i.push(kt(E.createJSDocText(r.join("")),o??n,u)),i.push(_),r=[],o=a.getTokenEnd()):l(a.getTokenText());break;case 62:c=3===c?2:3,l(a.getTokenText());break;case 82:3!==c&&(c=2),l(a.getTokenValue());break;case 42:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),l(a.getTokenText())}u=2===c||3===c?He(3===c):We()}y(r);const _=r.join("").trimEnd();return i.length?(_.length&&i.push(kt(E.createJSDocText(_),o??n)),St(i,n,a.getTokenEnd())):_.length?_:void 0}function F(e){const t=rt(N);if(!t)return;We(),x();const n=function(){if(ya($e())){const e=Je();let t=Ft();for(;ft(25);)t=kt(E.createQualifiedName(t,81===$e()?Tt(80,!1):Ft()),e);for(;81===$e();)Qe(),We(),t=kt(E.createJSDocMemberName(t,Et()),e);return t}}(),r=[];for(;20!==$e()&&4!==$e()&&1!==$e();)r.push(a.getTokenText()),We();return kt(("link"===t?E.createJSDocLink:"linkcode"===t?E.createJSDocLinkCode:E.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function N(){if(S(),19===$e()&&60===We()&&ya(We())){const e=a.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function A(){return S(),19===$e()?t():void 0}function O(){const e=Q(23);e&&x();const t=Q(62),n=function(){let e=Z();for(ft(23)&&at(24);ft(25);){const t=Z();ft(23)&&at(24),e=un(e,t)}return e}();var r;return t&&(gt(r=62)||(gn.assert(Oh(r)),Tt(r,!1,ha._0_expected,Ra(r)))),e&&(x(),mt(64)&&Tr(),at(24)),{name:n,isBracketed:e}}function L(e){switch(e.kind){case 151:return!0;case 188:return L(e.elementType);default:return EE(e)&&Xw(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function R(e,t,n,r){let i=A(),o=!i;S();const{name:a,isBracketed:s}=O(),c=S();o&&!tt(N)&&(i=A());const l=D(e,Je(),r,c),u=function(e,t,n,r){if(e&&L(e.type)){const i=Je();let o,a;for(;o=rt((()=>W(n,r,t)));)341===o.kind||348===o.kind?a=le(a,o):345===o.kind&&Me(o.tagName,ha.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=kt(E.createJSDocTypeLiteral(a,188===e.type.kind),i);return kt(E.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return u&&(i=u,o=!0),kt(1===n?E.createJSDocPropertyTag(t,a,s,i,o,l):E.createJSDocParameterTag(t,a,s,i,o,l),e)}function j(e,n,r,i){X(s,AP)&&je(n.pos,a.getTokenStart(),ha._0_tag_already_specified,Sc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?D(e,Je(),r,i):void 0;return kt(E.createJSDocTypeTag(n,o,c),e)}function B(){const e=ft(19),t=Je(),n=function(){const e=Je();let t=Z();for(;ft(25);){const n=Z();t=kt(M(t,n),e)}return t}();a.setSkipJsDocLeadingAsterisks(!0);const r=go();a.setSkipJsDocLeadingAsterisks(!1);const i=kt(E.createExpressionWithTypeArguments(n,r),t);return e&&at(20),i}function J(e,t,n,r,i){return kt(t(n,D(e,Je(),r,i)),e)}function z(e,n,r,i){const o=t(!0);return x(),kt(E.createJSDocThisTag(n,o,D(e,Je(),r,i)),e)}function $(e){const t=a.getTokenStart();if(!ya($e()))return;const n=Z();if(ft(25)){const r=$(!0);return kt(E.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function q(e,t){const n=function(e){const t=Je();let n,r;for(;n=rt((()=>W(4,e)));){if(345===n.kind){Me(n.tagName,ha.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=le(r,n)}return St(r||[],t)}(t),r=rt((()=>{if(Q(60)){const e=C(t);if(e&&342===e.kind)return e}}));return kt(E.createJSDocSignature(void 0,n,r),e)}function U(e,t){for(;!Xw(e)||!Xw(t);){if(Xw(e)||Xw(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function V(e){return W(1,e)}function W(e,t,n){let r=!0,i=!1;for(;;)switch(We()){case 60:if(r){const r=H(e,t);return!(r&&(341===r.kind||348===r.kind)&&n&&(Xw(r.name)||!U(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function H(e,t){gn.assert(60===$e());const n=a.getTokenFullStart();We();const r=Z(),i=S();let o;switch(r.escapedText){case"type":return 1===e&&j(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return K(n,r,t,i);case"this":return z(n,r,t,i);default:return!1}return!!(e&o)&&R(n,r,e,t)}function G(){const e=Je(),t=Q(23);t&&x();const n=so(!1,!0),r=Z(ha.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),at(64),i=Se(16777216,wn),at(24)),!Id(r))return kt(E.createTypeParameterDeclaration(n,r,void 0,i),e)}function K(e,n,r,i){const o=19===$e()?t():void 0,a=function(){const e=Je(),t=[];do{x();const e=G();void 0!==e&&t.push(e),S()}while(Q(28));return St(t,e)}();return kt(E.createJSDocTemplateTag(n,o,a,D(e,Je(),r,i)),e)}function Q(e){return $e()===e&&(We(),!0)}function Z(e){if(!ya($e()))return Tt(80,!e,e||ha.Identifier_expected);k++;const t=a.getTokenStart(),n=a.getTokenEnd(),r=$e(),i=Ct(a.getTokenValue()),o=kt(I(i,r),t,n);return We(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){se("file.js",e,99,void 0,1,0),a.setText(e,n,r),b=a.scan();const i=t(),o=fe("file.js",99,1,!1,[],L(1),0,ct),s=nS(h,o);return y&&(o.jsDocDiagnostics=nS(y,o)),ce(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){se("",e,99,void 0,1,0);const r=Se(16777216,(()=>c(t,n))),i=nS(h,{languageVariant:0,text:e});return ce(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=b,i=h.length,o=oe,a=Se(16777216,(()=>c(t,n)));return LT(a,e),524288&w&&(y||(y=[]),de(y,h,i)),b=r,h.length=i,oe=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(s=o||(o={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(Jo=e.JSDocParser||(e.JSDocParser={}))})(CI||(CI={}));var eO,tO=new WeakSet,nO=new WeakSet;function rO(e){nO.add(e)}function iO(e){return void 0!==oO(e)}function oO(e){const t=Bo(e,Rk,!1);if(t)return t;if(No(e,".ts")){const t=jo(e),n=t.lastIndexOf(".d.");if(n>=0)return t.substring(n)}}function aO(e,t){const n=[];for(const e of hs(t,0)||u)dO(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(const t of n)if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args])}else e.pragmas.set(t.name,t.args)}function sO(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;f(rt(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":l,preserve:u}=n.arguments,_="true"===u||void 0;if("true"===n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,ha.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{},..._?{preserve:_}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value,..._?{preserve:_}:{}}):c?r.push({pos:c.pos,end:c.end,fileName:c.value,..._?{preserve:_}:{}}):t(n.range.pos,n.range.end-n.range.pos,ha.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=O(rt(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,ha.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":f(rt(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:gn.fail("Unhandled pragma kind")}}))}(e=>{function t(e,t,r,o,a,s,c){return void(r?u(e):l(e));function l(e){let r="";if(c&&n(e)&&(r=a.substring(e.pos,e.end)),WP(e,t),AT(e,e.pos+o,e.end+o),c&&n(e)&&gn.assert(r===s.substring(e.pos,e.end)),qI(e,l,u),L_(e))for(const t of e.jsDoc)l(t);i(e,c)}function u(e){AT(e,e.pos+o,e.end+o);for(const t of e)l(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){gn.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),gn.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),gn.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);if(gn.assert(o<=a),e.parent){const t=e.parent;gn.assertGreaterThanOrEqual(o,t.pos),gn.assertLessThanOrEqual(a,t.end)}AT(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{gn.assert(e.pos>=t),t=e.end};if(L_(e))for(const t of e.jsDoc)n(t);qI(e,n),gn.assert(t<=e.end)}}function o(e,t){let n,r=e;if(qI(e,(function e(i){if(!Id(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),tt),!0)})),n){const e=function(e){for(;;){const t=wx(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(gn.assert(i.length-n.span.length+n.newLength===t.length),r||gn.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);gn.assert(e===r);const o=i.substring(Rs(n.span),i.length),a=t.substring(Rs(ec(n)),t.length);gn.assert(o===a)}}function s(e){let t=e.statements,n=0;gn.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=n;t++){const t=o(e,r);gn.assert(t.pos<=r);const n=t.pos;r=Math.max(0,n-1)}const i=Zs(r,Rs(t.span)),a=t.newLength+(t.span.start-r);return nc(i,a)}(e,c);a(e,n,d,l),gn.assert(d.span.start<=c.span.start),gn.assert(Rs(d.span)===Rs(c.span)),gn.assert(Rs(ec(d))===Rs(ec(c)));const p=ec(d).length-d.span.length;!function(e,n,o,a,s,c,l,u){return void _(e);function _(p){if(gn.assert(p.pos<=p.end),p.pos>o)return void t(p,e,!1,s,c,l,u);const f=p.end;if(f>=n){if(rO(p),WP(p,e),r(p,n,o,a,s),qI(p,_,d),L_(p))for(const e of p.jsDoc)_(e);i(p,u)}else gn.assert(fo)return void t(i,e,!0,s,c,l,u);const d=i.end;if(d>=n){rO(i),r(i,n,o,a,s);for(const e of i)_(e)}else gn.assert(dr){u();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=le(c,t),s&&gn.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return u(),c;function u(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,f.commentDirectives,d.span.start,Rs(d.span),p,u,n,l),f.impliedNodeFormat=e.impliedNodeFormat,HP(e,f),f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(eO||(eO={}));var cO=new Map;function lO(e){if(cO.has(e))return cO.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return cO.set(e,t),t}var uO=/^\/\/\/\s*<(\S+)\s.*?\/>/m,_O=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function dO(e,t,n){const r=2===t.kind&&uO.exec(n);if(r){const i=r[1].toLowerCase(),o=zi[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=lO(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&_O.exec(n);if(i)return pO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let i;for(;i=r.exec(n);)pO(e,t,4,i)}}function pO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=zi[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let t=0;t[""+t,e]))),vO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],bO=vO.map((e=>e[0])),xO=new Map(vO),SO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:ha.Watch_and_Build_Modes,description:ha.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:ha.Watch_and_Build_Modes,description:ha.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:ha.Watch_and_Build_Modes,description:ha.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:ha.Watch_and_Build_Modes,description:ha.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:jR},allowConfigDirTemplateSubstitution:!0,category:ha.Watch_and_Build_Modes,description:ha.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:jR},allowConfigDirTemplateSubstitution:!0,category:ha.Watch_and_Build_Modes,description:ha.Remove_a_list_of_files_from_the_watch_mode_s_processing}],kO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:ha.Command_line_Options,description:ha.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:ha.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:ha.Command_line_Options,description:ha.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:ha.Output_Formatting,description:ha.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:ha.Compiler_Diagnostics,description:ha.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:ha.Compiler_Diagnostics,description:ha.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:ha.Compiler_Diagnostics,description:ha.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:ha.Output_Formatting,description:ha.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:ha.Compiler_Diagnostics,description:ha.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:ha.Compiler_Diagnostics,description:ha.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:ha.Compiler_Diagnostics,description:ha.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:ha.FILE_OR_DIRECTORY,category:ha.Compiler_Diagnostics,description:ha.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:ha.DIRECTORY,category:ha.Compiler_Diagnostics,description:ha.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:ha.Projects,description:ha.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:ha.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.Emit,transpileOptionValue:void 0,description:ha.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:ha.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.Emit,defaultValueDescription:!1,description:ha.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.Emit,description:ha.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.Emit,defaultValueDescription:!1,description:ha.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:ha.Emit,description:ha.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:ha.Compiler_Diagnostics,description:ha.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:ha.Emit,description:ha.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ha.Watch_and_Build_Modes,description:ha.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:ha.Command_line_Options,isCommandLineOnly:!0,description:ha.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:ha.Platform_specific}],TO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:ha.VERSION,showInSimplifiedHelpView:!0,category:ha.Language_and_Environment,description:ha.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},CO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:ha.KIND,showInSimplifiedHelpView:!0,category:ha.Modules,description:ha.Specify_what_module_code_is_generated,defaultValueDescription:void 0},DO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:ha.Command_line_Options,description:ha.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:ha.Command_line_Options,description:ha.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:ha.Command_line_Options,description:ha.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:ha.Command_line_Options,paramType:ha.FILE_OR_DIRECTORY,description:ha.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:ha.Command_line_Options,isCommandLineOnly:!0,description:ha.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:ha.Command_line_Options,isCommandLineOnly:!0,description:ha.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},TO,CO,{name:"lib",type:"list",element:{name:"lib",type:xO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:ha.Language_and_Environment,description:ha.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.JavaScript_Support,description:ha.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.JavaScript_Support,description:ha.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:hO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:ha.KIND,showInSimplifiedHelpView:!0,category:ha.Language_and_Environment,description:ha.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ha.FILE,showInSimplifiedHelpView:!0,category:ha.Emit,description:ha.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ha.DIRECTORY,showInSimplifiedHelpView:!0,category:ha.Emit,description:ha.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ha.LOCATION,category:ha.Modules,description:ha.Specify_the_root_folder_within_your_source_files,defaultValueDescription:ha.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:ha.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:ha.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:ha.FILE,category:ha.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:ha.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.Emit,defaultValueDescription:!1,description:ha.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:ha.Emit,description:ha.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Backwards_Compatibility,description:ha.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Emit,description:ha.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:ha.Interop_Constraints,description:ha.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Interop_Constraints,description:ha.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:ha.Interop_Constraints,description:ha.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.Type_Checking,description:ha.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:ha.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:ha.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:ha.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:ha.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:ha.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:ha.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:ha.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:ha.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:ha.Type_Checking,description:ha.Ensure_use_strict_is_always_emitted,defaultValueDescription:ha.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:ha.Type_Checking,description:ha.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:ha.STRATEGY,category:ha.Modules,description:ha.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:ha.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:ha.Modules,description:ha.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:ha.Modules,description:ha.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:ha.Modules,description:ha.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:ha.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:ha.Modules,description:ha.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:ha.Modules,description:ha.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Interop_Constraints,description:ha.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:ha.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ha.Interop_Constraints,description:ha.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:ha.Interop_Constraints,description:ha.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Modules,description:ha.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:ha.Modules,description:ha.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Modules,description:ha.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Modules,description:ha.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:ha.Modules,description:ha.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:ha.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:ha.Modules,description:ha.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:ha.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:ha.Modules,description:ha.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Modules,description:ha.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:ha.LOCATION,category:ha.Emit,description:ha.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:ha.LOCATION,category:ha.Emit,description:ha.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Emit,description:ha.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Language_and_Environment,description:ha.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ha.Language_and_Environment,description:ha.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:ha.Language_and_Environment,description:ha.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:ha.Language_and_Environment,description:ha.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:ha.Language_and_Environment,description:ha.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:ha.Modules,description:ha.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:ha.Modules,description:ha.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:ha.Backwards_Compatibility,paramType:ha.FILE,transpileOptionValue:void 0,description:ha.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Language_and_Environment,description:ha.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:ha.Completeness,description:ha.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:ha.Backwards_Compatibility,description:ha.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Emit,description:ha.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:ha.NEWLINE,category:ha.Emit,description:ha.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Output_Formatting,description:ha.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:ha.Language_and_Environment,affectsProgramStructure:!0,description:ha.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:ha.Modules,description:ha.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Emit,description:ha.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:ha.Editor_Support,description:ha.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:ha.Projects,description:ha.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:ha.Projects,description:ha.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:ha.Projects,description:ha.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Backwards_Compatibility,description:ha.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Emit,description:ha.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Emit,transpileOptionValue:void 0,description:ha.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Emit,description:ha.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ha.DIRECTORY,category:ha.Emit,transpileOptionValue:void 0,description:ha.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:ha.Completeness,description:ha.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Type_Checking,description:ha.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Backwards_Compatibility,description:ha.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Backwards_Compatibility,description:ha.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:ha.Interop_Constraints,description:ha.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:ha.JavaScript_Support,description:ha.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ha.Backwards_Compatibility,description:ha.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ha.Language_and_Environment,description:ha.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:ha.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ha.Backwards_Compatibility,description:ha.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:ha.Backwards_Compatibility,description:ha.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:ha.Specify_a_list_of_language_service_plugins_to_include,category:ha.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:ha.Control_what_method_is_used_to_detect_module_format_JS_files,category:ha.Language_and_Environment,defaultValueDescription:ha.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],wO=[...kO,...DO],EO=wO.filter((e=>!!e.affectsSemanticDiagnostics)),FO=wO.filter((e=>!!e.affectsEmit)),NO=wO.filter((e=>!!e.affectsDeclarationPath)),PO=wO.filter((e=>!!e.affectsModuleResolution)),AO=wO.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),IO=wO.filter((e=>!!e.affectsProgramStructure)),OO=wO.filter((e=>Ie(e,"transpileOptionValue"))),LO=wO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),RO=SO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),jO=wO.filter((function(e){return!it(e.type)})),MO={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:ha.Command_line_Options,description:ha.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},BO=[MO,{name:"verbose",shortName:"v",category:ha.Command_line_Options,description:ha.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:ha.Command_line_Options,description:ha.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:ha.Command_line_Options,description:ha.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:ha.Command_line_Options,description:ha.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:ha.Command_line_Options,description:ha.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],JO=[...kO,...BO],zO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function $O(e){const t=new Map,n=new Map;return f(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function qO(){return mO||(mO=$O(wO))}var UO={diagnostic:ha.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:oL},VO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function WO(e){return HO(e,oS)}function HO(e,t){const n=Be(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(ha.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function GO(e,t,n){return DR(e,(t??"").trim(),n)}function KO(e,t="",n){if(en(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return CR(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return q(r,(t=>CR(e.element,parseInt(t),n)));case"string":return q(r,(t=>CR(e.element,t||"",n)));case"boolean":case"object":return gn.fail(`List of ${e.element.type} is not yet supported.`);default:return q(r,(t=>GO(e.element,t,n)))}}function XO(e){return e.name}function QO(e,t,n,r,i){var o;const a=null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return kR(i,r,a!==MO?t.alternateMode.diagnostic:ha.Option_build_must_be_the_first_command_line_argument,e);const s=Jt(e,t.optionDeclarations,XO);return s?kR(i,r,t.unknownDidYouMeanDiagnostic,n||e,s.name):kR(i,r,t.unknownOptionDiagnostic,n||e)}function YO(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;ngo.readFile(e)));if(!it(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function ZO(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=CR(r,!1,o),t++):("true"===n&&t++,o.push(oS(ha.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(oS(ha.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!en(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(oS(n.optionTypeMismatchDiagnostic,r.name,IL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=CR(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=CR(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=CR(r,e[t]||"",o),t++;break;case"list":const a=KO(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":gn.fail("listOrElement not supported here");break;default:i[r.name]=GO(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var eL,tL={alternateMode:UO,getOptionsNameMap:qO,optionDeclarations:wO,unknownOptionDiagnostic:ha.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:ha.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ha.Compiler_option_0_expects_an_argument};function nL(e,t){return YO(tL,e,t)}function rL(e,t){return iL(qO,e,t)}function iL(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function oL(){return eL||(eL=$O(JO))}var aL={alternateMode:{diagnostic:ha.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:qO},getOptionsNameMap:oL,optionDeclarations:JO,unknownOptionDiagnostic:ha.Unknown_build_option_0,unknownDidYouMeanDiagnostic:ha.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ha.Build_option_0_requires_a_value_of_type_1};function sL(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=YO(aL,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(oS(ha.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(oS(ha.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(oS(ha.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(oS(ha.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function cL(e,...t){return st(oS(e,...t).messageText,it)}function lL(e,t,n,r,i,o){const a=pL(e,(e=>n.readFile(e)));if(!it(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=KI(e,a),c=n.getCurrentDirectory();return s.path=Xo(e,c,Xt(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,KL(s,n,Ho(Ro(e),c),t,Ho(e,c),void 0,o,r,i)}function uL(e,t){const n=pL(e,t);return it(n)?_L(e,n):{config:{},error:n}}function _L(e,t){const n=KI(e,t);return{config:NL(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function dL(e,t){const n=pL(e,t);return it(n)?KI(e,n):{fileName:e,parseDiagnostics:[n]}}function pL(e,t){let n;try{n=t(e)}catch(t){return oS(ha.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?oS(ha.Cannot_read_file_0,e):n}function fL(e){return $e(e,XO)}var mL,gL={optionDeclarations:zO,unknownOptionDiagnostic:ha.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:ha.Unknown_type_acquisition_option_0_Did_you_mean_1};function hL(){return mL||(mL=$O(SO))}var yL,vL,bL,xL={getOptionsNameMap:hL,optionDeclarations:SO,unknownOptionDiagnostic:ha.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:ha.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ha.Watch_option_0_requires_a_value_of_type_1};function SL(){return yL||(yL=fL(wO))}function kL(){return vL||(vL=fL(SO))}function TL(){return bL||(bL=fL(zO))}var CL,DL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:ha.File_Management,disallowNullOrUndefined:!0},wL={name:"compilerOptions",type:"object",elementOptions:SL(),extraKeyDiagnostics:tL},EL={name:"watchOptions",type:"object",elementOptions:kL(),extraKeyDiagnostics:xL},FL={name:"typeAcquisition",type:"object",elementOptions:TL(),extraKeyDiagnostics:gL};function NL(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&210!==i.kind){if(t.push(Wp(e,i,ha.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===jo(e.fileName)?"jsconfig.json":"tsconfig.json")),eF(i)){const r=T(i.elements,tF);if(r)return AL(e,r,t,!0,n)}return{}}return AL(e,i,t,!0,n)}function PL(e,t){var n;return AL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function AL(e,t,n,r,i){return t?o(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t,s){switch(t.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return a(t)||n.push(Wp(e,t,ha.String_literal_with_double_quotes_expected)),t.text;case 9:return Number(t.text);case 224:if(41!==t.operator||9!==t.operand.kind)break;return-Number(t.operand.text);case 210:return function(t,s){var c;const l=r?{}:void 0;for(const u of t.properties){if(303!==u.kind){n.push(Wp(e,u,ha.Property_assignment_expected));continue}u.questionToken&&n.push(Wp(e,u.questionToken,ha.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),a(u.name)||n.push(Wp(e,u.name,ha.String_literal_with_double_quotes_expected));const t=Jp(u.name)?void 0:$p(u.name),_=t&&Sc(t),d=_?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(_):void 0,p=o(u.initializer,d);void 0!==_&&(r&&(l[_]=p),null==i||i.onPropertySet(_,p,u,s,d))}return l}(t,s);case 209:return function(e,t){if(r)return P(e.map((e=>o(e,t))),(e=>void 0!==e));e.forEach((e=>o(e,t)))}(t.elements,s&&s.element)}s?n.push(Wp(e,t,ha.Compiler_option_0_requires_a_value_of_type_1,s.name,IL(s))):n.push(Wp(e,t,ha.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function a(t){return Iw(t)&&Km(t,e)}}function IL(e){return"listOrElement"===e.type?`${IL(e.element)} or Array`:"list"===e.type?"Array":it(e.type)?e.type:"string"}function OL(e,t){return!!e&&(QL(t)?!e.disallowNullOrUndefined:"list"===e.type?nt(t):"listOrElement"===e.type?nt(t)||OL(e.element,t):typeof t===(it(e.type)?e.type:"string"))}function LL(e,t,n){var r,i,o;const a=Xt(n.useCaseSensitiveFileNames),s=O(P(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return ut;const i=Sk(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&kk(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&kk(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):ut}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):ut),(e=>da(Ho(t,n.getCurrentDirectory()),Ho(e,n.getCurrentDirectory()),a))),c={configFilePath:Ho(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},l=zL(e.options,c),u=e.watchOptions&&$L(e.watchOptions,hL()),_={compilerOptions:{...jL(l),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:u&&jL(u),references:O(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:p(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:ML(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},d=new Set(l.keys()),f={};for(const t in TS)!d.has(t)&&RL(t,d)&&TS[t].computeValue(e.options)!==TS[t].computeValue({})&&(f[t]=TS[t].computeValue(e.options));return Je(_.compilerOptions,jL(zL(f,c))),_}function RL(e,t){const n=new Set;return function e(r){var i;return!!Ex(n,r)&&X(null==(i=TS[r])?void 0:i.dependencies,(n=>t.has(n)||e(n)))}(e)}function jL(e){return Object.fromEntries(e)}function ML(e){if(p(e)){if(1!==p(e))return e;if(e[0]!==ZL)return e}}function BL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return BL(e.element);default:return e.type}}function JL(e,t){return ld(t,((t,n)=>{if(t===e)return n}))}function zL(e,t){return $L(e,qO(),t)}function $L(e,{optionsNameMap:t},n){const r=new Map,i=n&&Xt(n.useCaseSensitiveFileNames);for(const o in e)if(Ie(e,o)){if(t.has(o)&&(t.get(o).category===ha.Command_line_Options||t.get(o).category===ha.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){gn.assert("listOrElement"!==s.type);const e=BL(s);e?"list"===s.type?r.set(o,a.map((t=>JL(t,e)))):r.set(o,JL(a,e)):n&&s.isFilePath?r.set(o,da(n.configFilePath,Ho(a,Ro(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map((e=>da(n.configFilePath,Ho(e,Ro(n.configFilePath)),i)))):r.set(o,a)}}return r}function qL(e,t){const n=UL(e);return function(){const e=[],r=Array(2+1).join(" ");return DO.forEach((t=>{if(!n.has(t.name))return;const i=n.get(t.name),o=VR(t);i!==o?e.push(`${r}${t.name}: ${i}`):Ie(VO,t.name)&&e.push(`${r}${t.name}: ${o}`)})),e.join(t)+t}()}function UL(e){return zL(Ge(e,VO))}function VL(e,t,n){const r=UL(e);return function(){const e=new Map;e.set(ha.Projects,[]),e.set(ha.Language_and_Environment,[]),e.set(ha.Modules,[]),e.set(ha.JavaScript_Support,[]),e.set(ha.Emit,[]),e.set(ha.Interop_Constraints,[]),e.set(ha.Type_Checking,[]),e.set(ha.Completeness,[]);for(const t of wO)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${Yx(t)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(VR(t))},`,c.push({value:e,description:`/* ${t.description&&Yx(t.description)||t.name} */`}),a=Math.max(e.length,a)}}));const l=i(2),u=[];u.push("{"),u.push(`${l}"compilerOptions": {`),u.push(`${l}${l}/* ${Yx(ha.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),u.push("");for(const e of c){const{value:t,description:n=""}=e;u.push(t&&`${l}${l}${t}${n&&i(a-t.length+2)+n}`)}if(t.length){u.push(`${l}},`),u.push(`${l}"files": [`);for(let e=0;e"object"==typeof e),"object"),n=h(y("files"));if(n){const r="no-prop"===e||nt(e)&&0===e.length,i=Ie(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=ha.The_files_list_in_config_file_0_is_empty,r=em(t,"files",(e=>e.initializer)),i=kR(t,r,n,e);u.push(i)}else b(ha.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c,l,_=!1,f=h(i);if("no-prop"===i){const e=p.outDir,t=p.declarationDir;(e||t)&&(f=P([e,t],(e=>!!e)))}void 0===n&&void 0===r&&(r=[ZL],_=!0),r&&(o=RR(r,u,!0,t,"include"),c=aR(o,m)||o),f&&(s=RR(f,u,!1,t,"exclude"),l=aR(s,m)||s);const g=P(n,it),x=aR(g,m)||g;return{filesSpecs:n,includeSpecs:r,excludeSpecs:f,validatedFilesSpec:x,validatedIncludeSpecs:c,validatedExcludeSpecs:l,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:o,validatedExcludeSpecsBeforeSubstitution:s,isDefaultIncludeSpec:_}}();return t&&(t.configFileSpecs=g),XL(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=PR(g,e,p,n,c);return lR(t,_R(d),s)&&u.push(cR(g,a)),t}(m),projectReferences:function(e){let t;const n=v("references",(e=>"object"==typeof e),"object");if(nt(n))for(const r of n)"string"!=typeof r.path?b(ha.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:Ho(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(m),typeAcquisition:_.typeAcquisition||bR(),raw:d,errors:u,wildcardDirectories:MR(g,m,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return nt(e)?e:void 0}function y(e){return v(e,it,"string")}function v(e,n,r){if(Ie(d,e)&&!QL(d[e])){if(nt(d[e])){const i=d[e];return t||k(i,n)||u.push(oS(ha.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return b(ha.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function b(e,...n){t||u.push(oS(e,...n))}}function tR(e,t){return nR(e,RO,t)}function nR(e,t,n){if(!e)return e;let r;for(const r of t)if(void 0!==e[r.name]){const t=e[r.name];switch(r.type){case"string":gn.assert(r.isFilePath),iR(t)&&i(r,oR(t,n));break;case"list":gn.assert(r.element.isFilePath);const e=aR(t,n);e&&i(r,e);break;case"object":gn.assert("paths"===r.name);const o=sR(t,n);o&&i(r,o);break;default:gn.fail("option type not supported")}}return r||e;function i(t,n){(r??(r=Je({},e)))[t.name]=n}}var rR="${configDir}";function iR(e){return it(e)&&en(e,rR,!0)}function oR(e,t){return Ho(e.replace(rR,"./"),t)}function aR(e,t){if(!e)return e;let n;return e.forEach(((r,i)=>{iR(r)&&((n??(n=e.slice()))[i]=oR(r,t))})),n}function sR(e,t){let n;return Le(e).forEach((r=>{if(!nt(e[r]))return;const i=aR(e[r],t);i&&((n??(n=Je({},e)))[r]=i)})),n}function cR({includeSpecs:e,excludeSpecs:t},n){return oS(ha.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function lR(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function uR(e){return!e.fileNames.length&&Ie(e.raw,"references")}function _R(e){return!Ie(e,"files")&&!Ie(e,"references")}function dR(e,t,n,r,i){const o=r.length;return lR(e,i)?r.push(cR(n,t)):A(r,(e=>!function(e){return e.code===ha.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function pR(e,t,n,r,i,o,a,s){var c;const l=Ho(i||"",r=$o(r));if(o.includes(l))return a.push(oS(ha.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||PL(t,a)};const u=e?function(e,t,n,r,i){Ie(e,"excludes")&&i.push(oS(ha.Unknown_option_excludes_Did_you_mean_exclude));const o=vR(e.compilerOptions,n,i,r),a=xR(e.typeAcquisition,n,i,r),s=function(e,t,n){return SR(kL(),e,t,void 0,xL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!Ie(e,gO.name))return!1;const r=TR(gO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);const c=e.extends||""===e.extends?fR(e.extends,t,n,r,i):void 0;return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(e,n,r,i,a):function(e,t,n,r,i){const o=yR(r);let a,s,c,l;const u=(void 0===CL&&(CL={name:void 0,type:"object",elementOptions:fL([wL,EL,FL,DL,{name:"references",type:"list",element:{name:"references",type:"object"},category:ha.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:ha.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:ha.File_Management,defaultValueDescription:ha.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:ha.File_Management,defaultValueDescription:ha.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},gO])}),CL),_=NL(e,i,{rootOptions:u,onPropertySet:d});return a||(a=bR(r)),l&&_&&void 0===_.compilerOptions&&i.push(Wp(e,l[0],ha._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$p(l[0]))),{raw:_,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c};function d(_,d,p,f,m){if(m&&m!==DL&&(d=TR(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===wL?e=o:f===EL?e=s??(s={}):f===FL?e=a??(a=bR(r)):gn.fail("Unknown option"),e[m.name]=d}else _&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(QO(_,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Wp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,_)));else f===u&&(m===DL?c=fR(d,t,n,r,i,p,p.initializer,e):m||("excludes"===_&&i.push(Wp(e,p.name,ha.Unknown_option_excludes_Did_you_mean_exclude)),T(DO,(e=>e.name===_))&&(l=le(l,p.name))))}}(t,n,r,i,a);if((null==(c=u.options)?void 0:c.paths)&&(u.options.pathsBasePath=r),u.extendedConfigPath){o=o.concat([l]);const e={options:{}};it(u.extendedConfigPath)?_(e,u.extendedConfigPath):u.extendedConfigPath.forEach((t=>_(e,t))),e.include&&(u.raw.include=e.include),e.exclude&&(u.raw.exclude=e.exclude),e.files&&(u.raw.files=e.files),void 0===u.raw.compileOnSave&&e.compileOnSave&&(u.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Be(e.extendedSourceFiles.keys())),u.options=Je(e.options,u.options),u.watchOptions=u.watchOptions&&e.watchOptions?d(e,u.watchOptions):u.watchOptions||e.watchOptions}return u;function _(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:mt(t);let c,l,u;if(o&&(c=o.get(s))?({extendedResult:l,extendedConfig:u}=c):(l=dL(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(u=pR(void 0,l,n,Ro(t),jo(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:u})),e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(!l.parseDiagnostics.length)return u;i.push(...l.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{u.raw[a]||t[a]&&(e[a]=O(t[a],(e=>iR(e)||To(e)?e:Uo(o||(o=_a(Ro(i),r,Xt(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Je(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?d(e,c.watchOptions):e.watchOptions||c.watchOptions}}function d(e,t){return e.watchOptionsCopied?Je(e.watchOptions,t):(e.watchOptionsCopied=!0,Je({},e.watchOptions,t))}}function fR(e,t,n,r,i,o,a,s){let c;const l=r?YL(r,n):n;if(it(e))c=mR(e,t,l,i,a,s);else if(nt(e)){c=[];for(let r=0;rkR(i,r,e,...t))))}function wR(e,t,n,r,i,o,a){return P(O(t,((t,s)=>TR(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}var ER,FR=/(?:^|\/)\*\*\/?$/,NR=/^[^*?]*(?=\/[^/]*[*?])/;function PR(e,t,n,r,i=u){t=Go(t);const o=Xt(r.useCaseSensitiveFileNames),a=new Map,s=new Map,c=new Map,{validatedFilesSpec:l,validatedIncludeSpecs:_,validatedExcludeSpecs:d}=e,p=Bk(n,i),f=Jk(n,p);if(l)for(const e of l){const n=Ho(e,t);a.set(o(n),n)}let m;if(_&&_.length>0)for(const e of r.readDirectory(t,j(f),d,_,void 0)){if(No(e,".json")){if(!m){const e=O(hk(_.filter((e=>$t(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>kk(e,r.useCaseSensitiveFileNames))):u}const n=D(m,(t=>t.test(e)));if(-1!==n){const t=o(e);a.has(t)||c.has(t)||c.set(t,e)}continue}if(zR(e,a,s,p,o))continue;$R(e,s,p,o);const n=o(e);a.has(n)||s.has(n)||s.set(n,e)}const g=Be(a.values()),h=Be(s.values());return g.concat(h,Be(c.values()))}function AR(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!p(a)||!p(s))return!1;n=Go(n);const c=Xt(r);if(o)for(const t of o)if(c(Ho(t,n))===e)return!1;return LR(e,s,r,i,n)}function IR(e){const t=en(e,"**/")?0:e.indexOf("/**/");return-1!==t&&($t(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function OR(e,t,n,r){return LR(e,P(t,(e=>!IR(e))),n,r)}function LR(e,t,n,r,i){const o=gk(t,Uo(Go(r),i),"exclude"),a=o&&kk(o,n);return!!a&&(!!a.test(e)||!Fo(e)&&a.test(Yo(e)))}function RR(e,t,n,r,i){return e.filter((e=>{if(!it(e))return!1;const o=jR(e,n);return void 0!==o&&t.push(function(e,t){const n=Zf(r,i,t);return kR(r,n,e,t)}(...o)),void 0===o}))}function jR(e,t){return gn.assert("string"==typeof e),t&&FR.test(e)?[ha.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:IR(e)?[ha.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function MR({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=gk(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const i of e){const e=Go(Uo(n,i));if(o&&o.test(e))continue;const c=JR(e,r);if(c){const{key:e,path:n,flags:r}=c,i=s.get(e),o=void 0!==i?a[i]:void 0;(void 0===o||oPo(e,t)?t:void 0));if(!o)return!1;for(const r of o){if(No(e,r)&&(".ts"!==r||!No(e,".d.ts")))return!1;const o=i(Zk(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(No(e,".js")||No(e,".jsx")))continue;return!0}}return!1}function $R(e,t,n,r){const i=f(n,(t=>Po(e,t)?t:void 0));if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(No(e,o))return;const a=r(Zk(e,o));t.delete(a)}}function qR(e){const t={};for(const n in e)if(Ie(e,n)){const r=rL(n);void 0!==r&&(t[n]=UR(e[n],r))}return t}function UR(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!nt(e))return UR(e,t.element);case"list":const n=t.element;return nt(e)?q(e,(e=>UR(e,n))):"";default:return ld(t.type,((t,n)=>{if(t===e)return n}))}}function VR(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"==typeof t?t:""}`:"";case"list":return[];case"listOrElement":return VR(e.element);case"object":return{};default:const n=be(e.type.keys());return void 0!==n?n:gn.fail("Expected 'option.type' to have entries.")}}function WR(e,t,...n){e.trace(iS(t,...n))}function HR(e,t){return!!e.traceResolution&&void 0!==t.trace}function GR(e,t,n){let r;if(t&&e){const i=e.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+yo.length),version:i.version,peerDependencies:lM(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function KR(e){return GR(void 0,e,void 0)}function XR(e){if(e)return gn.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function QR(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function YR(e){if(e)return gn.assert(iT(e.extension)),{fileName:e.path,packageId:e.packageId}}function ZR(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!As(e)){const{resolvedFileName:e,originalPath:n}=uj(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return ej(t,n,r,i,o,a.resultFromCache,s,c)}function ej(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:rj(o.failedLookupLocations,n),affectingLocations:rj(o.affectingLocations,r),resolutionDiagnostics:rj(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=nj(o.failedLookupLocations,n),o.affectingLocations=nj(o.affectingLocations,r),o.resolutionDiagnostics=nj(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:tj(n),affectingLocations:tj(r),resolutionDiagnostics:tj(i),alternateResult:s}}function tj(e){return e.length?e:void 0}function nj(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function rj(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():tj(t)}function ij(e,t,n,r){if(!Ie(e,t))return void(r.traceEnabled&&WR(r.host,ha.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&WR(r.host,ha.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function oj(e,t,n,r){const i=ij(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&WR(r.host,ha.package_json_had_a_falsy_0_field,t));const o=Go(Uo(n,i));return r.traceEnabled&&WR(r.host,ha.package_json_has_0_field_1_that_references_2,t,i,o),o}function aj(e,t){const n=function(e,t){const n=ij(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&WR(t.host,ha.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(void 0===n)return;if(t.traceEnabled)for(const e in n)Ie(n,e)&&!wn.tryParse(e)&&WR(t.host,ha.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const r=sj(n);if(!r)return void(t.traceEnabled&&WR(t.host,ha.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,i));const{version:o,paths:a}=r;if("object"==typeof a)return r;t.traceEnabled&&WR(t.host,ha.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof a)}function sj(e){ER||(ER=new Cn(c));for(const t in e){if(!Ie(e,t))continue;const n=wn.tryParse(t);if(void 0!==n&&n.test(ER))return{version:t,paths:e[t]}}}function cj(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Ro(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return fa(Go(e),(e=>{const n=Uo(e,lj);(t??(t=[])).push(n)})),t}(n):void 0}var lj=Uo("node_modules","@types");function uj(e,t,n){const r=Uj(e,t,n),i=function(e,t,n){return 0===aa(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function _j(e,t,n){return Uo(e,$t(e,"/node_modules/@types")||$t(e,"/node_modules/@types/")?wM(t,n):t)}function dj(e,t,n,r,i,o,a){gn.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=HR(n,r);i&&(n=i.commandLine.options);const c=t?Ro(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||As(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(WR(r,ha.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&WR(r,ha.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),WR(r,ha.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),S(l)),l;const u=cj(n,r);s&&(void 0===t?void 0===u?WR(r,ha.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):WR(r,ha.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,u):void 0===u?WR(r,ha.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):WR(r,ha.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,u),i&&WR(r,ha.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const _=[],d=[];let p=pj(n);void 0!==a&&(p|=30);const f=ES(n);99===a&&3<=f&&f<=99&&(p|=32);const m=8&p?fj(n,a):[],h=[],y={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:_,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:m,requestContainingDirectory:c,reportDiagnostic:e=>{h.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(u&&u.length)return s&&WR(r,ha.Resolving_with_primary_search_path_0,u.join(", ")),g(u,(t=>{const i=_j(t,e,y),o=Rb(t,r);if(!o&&s&&WR(r,ha.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=Qj(4,i,!o,y);if(e){const t=Gj(e.path);return YR(GR(t?uM(t,!1,y):void 0,e,y))}}return YR(rM(4,i,!o,y))}));s&&WR(r,ha.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){const i=t&&Ro(t);if(void 0!==i){let o;if(n.typeRoots&&$t(t,xU))s&&WR(r,ha.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&WR(r,ha.Looking_up_in_node_modules_folder_initial_location_0,i),As(e)){const{path:t}=qj(i,e);o=Vj(4,t,!1,y,!0)}else{const t=bM(4,e,i,y,void 0,void 0);o=t&&t.value}return YR(o)}s&&WR(r,ha.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){const{fileName:e,packageId:t}=b;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=uj(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:Hj(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:tj(_),affectingLocations:tj(d),resolutionDiagnostics:tj(h)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),As(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&S(l),l;function S(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?WR(r,ha.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,xd(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):WR(r,ha.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):WR(r,ha.Type_reference_directive_0_was_not_resolved,e)}}function pj(e){let t=0;switch(ES(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function fj(e,t){const n=ES(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),Y(r,e.customConditions)}function mj(e,t,n,r,i){const o=aM(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return SM(r,t,(t=>{if("node_modules"!==jo(t)){const n=Uo(t,"node_modules");return uM(Uo(n,e),!1,o)}}))}function gj(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=cj(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=Go(r),o=Uo(e,i,"package.json");if(!t.fileExists(o)||null!==Ob(o,t).typings){const e=jo(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function hj(e){return!!(null==e?void 0:e.contents)}function yj(e){return!!e&&!e.contents}function vj(e){var t;if(null===e||"object"!=typeof e)return""+e;if(nt(e))return`[${null==(t=e.map((e=>vj(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)Ie(e,t)&&(n+=`${t}: ${vj(e[t])}`);return n+"}"}function bj(e,t){return t.map((t=>vj(ZS(e,t)))).join("|")+`|${e.pathsBasePath}`}function xj(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=bj(e,PO)),n}}function Sj(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function kj(e,t){return void 0===t?e:`${t}|${e}`}function Tj(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=kj(e,n);return t.set(r,[e,n]),r}}function Cj(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function Dj(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function wj(e,t,n,r,i){const o=xj(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return gn.assert(!As(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(kj(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return gn.assert(!As(e)),Sj(o,n,kj(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(Xo(r,e,t))},set:function(i,o){const a=Xo(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=Xo(Ro(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;oTj()))},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=wj(e,t,n,i,o);return r??(r=function(e,t){let n;return{getPackageJsonInfo:function(r){return null==n?void 0:n.get(Xo(r,e,t))},setPackageJsonInfo:function(r,i){(n||(n=new Map)).set(Xo(r,e,t),i)},clear:function(){n=void 0},getInternalMap:function(){return n}}}(e,t)),{...r,...a,...s,clear:function(){c(),r.clear()},update:function(e){a.update(e),s.update(e)},getPackageJsonInfoCache:()=>r,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o};function c(){a.clear(),s.clear()}}function Fj(e,t,n,r,i){const o=Ej(e,t,n,r,Cj,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function Nj(e,t,n,r,i){return Ej(e,t,n,r,Dj,i)}function Pj(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Aj(e,t,n,r,i){return Oj(e,t,Pj(n),r,i)}function Ij(e,t,n,r){const i=Ro(t);return n.getFromDirectoryCache(e,r,i,void 0)}function Oj(e,t,n,r,i,o,a){const s=HR(n,r);o&&(n=o.commandLine.options),s&&(WR(r,ha.Resolving_module_0_from_1,e,t),o&&WR(r,ha.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const c=Ro(t);let l=null==i?void 0:i.getFromDirectoryCache(e,a,c,o);if(l)s&&WR(r,ha.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let u=n.moduleResolution;switch(void 0===u?(u=ES(n),s&&WR(r,ha.Module_resolution_kind_is_not_specified_using_0,fi[u])):s&&WR(r,ha.Explicitly_specified_module_resolution_kind_Colon_0,fi[u]),u){case 3:case 99:l=function(e,t,n,r,i,o,a){return Mj(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:l=Jj(e,t,n,r,i,o,a?fj(n,a):void 0);break;case 1:l=IM(e,t,n,r,i,o);break;case 100:l=Bj(e,t,n,r,i,o,a?fj(n,a):void 0);break;default:return gn.fail(`Unexpected moduleResolution: ${u}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,o).set(e,a,l),As(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?WR(r,ha.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,xd(l.resolvedModule.packageId)):WR(r,ha.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):WR(r,ha.Module_name_0_was_not_resolved,e)),l}function Lj(e,t,n,r,i){const o=function(e,t,n,r){const{baseUrl:i,paths:o}=r.compilerOptions;if(o&&!wo(t))return r.traceEnabled&&(i&&WR(r.host,ha.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),WR(r.host,ha.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),CM(e,t,tv(r.compilerOptions,r.host),o,nT(o),n,!1,r)}(e,t,r,i);return o?o.value:As(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&WR(i.host,ha.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=Go(Uo(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=Go(e);$t(t,yo)||(t+=yo);const n=en(o,t)&&(void 0===s||s.length(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(jj||{});function Mj(e,t,n,r,i,o,a,s,c){const l=Ro(n),u=99===s?32:0;let _=r.noDtsResolution?3:7;return LS(r)&&(_|=8),$j(e|u,t,l,r,i,o,_,!1,a,c)}function Bj(e,t,n,r,i,o,a){const s=Ro(t);let c=n.noDtsResolution?3:7;return LS(n)&&(c|=8),$j(pj(n),e,s,n,r,i,c,!1,o,a)}function Jj(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,LS(n)&&(c|=8)):c=LS(n)?15:7,$j(a?30:0,e,Ro(t),n,r,i,c,!!s,o,a)}function zj(e,t,n){return $j(30,e,Ro(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function $j(e,t,n,r,i,o,a,s,c,l){var _,d,f,m,g;const h=HR(r,i),y=[],v=[],b=ES(r);l??(l=fj(r,100===b||2===b?void 0:32&e?99:1));const x=[],S={compilerOptions:r,host:i,traceEnabled:h,failedLookupLocations:y,affectingLocations:v,packageJsonInfoCache:o,features:e,conditions:l??u,requestContainingDirectory:n,reportDiagnostic:e=>{x.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let T,C;if(h&&WS(b)&&WR(i,ha.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",S.conditions.map((e=>`'${e}'`)).join(", ")),2===b){const e=5&a,t=-6&a;T=e&&D(e,S)||t&&D(t,S)||void 0}else T=D(a,S);if(S.resolvedPackageDirectory&&!s&&!As(t)){const t=(null==T?void 0:T.value)&&5&a&&!dM(5,T.value.resolved.extension);if((null==(_=null==T?void 0:T.value)?void 0:_.isExternalLibraryImport)&&t&&8&e&&(null==l?void 0:l.includes("import"))){MM(S,ha.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=D(5&a,{...S,features:-9&S.features,reportDiagnostic:ct});(null==(d=null==e?void 0:e.value)?void 0:d.isExternalLibraryImport)&&(C=e.value.resolved.path)}else if((!(null==T?void 0:T.value)||t)&&2===b){MM(S,ha.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...S.compilerOptions,moduleResolution:100},t=D(5&a,{...S,compilerOptions:e,features:30,conditions:fj(e),reportDiagnostic:ct});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(C=t.value.resolved.path)}}return ZR(t,null==(m=null==T?void 0:T.value)?void 0:m.resolved,null==(g=null==T?void 0:T.value)?void 0:g.isExternalLibraryImport,y,v,x,S,o,C);function D(r,a){const s=Lj(r,t,n,((e,t,n,r)=>Vj(e,t,n,r,!0)),a);if(s)return jM({resolved:s,isExternalLibraryImport:Hj(s.path)});if(As(t)){const{path:e,parts:i}=qj(n,t),o=Vj(r,e,!1,a,!0);return o&&jM({resolved:o,isExternalLibraryImport:E(i,"node_modules")})}{if(2&e&&en(t,"#")){const e=function(e,t,n,r,i,o){var a,s;if("#"===t||en(t,"#/"))return r.traceEnabled&&WR(r.host,ha.Invalid_import_specifier_0_has_no_possible_resolutions,t),jM(void 0);const c=Ho(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=sM(c,r);if(!l)return r.traceEnabled&&WR(r.host,ha.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),jM(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&WR(r.host,ha.package_json_scope_0_has_no_imports_defined,l.packageDirectory),jM(void 0);const u=hM(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);return u||(r.traceEnabled&&WR(r.host,ha.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory),jM(void 0))}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(4&e){const e=function(e,t,n,r,i,o){var a,s;const c=Ho(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=sM(c,r);if(!l||!l.contents.packageJsonContent.exports)return;if("string"!=typeof l.contents.packageJsonContent.name)return;const u=Jo(t),_=Jo(l.contents.packageJsonContent.name);if(!k(_,((e,t)=>u[t]===e)))return;const d=u.slice(_.length),f=p(d)?`.${yo}${d.join(yo)}`:".";if(JS(r.compilerOptions)&&!Hj(n))return mM(l,e,f,r,i,o);const m=5&e,g=-6&e;return mM(l,m,f,r,i,o)||mM(l,g,f,r,i,o)}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(t.includes(":"))return void(h&&WR(i,ha.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,QR(r)));h&&WR(i,ha.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,QR(r));let s=bM(r,t,n,a,o,c);return 4&r&&(s??(s=OM(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function qj(e,t){const n=Uo(e,t),r=Jo(n),i=ke(r);return{path:"."===i||".."===i?Yo(Go(n)):Go(n),parts:r}}function Uj(e,t,n){if(!t.realpath)return e;const r=Go(t.realpath(e));return n&&WR(t,ha.Resolving_real_path_for_0_result_1,e,r),r}function Vj(e,t,n,r,i){if(r.traceEnabled&&WR(r.host,ha.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,QR(e)),!Ao(t)){if(!n){const e=Ro(t);Rb(e,r.host)||(r.traceEnabled&&WR(r.host,ha.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=Qj(e,t,n,r);if(o){const e=i?Gj(o.path):void 0;return GR(e?uM(e,!1,r):void 0,o,r)}}if(n||Rb(t,r.host)||(r.traceEnabled&&WR(r.host,ha.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return rM(e,t,n,r,i)}var Wj="/node_modules/";function Hj(e){return e.includes(Wj)}function Gj(e,t){const n=Go(e),r=n.lastIndexOf(Wj);if(-1===r)return;const i=r+Wj.length;let o=Kj(n,i,t);return 64===n.charCodeAt(i)&&(o=Kj(n,o,t)),n.slice(0,o)}function Kj(e,t,n){const r=e.indexOf(yo,t+1);return-1===r?n?e.length:t:r}function Xj(e,t,n,r){return KR(Qj(e,t,n,r))}function Qj(e,t,n,r){const i=Yj(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=eM(t,e,"",n,r);if(i)return i}}function Yj(e,t,n,r){if(!jo(t).includes("."))return;let i=Xk(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&WR(r.host,ha.File_name_0_has_a_1_extension_stripping_it,t,o),eM(i,e,o,n,r)}function Zj(e,t,n,r,i){if(1&e&&Po(t,jk)||4&e&&Po(t,Rk)){const e=tM(t,r,i),o=Eb(t);return void 0!==e?{path:t,ext:o,resolvedUsingTsExtension:n?!$t(n,o):void 0}:void 0}return i.isConfigLookup&&8===e&&No(t,".json")?void 0!==tM(t,r,i)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:Yj(e,t,r,i)}function eM(e,t,n,r,i){if(!r){const t=Ro(e);t&&(r=!Rb(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!iO(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=tM(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function tM(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return nM(e,t,n);const i=cT(e)??"",o=i?Yk(e,i):e;return f(n.compilerOptions.moduleSuffixes,(e=>nM(o+e+i,t,n)))}function nM(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&WR(n.host,ha.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&WR(n.host,ha.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function rM(e,t,n,r,i=!0){const o=i?uM(t,n,r):void 0;return GR(o,_M(e,t,n,r,o&&o.contents.packageJsonContent,o&&cM(o,r)),r)}function iM(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=pj(t),c=aM(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=fj(t),c.requestContainingDirectory=e.packageDirectory;const l=_M(a,e.packageDirectory,!1,c,e.contents.packageJsonContent,cM(e,c));if(o=le(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=ne([fj(t,99),fj(t,1)],ae);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=oM(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=fe(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function oM(e,t,n,r){let i;if(nt(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&fM(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&en(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...jk),2&e&&t.push(...Ik),4&e&&t.push(...Rk),8&e&&t.push(".json"),t}(r),void 0,[ta(vC(t,"**/*"),".*")]).forEach((e=>{i=fe(i,{path:e,ext:Bo(e),resolvedUsingTsExtension:void 0})}))}else{const o=Jo(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=Ho(Uo(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=Zj(r,c,t,!1,n);if(l)return i=fe(i,l,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return f(Le(t),(e=>{if("default"===e||E(n.conditions,e)||vM(n.conditions,e))return o(t[e]),!0}))}}function aM(e,t,n){return{host:t,compilerOptions:n,traceEnabled:HR(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:u,requestContainingDirectory:void 0,reportDiagnostic:ct,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function sM(e,t){return SM(t.host,e,(e=>uM(e,!1,t)))}function cM(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=aj(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function lM(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=ij(e.contents.packageJsonContent,"peerDependencies","object",t);if(void 0===n)return;t.traceEnabled&&WR(t.host,ha.package_json_has_a_peerDependencies_field);const r=Uj(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+yo;let o="";for(const e in n)if(Ie(n,e)){const n=uM(i+e,!1,t);if(n){const r=n.contents.packageJsonContent.version;o+=`+${e}@${r}`,t.traceEnabled&&WR(t.host,ha.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&WR(t.host,ha.Failed_to_find_peerDependency_0,e)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function uM(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:u}=n,_=Uo(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(_));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(_);if(void 0!==d)return hj(d)?(u&&WR(l,ha.File_0_exists_according_to_earlier_cached_lookups,_),null==(o=n.affectingLocations)||o.push(_),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d.directoryExists&&u&&WR(l,ha.File_0_does_not_exist_according_to_earlier_cached_lookups,_),void(null==(a=n.failedLookupLocations)||a.push(_)));const p=Rb(e,l);if(p&&l.fileExists(_)){const t=Ob(_,l);u&&WR(l,ha.Found_package_json_at_0,_);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(_,r),null==(s=n.affectingLocations)||s.push(_),r}p&&u&&WR(l,ha.File_0_does_not_exist,_),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(_,{packageDirectory:e,directoryExists:p}),null==(c=n.failedLookupLocations)||c.push(_)}function _M(e,t,n,r,i,o){let a;i&&(a=r.isConfigLookup?function(e,t,n){return oj(e,"tsconfig",t,n)}(i,t,r):4&e&&function(e,t,n){return oj(e,"typings",t,n)||oj(e,"types",t,n)}(i,t,r)||7&e&&function(e,t,n){return oj(e,"main",t,n)}(i,t,r)||void 0);const s=(e,t,n,r)=>{const o=Zj(e,t,void 0,n,r);if(o)return KR(o);const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.type)&&(r.features&=-33);const l=Vj(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=a?!Rb(Ro(a),r.host):void 0,u=n||!Rb(t,r.host),_=Uo(t,r.isConfigLookup?"tsconfig":"index");if(o&&(!a||sa(t,a))){const n=ua(t,a||_,!1);r.traceEnabled&&WR(r.host,ha.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,c,n);const i=nT(o.paths),d=CM(e,n,t,o.paths,i,s,l||u,r);if(d)return XR(d.value)}const d=a&&XR(s(e,a,l,r));return d||(32&r.features?void 0:Qj(e,_,u,r))}function dM(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function pM(e){let t=e.indexOf(yo);return"@"===e[0]&&(t=e.indexOf(yo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function fM(e){return k(Le(e),(e=>en(e,".")))}function mM(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!X(Le(e.contents.packageJsonContent.exports),(e=>en(e,".")))?a=e.contents.packageJsonContent.exports:Ie(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return yM(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(fM(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&WR(r.host,ha.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),jM(void 0);const a=hM(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&WR(r.host,ha.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),jM(void 0)}}function gM(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function hM(e,t,n,r,i,o,a,s){const c=yM(e,t,n,r,i,a,s);if(!$t(i,yo)&&!i.includes("*")&&Ie(o,i))return c(o[i],"",!1,i);const l=me(P(Le(o),(e=>function(e){const t=e.indexOf("*");return-1!==t&&t===e.lastIndexOf("*")}(e)||$t(e,"/"))),gM);for(const e of l){if(16&t.features&&u(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if($t(e,"*")&&en(i,e.substring(0,e.length-1)))return c(o[e],i.substring(e.length-1),!0,e);if(en(i,e))return c(o[e],i.substring(e.length),!1,e)}function u(e,t){if($t(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&en(t,e.substring(0,n))&&$t(t,e.substring(n+1))}}function yM(e,t,n,r,i,o,a){return function s(c,l,u,_){if("string"==typeof c){if(!u&&l.length>0&&!$t(c,"/"))return t.traceEnabled&&WR(t.host,ha.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),jM(void 0);if(!en(c,"./")){if(a&&!en(c,"../")&&!en(c,"/")&&!To(c)){const i=u?c.replace(/\*/g,l):c+l;MM(t,ha.Using_0_subpath_1_with_target_2,"imports",_,i),MM(t,ha.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=$j(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return jM(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&WR(t.host,ha.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),jM(void 0)}const s=(wo(c)?Jo(c).slice(1):Jo(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&WR(t.host,ha.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),jM(void 0);const p=Uo(o.packageDirectory,c),m=Jo(l);if(m.includes("..")||m.includes(".")||m.includes("node_modules"))return t.traceEnabled&&WR(t.host,ha.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),jM(void 0);t.traceEnabled&&WR(t.host,ha.Using_0_subpath_1_with_target_2,a?"imports":"exports",_,u?c.replace(/\*/g,l):c+l);const g=d(u?p.replace(/\*/g,l):p+l),h=function(n,r,i,a){var s,c,l,u;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||sa(o.packageDirectory,d(t.compilerOptions.configFile.fileName),!BM(t)))){const p=Uy({useCaseSensitiveFileNames:()=>BM(t)}),f=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=d(rq(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",p));f.push(e)}else if(t.requestContainingDirectory){const e=d(Uo(t.requestContainingDirectory,"index.ts")),n=d(rq(t.compilerOptions,(()=>[e,d(i)]),(null==(u=(l=t.host).getCurrentDirectory)?void 0:u.call(l))||"",p));f.push(n);let r=Yo(n);for(;r&&r.length>1;){const e=Jo(r);e.pop();const t=zo(e);f.unshift(t),r=Yo(t)}}f.length>1&&t.reportDiagnostic(oS(a?ha.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ha.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of f){const i=_(r);for(const a of i)if(sa(a,n,!BM(t))){const i=Uo(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(No(i,n)){const r=Zy(i);for(const a of r){if(!dM(e,a))continue;const r=ea(i,a,n,!BM(t));if(t.host.fileExists(r))return jM(GR(o,Zj(e,r,void 0,!1,t),t))}}}}}return;function _(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(d(f(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(d(f(i,t.compilerOptions.outDir))),o}}(g,l,Uo(o.packageDirectory,"package.json"),a);return h||jM(GR(o,Zj(e,g,c,!1,t),t))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){MM(t,ha.Entering_conditional_exports);for(const e of Le(c))if("default"===e||t.conditions.includes(e)||vM(t.conditions,e)){MM(t,ha.Matched_0_condition_1,a?"imports":"exports",e);const n=c[e],r=s(n,l,u,_);if(r)return MM(t,ha.Resolved_under_condition_0,e),MM(t,ha.Exiting_conditional_exports),r;MM(t,ha.Failed_to_resolve_under_condition_0,e)}else MM(t,ha.Saw_non_matching_condition_0,e);return void MM(t,ha.Exiting_conditional_exports)}if(!p(c))return t.traceEnabled&&WR(t.host,ha.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),jM(void 0);for(const e of c){const t=s(e,l,u,_);if(t)return t}}else if(null===c)return t.traceEnabled&&WR(t.host,ha.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),jM(void 0);return t.traceEnabled&&WR(t.host,ha.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),jM(void 0);function d(e){var n,r;return void 0===e?e:Ho(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function f(e,t){return Yo(Uo(e,t))}}}function vM(e,t){if(!e.includes("types"))return!1;if(!en(t,"types@"))return!1;const n=wn.tryParse(t.substring(6));return!!n&&n.test(c)}function bM(e,t,n,r,i,o){return xM(e,t,n,r,!1,i,o)}function xM(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){MM(r,ha.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,QR(c));const e=u(c);if(e)return e}if(l&&!i)return MM(r,ha.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,QR(l)),u(l);function u(e){return SM(r.host,$o(n),(n=>{if("node_modules"!==jo(n)){const c=AM(o,t,s,n,a,r);return c||jM(kM(e,t,n,r,i,o,a))}}))}}function SM(e,t,n){var r;const i=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return fa(t,(e=>{const t=n(e);return void 0!==t?t:e!==i&&void 0}))||void 0}function kM(e,t,n,r,i,o,a){const s=Uo(n,"node_modules"),c=Rb(s,r.host);if(!c&&r.traceEnabled&&WR(r.host,ha.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=TM(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=Uo(s,"@types");let n=c;return c&&!Rb(e,r.host)&&(r.traceEnabled&&WR(r.host,ha.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),TM(4,wM(t,r),e,n,r,o,a)}}function TM(e,t,n,r,i,o,a){var s,l;const _=Go(Uo(n,t)),{packageName:d,rest:p}=pM(t),f=Uo(n,d);let m,g=uM(_,!r,i);if(""!==p&&g&&(!(8&i.features)||!Ie((null==(s=m=uM(f,!r,i))?void 0:s.contents.packageJsonContent)??u,"exports"))){const t=Qj(e,_,!r,i);if(t)return KR(t);const n=_M(e,_,!r,i,g.contents.packageJsonContent,cM(g,i));return GR(g,n,i)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&Qj(e,t,n,r)||_M(e,t,n,r,g&&g.contents.packageJsonContent,g&&cM(g,r));return!i&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=Qj(e,Uo(t,"index.js"),n,r)),GR(g,i,r)};if(""!==p&&(g=m??uM(f,!r,i)),g&&(i.resolvedPackageDirectory=!0),g&&g.contents.packageJsonContent.exports&&8&i.features)return null==(l=mM(g,e,Uo(".",p),i,o,a))?void 0:l.value;const y=""!==p&&g?cM(g,i):void 0;if(y){i.traceEnabled&&WR(i.host,ha.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,c,p);const t=r&&Rb(f,i.host),n=nT(y.paths),o=CM(e,p,f,y.paths,n,h,!t,i);if(o)return o.value}return h(e,_,!r,i)}function CM(e,t,n,r,i,o,a,s){const c=_T(i,t);if(c){const i=it(c)?void 0:Yt(c,t),l=it(c)?c:Qt(c);s.traceEnabled&&WR(s.host,ha.Module_name_0_matched_pattern_1,t,l);const u=f(r[l],(t=>{const r=i?vC(t,i):t,c=Go(Uo(n,r));s.traceEnabled&&WR(s.host,ha.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=cT(t);if(void 0!==l){const e=tM(c,a,s);if(void 0!==e)return KR({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Rb(Ro(c),s.host),s)}));return{value:u}}}var DM="__";function wM(e,t){const n=FM(e);return t.traceEnabled&&n!==e&&WR(t.host,ha.Scoped_package_detected_looking_in_0,n),n}function EM(e){return`@types/${FM(e)}`}function FM(e){if(en(e,"@")){const t=e.replace(yo,DM);if(t!==e)return t.slice(1)}return e}function NM(e){const t=tn(e,"@types/");return t!==e?PM(t):e}function PM(e){return e.includes(DM)?"@"+e.replace(DM,yo):e}function AM(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&WR(o.host,ha.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function IM(e,t,n,r,i,o){const a=HR(n,r),s=[],c=[],l=Ro(t),u=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{u.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return ZR(e,d&&d.value,(null==d?void 0:d.value)&&Hj(d.value.path),s,c,u,_,i);function p(t){const n=Lj(t,e,l,Xj,_);if(n)return{value:n};if(As(e)){const n=Go(Uo(l,e));return jM(Xj(t,n,!1,_))}{const n=SM(_.host,l,(n=>{const r=AM(i,e,void 0,n,o,_);if(r)return r;const a=Go(Uo(n,e));return jM(Xj(t,a,!1,_))}));if(n)return n;if(5&t){let n=function(e,t,n){return xM(4,e,t,n,!0,void 0,void 0)}(e,l,_);return 4&t&&(n??(n=OM(e,_))),n}}}}function OM(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=_j(n,e,t),i=Rb(n,t.host);!i&&t.traceEnabled&&WR(t.host,ha.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=Qj(4,r,!i,t);if(o){const e=Gj(o.path);return jM(GR(e?uM(e,!1,t):void 0,o,t))}const a=rM(4,r,!i,t);if(a)return jM(a)}}function LM(e,t){return CS(e)||!!t&&iO(t)}function RM(e,t,n,r,i,o){const a=HR(n,r);a&&WR(r,ha.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return ej(kM(4,e,i,u,!1,void 0,void 0),!0,s,c,l,u.resultFromCache,void 0)}function jM(e){return void 0!==e?{value:e}:void 0}function MM(e,t,...n){e.traceEnabled&&WR(e.host,t,...n)}function BM(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var JM=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(JM||{});function zM(e,t){return e.body&&!e.body.parent&&(LT(e.body,e),RT(e.body,!1)),e.body?$M(e.body,t):1}function $M(e,t=new Map){const n=QB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(cf(e))return 2;break;case 272:case 271:if(!Lv(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=qM(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return qI(e,(e=>{const r=$M(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:gn.assertNever(r)}})),n}case 267:return zM(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function qM(e,t){const n=e.propertyName||e.name;if(80!==n.kind)return 1;let r=e.parent;for(;r;){if(OF(r)||sN(r)||QN(r)){const e=r.statements;let i;for(const o of e)if(Ec(o,n)){o.parent||(LT(o,r),RT(o,!1));const e=$M(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;271===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var UM=(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.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(UM||{});function VM(e,t,n){return gn.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var WM=GM();function HM(e,t){ar("beforeBind"),WM(e,t),ar("afterBind"),sr("Bind","beforeBind","afterBind")}function GM(){var e,t,n,r,i,o,a,s,c,l,u,_,d,m,g,h,y,v,b,x,S,T,C,D,w,F,N=!1,P=0,A=VM(1,void 0,void 0),I=VM(1,void 0,void 0),O=function(){return eI((function(e,t){if(t){t.stackIndex++,LT(e,r);const n=D;Ue(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(ab(n)||ib(n)){if(de(e)){const t=ee(),n=_,r=T;T=!1,Se(e,t,t),_=T?ue(t):n,T||(T=r)}else Se(e,h,y);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ve(t),n}}),(function(e,t,n){t.skip||Je(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ve(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;cb(t)&&!ih(e)&&(xe(e.left),64===t&&212===e.left.kind)&&Z(e.left.expression)&&(_=se(256,_,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(D=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&hF(e)&&!db(e))return e;Je(e)}}();return function(p,f){var b,k;e=p,n=DS(t=f),D=function(e,t){return!(!HS(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,f),F=new Set,P=0,w=Vx.getSymbolConstructor(),gn.attachFlowNodeDebugInfo(A),gn.attachFlowNodeDebugInfo(I),e.locals||(null==(b=Yn)||b.push(Yn.Phase.Bind,"bindSourceFile",{path:e.path},!0),Je(e),null==(k=Yn)||k.pop(),e.symbolCount=P,e.classifiableNames=F,function(){if(!c)return;const t=i,n=s,o=a,l=r,u=_;for(const t of c){const n=t.parent.parent;i=Lp(n)||e,a=Rp(n)||e,_=VM(2,void 0,void 0),r=t,Je(t.typeExpression);const o=Ac(t);if((EP(t)||!t.fullName)&&o&&hb(o.parent)){const n=nt(o.parent);if(n){et(e.symbol,o.parent,n,!!yc(o,(e=>nF(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(yg(o.parent)){case 1:case 2:i=af(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=XM(e,o.parent.expression)?e:nF(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return gn.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&z(t,524288,788968),i=r}}else EP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Ie(t,524288,788968)):Je(t.fullName)}i=t,s=n,a=o,r=l,_=u}(),function(){if(void 0===u)return;const t=i,n=s,o=a,c=r,l=_;for(const t of u){const n=Qg(t),o=n?Lp(n):void 0,s=n?Rp(n):void 0;i=o||e,a=s||e,_=VM(2,void 0,void 0),r=t,Je(t.importClause)}i=t,s=n,a=o,r=c,_=l}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,u=void 0,l=!1,_=void 0,d=void 0,m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,x=void 0,S=!1,T=!1,N=!1,C=0};function L(t,n,...r){return Wp(Cd(t)||e,t,n,...r)}function R(e,t){return P++,new w(e,t)}function j(e,t,n){e.flags|=n,t.symbol=e,e.declarations=fe(e.declarations,t),1955&n&&!e.exports&&(e.exports=td()),6240&n&&!e.members&&(e.members=td()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&Sg(e,t)}function M(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=Ac(e);if(t){if(fp(e)){const n=Kh(t);return vp(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(qh(e))return xc(e.text);if(Uh(e))return Ra(e.operator)+e.operand.text;gn.fail("Only computed properties with literal names have declaration names")}if(Qw(t)){const n=rm(e);if(!n)return;return Qh(n.symbol,t.escapedText)}return $N(t)?_C(t):Gh(t)?Xh(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(2===cg(e))return"export=";gn.fail("Unknown binary declaration kind");break;case 317:return Og(e)?"__new":"__call";case 169:return gn.assert(317===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${gn.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`)),"arg"+e.parent.parameters.indexOf(e)}}function B(e){return Nc(e)?Mp(e.name):Sc(gn.checkDefined(M(e)))}function J(t,n,r,i,o,a,s){gn.assert(s||!Vh(r));const c=Lv(r,2048)||CN(r)&&ep(r.name),l=s?"__computed":c&&n?"default":M(r);let u;if(void 0===l)u=R(0,"__missing");else if(u=t.get(l),2885600&i&&F.add(l),u){if(a&&!u.isReplaceableByMethod)return u;if(u.flags&o)if(u.isReplaceableByMethod)t.set(l,u=R(0,l));else if(!(3&i&&67108864&u.flags)){Nc(r)&<(r.name,r);let t=2&u.flags?ha.Cannot_redeclare_block_scoped_variable_0:ha.Duplicate_identifier_0,n=!0;(384&u.flags||384&i)&&(t=ha.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;p(u.declarations)&&(c||u.declarations&&u.declarations.length&&277===r.kind&&!r.isExportEquals)&&(t=ha.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];iN(r)&&Id(r.type)&&Lv(r,32)&&2887656&u.flags&&a.push(L(r,ha.Did_you_mean_0,`export type { ${Sc(r.name.escapedText)} }`));const s=Ac(r)||r;f(u.declarations,((r,i)=>{const c=Ac(r)||r,l=n?L(c,t,B(r)):L(c,t);e.bindDiagnostics.push(o?pT(l,L(s,0===i?ha.Another_export_default_is_here:ha.and_here)):l),o&&a.push(L(c,ha.The_first_export_default_is_here))}));const _=n?L(s,t,B(r)):L(s,t);e.bindDiagnostics.push(pT(_,...a)),u=R(0,l)}}else t.set(l,u=R(0,l)),a&&(u.isReplaceableByMethod=!0);return j(u,r,i),u.parent?gn.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function z(e,t,n){const r=!!(32&_c(e))||function(e){if(e.parent&&aN(e)&&(e=e.parent),!Lg(e))return!1;if(!EP(e)&&e.fullName)return!0;const t=Ac(e);return!!(t&&(hb(t.parent)&&nt(t.parent)||h_(t.parent)&&32&_c(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?J(i.symbol.exports,i.symbol,e,t,n):(gn.assertNode(i,f_),J(i.locals,void 0,e,t,n));if(Lg(e)&&gn.assert(jm(e)),!fp(e)&&(r||128&i.flags)){if(!f_(i)||!i.locals||Lv(e,2048)&&!M(e))return J(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=J(i.locals,void 0,e,r,n);return o.exportSymbol=J(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return gn.assertNode(i,f_),J(i.locals,void 0,e,t,n)}function $(e){q(e,(e=>262===e.kind?Je(e):void 0)),q(e,(e=>262!==e.kind?Je(e):void 0))}function q(e,t=Je){void 0!==e&&f(e,t)}function U(e){qI(e,Je,q)}function V(e){const n=N;if(N=!1,function(e){if(!(1&_.flags))return!1;if(_===A){const n=v_(e)&&242!==e.kind||263===e.kind||KM(e,t)||267===e.kind&&function(e){const n=zM(e);return 1===n||2===n&&jS(t)}(e);if(n&&(_=I,!t.allowUnreachableCode)){const n=US(t)&&!(33554432&e.flags)&&(!LF(e)||!!(7&pc(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t,n){if(b_(e)&&r(e)&&OF(e.parent)){const{statements:t}=e.parent,i=dT(t,e);Q(i,r,((e,t)=>n(i[e],i[t-1])))}else n(e,e);function r(e){return!(tN(e)||i(e)||LF(e)&&!(7&pc(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function i(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==zM(e);case 266:return!KM(e,t);default:return!1}}}(e,t,((e,t)=>Be(n,e,t,ha.Unreachable_code_detected)))}}return!0}(e))return U(e),ze(e),void(N=n);switch(e.kind>=243&&e.kind<=259&&(!t.allowUnreachableCode||253===e.kind)&&(e.flowNode=_),e.kind){case 247:!function(e){const t=he(e,te()),n=ee(),r=ee();ie(t,_),_=t,me(e.expression,n,r),_=ue(n),ge(e.statement,r,t),ie(t,_),_=ue(r)}(e);break;case 246:!function(e){const t=te(),n=he(e,ee()),r=ee();ie(t,_),_=t,ge(e.statement,r,n),ie(n,_),_=ue(n),me(e.expression,t,r),_=ue(r)}(e);break;case 248:!function(e){const t=he(e,te()),n=ee(),r=ee();Je(e.initializer),ie(t,_),_=t,me(e.condition,n,r),_=ue(n),ge(e.statement,r,t),Je(e.incrementor),ie(t,_),_=ue(r)}(e);break;case 249:case 250:!function(e){const t=he(e,te()),n=ee();Je(e.expression),ie(t,_),_=t,250===e.kind&&Je(e.awaitModifier),ie(n,_),Je(e.initializer),261!==e.initializer.kind&&xe(e.initializer),ge(e.statement,n,t),ie(t,_),_=ue(n)}(e);break;case 245:!function(e){const t=ee(),n=ee(),r=ee();me(e.expression,t,n),_=ue(t),Je(e.thenStatement),ie(r,_),_=ue(n),Je(e.elseStatement),ie(r,_),_=ue(r)}(e);break;case 253:case 257:!function(e){Je(e.expression),253===e.kind&&(S=!0,g&&ie(g,_)),_=A,T=!0}(e);break;case 252:case 251:!function(e){if(Je(e.label),e.label){const t=function(e){for(let t=x;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,ye(e,t.breakTarget,t.continueTarget))}else ye(e,d,m)}(e);break;case 258:!function(e){const t=g,n=v,r=ee(),i=ee();let o=ee();if(e.finallyBlock&&(g=i),ie(o,_),v=o,Je(e.tryBlock),ie(r,_),e.catchClause&&(_=ue(o),o=ee(),ie(o,_),v=o,Je(e.catchClause),ie(r,_)),g=t,v=n,e.finallyBlock){const t=ee();t.antecedent=Y(Y(r.antecedent,o.antecedent),i.antecedent),_=t,Je(e.finallyBlock),1&_.flags?_=A:(g&&i.antecedent&&ie(g,ne(t,i.antecedent,_)),v&&o.antecedent&&ie(v,ne(t,o.antecedent,_)),_=r.antecedent?ne(t,r.antecedent,_):A)}else _=ue(r)}(e);break;case 255:!function(e){const t=ee();Je(e.expression);const n=d,r=b;d=t,b=_,Je(e.caseBlock),ie(t,_);const i=f(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!i&&!t.antecedent,i||ie(t,ae(b,e,0,0)),d=n,b=r,_=ue(t)}(e);break;case 269:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||W(e.parent.expression);let i=A;for(let o=0;okN(e)||SN(e)))}(e)?e.flags|=128:e.flags&=-129}function Pe(e){const t=zM(e),n=0!==t;return Fe(e,n?512:1024,n?110735:0),t}function Ae(e,t,n){const r=R(t,n);return 106508&t&&(r.parent=i.symbol),j(r,e,t),r}function Ie(e,t,n){switch(a.kind){case 267:z(e,t,n);break;case 307:if(af(i)){z(e,t,n);break}default:gn.assertNode(a,f_),a.locals||(a.locals=td(),Ee(a)),J(a.locals,void 0,e,t,n)}}function Oe(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||vh(t))){const n=Tc(t);if(void 0===n)return;D&&n>=119&&n<=127?e.bindDiagnostics.push(L(t,function(t){return rm(t)?ha.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?ha.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:ha.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Mp(t))):135===n?XI(e)&&lm(t)?e.bindDiagnostics.push(L(t,ha.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Mp(t))):65536&t.flags&&e.bindDiagnostics.push(L(t,ha.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Mp(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(L(t,ha.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Mp(t)))}}function Le(t,n){if(n&&80===n.kind){const r=n;if(function(e){return Xw(e)&&("eval"===e.escapedText||"arguments"===e.escapedText)}(r)){const i=rf(e,n);e.bindDiagnostics.push(rS(e,i.start,i.length,function(t){return rm(t)?ha.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?ha.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:ha.Invalid_use_of_0_in_strict_mode}(t),kc(r)))}}}function Re(e){!D||33554432&e.flags||Le(e,e.name)}function je(t){if(n<2&&307!==a.kind&&267!==a.kind&&!_u(a)){const n=rf(e,t);e.bindDiagnostics.push(rS(e,n.start,n.length,function(t){return rm(t)?ha.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?ha.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:ha.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}function Me(t,n,...r){const i=tf(e,t.pos);e.bindDiagnostics.push(rS(e,i.start,i.length,n,...r))}function Be(t,n,r,i){!function(t,n,r){const i=rS(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=le(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:Hd(n,e),end:r.end},i)}function Je(t){if(!t)return;LT(t,r),Yn&&(t.tracingPath=e.path);const n=D;if(Ue(t),t.kind>165){const e=r;r=t;const n=QM(t);0===n?V(t):function(e,t){const n=i,r=o,s=a;if(1&t?(219!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=td(),Ee(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=_,r=d,i=m,o=g,a=v,s=x,c=S,l=16&t&&!Lv(e,1024)&&!e.asteriskToken&&!!dm(e)||175===e.kind;l||(_=VM(2,void 0,void 0),144&t&&(_.node=e)),g=l||176===e.kind||jm(e)&&(262===e.kind||218===e.kind)?ee():void 0,v=void 0,d=void 0,m=void 0,x=void 0,S=!1,V(e),e.flags&=-5633,!(1&_.flags)&&8&t&&Od(e.body)&&(e.flags|=512,S&&(e.flags|=1024),e.endFlowNode=_),307===e.kind&&(e.flags|=C,e.endFlowNode=_),g&&(ie(g,_),_=ue(g),(176===e.kind||175===e.kind||jm(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=_)),l||(_=n),d=r,m=i,g=o,v=a,x=s,S=c}else 64&t?(l=!1,V(e),gn.assertNotNode(e,Xw),e.flags=l?256|e.flags:-257&e.flags):V(e);i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),ze(t),r=e}D=n}function ze(e){if(L_(e))if(jm(e))for(const t of e.jsDoc)Je(t);else for(const t of e.jsDoc)LT(t,e),RT(t,!1)}function $e(e){if(!D)for(const t of e){if(!vf(t))return;if(qe(t))return void(D=!0)}}function qe(t){const n=Xd(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function Ue(n){switch(n.kind){case 80:if(4096&n.flags){let e=n.parent;for(;e&&!Lg(e);)e=e.parent;Ie(e,524288,788968);break}case 110:return _&&(Qu(n)||304===r.kind)&&(n.flowNode=_),Oe(n);case 166:_&&Fm(n)&&(n.flowNode=_);break;case 236:case 108:n.flowNode=_;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(L(t,ha.constructor_is_a_reserved_word,Mp(t))))}(n);case 211:case 212:const o=n;_&&H(o)&&(o.flowNode=_),xg(o)&&function(e){110===e.expression.kind?Ke(e):dg(e)&&307===e.parent.parent.kind&&(vb(e.expression)?Ye(e,e.parent):Ze(e))}(o),jm(o)&&e.commonJsModuleIndicator&&sg(o)&&!YM(a,"module")&&J(e.locals,void 0,o.expression,134217729,111550);break;case 226:switch(cg(n)){case 1:He(n);break;case 2:!function(t){if(!We(t))return;const n=ig(t.right);if(Cb(n)||i===e&&XM(e,n))return;if(tF(n)&&k(n.properties,GN))return void f(n.properties,Ge);const r=Sh(t)?2097152:1049092,o=J(e.symbol.exports,e.symbol,t,67108864|r,0);Sg(o,t)}(n);break;case 3:Ye(n.left,n);break;case 6:!function(e){LT(e.left,e),LT(e.right,e),rt(e.left.expression,e.left,!1,!0)}(n);break;case 4:Ke(n);break;case 5:const t=n.left.expression;if(jm(n)&&Xw(t)){const e=YM(a,t.escapedText);if(mm(null==e?void 0:e.valueDeclaration)){Ke(n);break}}!function(t){var n;const r=ot(t.left.expression,a)||ot(t.left.expression,i);if(!jm(t)&&!kg(r))return;const o=Ox(t.left);Xw(o)&&2097152&(null==(n=YM(i,o.escapedText))?void 0:n.flags)||(LT(t.left,t),LT(t.right,t),Xw(t.left.expression)&&i===e&&XM(e,t.left.expression)?He(t):Vh(t)?(Ae(t,67108868,"__computed"),Qe(t,et(r,t.left.expression,nt(t.left),!1,!1))):Ze(st(t.left,fg)))}(n);break;case 0:break;default:gn.fail("Unknown binary expression special property assignment kind")}return function(e){D&&Vu(e.left)&&cb(e.operatorToken.kind)&&Le(e,e.left)}(n);case 299:return function(e){D&&e.variableDeclaration&&Le(e,e.variableDeclaration.name)}(n);case 220:return function(t){if(D&&80===t.expression.kind){const n=rf(e,t.expression);e.bindDiagnostics.push(rS(e,n.start,n.length,ha.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 225:return function(e){D&&Le(e,e.operand)}(n);case 224:return function(e){D&&(46!==e.operator&&47!==e.operator||Le(e,e.operand))}(n);case 254:return function(e){D&&Me(e,ha.with_statements_are_not_allowed_in_strict_mode)}(n);case 256:return function(e){D&&DS(t)>=2&&(y_(e.statement)||LF(e.statement))&&Me(e.label,ha.A_label_is_not_allowed_here)}(n);case 197:return void(l=!0);case 182:break;case 168:return function(e){if(IP(e.parent)){const t=Hg(e.parent);t?(gn.assertNode(t,f_),t.locals??(t.locals=td()),J(t.locals,void 0,e,262144,526824)):Fe(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=yc(e,(e=>e.parent&&JE(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(gn.assertNode(t,f_),t.locals??(t.locals=td()),J(t.locals,void 0,e,262144,526824)):Ae(e,262144,M(e))}else Fe(e,262144,526824)}(n);case 169:return ut(n);case 260:return lt(n);case 208:return n.flowNode=_,lt(n);case 172:case 171:return function(e){const t=bu(e),n=t?13247:0;return _t(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(n);case 303:case 304:return _t(n,4,0);case 306:return _t(n,8,900095);case 179:case 180:case 181:return Fe(n,131072,0);case 174:case 173:return _t(n,8192|(n.questionToken?16777216:0),Wf(n)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||$h(t)&&(C|=4096),Re(t),D?(je(t),Ie(t,16,110991)):Fe(t,16,110991)}(n);case 176:return Fe(n,16384,0);case 177:return _t(n,32768,46015);case 178:return _t(n,65536,78783);case 184:case 317:case 323:case 185:return function(e){const t=R(131072,M(e));j(t,e,131072);const n=R(2048,"__type");j(n,e,2048),n.members=td(),n.members.set(t.escapedName,t)}(n);case 187:case 322:case 200:return function(e){return Ae(e,2048,"__type")}(n);case 332:return function(e){U(e);const t=Kg(e);t&&174!==t.kind&&j(t.symbol,t,32)}(n);case 210:return function(e){return Ae(e,4096,"__object")}(n);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||$h(t)&&(C|=4096),_&&(t.flowNode=_),Re(t);const n=t.name?t.name.escapedText:"__function";return Ae(t,16,n)}(n);case 213:switch(cg(n)){case 7:return function(e){let t=ot(e.arguments[0]);const n=307===e.parent.parent.kind;t=et(t,e.arguments[0],n,!1,!1),tt(e,t,!1)}(n);case 8:return function(e){if(!We(e))return;const t=ct(e.arguments[0],void 0,((e,t)=>(t&&j(t,e,67110400),t)));if(t){const n=1048580;J(t.exports,t,e,n,0)}}(n);case 9:return function(e){const t=ot(e.arguments[0].expression);t&&t.valueDeclaration&&j(t,t.valueDeclaration,32),tt(e,t,!0)}(n);case 0:break;default:return gn.fail("Unknown call expression assignment declaration kind")}jm(n)&&function(t){!e.commonJsModuleIndicator&&$m(t,!1)&&We(t)}(n);break;case 231:case 263:return D=!0,function(t){263===t.kind?Ie(t,32,899503):(Ae(t,32,t.name?t.name.escapedText:"__class"),t.name&&F.add(t.name.escapedText));const{symbol:n}=t,r=R(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&<(t.name,t),e.bindDiagnostics.push(L(i.declarations[0],ha.Duplicate_identifier_0,Cc(r)))),n.exports.set(r.escapedName,r),r.parent=n}(n);case 264:return Ie(n,64,788872);case 265:return Ie(n,524288,788968);case 266:return function(e){return cf(e)?Ie(e,128,899967):Ie(e,256,899327)}(n);case 267:return function(t){if(Ne(t),fp(t))if(Lv(t,32)&&Me(t,ha.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),xp(t))Pe(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=eT(e),void 0===n&&Me(t.name,ha.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Fe(t,512,110735);e.patternAmbientModules=le(e.patternAmbientModules,n&&!it(n)?{pattern:n,symbol:r}:void 0)}else{const e=Pe(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(n);case 292:return function(e){return Ae(e,4096,"__jsxAttributes")}(n);case 291:return function(e,t,n){return Fe(e,t,n)}(n,4,0);case 271:case 274:case 276:case 281:return Fe(n,2097152,2097152);case 270:return function(t){X(t.modifiers)&&e.bindDiagnostics.push(L(t,ha.Modifiers_cannot_appear_here));const n=QN(t.parent)?XI(t.parent)?t.parent.isDeclarationFile?void 0:ha.Global_module_exports_may_only_appear_in_declaration_files:ha.Global_module_exports_may_only_appear_in_module_files:ha.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(L(t,n)):(e.symbol.globalExports=e.symbol.globalExports||td(),J(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(n);case 273:return function(e){e.name&&Fe(e,2097152,2097152)}(n);case 278:return function(e){i.symbol&&i.symbol.exports?e.exportClause?vN(e.exportClause)&&(LT(e.exportClause,e),J(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):J(i.symbol.exports,i.symbol,e,8388608,0):Ae(e,8388608,M(e))}(n);case 277:return function(e){if(i.symbol&&i.symbol.exports){const t=Sh(e)?2097152:4,n=J(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&Sg(n,e)}else Ae(e,111551,M(e))}(n);case 307:return $e(n.statements),function(){if(Ne(e),XI(e))Ve();else if(sf(e)){Ve();const t=e.symbol;J(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 241:if(!_u(n.parent))return;case 268:return $e(n.statements);case 341:if(323===n.parent.kind)return ut(n);if(322!==n.parent.kind)break;case 348:const s=n;return Fe(s,s.isBracketed||s.typeExpression&&316===s.typeExpression.type.kind?16777220:4,0);case 346:case 338:case 340:return(c||(c=[])).push(n);case 339:return Je(n.typeExpression);case 351:return(u||(u=[])).push(n)}}function Ve(){Ae(e,512,`"${Xk(e.fileName)}"`)}function We(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ve()),0))}function He(e){if(!We(e))return;const t=ct(e.left.expression,void 0,((e,t)=>(t&&j(t,e,67110400),t)));if(t){const n=xh(e.right)&&(og(e.left.expression)||sg(e.left.expression))?2097152:1048580;LT(e.left,e),J(t.exports,t,e.left,n,0)}}function Ge(t){J(e.symbol.exports,e.symbol,t,69206016,0)}function Ke(e){if(gn.assert(jm(e)),hF(e)&&nF(e.left)&&Qw(e.left.name)||nF(e)&&Qw(e.name))return;const t=sm(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(hF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;dg(e)&&vb(e.expression)&&(n=ot(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||td(),Vh(e)?Xe(e,n,n.members):J(n.members,n,e,67108868,0),j(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,i=Rv(t)?r.symbol.exports:r.symbol.members;Vh(e)?Xe(e,r.symbol,i):J(i,r.symbol,e,67108868,0,!0);break;case 307:if(Vh(e))break;t.commonJsModuleIndicator?J(t.symbol.exports,t.symbol,e,1048580,0):Fe(e,1,111550);break;case 267:break;default:gn.failBadSyntaxKind(t)}}function Xe(e,t,n){J(n,t,e,4,0,!0,!0),Qe(e,t)}function Qe(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(QB(e),e)}function Ye(e,t){const n=e.expression,r=n.expression;LT(r,n),LT(n,e),LT(e,t),rt(r,e,!0,!0)}function Ze(e){gn.assert(!Xw(e)),LT(e.expression,e),rt(e.expression,e,!1,!1)}function et(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=ct(n,t,((t,n,o)=>n?(j(n,t,r),n):J(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=td()),o,t,r,i)))}return o&&t&&t.valueDeclaration&&j(t,t.valueDeclaration,32),t}function tt(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&iF(t))return!!Zm(t);let n=t?ZF(t)?t.initializer:hF(t)?t.right:nF(t)&&hF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&ig(n),n){const e=vb(ZF(t)?t.name:hF(t)?t.left:t);return!!eg(!hF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=td()):t.exports||(t.exports=td());let i=0,o=0;du(Zm(e))?(i=8192,o=103359):iF(e)&&lg(e)&&(X(e.arguments[2].properties,(e=>{const t=Ac(e);return!!t&&Xw(t)&&"set"===kc(t)}))&&(i|=65540,o|=78783),X(e.arguments[2].properties,(e=>{const t=Ac(e);return!!t&&Xw(t)&&"get"===kc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),J(r,t,e,67108864|i,-67108865&o)}function nt(e){return hF(e.parent)?307===function(e){for(;hF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:307===e.parent.parent.kind}function rt(e,t,n,r){let o=ot(e,a)||ot(e,i);const s=nt(t);o=et(o,t.expression,s,n,r),tt(t,o,n)}function ot(e,t=i){if(Xw(e))return YM(t,e.escapedText);{const t=ot(e.expression);return t&&t.exports&&t.exports.get(hg(e))}}function ct(t,n,r){if(XM(e,t))return e.symbol;if(Xw(t))return r(t,ot(t),n);{const e=ct(t.expression,n,r),i=mg(t);return Qw(i)&&gn.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(hg(t)),e)}}function lt(e){if(D&&Le(e,e.name),!Fu(e.name)){const t=260===e.kind?e:e.parent.parent;!jm(e)||!Um(t)||cl(e)||32&_c(e)?dp(e)?Ie(e,2,111551):iy(e)?Fe(e,1,111551):Fe(e,1,111550):Fe(e,2097152,2097152)}}function ut(e){if((341!==e.kind||323===i.kind)&&(!D||33554432&e.flags||Le(e,e.name),Fu(e.name)?Ae(e,1,"__"+e.parent.parameters.indexOf(e)):Fe(e,1,111551),ac(e,e.parent))){const t=e.parent.parent;J(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function _t(t,n,r){return e.isDeclarationFile||33554432&t.flags||!$h(t)||(C|=4096),_&&Hf(t)&&(t.flowNode=_),Vh(t)?Ae(t,n,"__computed"):Fe(t,n,r)}}function KM(e,t){return 266===e.kind&&(!cf(e)||jS(t))}function XM(e,t){let n=0;const r=et();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,og(t=r.dequeue())||sg(t))return!0;if(Xw(t)){const n=YM(e,t.escapedText);if(n&&n.valueDeclaration&&ZF(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),_b(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function QM(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(Hf(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return uu(e.parent)||bE(e.parent)?0:34}return 0}function YM(e,t){var n,r,i,o;const a=null==(r=null==(n=at(e,f_))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:QN(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):p_(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}function ZM(e,t,n,r,i,o,a,s,c,l){return function(u=()=>!0){const _=[],d=[];return{walkType:e=>{try{return p(e),{visitedTypes:je(_),visitedSymbols:je(d)}}finally{I(_),I(d)}},walkSymbol:e=>{try{return h(e),{visitedTypes:je(_),visitedSymbols:je(d)}}finally{I(_),I(d)}}};function p(e){if(e&&!_[e.id]&&(_[e.id]=e,!h(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){p(e.target),f(l(e),p)}(e),32&i&&function(e){p(e.typeParameter),p(e.constraintType),p(e.templateType),p(e.modifiersType)}(e),3&i&&(g(t=e),f(t.typeParameters,p),f(r(t),p),p(t.thisType)),24&i&&g(n)}var t;262144&e.flags&&function(e){p(s(e))}(e),3145728&e.flags&&function(e){f(e.types,p)}(e),4194304&e.flags&&function(e){p(e.type)}(e),8388608&e.flags&&function(e){p(e.objectType),p(e.indexType),p(e.constraint)}(e)}}function m(r){const i=t(r);i&&p(i.type),f(r.typeParameters,p);for(const e of r.parameters)h(e);p(e(r)),p(n(r))}function g(e){const t=i(e);for(const e of t.indexInfos)p(e.keyType),p(e.type);for(const e of t.callSignatures)m(e);for(const e of t.constructSignatures)m(e);for(const e of t.properties)h(e)}function h(e){if(!e)return!1;const t=YB(e);return!d[t]&&(d[t]=e,!u(e)||(p(o(e)),e.exports&&e.exports.forEach(h),f(e.declarations,(e=>{if(e.type&&186===e.type.kind){const t=e.type;h(a(c(t.exprName)))}})),!1))}}}var eB={};n(eB,{RelativePreference:()=>nB,countPathComponents:()=>gB,forEachFileNameOfModule:()=>vB,getLocalModuleSpecifierBetweenFileNames:()=>dB,getModuleSpecifier:()=>oB,getModuleSpecifierPreferences:()=>rB,getModuleSpecifiers:()=>uB,getModuleSpecifiersWithCacheInfo:()=>_B,getNodeModulesPackageName:()=>aB,tryGetJSExtensionForFile:()=>NB,tryGetModuleSpecifiersFromCache:()=>cB,tryGetRealFileNameForNonJsDeclarationFileName:()=>EB,updateModuleSpecifier:()=>iB});var tB=yt((e=>{try{let t=e.indexOf("/");if(0!==t)return new RegExp(e);const n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if("\\"!==e[t-1])return new RegExp(e);const r=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,r)}catch{return}})),nB=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(nB||{});function rB({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,o,a){const s=c();return{excludeRegexes:n,relativePreference:void 0!==a?As(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=IB(o,r,i),n=e!==t?c(e):s,a=ES(i);if(99===(e??t)&&3<=a&&a<=99)return LM(i,o.fileName)?[3,2]:[2];if(1===ES(i))return 2===n?[2,1]:[1,2];const l=LM(i,o.fileName);switch(n){case 2:return l?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return l?[1,0,3,2]:[1,0,2];case 0:return l?[0,1,3,2]:[0,1,2];default:gn.assertNever(n)}}};function c(e){if(void 0!==a){if(zk(a))return 2;if($t(a,"/index"))return 1}return Vk(t,e??IB(o,r,i),i,Lm(o)?o:void 0)}}function iB(e,t,n,r,i,o,a={}){const s=sB(e,t,n,r,i,rB({},i,e,t,o),{},a);if(s!==o)return s}function oB(e,t,n,r,i,o={}){return sB(e,t,n,r,i,rB({},i,e,t),{},o)}function aB(e,t,n,r,i,o={}){const a=fB(t.fileName,r);return g(bB(a,n,r,i,e,o),(n=>CB(n,a,t,r,e,i,!0,o.overrideImportMode)))}function sB(e,t,n,r,i,o,a,s={}){const c=fB(n,i);return g(bB(c,r,i,a,e,s),(n=>CB(n,c,t,i,e,a,void 0,s.overrideImportMode)))||mB(r,c,e,i,s.overrideImportMode||IB(t,i,e),o)}function cB(e,t,n,r,i={}){const o=lB(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function lB(e,t,n,r,i={}){var o;const a=Dd(e);if(!a)return u;const s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),c=null==s?void 0:s.get(t.path,a.path,r,i);return[null==c?void 0:c.kind,null==c?void 0:c.moduleSpecifiers,a,null==c?void 0:c.modulePaths,s]}function uB(e,t,n,r,i,o,a={}){return _B(e,t,n,r,i,o,a,!1).moduleSpecifiers}function _B(e,t,n,r,i,o,a={},s){let c=!1;const l=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>gp(e)&&(!bp(e)||!As(Kh(e.name)))));if(r)return r.name.text;const i=q(e.declarations,(e=>{var n,r,i,o;if(!aN(e))return;const a=l(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&sN(a.parent)&&fp(a.parent.parent)&&QN(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent;function l(e){for(;8&e.flags;)e=e.parent;return e}})),o=i[0];return o?o.name.text:void 0}(e,t);if(l)return{kind:"ambient",moduleSpecifiers:s&&pB(l,o.autoImportSpecifierExcludeRegexes)?u:[l],computedWithoutCache:c};let[_,d,p,m,g]=lB(e,r,i,o,a);if(d)return{kind:_,moduleSpecifiers:d,computedWithoutCache:c};if(!p)return{kind:void 0,moduleSpecifiers:u,computedWithoutCache:c};c=!0,m||(m=SB(fB(r.fileName,i),p.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const s=fB(n.fileName,r),c=rB(i,r,t,n),l=Lm(n)&&f(e,(e=>f(r.getFileIncludeReasons().get(Xo(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;const t=r.getModeForResolutionAtIndex(n,e.index),i=o.overrideImportMode??r.getDefaultResolutionModeForFile(n);if(t!==i&&void 0!==t&&void 0!==i)return;const a=WU(n,e.index).text;return 1===c.relativePreference&&wo(a)?void 0:a}))));if(l)return{kind:void 0,moduleSpecifiers:[l],computedWithoutCache:!0};const _=X(e,(e=>e.isInNodeModules));let d,p,m,g;for(const l of e){const e=l.isInNodeModules?CB(l,s,n,r,t,i,void 0,o.overrideImportMode):void 0;if(e&&(!a||!pB(e,c.excludeRegexes))&&(d=le(d,e),l.isRedirect))return{kind:"node_modules",moduleSpecifiers:d,computedWithoutCache:!0};const u=mB(l.path,s,t,r,o.overrideImportMode||n.impliedNodeFormat,c,l.isRedirect||!!e);!u||a&&pB(u,c.excludeRegexes)||(l.isRedirect?m=le(m,u):Eo(u)?Hj(u)?g=le(g,u):p=le(p,u):(a||!_||l.isInNodeModules)&&(g=le(g,u)))}return(null==p?void 0:p.length)?{kind:"paths",moduleSpecifiers:p,computedWithoutCache:!0}:(null==m?void 0:m.length)?{kind:"redirect",moduleSpecifiers:m,computedWithoutCache:!0}:(null==d?void 0:d.length)?{kind:"node_modules",moduleSpecifiers:d,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:g??u,computedWithoutCache:!0}}(m,n,r,i,o,a,s);return null==g||g.set(r.path,p.path,o,a,h.kind,m,h.moduleSpecifiers),h}function dB(e,t,n,r,i,o={}){return mB(t,fB(e.fileName,r),n,r,o.overrideImportMode??e.impliedNodeFormat,rB(i,r,n,e))}function pB(e,t){return X(t,(t=>{var n;return!!(null==(n=tB(t))?void 0:n.test(e))}))}function fB(e,t){e=Ho(e,t.getCurrentDirectory());const n=Xt(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=Ro(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function mB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a,excludeRegexes:s},c){const{baseUrl:l,paths:u,rootDirs:_}=n;if(c&&!u)return;const{sourceDirectory:d,canonicalSourceDirectory:p,getCanonicalFileName:m}=t,g=o(i),h=_&&function(e,t,n,r,i,o){const a=DB(t,e,r);if(void 0===a)return;const s=DB(n,e,r),c=M(s,(e=>O(a,(t=>Zo(ua(e,t,r)))))),l=wt(c,Gk);return l?wB(l,i,o):void 0}(_,e,d,m,g,n)||wB(Zo(ua(d,e,m)),g,n);if(!l&&!u&&!OS(n)||0===a)return c?void 0:h;const y=Ho(tv(n,r)||l,r.getCurrentDirectory()),v=PB(e,y,m);if(!v)return c?void 0:h;const b=c?void 0:function(e,t,n,r,i,o){var a,s,c;if(!r.readFile||!OS(n))return;const l=yB(r,t);if(!l)return;const u=Uo(l,"package.json"),_=null==(s=null==(a=r.getPackageJsonInfoCache)?void 0:a.call(r))?void 0:s.getPackageJsonInfo(u);if(yj(_)||!r.fileExists(u))return;const d=(null==_?void 0:_.contents.packageJsonContent)||Lb(r.readFile(u)),p=null==d?void 0:d.imports;if(!p)return;const m=fj(n,i);return null==(c=f(Le(p),(t=>{if(!en(t,"#")||"#"===t||en(t,"#/"))return;const i=$t(t,"/")?1:t.includes("*")?2:0;return TB(n,r,e,l,t,p[t],m,i,!0,o)})))?void 0:c.moduleFileToTry}(e,d,n,r,i,function(e){const t=e.indexOf(3);return t>-1&&te.fileExists(Uo(t,"package.json"))?t:void 0))}function vB(e,t,n,r,i){var o;const a=Uy(n),s=n.getCurrentDirectory(),c=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,l=Xo(t,s,a),_=n.redirectTargetsMap.get(l)||u,d=[...c?[c]:u,t,..._].map((e=>Ho(e,s)));let p=!k(d,JT);if(!r){const e=f(d,(e=>!(p&&JT(e))&&i(e,c===e)));if(e)return e}const m=null==(o=n.getSymlinkCache)?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),g=Ho(t,s);return m&&SM(n,Ro(g),(t=>{const n=m.get(Yo(Xo(t,s,a)));if(n)return!ca(e,t,a)&&f(d,(e=>{if(!ca(e,t,a))return;const r=ua(t,e,a);for(const t of n){const n=Vo(t,r),o=i(n,e===c);if(p=!0,o)return o}}))}))||(r?f(d,(e=>p&&JT(e)?void 0:i(e,e===c))):void 0)}function bB(e,t,n,r,i,o={}){var a;const s=Xo(e.importingSourceFileName,n.getCurrentDirectory(),Uy(n)),c=Xo(t,n.getCurrentDirectory(),Uy(n)),l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n);if(l){const e=l.get(s,c,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const u=SB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,u),u}var xB=["dependencies","peerDependencies","optionalDependencies"];function SB(e,t,n,r,i){var o,a;const s=null==(o=n.getModuleResolutionCache)?void 0:o.call(n),c=null==(a=n.getSymlinkCache)?void 0:a.call(n);if(s&&c&&n.readFile&&!Hj(e.importingSourceFileName)){gn.type(n);const t=aM(s.getPackageJsonInfoCache(),n,{}),o=sM(Ro(e.importingSourceFileName),t);if(o){const e=function(e){let t;for(const n of xB){const r=e[n];r&&"object"==typeof r&&(t=Y(t,Le(r)))}return t}(o.contents.packageJsonContent);for(const t of e||u){const e=Oj(t,Uo(o.packageDirectory,"package.json"),r,n,s,void 0,i.overrideImportMode);c.setSymlinksFromResolution(e.resolvedModule)}}}const l=new Map;vB(e.importingSourceFileName,t,n,!0,((t,n)=>{const r=Hj(t);l.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r})}));const _=[];for(let t=e.canonicalSourceDirectory;0!==l.size;){const e=Yo(t);let n;l.forEach((({path:t,isRedirect:r,isInNodeModules:i},o)=>{en(t,e)&&((n||(n=[])).push({path:o,isRedirect:r,isInNodeModules:i}),l.delete(o))})),n&&(n.length>1&&n.sort(hB),_.push(...n));const r=Ro(t);if(r===t)break;t=r}if(l.size){const e=Be(l.entries(),(([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n})));e.length>1&&e.sort(hB),_.push(...e)}return _}function kB(e,t,n,r,i,o,a){for(const o in t)for(const c of t[o]){const t=Go(c),l=PB(t,r,i)??t,u=l.indexOf("*"),_=n.map((t=>({ending:t,value:wB(e,[t],a)})));if(cT(l)&&_.push({ending:void 0,value:e}),-1!==u){const e=l.substring(0,u),t=l.substring(u+1);for(const{ending:n,value:r}of _)if(r.length>=e.length+t.length&&en(r,e)&&$t(r,t)&&s({ending:n,value:r})){const n=r.substring(e.length,r.length-t.length);if(!wo(n))return vC(o,n)}}else if(X(_,(e=>0!==e.ending&&l===e.value))||X(_,(e=>0===e.ending&&l===e.value&&s(e))))return o}function s({ending:t,value:n}){return 0!==t||n===wB(e,[t],a,o)}}function TB(e,t,n,r,i,o,a,s,c,l){if("string"==typeof o){const a=!qy(t),u=()=>t.getCommonSourceDirectory(),_=c&&Z$(n,e,a,u),d=c&&Q$(n,e,a,u),p=Ho(Uo(r,o),void 0),f=$k(n)?Xk(n)+NB(n,e):void 0,m=l&&qk(n);switch(s){case 0:if(f&&0===aa(f,p,a)||0===aa(n,p,a)||_&&0===aa(_,p,a)||d&&0===aa(d,p,a))return{moduleFileToTry:i};break;case 1:if(m&&sa(n,p,a)){const e=ua(p,n,!1);return{moduleFileToTry:Ho(Uo(Uo(i,o),e),void 0)}}if(f&&sa(p,f,a)){const e=ua(p,f,!1);return{moduleFileToTry:Ho(Uo(Uo(i,o),e),void 0)}}if(!m&&sa(p,n,a)){const e=ua(p,n,!1);return{moduleFileToTry:Ho(Uo(Uo(i,o),e),void 0)}}if(_&&sa(p,_,a)){const e=ua(p,_,!1);return{moduleFileToTry:Uo(i,e)}}if(d&&sa(p,d,a)){const t=ta(ua(p,d,!1),FB(d,e));return{moduleFileToTry:Uo(i,t)}}break;case 2:const t=p.indexOf("*"),r=p.slice(0,t),s=p.slice(t+1);if(m&&en(n,r,a)&&$t(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:vC(i,e)}}if(f&&en(f,r,a)&&$t(f,s,a)){const e=f.slice(r.length,f.length-s.length);return{moduleFileToTry:vC(i,e)}}if(!m&&en(n,r,a)&&$t(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:vC(i,e)}}if(_&&en(_,r,a)&&$t(_,s,a)){const e=_.slice(r.length,_.length-s.length);return{moduleFileToTry:vC(i,e)}}if(d&&en(d,r,a)&&$t(d,s,a)){const t=d.slice(r.length,d.length-s.length),n=vC(i,t),o=NB(d,e);return o?{moduleFileToTry:ta(n,o)}:void 0}}}else{if(Array.isArray(o))return f(o,(o=>TB(e,t,n,r,i,o,a,s,c,l)));if("object"==typeof o&&null!==o)for(const u of Le(o))if("default"===u||a.indexOf(u)>=0||vM(a,u)){const _=o[u],d=TB(e,t,n,r,i,_,a,s,c,l);if(d)return d}}}function CB({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const u=XT(e);if(!u)return;const _=rB(s,o,a,i).getAllowedEndingsInPreferredOrder();let d=e,p=!1;if(!c){let t,n=u.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=v(n);if(1!==ES(a)){if(s)return;if(c)return r}if(i){d=i,p=!0;break}if(t||(t=r),n=e.indexOf(yo,n+1),-1===n){d=wB(t,_,a,o);break}}}if(t&&!p)return;const m=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),g=n(d.substring(0,u.topLevelNodeModulesIndex));if(!(en(r,g)||m&&en(n(m),g)))return;const h=d.substring(u.topLevelPackageNameIndex+1),y=NM(h);return 1===ES(a)&&y===h?void 0:y;function v(t){var r,s;const c=e.substring(0,t),d=Uo(c,"package.json");let p=e,m=!1;const g=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(d);if(hj(g)||void 0===g&&o.fileExists(d)){const t=(null==g?void 0:g.contents.packageJsonContent)||Lb(o.readFile(d)),r=l||IB(i,o,a);if(IS(a)){const n=NM(c.substring(u.topLevelPackageNameIndex+1)),i=fj(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,i,o,a){return"object"==typeof o&&null!==o&&!Array.isArray(o)&&fM(o)?f(Le(o),(s=>{const c=Ho(Uo(i,s),void 0),l=$t(s,"/")?1:s.includes("*")?2:0;return TB(e,t,n,r,c,o[s],a,l,!1,!1)})):TB(e,t,n,r,i,o,a,0,!1,!1)}(a,o,e,c,n,t.exports,i):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?sj(t.typesVersions):void 0;if(s){const t=kB(e.slice(c.length+1),s.paths,_,c,n,o,a);void 0===t?m=!0:p=Uo(c,t)}const h=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(it(h)&&(!m||!_T(nT(s.paths),h))){const e=Xo(h,c,n),r=n(p);if(Xk(e)===Xk(r))return{packageRootPath:c,moduleFileToTry:p};if("module"!==(null==t?void 0:t.type)&&!Po(r,Mk)&&en(r,e)&&Ro(r)===Qo(e)&&"index"===Xk(jo(r)))return{packageRootPath:c,moduleFileToTry:p}}}else{const e=n(p.substring(u.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:p,packageRootPath:c}}return{moduleFileToTry:p}}}function DB(e,t,n){return q(t,(t=>{const r=PB(e,t,n);return void 0!==r&&AB(r)?void 0:r}))}function wB(e,t,n,r){if(Po(e,[".json",".mjs",".cjs"]))return e;const i=Xk(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(Po(e,[".mts",".cts"])&&-1!==a&&a0===e||1===e));return-1!==r&&r(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(qB||{}),UB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),VB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(VB||{}),WB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(WB||{}),HB=on(tJ,(function(e){return!vu(e)})),GB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),KB=class{};function XB(){this.flags=0}function QB(e){return e.id||(e.id=JB,JB++),e.id}function YB(e){return e.id||(e.id=BB,BB++),e.id}function ZB(e,t){const n=zM(e);return 1===n||t&&2===n}function eJ(e){var t,n,r,i,o=[],a=e=>{o.push(e)},s=Vx.getSymbolConstructor(),c=Vx.getTypeConstructor(),l=Vx.getSignatureConstructor(),_=0,d=0,m=0,h=0,y=0,v=0,b=!1,x=td(),S=[1],F=e.getCompilerOptions(),A=DS(F),L=wS(F),B=!!F.experimentalDecorators,J=zS(F),z=KS(F),$=AS(F),U=HS(F,"strictNullChecks"),H=HS(F,"strictFunctionTypes"),G=HS(F,"strictBindCallApply"),K=HS(F,"strictPropertyInitialization"),Q=HS(F,"strictBuiltinIteratorReturn"),Z=HS(F,"noImplicitAny"),te=HS(F,"noImplicitThis"),re=HS(F,"useUnknownInCatchVariables"),ie=F.exactOptionalPropertyTypes,oe=!!F.noUncheckedSideEffectImports,se=function(){const e=eI((function(e,t,r){if(t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},jm(e)&&Zm(e))return t.skip=!0,i(t,Ej(e.right,r)),t;!function(e){const{left:t,operatorToken:n,right:r}=e;if(61===n.kind){!hF(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||w$(t,ha._0_and_1_operations_cannot_be_mixed_without_parentheses,Ra(t.operatorToken.kind),Ra(n.kind)),!hF(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||w$(r,ha._0_and_1_operations_cannot_be_mixed_without_parentheses,Ra(r.operatorToken.kind),Ra(n.kind));const i=hA(t,31),o=ej(i);3!==o&&(226===e.parent.kind?Oo(i,ha.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):Oo(i,1===o?ha.This_expression_is_always_nullish:ha.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}(e);const o=e.operatorToken.kind;return 64!==o||210!==e.left.kind&&209!==e.left.kind||(t.skip=!0,i(t,QR(e.left,Ej(e.right,r),r,110===e.right.kind))),t}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);gn.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(ab(s)){let e=o.parent;for(;217===e.kind||sb(e);)e=e.parent;(56===s||MF(e))&&tB(o.left,a,MF(e)?e.thenStatement:void 0),nb(s)&&nB(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);gn.assertIsDefined(n);const i=r(t);gn.assertIsDefined(i),o=tj(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return gn.assertIsDefined(r),r};function t(e,t){if(hF(t))return t;i(e,Ej(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),ue={getReferencedExportContainer:yz,getReferencedImportDeclaration:vz,getReferencedDeclarationWithCollidingName:xz,isDeclarationWithCollidingName:Sz,isValueAliasDeclaration:e=>{const t=bc(e);return!t||!Re||kz(t)},hasGlobalName:qz,isReferencedAliasDeclaration:(e,t)=>{const n=bc(e);return!n||!Re||wz(n,t)},hasNodeCheckFlag:(e,t)=>{const n=bc(e);return!!n&&Iz(n,t)},isTopLevelValueImportEqualsWithEntityName:Tz,isDeclarationVisible:Pc,isImplementationOfOverload:Ez,requiresAddingImplicitUndefined:Fz,isExpandoFunctionDeclaration:Nz,getPropertiesOfContainerFunction:Pz,createTypeOfDeclaration:Bz,createReturnTypeOfSignatureDeclaration:zz,createTypeOfExpression:$z,createLiteralConstValue:Gz,isSymbolAccessible:Gs,isEntityNameVisible:tc,getConstantValue:e=>{const t=bc(e,Lz);return t?Rz(t):void 0},getEnumMemberValue:e=>{const t=bc(e,XN);return t?Oz(t):void 0},collectLinkedAliases:Ic,markLinkedReferences:e=>{const t=bc(e);return t&&aP(t,0)},getReferencedValueDeclaration:Vz,getReferencedValueDeclarations:Wz,getTypeReferenceSerializationKind:Mz,isOptionalParameter:ig,isArgumentsLocalBinding:hz,getExternalModuleFileFromDeclaration:e=>{const t=bc(e,Ip);return t&&Yz(t)},isLiteralConstDeclaration:Hz,isLateBound:e=>{const t=bc(e,h_),n=t&&fs(t);return!!(n&&4096&_x(n))},getJsxFactoryEntity:Kz,getJsxFragmentFactoryEntity:Xz,isBindingCapturedByNode:(e,t)=>{const n=bc(e),r=bc(t);return!!n&&!!r&&(ZF(r)||ZE(r))&&function(e,t){const n=ra(e);return!!n&&E(n.capturedBlockScopeBindings,fs(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=bc(e);gn.assert(i&&307===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=fs(e);return o?(ts(o),o.exports?_e.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]):e.locals?_e.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=Cd(e);if(!t.symbol)return!1;const n=Yz(e);if(!n)return!1;if(n===t)return!1;const r=us(t.symbol);for(const e of Be(r.values()))if(e.mergeId){const t=ps(e);if(t.declarations)for(const e of t.declarations)if(Cd(e)===n)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:So,createLateBoundIndexSignatures:(e,t,n,r,i)=>{const o=e.symbol,a=bm(Tu(o)),s=Eh(o),c=s&&Oh(s,Be(pd(o).values()));let l;for(const e of[a,c])if(p(e)){l||(l=[]);for(const o of e){if(o.declaration)continue;const s=_e.indexInfoToIndexSignatureDeclaration(o,t,n,r,i);s&&e===a&&(s.modifiers||(s.modifiers=oD.createNodeArray())).unshift(oD.createModifier(126)),s&&l.push(s)}}return l}},_e=function(){const n={evaluateEntityNameExpression:TJ,isExpandoFunctionDeclaration:Nz,hasLateBindableName:G_,shouldRemoveDeclaration:(e,t)=>!(8&e.internalFlags&&fb(t.name.expression)&&1&XA(t.name).flags),createRecoveryBoundary:e=>function(e){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let n,r,i=!1;const o=e.tracker,a=e.trackedSymbols;e.trackedSymbols=void 0;const s=e.encounteredError;return e.tracker=new aJ(e,{...o.inner,reportCyclicStructureError(){c((()=>o.reportCyclicStructureError()))},reportInaccessibleThisError(){c((()=>o.reportInaccessibleThisError()))},reportInaccessibleUniqueSymbolError(){c((()=>o.reportInaccessibleUniqueSymbolError()))},reportLikelyUnsafeImportRequiredError(e){c((()=>o.reportLikelyUnsafeImportRequiredError(e)))},reportNonSerializableProperty(e){c((()=>o.reportNonSerializableProperty(e)))},reportPrivateInBaseOfClassExpression(e){c((()=>o.reportPrivateInBaseOfClassExpression(e)))},trackSymbol:(e,t,r)=>((n??(n=[])).push([e,t,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:l,finalizeBoundary:u,markError:c,hadError:()=>i};function c(e){i=!0,e&&(r??(r=[])).push(e)}function l(){const e=(null==n?void 0:n.length)??0,t=(null==r?void 0:r.length)??0;return()=>{i=!1,n&&(n.length=e),r&&(r.length=t)}}function u(){return e.tracker=o,e.trackedSymbols=a,e.encounteredError=s,null==r||r.forEach((e=>e())),!i&&(null==n||n.forEach((([t,n,r])=>e.tracker.trackSymbol(t,n,r))),!0)}}(e),isDefinitelyReferenceToGlobalSymbolObject:So,getAllAccessorDeclarations:Jz,requiresAddingImplicitUndefined(e,t,n){var r;switch(e.kind){case 172:case 171:case 348:t??(t=fs(e));const i=Tu(t);return!!(4&t.flags&&16777216&t.flags&&rC(e)&&(null==(r=t.links)?void 0:r.mappedType)&&function(e){const t=1048576&e.flags?e.types[0]:e;return!!(32768&t.flags)&&t!==jt}(i));case 169:case 341:return Fz(e,n);default:gn.assertNever(e)}},isOptionalParameter:ig,isUndefinedIdentifierExpression:e=>(gn.assert(wm(e)),lz(e)===Ce),isEntityNameVisible:(e,t,n)=>tc(t,e.enclosingDeclaration,n),serializeExistingTypeNode:(e,t,n)=>function(e,t,n){const i=r(e,t);if(n&&!pF(i,(e=>!!(32768&e.flags)))&&ge(e,t)){const n=me.tryReuseExistingTypeNode(e,t);if(n)return oD.createUnionTypeNode([n,oD.createKeywordTypeNode(157)])}return _(i,e)}(e,t,!!n),serializeReturnTypeForSignature(e,t){const n=e,r=mg(t),i=n.enclosingSymbolTypes.get(YB(fs(t)))??fk(jg(r),n.mapper);return pe(n,r,i)},serializeTypeOfExpression(e,t){const n=e;return _(fk(RD(dz(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){var r;const i=e;n??(n=fs(t));let o=null==(r=i.enclosingSymbolTypes)?void 0:r.get(YB(n));return void 0===o&&(o=!n||133120&n.flags?Nt:fk(YC(Tu(n)),i.mapper)),t&&(fE(t)||FP(t))&&Fz(t,i.enclosingDeclaration)&&(o=mD(o)),_e(n,i,o)},serializeNameOfParameter:(e,t)=>B(fs(t),t,e),serializeEntityName(e,t){const n=e,r=lz(t,!0);if(r&&Vs(r,n.enclosingDeclaration))return re(r,n,1160127)},serializeTypeName:(e,t,n,r)=>function(e,t,n,r){const i=n?111551:788968,o=Ha(t,i,!0);if(!o)return;const a=2097152&o.flags?Ja(o):o;return 0!==Gs(o,e.enclosingDeclaration,i,!1).accessibility?void 0:Q(a,e,i,r)}(e,t,n,r),getJsDocPropertyOverride(e,t,n){const i=e,o=Xw(n.name)?n.name:n.name.right,a=qc(r(i,t),o.escapedText);return a&&n.typeExpression&&r(i,n.typeExpression.type)!==a?_(a,i):void 0},enterNewScope(e,t){if(uu(t)||mP(t)){const n=mg(t);return S(e,t,kd(n,!0)[0],n.typeParameters)}return S(e,t,void 0,JE(t)?Wx(t):[g_(fs(t.typeParameter))])},markNodeReuse:(e,t,n)=>o(e,t,n),trackExistingEntityName:(e,t)=>fe(t,e),trackComputedName(e,t){J(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){const r=e;if(r.bundled||r.enclosingFile!==Cd(n)){let e=n.text;const i=ra(t).resolvedSymbol,o=t.isTypeOf?111551:788968,a=i&&0===Gs(i,r.enclosingDeclaration,o,!1).accessibility&&z(i,r,o,!0)[0];if(a&&rd(a))e=G(a,r);else{const n=Yz(t);n&&(e=G(n.symbol,r))}return e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e}},canReuseTypeNode:(e,t)=>ge(e,t),canReuseTypeNodeAnnotation(e,t,n,r,i){var o;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=fs(t));let s=null==(o=a.enclosingSymbolTypes)?void 0:o.get(YB(r));void 0===s&&(s=98304&r.flags?178===t.kind?ku(r):eu(r):sh(t)?jg(mg(t)):Tu(r));let c=fc(n);return!!Hc(c)||(i&&c&&(c=mD(c,!fE(t))),!!c&&function(e,t,n){return n===t||!!e&&(((gE(e)||hE(e))&&e.questionToken||!(!fE(e)||!Km(e)))&&Zw(t,524288)===n)}(t,s,c)&&ue(n,s))}};return{syntacticBuilderResolver:n,typeToTypeNode:(e,t,n,r,i)=>a(t,n,r,i,(t=>_(e,t))),typePredicateToTypePredicateNode:(e,t,n,r,i)=>a(t,n,r,i,(t=>I(e,t))),serializeTypeForExpression:(e,t,n,r,i)=>a(t,n,r,i,(t=>me.serializeTypeOfExpression(e,t))),serializeTypeForDeclaration:(e,t,n,r,i,o)=>a(n,r,i,o,(n=>me.serializeTypeOfDeclaration(e,t,n))),serializeReturnTypeForSignature:(e,t,n,r,i)=>a(t,n,r,i,(t=>me.serializeReturnTypeForSignature(e,fs(e),t))),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>a(t,n,r,i,(t=>b(e,t,void 0))),signatureToSignatureDeclaration:(e,t,n,r,i,o)=>a(n,r,i,o,(n=>x(e,t,n))),symbolToEntityName:(e,t,n,r,i,o)=>a(n,r,i,o,(n=>ne(e,n,t,!1))),symbolToExpression:(e,t,n,r,i,o)=>a(n,r,i,o,(n=>re(e,n,t))),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>a(t,n,r,i,(t=>V(e,t))),symbolToParameterDeclaration:(e,t,n,r,i)=>a(t,n,r,i,(t=>j(e,t))),typeParameterToDeclaration:(e,t,n,r,i)=>a(t,n,r,i,(t=>w(e,t))),symbolTableToDeclarationStatements:(e,t,n,i,s)=>a(t,n,i,s,(t=>function(e,t){var n;const i=Te(oD.createPropertyDeclaration,174,!0),a=Te(((e,t,n,r)=>oD.createPropertySignature(e,t,n,r)),173,!1),s=t.enclosingDeclaration;let l=[];const d=new Set,m=[],h=t;t={...h,usedSymbolNames:new Set(h.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(n=h.remappedSymbolReferences)?void 0:n.entries()),tracker:void 0};const y={...h.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(YB(e)))return!1;if(0===Gs(e,n,r,!1).accessibility){const n=U(e,t,r);if(!(4&e.flags)){const e=n[0],t=Cd(h.enclosingDeclaration);X(e.declarations,(e=>Cd(e)===t))&&H(e)}}else if(null==(o=h.tracker.inner)?void 0:o.trackSymbol)return h.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new aJ(t,y,h.tracker.moduleResolverHost),ld(e,((e,t)=>{Ie(e,Sc(t))}));let v=!t.bundled;const S=e.get("export=");return S&&e.size>1&&2098688&S.flags&&(e=td()).set("export=",S),z(e),R(l);function C(e){return!!e&&80===e.kind}function E(e){return LF(e)?P(O(e.declarationList.declarations,Ac),C):P([Ac(e)],C)}function F(e){const t=T(e,SN),n=D(e,aN);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&Xw(t.expression)&&Xw(r.name)&&kc(r.name)===kc(t.expression)&&r.body&&sN(r.body)){const i=P(e,(e=>!!(32&Hv(e)))),o=r.name;let a=r.body;if(p(i)&&(r=oD.updateModuleDeclaration(r,r.modifiers,r.name,a=oD.updateModuleBlock(a,oD.createNodeArray([...r.body.statements,oD.createExportDeclaration(void 0,!1,oD.createNamedExports(O(M(i,(e=>E(e))),(e=>oD.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!T(e,(e=>e!==r&&Ec(e,o)))){l=[];const n=!X(a.statements,(e=>Lv(e,32)||SN(e)||kN(e)));f(a.statements,(e=>{Q(e,n?32:0)})),e=[...P(e,(e=>e!==r&&e!==t)),...l]}}return e}function N(e){const t=P(e,(e=>kN(e)&&!e.moduleSpecifier&&!!e.exportClause&&TN(e.exportClause)));p(t)>1&&(e=[...P(e,(e=>!kN(e)||!!e.moduleSpecifier||!e.exportClause)),oD.createExportDeclaration(void 0,!1,oD.createNamedExports(M(t,(e=>st(e.exportClause,TN).elements))),void 0)]);const n=P(e,(e=>kN(e)&&!!e.moduleSpecifier&&!!e.exportClause&&TN(e.exportClause)));if(p(n)>1){const t=Ve(n,(e=>Iw(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...P(e,(e=>!n.includes(e))),oD.createExportDeclaration(void 0,!1,oD.createNamedExports(M(n,(e=>st(e.exportClause,TN).elements))),n[0].moduleSpecifier)])}return e}function I(e){const t=D(e,(e=>kN(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&TN(e.exportClause)));if(t>=0){const n=e[t],r=q(n.exportClause.elements,(t=>{if(!t.propertyName&&11!==t.name.kind){const n=t.name,r=P(ee(e),(t=>Ec(e[t],n)));if(p(r)&&k(r,(t=>YT(e[t])))){for(const t of r)e[t]=j(e[t]);return}}return t}));p(r)?e[t]=oD.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,oD.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):Ht(e,t)}return e}function R(e){return e=I(e=N(e=F(e))),s&&(QN(s)&&af(s)||aN(s))&&(!X(e,r_)||!t_(e)&&X(e,n_))&&e.push(GP(oD)),e}function j(e){const t=-129&Hv(e)|32;return oD.replaceModifiers(e,t)}function J(e){const t=-33&Hv(e);return oD.replaceModifiers(e,t)}function z(e,t,n){t||m.push(new Map),e.forEach((e=>{V(e,!1,!!n)})),t||(m[m.length-1].forEach((e=>{V(e,!0,!!n)})),m.pop())}function V(e,n,r){Ep(Tu(e));const i=ps(e);if(!d.has(YB(i))&&(d.add(YB(i)),!n||p(e.declarations)&&X(e.declarations,(e=>!!yc(e,(e=>e===s)))))){const i=se(t);t.tracker.pushErrorFallbackNode(T(e.declarations,(e=>Cd(e)===t.enclosingFile))),W(e,n,r),t.tracker.popErrorFallbackNode(),i()}}function W(e,n,r,i=e.escapedName){var a,s,c,l,u,_;const d=Sc(i),f="default"===i;if(n&&!(131072&t.flags)&&jh(d)&&!f)return void(t.encounteredError=!0);let m=f&&!!(-113&e.flags||16&e.flags&&p(Ep(Tu(e))))&&!(2097152&e.flags),g=!m&&!n&&jh(d)&&!f;(m||g)&&(n=!0);const h=(n?0:32)|(f&&!m?2048:0),y=1536&e.flags&&7&e.flags&&"export="!==i,v=y&&ke(Tu(e),e);if((8208&e.flags||v)&&ue(Tu(e),e,Ie(e,d),h),524288&e.flags&&Y(e,d,h),98311&e.flags&&"export="!==i&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!v)if(r)Se(e)&&(g=!1,m=!1);else{const p=Tu(e),f=Ie(e,d);if(p.symbol&&p.symbol!==e&&16&p.symbol.flags&&X(p.symbol.declarations,VT)&&((null==(a=p.symbol.members)?void 0:a.size)||(null==(s=p.symbol.exports)?void 0:s.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(YB(p.symbol),e),W(p.symbol,n,r,i),t.remappedSymbolReferences.delete(YB(p.symbol));else if(16&e.flags||!ke(p,e)){const r=2&e.flags?zN(e)?2:1:(null==(c=e.parent)?void 0:c.valueDeclaration)&&QN(null==(l=e.parent)?void 0:l.valueDeclaration)?2:void 0,i=!m&&4&e.flags?Pe(f,e):f;let a=e.declarations&&T(e.declarations,(e=>ZF(e)));a&&eN(a.parent)&&1===a.parent.declarations.length&&(a=a.parent.parent);const s=null==(u=e.declarations)?void 0:u.find(nF);if(s&&hF(s.parent)&&Xw(s.parent.right)&&(null==(_=p.symbol)?void 0:_.valueDeclaration)&&QN(p.symbol.valueDeclaration)){const e=f===s.parent.right.escapedText?void 0:s.parent.right;Q(oD.createExportDeclaration(void 0,!1,oD.createNamedExports([oD.createExportSpecifier(!1,e,f)])),0),t.tracker.trackSymbol(p.symbol,t.enclosingDeclaration,111551)}else Q(o(t,oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(i,void 0,de(t,void 0,p,e))],r)),a),i!==f?-33&h:h),i===f||n||(Q(oD.createExportDeclaration(void 0,!1,oD.createNamedExports([oD.createExportSpecifier(!1,i,f)])),0),g=!1,m=!1)}else ue(p,e,f,h)}if(384&e.flags&&le(e,d,h),32&e.flags&&(4&e.flags&&e.valueDeclaration&&hF(e.valueDeclaration.parent)&&SF(e.valueDeclaration.parent.right)?be(e,Ie(e,d),h):ye(e,Ie(e,d),h)),(1536&e.flags&&(!y||ie(e))||v)&&oe(e,d,h),64&e.flags&&!(32&e.flags)&&Z(e,d,h),2097152&e.flags&&be(e,Ie(e,d),h),4&e.flags&&"export="===e.escapedName&&Se(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Xa(n,n.moduleSpecifier);e&&Q(oD.createExportDeclaration(void 0,n.isTypeOnly,void 0,oD.createStringLiteral(G(e,t))),0)}m?Q(oD.createExportAssignment(void 0,!1,oD.createIdentifier(Ie(e,d))),0):g&&Q(oD.createExportDeclaration(void 0,!1,oD.createNamedExports([oD.createExportSpecifier(!1,Ie(e,d),d)])),0)}function H(e){if(X(e.declarations,iy))return;gn.assertIsDefined(m[m.length-1]),Pe(Sc(e.escapedName),e);const t=!!(2097152&e.flags)&&!X(e.declarations,(e=>!!yc(e,kN)||vN(e)||uN(e)&&!NN(e.moduleReference)));m[t?0:m.length-1].set(YB(e),e)}function K(e){return QN(e)&&(af(e)||sf(e))||fp(e)&&!vp(e)}function Q(e,n){if(mI(e)){let r=0;const i=t.enclosingDeclaration&&(Lg(t.enclosingDeclaration)?Cd(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&i&&(K(i)||aN(i))&&YT(e)&&(r|=32),!v||32&r||i&&33554432&i.flags||!(oN(e)||LF(e)||tN(e)||nN(e)||aN(e))||(r|=128),2048&n&&(nN(e)||rN(e)||tN(e))&&(r|=2048),r&&(e=oD.replaceModifiers(e,r|Hv(e)))}l.push(e)}function Y(e,n,r){var i;const o=c_(e),a=O(na(e).typeParameters,(e=>w(e,t))),s=null==(i=e.declarations)?void 0:i.find(Lg),l=gl(s?s.comment||s.parent.comment:void 0),u=c(t);t.flags|=8388608;const d=t.enclosingDeclaration;t.enclosingDeclaration=s;const p=s&&s.typeExpression&&ZN(s.typeExpression)&&me.tryReuseExistingTypeNode(t,s.typeExpression.type)||_(o,t);Q(TD(oD.createTypeAliasDeclaration(void 0,Ie(e,n),a,p),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),u(),t.enclosingDeclaration=d}function Z(e,n,r){const i=s_(e),o=O(ju(e),(e=>w(e,t))),a=e_(i),s=p(a)?zb(a):void 0,c=M(Ep(i),(e=>Ce(e,s))),l=De(0,i,s,179),u=De(1,i,s,180),_=we(i,s),d=p(a)?[oD.createHeritageClause(96,q(a,(e=>Fe(e,111551))))]:void 0;Q(oD.createInterfaceDeclaration(void 0,Ie(e,n),o,d,[..._,...u,...l,...c]),r)}function te(e){let t=Be(ls(e).values());const n=ps(e);if(n!==e){const e=new Set(t);for(const t of ls(n).values())111551&za(Ba(t))||e.add(t);t=Be(e)}return P(t,(e=>ge(e)&&Ss(e.escapedName,99)))}function ie(e){return k(te(e),(e=>!(111551&za(Ba(e)))))}function oe(e,n,r){const i=Ue(te(e),(t=>t.parent&&t.parent===e?"real":"merged")),o=i.get("real")||u,a=i.get("merged")||u;if(p(o)&&pe(o,Ie(e,n),r,!!(67108880&e.flags)),p(a)){const r=Cd(t.enclosingDeclaration),i=Ie(e,n),o=oD.createModuleBlock([oD.createExportDeclaration(void 0,!1,oD.createNamedExports(q(P(a,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=Sc(n.escapedName),s=Ie(n,a),c=n.declarations&&ba(n);if(r&&(c?r!==Cd(c):!X(n.declarations,(e=>Cd(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&ja(c,!0);H(l||n);const u=l?Ie(l,Sc(l.escapedName)):s;return oD.createExportSpecifier(!1,a===u?void 0:u,a)}))))]);Q(oD.createModuleDeclaration(void 0,oD.createIdentifier(i),o,32),0)}}function le(e,t,n){Q(oD.createEnumDeclaration(oD.createModifiersFromModifierFlags(WR(e)?4096:0),Ie(e,t),O(P(Ep(Tu(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&XN(e.declarations[0])?Rz(e.declarations[0]):void 0;return oD.createEnumMember(Sc(e.escapedName),void 0===t?void 0:"string"==typeof t?oD.createStringLiteral(t):oD.createNumericLiteral(t))}))),n)}function ue(e,n,r,i){const a=Xf(e,0);for(const e of a){const n=x(e,262,t,{name:oD.createIdentifier(r)});Q(o(t,n,_e(e)),i)}1536&n.flags&&n.exports&&n.exports.size||pe(P(Ep(e),ge),r,i,!0)}function _e(e){if(e.declaration&&e.declaration.parent){if(hF(e.declaration.parent)&&5===cg(e.declaration.parent))return e.declaration.parent;if(ZF(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function pe(e,n,r,i){if(p(e)){const o=Ue(e,(e=>!p(e.declarations)||X(e.declarations,(e=>Cd(e)===Cd(t.enclosingDeclaration)))?"local":"remote")).get("local")||u;let a=yI.createModuleDeclaration(void 0,oD.createIdentifier(n),oD.createModuleBlock([]),32);LT(a,s),a.locals=td(e),a.symbol=e[0].parent;const c=l;l=[];const _=v;v=!1;const d={...t,enclosingDeclaration:a},f=t;t=d,z(td(o),i,!0),t=f,v=_;const m=l;l=c;const g=O(m,(e=>SN(e)&&!e.isExportEquals&&Xw(e.expression)?oD.createExportDeclaration(void 0,!1,oD.createNamedExports([oD.createExportSpecifier(!1,e.expression,oD.createIdentifier("default"))])):e)),h=k(g,(e=>Lv(e,32)))?O(g,J):g;a=oD.updateModuleDeclaration(a,a.modifiers,a.name,oD.createModuleBlock(h)),Q(a,r)}}function ge(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Rv(e.valueDeclaration)&&yu(e.valueDeclaration.parent))}function he(e){const n=q(e,(e=>{const n=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(fb(i)){if(Xw(i)&&""===kc(i))return o(void 0);let e;if(({introducesError:e,node:i}=fe(i,t)),e)return o(void 0)}return o(oD.createExpressionWithTypeArguments(i,O(e.typeArguments,(e=>me.tryReuseExistingTypeNode(t,e)||_(r(t,e),t)))));function o(e){return t.enclosingDeclaration=n,e}}));if(n.length===e.length)return n}function ye(e,n,r){var a,s;const c=null==(a=e.declarations)?void 0:a.find(yu),l=t.enclosingDeclaration;t.enclosingDeclaration=c||l;const _=O(ju(e),(e=>w(e,t))),d=md(s_(e)),m=e_(d),g=c&&wh(c),h=g&&he(g)||q(function(e){let t=u;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=wh(n);if(e)for(const n of e){const e=TS(n);Hc(e)||(t===u?t=[e]:t.push(e))}}return t}(d),Ne),y=Tu(e),v=!!(null==(s=y.symbol)?void 0:s.valueDeclaration)&&yu(y.symbol.valueDeclaration),b=v?Ku(y):Dt,x=[...p(m)?[oD.createHeritageClause(96,O(m,(e=>Ee(e,b,n))))]:[],...p(h)?[oD.createHeritageClause(119,h)]:[]],S=function(e,t,n){if(!p(t))return n;const r=new Map;f(n,(e=>{r.set(e.escapedName,e)}));for(const n of t){const t=Ep(md(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Be(r.values())}(d,m,Ep(d)),k=P(S,(e=>{const t=e.valueDeclaration;return!(!t||Nc(t)&&Qw(t.name))})),T=X(S,(e=>{const t=e.valueDeclaration;return!!t&&Nc(t)&&Qw(t.name)}))?[oD.createPropertyDeclaration(void 0,oD.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:u,C=M(k,(e=>i(e,!1,m[0]))),D=M(P(Ep(y),(e=>!(4194304&e.flags||"prototype"===e.escapedName||ge(e)))),(e=>i(e,!0,b))),E=!v&&e.valueDeclaration&&jm(e.valueDeclaration)&&!X(Xf(y,1))?[oD.createConstructorDeclaration(oD.createModifiersFromModifierFlags(2),[],void 0)]:De(1,y,b,176),F=we(d,m[0]);t.enclosingDeclaration=l,Q(o(t,oD.createClassDeclaration(void 0,n,_,x,[...F,...D,...E,...C,...T]),e.declarations&&P(e.declarations,(e=>nN(e)||SF(e)))[0]),r)}function ve(e){return g(e,(e=>{if(xN(e)||CN(e))return Yd(e.propertyName||e.name);if(hF(e)||SN(e)){const t=SN(e)?e.expression:e.right;if(nF(t))return kc(t.name)}if(xa(e)){const t=Ac(e);if(t&&Xw(t))return kc(t)}}))}function be(e,n,r){var i,o,a,s,c;const l=ba(e);if(!l)return gn.fail();const u=ps(ja(l,!0));if(!u)return;let _=hp(u)&&ve(e.declarations)||Sc(u.escapedName);"export="===_&&$&&(_="default");const d=Ie(u,_);switch(H(u),l.kind){case 208:if(260===(null==(o=null==(i=l.parent)?void 0:i.parent)?void 0:o.kind)){const e=G(u.parent||u,t),{propertyName:r}=l;Q(oD.createImportDeclaration(void 0,oD.createImportClause(!1,void 0,oD.createNamedImports([oD.createImportSpecifier(!1,r&&Xw(r)?oD.createIdentifier(kc(r)):void 0,oD.createIdentifier(n))])),oD.createStringLiteral(e),void 0),0);break}gn.failBadSyntaxKind((null==(a=l.parent)?void 0:a.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(c=null==(s=l.parent)?void 0:s.parent)?void 0:c.kind)&&xe(Sc(e.escapedName),d);break;case 260:if(nF(l.initializer)){const e=l.initializer,i=oD.createUniqueName(n),o=G(u.parent||u,t);Q(oD.createImportEqualsDeclaration(void 0,!1,i,oD.createExternalModuleReference(oD.createStringLiteral(o))),0),Q(oD.createImportEqualsDeclaration(void 0,!1,oD.createIdentifier(n),oD.createQualifiedName(i,e.name)),r);break}case 271:if("export="===u.escapedName&&X(u.declarations,(e=>QN(e)&&sf(e)))){Se(e);break}const p=!(512&u.flags||ZF(l));Q(oD.createImportEqualsDeclaration(void 0,!1,oD.createIdentifier(n),p?ne(u,t,-1,!1):oD.createExternalModuleReference(oD.createStringLiteral(G(u,t)))),p?r:0);break;case 270:Q(oD.createNamespaceExportDeclaration(kc(l.name)),0);break;case 273:{const e=G(u.parent||u,t),r=t.bundled?oD.createStringLiteral(e):l.parent.moduleSpecifier,i=_N(l.parent)?l.parent.attributes:void 0,o=JP(l.parent);Q(oD.createImportDeclaration(void 0,oD.createImportClause(o,oD.createIdentifier(n),void 0),r,i),0);break}case 274:{const e=G(u.parent||u,t),r=t.bundled?oD.createStringLiteral(e):l.parent.parent.moduleSpecifier,i=JP(l.parent.parent);Q(oD.createImportDeclaration(void 0,oD.createImportClause(i,void 0,oD.createNamespaceImport(oD.createIdentifier(n))),r,l.parent.attributes),0);break}case 280:Q(oD.createExportDeclaration(void 0,!1,oD.createNamespaceExport(oD.createIdentifier(n)),oD.createStringLiteral(G(u,t))),0);break;case 276:{const e=G(u.parent||u,t),r=t.bundled?oD.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier,i=JP(l.parent.parent.parent);Q(oD.createImportDeclaration(void 0,oD.createImportClause(i,void 0,oD.createNamedImports([oD.createImportSpecifier(!1,n!==_?oD.createIdentifier(_):void 0,oD.createIdentifier(n))])),r,l.parent.parent.parent.attributes),0);break}case 281:const f=l.parent.parent.moduleSpecifier;if(f){const e=l.propertyName;e&&ep(e)&&(_="default")}xe(Sc(e.escapedName),f?_:d,f&&q_(f)?oD.createStringLiteral(f.text):void 0);break;case 277:Se(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?Se(e):xe(n,d);break;default:return gn.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function xe(e,t,n){Q(oD.createExportDeclaration(void 0,!1,oD.createNamedExports([oD.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function Se(e){var n;if(4194304&e.flags)return!1;const r=Sc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&ba(e),c=a&&ja(a,!0);if(c&&p(c.declarations)&&X(c.declarations,(e=>Cd(e)===Cd(s)))){const n=a&&(SN(a)||hF(a)?kh(a):Th(a)),u=n&&fb(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(sg(e.expression)&&!Qw(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,_=u&&Ha(u,-1,!0,!0,s);(_||c)&&H(_||c);const d=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)l.push(oD.createExportAssignment(void 0,i,re(c,t,-1)));else if(u===n&&u)xe(r,kc(u));else if(n&&SF(n))xe(r,Ie(c,Cc(c)));else{const n=Pe(r,e);Q(oD.createImportEqualsDeclaration(void 0,!1,oD.createIdentifier(n),ne(c,t,-1,!1)),0),xe(r,n)}return t.tracker.disableTrackSymbol=d,!0}{const a=Pe(r,e),s=RD(Tu(ps(e)));if(ke(s,e))ue(s,e,a,o?0:32);else{const i=267!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;Q(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(a,void 0,de(t,void 0,s,e))],i)),c&&4&c.flags&&"export="===c.escapedName?128:r===a?32:0)}return o?(l.push(oD.createExportAssignment(void 0,i,oD.createIdentifier(a))),!0):r!==a&&(xe(r,a),!0)}}function ke(e,n){var r;const i=Cd(t.enclosingDeclaration);return 48&Tx(e)&&!X(null==(r=e.symbol)?void 0:r.declarations,wu)&&!p(bm(e))&&!dc(e)&&!(!p(P(Ep(e),ge))&&!p(Xf(e,0)))&&!p(Xf(e,1))&&!ce(n,s)&&!(e.symbol&&X(e.symbol.declarations,(e=>Cd(e)!==i)))&&!X(Ep(e),(e=>H_(e.escapedName)))&&!X(Ep(e),(e=>X(e.declarations,(e=>Cd(e)!==i))))&&k(Ep(e),(e=>!(!Ss(Cc(e),A)||98304&e.flags&&Cu(e)!==ku(e))))}function Te(e,n,r){return function(i,a,s){var c,l,u,_,d,p;const m=dx(i),g=!!(2&m);if(a&&2887656&i.flags)return[];if(4194304&i.flags||"constructor"===i.escapedName||s&&Uf(s,i.escapedName)&&LR(Uf(s,i.escapedName))===LR(i)&&(16777216&i.flags)==(16777216&Uf(s,i.escapedName).flags)&&kk(Tu(i),qc(s,i.escapedName)))return[];const h=-1025&m|(a?256:0),y=ae(i,t),v=null==(c=i.declarations)?void 0:c.find(an(hE,vu,ZF,gE,hF,nF));if(98304&i.flags&&r){const e=[];if(65536&i.flags){const n=i.declarations&&f(i.declarations,(e=>178===e.kind?e:iF(e)&&lg(e)?f(e.arguments[2].properties,(e=>{const t=Ac(e);if(t&&Xw(t)&&"set"===kc(t))return e})):void 0));gn.assert(!!n);const r=du(n)?mg(n).parameters[0]:void 0,a=null==(l=i.declarations)?void 0:l.find(I_);e.push(o(t,oD.createSetAccessorDeclaration(oD.createModifiersFromModifierFlags(h),y,[oD.createParameterDeclaration(void 0,void 0,r?B(r,L(r),t):"value",void 0,g?void 0:de(t,a,ku(i),i))],void 0),a??v))}if(32768&i.flags){const n=2&m,r=null==(u=i.declarations)?void 0:u.find(O_);e.push(o(t,oD.createGetAccessorDeclaration(oD.createModifiersFromModifierFlags(h),y,[],n?void 0:de(t,r,Tu(i),i),void 0),r??v))}return e}if(98311&i.flags)return o(t,e(oD.createModifiersFromModifierFlags((LR(i)?8:0)|h),y,16777216&i.flags?oD.createToken(58):void 0,g?void 0:de(t,null==(_=i.declarations)?void 0:_.find(kE),ku(i),i),void 0),(null==(d=i.declarations)?void 0:d.find(an(hE,ZF)))||v);if(8208&i.flags){const r=Xf(Tu(i),0);if(2&h)return o(t,e(oD.createModifiersFromModifierFlags((LR(i)?8:0)|h),y,16777216&i.flags?oD.createToken(58):void 0,void 0,void 0),(null==(p=i.declarations)?void 0:p.find(du))||r[0]&&r[0].declaration||i.declarations&&i.declarations[0]);const a=[];for(const e of r){const r=x(e,n,t,{name:y,questionToken:16777216&i.flags?oD.createToken(58):void 0,modifiers:h?oD.createModifiersFromModifierFlags(h):void 0}),s=e.declaration&&bg(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(o(t,r,s))}return a}return gn.fail(`Unhandled class member kind! ${i.__debugFlags||i.flags}`)}}function Ce(e,t){return a(e,!1,t)}function De(e,n,r,i){const a=Xf(n,e);if(1===e){if(!r&&k(a,(e=>0===p(e.parameters))))return[];if(r){const e=Xf(r,1);if(!p(e)&&k(a,(e=>0===p(e.parameters))))return[];if(e.length===a.length){let t=!1;for(let n=0;n_(e,t))),i=re(e.target.symbol,t,788968)):e.symbol&&Ws(e.symbol,s,n)&&(i=re(e.symbol,t,788968)),i)return oD.createExpressionWithTypeArguments(i,r)}function Ne(e){const n=Fe(e,788968);return n||(e.symbol?oD.createExpressionWithTypeArguments(re(e.symbol,t,788968),void 0):void 0)}function Pe(e,n){var r,i;const o=n?YB(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=Ae(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function Ae(e,n){if("default"===n||"__class"===n||"__function"===n){const r=c(t);t.flags|=16777216;const i=Fc(e,t);r(),n=i.length>0&&Gm(i.charCodeAt(0))?Ry(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=Ss(n,A)&&!jh(n)?n:"_"+n.replace(/[^a-z0-9]/gi,"_")}function Ie(e,n){const r=YB(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=Ae(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t))),symbolToNode:(e,t,n,r,i,o)=>a(n,r,i,o,(n=>function(e,t,n){if(1&t.internalFlags){if(e.valueDeclaration){const t=Ac(e.valueDeclaration);if(t&&dE(t))return t}const r=na(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,oD.createComputedPropertyName(re(r.symbol,t,n))}return re(e,t,n)}(e,n,t)))};function r(e,t,n){const r=fc(t);if(!e.mapper)return r;const i=fk(r,e.mapper);return n&&i!==r?void 0:i}function o(e,t,n){if(sy(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===Cd(hc(t))||(t=oD.cloneNode(t)),t===n)return t;if(!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||sD(t,n),e.enclosingFile&&e.enclosingFile===Cd(hc(n))?fI(t,n):t}function a(t,n,r,i,o){const a=(null==i?void 0:i.trackSymbol)?i.moduleResolverHost:4&(r||0)?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Xe(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:Xe(e,e.getGlobalTypingsCacheLocation)}}(e):void 0,s={enclosingDeclaration:t,enclosingFile:t&&Cd(t),flags:n||0,internalFlags:r||0,tracker:void 0,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!F.outFile&&!!t&&af(Cd(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0};s.tracker=new aJ(s,i,a);const c=o(s);return s.truncating&&1&s.flags&&s.tracker.reportTruncationError(),s.encounteredError?void 0:c}function s(e,t,n){const r=YB(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),function(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function c(e){const t=e.flags,n=e.internalFlags;return function(){e.flags=t,e.internalFlags=n}}function l(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?Y_:Q_)}function _(e,n){const a=c(n),s=function(e,n){var a,s;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const m=8388608&n.flags;if(n.flags&=-8388609,!e)return 262144&n.flags?(n.approximateLength+=3,oD.createKeywordTypeNode(133)):void(n.encounteredError=!0);if(536870912&n.flags||(e=wf(e)),1&e.flags)return e.aliasSymbol?oD.createTypeReferenceNode(K(e.aliasSymbol),v(e.aliasTypeArguments,n)):e===Pt?CD(oD.createKeywordTypeNode(133),3,"unresolved"):(n.approximateLength+=3,oD.createKeywordTypeNode(e===It?141:133));if(2&e.flags)return oD.createKeywordTypeNode(159);if(4&e.flags)return n.approximateLength+=6,oD.createKeywordTypeNode(154);if(8&e.flags)return n.approximateLength+=6,oD.createKeywordTypeNode(150);if(64&e.flags)return n.approximateLength+=6,oD.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return n.approximateLength+=7,oD.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=gs(e.symbol),r=Q(t,n,788968);if(y_(t)===e)return r;const i=Cc(e.symbol);return Ss(i,1)?M(r,oD.createTypeReferenceNode(i,void 0)):GE(r)?(r.isTypeOf=!0,oD.createIndexedAccessTypeNode(r,oD.createLiteralTypeNode(oD.createStringLiteral(i)))):EE(r)?oD.createIndexedAccessTypeNode(oD.createTypeQueryNode(r.typeName),oD.createLiteralTypeNode(oD.createStringLiteral(i))):gn.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Q(e.symbol,n,788968)}if(128&e.flags)return n.approximateLength+=e.value.length+2,oD.createLiteralTypeNode(_D(oD.createStringLiteral(e.value,!!(268435456&n.flags)),16777216));if(256&e.flags){const t=e.value;return n.approximateLength+=(""+t).length,oD.createLiteralTypeNode(t<0?oD.createPrefixUnaryExpression(41,oD.createNumericLiteral(-t)):oD.createNumericLiteral(t))}if(2048&e.flags)return n.approximateLength+=kT(e.value).length+1,oD.createLiteralTypeNode(oD.createBigIntLiteral(e.value));if(512&e.flags)return n.approximateLength+=e.intrinsicName.length,oD.createLiteralTypeNode("true"===e.intrinsicName?oD.createTrue():oD.createFalse());if(8192&e.flags){if(!(1048576&n.flags)){if(Vs(e.symbol,n.enclosingDeclaration))return n.approximateLength+=6,Q(e.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,oD.createTypeOperatorNode(158,oD.createKeywordTypeNode(155))}if(16384&e.flags)return n.approximateLength+=4,oD.createKeywordTypeNode(116);if(32768&e.flags)return n.approximateLength+=9,oD.createKeywordTypeNode(157);if(65536&e.flags)return n.approximateLength+=4,oD.createLiteralTypeNode(oD.createNull());if(131072&e.flags)return n.approximateLength+=5,oD.createKeywordTypeNode(146);if(4096&e.flags)return n.approximateLength+=6,oD.createKeywordTypeNode(155);if(67108864&e.flags)return n.approximateLength+=6,oD.createKeywordTypeNode(151);if(KT(e))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),null==(s=(a=n.tracker).reportInaccessibleThisError)||s.call(a)),n.approximateLength+=4,oD.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&n.flags||(g=e.aliasSymbol,y=n.enclosingDeclaration,0===Ks(g,y,788968,!1,!0).accessibility))){const t=v(e.aliasTypeArguments,n);return!Is(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===p(t)&&e.aliasSymbol===Zn.symbol?oD.createArrayTypeNode(t[0]):Q(e.aliasSymbol,n,788968,t):oD.createTypeReferenceNode(oD.createIdentifier(""),t)}var g,y;const S=Tx(e);if(4&S)return gn.assert(!!(524288&e.flags)),e.node?I(e,j):j(e);if(262144&e.flags||3&S){if(262144&e.flags&&E(n.inferTypeParameters,e)){let t;n.approximateLength+=Cc(e.symbol).length+6;const r=Np(e);if(r){const i=Mh(e,!0);i&&kk(r,i)||(n.approximateLength+=9,t=r&&_(r,n))}return oD.createInferTypeNode(C(e,n,t))}if(4&n.flags&&262144&e.flags){const t=te(e,n);return n.approximateLength+=kc(t).length,oD.createTypeReferenceNode(oD.createIdentifier(kc(t)),void 0)}if(e.symbol)return Q(e.symbol,n,788968);const t=(e===$n||e===qn)&&i&&i.symbol?(e===qn?"sub-":"super-")+Cc(i.symbol):"?";return oD.createTypeReferenceNode(oD.createIdentifier(t),void 0)}if(1048576&e.flags&&e.origin&&(e=e.origin),3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r0?1048576&e.flags?oD.createUnionTypeNode(r):oD.createIntersectionTypeNode(r):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&S)return gn.assert(!!(524288&e.flags)),A(e);if(4194304&e.flags){const t=e.type;n.approximateLength+=6;const r=_(t,n);return oD.createTypeOperatorNode(143,r)}if(134217728&e.flags){const t=e.texts,r=e.types,i=oD.createTemplateHead(t[0]),o=oD.createNodeArray(O(r,((e,i)=>oD.createTemplateLiteralTypeSpan(_(e,n),(ik(e)));if(33554432&e.flags){const t=_(e.baseType,n),r=ky(e)&&Jy("NoInfer",!1);return r?Q(r,n,788968,[t]):t}return gn.fail("Should be unreachable.");function k(e){const t=_(e.checkType,n);if(n.approximateLength+=15,4&n.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const i=Ps(Uo(262144,"T")),o=te(i,n),a=oD.createTypeReferenceNode(o);n.approximateLength+=37;const s=YS(e.root.checkType,i,e.mapper),c=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const l=_(fk(e.root.extendsType,s),n);n.inferTypeParameters=c;const u=T(fk(r(n,e.root.node.trueType),s)),d=T(fk(r(n,e.root.node.falseType),s));return oD.createConditionalTypeNode(t,oD.createInferTypeNode(oD.createTypeParameterDeclaration(void 0,oD.cloneNode(a.typeName))),oD.createConditionalTypeNode(oD.createTypeReferenceNode(oD.cloneNode(o)),_(e.checkType,n),oD.createConditionalTypeNode(a,l,u,d),oD.createKeywordTypeNode(146)),oD.createKeywordTypeNode(146))}const i=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const o=_(e.extendsType,n);n.inferTypeParameters=i;const a=T(qx(e)),s=T(Ux(e));return oD.createConditionalTypeNode(t,o,a,s)}function T(e){var t,r,i;return 1048576&e.flags?(null==(t=n.visitedTypes)?void 0:t.has(lb(e)))?(131072&n.flags||(n.encounteredError=!0,null==(i=null==(r=n.tracker)?void 0:r.reportCyclicStructureError)||i.call(r)),d(n)):I(e,(e=>_(e,n))):_(e,n)}function D(e){return!!lk(e)}function w(e){return!!e.target&&D(e.target)&&!D(e)}function F(e){var t;gn.assert(!!(524288&e.flags));const i=e.declaration.readonlyToken?oD.createToken(e.declaration.readonlyToken.kind):void 0,o=e.declaration.questionToken?oD.createToken(e.declaration.questionToken.kind):void 0;let a,s;const c=!ap(e)&&!(2&cp(e).flags)&&4&n.flags&&!(262144&Qd(e).flags&&4194304&(null==(t=Np(Qd(e)))?void 0:t.flags));if(ap(e)){if(w(e)&&4&n.flags){const e=te(Ps(Uo(262144,"T")),n);s=oD.createTypeReferenceNode(e)}a=oD.createTypeOperatorNode(143,s||_(cp(e),n))}else if(c){const e=te(Ps(Uo(262144,"T")),n);s=oD.createTypeReferenceNode(e),a=s}else a=_(Qd(e),n);const l=C(Xd(e),n,a),u=e.declaration.nameType?_(tp(e),n):void 0,d=_(xD(rp(e),!!(4&lp(e))),n),p=oD.createMappedTypeNode(i,l,u,o,d,void 0);n.approximateLength+=10;const f=_D(p,1);if(w(e)&&4&n.flags){const t=fk(Np(r(n,e.declaration.typeParameter.constraint.type))||Ot,e.mapper);return oD.createConditionalTypeNode(_(cp(e),n),oD.createInferTypeNode(oD.createTypeParameterDeclaration(void 0,oD.cloneNode(s.typeName),2&t.flags?void 0:_(t,n))),f,oD.createKeywordTypeNode(146))}return c?oD.createConditionalTypeNode(_(Qd(e),n),oD.createInferTypeNode(oD.createTypeParameterDeclaration(void 0,oD.cloneNode(s.typeName),oD.createTypeOperatorNode(143,_(cp(e),n)))),f,oD.createKeywordTypeNode(146)):f}function A(e){var t,i;const o=e.id,a=e.symbol;if(a){if(8388608&Tx(e)){const i=e.node;if(PE(i)&&r(n,i)===e){const e=me.tryReuseExistingTypeNode(n,i);if(e)return e}return(null==(t=n.visitedTypes)?void 0:t.has(o))?d(n):I(e,L)}const c=dc(e)?788968:111551;if(bL(a.valueDeclaration))return Q(a,n,c);if(32&a.flags&&!iu(a)&&(!(a.valueDeclaration&&yu(a.valueDeclaration)&&2048&n.flags)||nN(a.valueDeclaration)&&0===Gs(a,n.enclosingDeclaration,c,!1).accessibility)||896&a.flags||s())return Q(a,n,c);if(null==(i=n.visitedTypes)?void 0:i.has(o)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=lh(e.symbol.declarations[0].parent);if(iN(t))return fs(t)}}(e);return t?Q(t,n,788968):d(n)}return I(e,L)}return L(e);function s(){var e;const t=!!(8192&a.flags)&&X(a.declarations,(e=>Rv(e))),r=!!(16&a.flags)&&(a.parent||f(a.declarations,(e=>307===e.parent.kind||268===e.parent.kind)));if(t||r)return(!!(4096&n.flags)||(null==(e=n.visitedTypes)?void 0:e.has(o)))&&(!(8&n.flags)||Vs(a,n.enclosingDeclaration))}}function I(e,t){var r,i,a;const s=e.id,c=16&Tx(e)&&e.symbol&&32&e.symbol.flags,l=4&Tx(e)&&e.node?"N"+QB(e.node):16777216&e.flags?"N"+QB(e.root.node):e.symbol?(c?"+":"")+YB(e.symbol):void 0;n.visitedTypes||(n.visitedTypes=new Set),l&&!n.symbolDepth&&(n.symbolDepth=new Map);const u=n.enclosingDeclaration&&ra(n.enclosingDeclaration),_=`${lb(e)}|${n.flags}|${n.internalFlags}`;u&&(u.serializedTypes||(u.serializedTypes=new Map));const p=null==(r=null==u?void 0:u.serializedTypes)?void 0:r.get(_);if(p)return null==(i=p.trackedSymbols)||i.forEach((([e,t,r])=>n.tracker.trackSymbol(e,t,r))),p.truncating&&(n.truncating=!0),n.approximateLength+=p.addedLength,v(p.node);let f;if(l){if(f=n.symbolDepth.get(l)||0,f>10)return d(n);n.symbolDepth.set(l,f+1)}n.visitedTypes.add(s);const m=n.trackedSymbols;n.trackedSymbols=void 0;const g=n.approximateLength,h=t(e),y=n.approximateLength-g;return n.reportedDiagnostic||n.encounteredError||null==(a=null==u?void 0:u.serializedTypes)||a.set(_,{node:h,truncating:n.truncating,addedLength:y,trackedSymbols:n.trackedSymbols}),n.visitedTypes.delete(s),l&&n.symbolDepth.set(l,f),n.trackedSymbols=m,h;function v(e){return sy(e)||bc(e)!==e?o(n,oD.cloneNode(hJ(e,v,void 0,b,v)),e):e}function b(e,t,n,r,i){return e&&0===e.length?fI(oD.createNodeArray(void 0,e.hasTrailingComma),e):cJ(e,t,n,r,i)}}function L(e){if(gp(e)||e.containsError)return F(e);const t=Tp(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return n.approximateLength+=2,_D(oD.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return x(t.callSignatures[0],184,n);if(1===t.constructSignatures.length&&!t.callSignatures.length)return x(t.constructSignatures[0],185,n)}const r=P(t.constructSignatures,(e=>!!(4&e.flags)));if(X(r)){const e=O(r,(e=>vh(e)));return t.callSignatures.length+(t.constructSignatures.length-r.length)+t.indexInfos.length+(2048&n.flags?N(t.properties,(e=>!(4194304&e.flags))):p(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=P(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Js(e.symbol,e.members,e.callSignatures,X(t)?t:u,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),_(zb(e),n)}const i=c(n);n.flags|=4194304;const o=J(t);i();const a=oD.createTypeLiteralNode(o);return n.approximateLength+=2,_D(a,1024&n.flags?0:1),a}function j(e){let t=uy(e);if(e.target===Zn||e.target===er){if(2&n.flags){const r=_(t[0],n);return oD.createTypeReferenceNode(e.target===Zn?"Array":"ReadonlyArray",[r])}const r=_(t[0],n),i=oD.createArrayTypeNode(r);return e.target===Zn?i:oD.createTypeOperatorNode(148,i)}if(!(8&e.target.objectFlags)){if(2048&n.flags&&e.symbol.valueDeclaration&&yu(e.symbol.valueDeclaration)&&!Vs(e.symbol,n.enclosingDeclaration))return A(e);{const r=e.target.outerTypeParameters;let i,o,a=0;if(r){const e=r.length;for(;a0){let r=0;if(e.target.typeParameters&&(r=Math.min(e.target.typeParameters.length,t.length),(Pu(e,av(!1))||Pu(e,sv(!1))||Pu(e,iv(!1))||Pu(e,ov(!1)))&&(!e.node||!EE(e.node)||!e.node.typeArguments||e.node.typeArguments.length0;){const n=t[r-1],i=ff(e.target.typeParameters[r-1]);if(!i||!kk(n,i))break;r--}o=v(t.slice(a,r),n)}const s=c(n);n.flags|=16;const l=Q(e.symbol,n,788968,o);return s(),i?M(i,l):l}}if(t=R(t,((t,n)=>xD(t,!!(2&e.target.elementFlags[n])))),t.length>0){const r=_y(e),i=v(t.slice(0,r),n);if(i){const{labeledElementDeclarations:t}=e.target;for(let n=0;n!(32768&e.flags))),0);for(const i of r){const r=x(i,173,t,{name:s,questionToken:c});n.push(p(r,i.declaration||e.valueDeclaration))}if(r.length||!c)return}let l;m(e,t)?l=d(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),l=o?de(t,void 0,o,e):oD.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const u=LR(e)?[oD.createToken(148)]:void 0;u&&(t.approximateLength+=9);const _=oD.createPropertySignature(u,s,c,l);function p(n,r){var i;const o=null==(i=e.declarations)?void 0:i.find((e=>348===e.kind));if(o){const e=gl(o.comment);e&&TD(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&y(t,n,r);return n}n.push(p(_,e.valueDeclaration))}function y(e,t,n){return e.enclosingFile&&e.enclosingFile===Cd(n)?SD(t,n):t}function v(e,t,n){if(X(e)){if(l(t)){if(!n)return[1&t.flags?CD(oD.createKeywordTypeNode(133),3,"elided"):oD.createTypeReferenceNode("...",void 0)];if(e.length>2)return[_(e[0],t),1&t.flags?CD(oD.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):oD.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),_(e[e.length-1],t)]}const r=64&t.flags?void 0:Qe(),i=[];let o=0;for(const n of e){if(o++,l(t)&&o+2{if(!FT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)i[r]=_(n,t)})),e()}return i}}function b(e,t,n){const r=Bp(e)||"x",i=_(e.keyType,t),o=oD.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=_(e.type||Dt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,oD.createIndexSignature(e.isReadonly?[oD.createToken(148)]:void 0,[o],n)}function x(e,t,n,i){var o;let a,l;const u=kd(e,!0)[0],d=S(n,e.declaration,u,e.typeParameters,e.parameters,e.mapper);n.approximateLength+=3,32&n.flags&&e.target&&e.mapper&&e.target.typeParameters?l=e.target.typeParameters.map((t=>_(fk(t,e.mapper),n))):a=e.typeParameters&&e.typeParameters.map((e=>w(e,n)));const p=c(n);n.flags&=-257;const f=(X(u,(e=>e!==u[u.length-1]&&!!(32768&_x(e))))?e.parameters:u).map((e=>j(e,n,176===t))),m=33554432&n.flags?void 0:function(e,t){if(e.thisParameter)return j(e.thisParameter,t);if(e.declaration&&jm(e.declaration)){const n=il(e.declaration);if(n&&n.typeExpression)return oD.createParameterDeclaration(void 0,void 0,"this",void 0,_(r(t,n.typeExpression),t))}}(e,n);m&&f.unshift(m),p();const g=function(e,t){const n=256&e.flags,r=c(e);let i;n&&(e.flags&=-257);const o=jg(t);if(!n||!Wc(o)){if(t.declaration&&!sy(t.declaration)){const n=fs(t.declaration),r=s(e,n,o);i=me.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||(i=pe(e,t,o))}return i||n||(i=oD.createKeywordTypeNode(133)),r(),i}(n,e);let h=null==i?void 0:i.modifiers;if(185===t&&4&e.flags){const e=eb(h);h=oD.createModifiersFromModifierFlags(64|e)}const y=179===t?oD.createCallSignature(a,f,g):180===t?oD.createConstructSignature(a,f,g):173===t?oD.createMethodSignature(h,(null==i?void 0:i.name)??oD.createIdentifier(""),null==i?void 0:i.questionToken,a,f,g):174===t?oD.createMethodDeclaration(h,void 0,(null==i?void 0:i.name)??oD.createIdentifier(""),void 0,a,f,g,void 0):176===t?oD.createConstructorDeclaration(h,f,void 0):177===t?oD.createGetAccessorDeclaration(h,(null==i?void 0:i.name)??oD.createIdentifier(""),f,g,void 0):178===t?oD.createSetAccessorDeclaration(h,(null==i?void 0:i.name)??oD.createIdentifier(""),f,void 0):181===t?oD.createIndexSignature(h,f,g):317===t?oD.createJSDocFunctionType(f,g):184===t?oD.createFunctionTypeNode(a,f,g??oD.createTypeReferenceNode(oD.createIdentifier(""))):185===t?oD.createConstructorTypeNode(h,a,f,g??oD.createTypeReferenceNode(oD.createIdentifier(""))):262===t?oD.createFunctionDeclaration(h,void 0,(null==i?void 0:i.name)?st(i.name,Xw):oD.createIdentifier(""),a,f,g,void 0):218===t?oD.createFunctionExpression(h,void 0,(null==i?void 0:i.name)?st(i.name,Xw):oD.createIdentifier(""),a,f,g,oD.createBlock([])):219===t?oD.createArrowFunction(h,a,f,g,void 0,oD.createBlock([])):gn.assertNever(t);if(l&&(y.typeArguments=oD.createNodeArray(l)),323===(null==(o=e.declaration)?void 0:o.kind)&&339===e.declaration.parent.kind){const t=np(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n");CD(y,3,t,!0)}return null==d||d(),y}function S(e,t,n,r,i,o){const a=se(e);let s,c;const l=e.enclosingDeclaration,_=e.mapper;if(o&&(e.mapper=o),e.enclosingDeclaration&&t){let t=function(t,n){let r;gn.assert(e.enclosingDeclaration),ra(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&ra(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),gn.assertOptionalNode(r,OF);const i=(null==r?void 0:r.locals)??td();let o,a;if(n(((e,t)=>{if(r){const t=i.get(e);t?a=le(a,{name:e,oldSymbol:t}):o=le(o,e)}i.set(e,t)})),r)return function(){f(o,(e=>i.delete(e))),f(a,(e=>i.set(e.name,e.oldSymbol)))};{const n=oD.createBlock(u);ra(n).fakeScopeForSignatureDeclaration=t,n.locals=i,LT(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};s=X(n)?t("params",(e=>{if(n)for(let t=0;t{return fE(t)&&Fu(t.name)?(n(t.name),!0):void 0;function n(t){f(t.elements,(t=>{switch(t.kind){case 232:return;case 208:return function(t){if(Fu(t.name))return n(t.name);const r=fs(t);e(r.escapedName,r)}(t);default:return gn.assertNever(t)}}))}}))||e(r.escapedName,r)}})):void 0,4&e.flags&&X(r)&&(c=t("typeParams",(t=>{for(const n of r??u)t(te(n,e).escapedText,n.symbol)})))}return()=>{null==s||s(),null==c||c(),a(),e.enclosingDeclaration=l,e.mapper=_}}function C(e,t,n){const r=c(t);t.flags&=-513;const i=oD.createModifiersFromModifierFlags(jT(e)),o=te(e,t),a=ff(e),s=a&&_(a,t);return r(),oD.createTypeParameterDeclaration(i,o,n,s)}function w(e,t,n=Np(e)){const i=n&&function(e,t,n){return t&&r(n,t)===e&&me.tryReuseExistingTypeNode(n,t)||_(e,n)}(n,Rh(e),t);return C(e,t,i)}function I(e,t){const n=2===e.kind||3===e.kind?oD.createToken(131):void 0,r=1===e.kind||3===e.kind?_D(oD.createIdentifier(e.parameterName),16777216):oD.createThisTypeNode(),i=e.type&&_(e.type,t);return oD.createTypePredicateNode(n,r,i)}function L(e){const t=Z_(e,169);return t||(nd(e)?void 0:Z_(e,341))}function j(e,t,n){const r=L(e),i=de(t,r,Tu(e),e),o=!(8192&t.flags)&&n&&r&&mI(r)?O(Lc(r),oD.cloneNode):void 0,a=r&&W_(r)||32768&_x(e)?oD.createToken(26):void 0,s=B(e,r,t),c=r&&ig(r)||16384&_x(e)?oD.createToken(58):void 0,l=oD.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=Cc(e).length+3,l}function B(e,t,n){return t&&t.name?80===t.name.kind?_D(oD.cloneNode(t.name),16777216):166===t.name.kind?_D(oD.cloneNode(t.name.right),16777216):function(e){return function e(t){n.tracker.canTrackSymbol&&dE(t)&&B_(t)&&J(t.expression,n.enclosingDeclaration,n);let r=hJ(t,e,void 0,void 0,e);return ZE(r)&&(r=oD.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),sy(r)||(r=oD.cloneNode(r)),_D(r,16777217)}(e)}(t.name):Cc(e)}function J(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=mb(e),i=ze(r,r.escapedText,1160127,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function z(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),U(e,t,n,r)}function U(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||4&t.internalFlags?i=[e]:(i=gn.checkDefined(function e(n,i,o){let a,s=qs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Us(s[0],t.enclosingDeclaration,1===s.length?i:$s(i))){const r=ys(s?s[0]:n,t.enclosingDeclaration,i);if(p(r)){a=r.map((e=>X(e.declarations,Ys)?G(e,t):void 0));const o=r.map(((e,t)=>t));o.sort(c);const l=o.map((e=>r[e]));for(const t of l){const r=e(t,$s(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&xs(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[bs(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&f(n.declarations,Ys))return;return[n]}function c(e,t){const n=a[e],r=a[t];if(n&&r){const e=wo(r);return wo(n)===e?gB(n)-gB(r):e?-1:1}return 0}}(e,n,!0)),gn.assert(i&&i.length>0)),i}function V(e,t){let n;return 524384&gJ(e).flags&&(n=oD.createNodeArray(O(ju(e),(e=>w(e,t))))),n}function W(e,t,n){var r;gn.assert(e&&0<=t&&tJS(e,o.links.mapper))),n)}else a=V(i,n)}return a}function H(e){return VE(e.objectType)?H(e.objectType):e}function G(t,n,r){let i=Z_(t,307);if(!i){const e=g(t.declarations,(e=>vs(e,t)));e&&(i=Z_(e,307))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i&&jB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return jB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):Cd(Sp(t)).fileName;const o=hc(n.enclosingDeclaration),a=Tg(o)?Cg(o):void 0,s=n.enclosingFile,c=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),l=kj(s.path,c),u=na(t);let _=u.specifierCache&&u.specifierCache.get(l);if(!_){const e=!!F.outFile,{moduleResolverHost:i}=n.tracker,o=e?{...F,baseUrl:i.getCommonSourceDirectory()}:F;_=xe(uB(t,qe,o,s,i,{importModuleSpecifierPreference:e?"non-relative":"project-relative",importModuleSpecifierEnding:e?"minimal":99===c?"js":void 0},{overrideImportMode:r})),u.specifierCache??(u.specifierCache=new Map),u.specifierCache.set(l,_)}return _}function K(e){const t=oD.createIdentifier(Sc(e.escapedName));return e.parent?oD.createQualifiedName(K(e.parent),t):t}function Q(e,t,n,r){const i=z(e,t,n,!(16384&t.flags)),o=111551===n;if(X(i[0].declarations,Ys)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||W(i,0,t),a=Cd(hc(t.enclosingDeclaration)),c=Dd(i[0]);let l,u;if(3!==ES(F)&&99!==ES(F)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=G(i[0],t,99),u=oD.createImportAttributes(oD.createNodeArray([oD.createImportAttribute(oD.createStringLiteral("resolution-mode"),oD.createStringLiteral("import"))]))),l||(l=G(i[0],t)),!(67108864&t.flags)&&1!==ES(F)&&l.includes("/node_modules/")){const e=l;if(3===ES(F)||99===ES(F)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=G(i[0],t,n),l.includes("/node_modules/")?l=e:u=oD.createImportAttributes(oD.createNodeArray([oD.createImportAttribute(oD.createStringLiteral("resolution-mode"),oD.createStringLiteral(99===n?"import":"require"))]))}u||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const _=oD.createLiteralTypeNode(oD.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||su(e))return e&&$D(Xw(e)?e:e.right,void 0),oD.createImportTypeNode(_,u,e,n,o);{const t=H(e),r=t.objectType.typeName;return oD.createIndexedAccessTypeNode(oD.createImportTypeNode(_,u,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(VE(a))return a;if(o)return oD.createTypeQueryNode(a);{const e=Xw(a)?a:a.right,t=qD(e);return $D(e,void 0),oD.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:W(e,n,t),a=e[n],c=e[n-1];let l;if(0===n?(t.flags|=16777216,l=Fc(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216):c&&ls(c)&&ld(ls(c),((e,t)=>{if(xs(e,a)&&!H_(t)&&"export="!==t)return l=Sc(t),!0})),void 0===l){const r=g(a.declarations,Ac);if(r&&dE(r)&&su(r.expression)){const t=s(e,n-1,i);return su(t)?oD.createIndexedAccessTypeNode(oD.createParenthesizedType(oD.createTypeQueryNode(t)),oD.createTypeQueryNode(r.expression)):t}l=Fc(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&pd(c)&&pd(c).get(a.escapedName)&&xs(pd(c).get(a.escapedName),a)){const t=s(e,n-1,i);return VE(t)?oD.createIndexedAccessTypeNode(t,oD.createLiteralTypeNode(oD.createStringLiteral(l))):oD.createIndexedAccessTypeNode(oD.createTypeReferenceNode(t,o),oD.createLiteralTypeNode(oD.createStringLiteral(l)))}const u=_D(oD.createIdentifier(l),16777216);if(o&&$D(u,oD.createNodeArray(o)),u.symbol=a,n>i){const t=s(e,n-1,i);return su(t)?oD.createQualifiedName(t,u):gn.fail("Impossible construct - an export of an indexed access cannot be reachable")}return u}}function Z(e,t,n){const r=ze(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function te(e,t){var n,r,i,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(lb(e));if(n)return n}let s=ne(e.symbol,t,788968,!0);if(!(80&s.kind))return oD.createIdentifier("(Missing type parameter)");const c=null==(r=null==(n=e.symbol)?void 0:n.declarations)?void 0:r[0];if(c&&pE(c)&&(s=o(t,s,c.name)),4&t.flags){const n=s.escapedText;let r=(null==(i=t.typeParameterNamesByTextNextNameCount)?void 0:i.get(n))||0,o=n;for(;(null==(a=t.typeParameterNamesByText)?void 0:a.has(o))||Z(o,t,e);)r++,o=`${n}_${r}`;if(o!==n){const e=qD(s);s=oD.createIdentifier(o),$D(s,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,r),t.typeParameterNames.set(lb(e),s),t.typeParameterNamesByText.add(o)}return s}function ne(e,t,n,r){const i=z(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=W(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=Fc(o,t);0===r&&(t.flags^=16777216);const s=_D(oD.createIdentifier(a),16777216);return i&&$D(s,oD.createNodeArray(i)),s.symbol=o,r>0?oD.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function re(e,t,n){const r=z(e,t,n);return function e(n,r){const i=W(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=Fc(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(Gm(s)&&X(o.declarations,Ys))return oD.createStringLiteral(G(o,t));if(0===r||eC(a,A)){const t=_D(oD.createIdentifier(a),16777216);return i&&$D(t,oD.createNodeArray(i)),t.symbol=o,r>0?oD.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!Gm(s)||8&o.flags?""+ +a===a&&(t=oD.createNumericLiteral(+a)):t=oD.createStringLiteral(Ry(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=_D(oD.createIdentifier(a),16777216);i&&$D(e,oD.createNodeArray(i)),e.symbol=o,t=e}return oD.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function ie(e){const t=Ac(e);return!!t&&(dE(t)?!!(402653316&Ej(t.expression).flags):rF(t)?!!(402653316&Ej(t.argumentExpression).flags):Iw(t))}function oe(e){const t=Ac(e);return!!(t&&Iw(t)&&(t.singleQuote||!sy(t)&&en(np(t,!1),"'")))}function ae(e,t){const n=!!p(e.declarations)&&k(e.declarations,ie),r=!!p(e.declarations)&&k(e.declarations,oe),i=!!(8192&e.flags),o=function(e,t,n,r,i){const o=na(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return Ss(e,DS(F))||!r&&HT(e)?HT(e)&&en(e,"-")?oD.createComputedPropertyName(oD.createPrefixUnaryExpression(41,oD.createNumericLiteral(-e))):GT(e,DS(F),n,r,i):oD.createStringLiteral(e,!!n)}if(8192&o.flags)return oD.createComputedPropertyName(re(o.symbol,t,111551))}}(e,t,r,n,i);return o||GT(Sc(e.escapedName),DS(F),r,n,i)}function se(e){const t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,i=e.typeParameterNamesByText,o=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=o,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function ce(e,t){return e.declarations&&T(e.declarations,(e=>!(!Qz(e)||t&&!yc(e,(e=>e===t)))))}function ue(e,t){if(!(4&Tx(t)))return!0;if(!EE(e))return!0;Iy(e);const n=ra(e).resolvedSymbol,r=n&&y_(n);return!r||r!==t.target||p(e.typeArguments)>=_g(t.target.typeParameters)}function _e(e,t,n){return 8192&n.flags&&n.symbol===e&&(!t.enclosingDeclaration||X(e.declarations,(e=>Cd(e)===t.enclosingFile)))&&(t.flags|=1048576),_(n,t)}function de(e,t,n,r){var i;let o;const a=t&&(fE(t)||FP(t))&&Fz(t,e.enclosingDeclaration),c=t??r.valueDeclaration??ce(r)??(null==(i=r.declarations)?void 0:i[0]);if(c)if(vu(c))o=me.serializeTypeOfAccessor(c,r,e);else if(FC(c)&&!sy(c)&&!(196608&Tx(n))){const t=s(e,r,n);o=me.serializeTypeOfDeclaration(c,r,e),t()}return o||(a&&(n=mD(n)),o=_e(r,e,n)),o??oD.createKeywordTypeNode(133)}function pe(e,t,n){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const i=Pg(t),o=i?I(e.mapper?ik(i,e.mapper):i,e):_(n,e);return e.suppressReportInferenceFallback=r,o}function fe(e,t,n=t.enclosingDeclaration){let r=!1;const i=mb(e);if(jm(e)&&(og(i)||sg(i.parent)||_E(i.parent)&&ag(i.parent.left)&&og(i.parent.right)))return r=!0,{introducesError:r,node:e};const a=ec(e);let s;if(gv(i))return s=fs(sm(i,!1,!1)),0!==Gs(s,i,a,!1).accessibility&&(r=!0,t.tracker.reportInaccessibleThisError()),{introducesError:r,node:c(e)};if(s=Ha(i,a,!0,!0),t.enclosingDeclaration&&!(s&&262144&s.flags)){s=Ts(s);const n=Ha(i,a,!0,!0,t.enclosingDeclaration);if(n===vt||void 0===n&&void 0!==s||n&&s&&!xs(Ts(n),s))return n!==vt&&t.tracker.reportInferenceFallback(e),r=!0,{introducesError:r,node:e,sym:s};s=n}return s?(1&s.flags&&s.valueDeclaration&&(iy(s.valueDeclaration)||FP(s.valueDeclaration))||(262144&s.flags||gh(e)||0===Gs(s,n,a,!1).accessibility?t.tracker.trackSymbol(s,n,a):(t.tracker.reportInferenceFallback(e),r=!0)),{introducesError:r,node:c(e)}):{introducesError:r,node:e};function c(e){if(e===i){const n=y_(s),r=262144&s.flags?te(n,t):oD.cloneNode(e);return r.symbol=s,o(t,_D(r,16777216),e)}const n=hJ(e,(e=>c(e)),void 0);return n!==e&&o(t,n,e),n}}function ge(e,t){const n=r(e,t,!0);if(!n)return!1;if(jm(t)&&yf(t)){Gx(t);const e=ra(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&p(t.typeArguments)>=_g(ju(e)))}if(EE(t)){if(Fl(t))return!1;const r=ra(t).resolvedSymbol;if(!r)return!1;if(262144&r.flags){const t=y_(r);return!(e.mapper&&JS(t,e.mapper)!==t)}if(Jm(t))return ue(t,n)&&!Ay(t)&&!!(788968&r.flags)}if(UE(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;ra(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!yc(t,(e=>e===n))}return!0}}(),me=VG(F,_e.syntacticBuilderResolver),ge=kC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(fb(n)&&q_(e.argumentExpression)){const r=Ha(n,111551,!0);if(r&&384&r.flags){const n=xc(e.argumentExpression.text),i=r.exports.get(n);if(i)return gn.assert(Cd(i.valueDeclaration)===Cd(r.valueDeclaration)),t?CJ(e,i,t):Oz(i.valueDeclaration)}}return SC(void 0)},evaluateEntityNameExpression:TJ}),ye=td(),Ce=Uo(4,"undefined");Ce.declarations=[];var De=Uo(1536,"globalThis",8);De.exports=ye,De.declarations=[],ye.set(De.escapedName,De);var we,Ne,Ae,Ie=Uo(4,"arguments"),Oe=Uo(4,"require"),Le=F.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Re=!F.verbatimModuleSyntax,je=0,Je=0,ze=DC({compilerOptions:F,requireSymbol:Oe,argumentsSymbol:Ie,globals:ye,getSymbolOfDeclaration:fs,error:Oo,getRequiresScopeChangeCache:sa,setRequiresScopeChangeCache:ca,lookup:ia,onPropertyWithInvalidInitializer:function(e,t,n,r){return!z&&(e&&!r&&pa(e,t,t)||Oo(e,e&&n.type&&Bs(n.type,e.pos)?ha.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ha.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Mp(n.name),_a(t)),!0)},onFailedToResolveSymbol:function(e,t,n,r){const i=it(t)?t:t.escapedText;a((()=>{if(!e||!(324===e.parent.kind||pa(e,i,t)||fa(e)||function(e,t,n){const r=1920|(jm(e)?111551:0);if(n===r){const n=Ba(ze(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(_E(i)){gn.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(Uf(y_(n),r))return Oo(i,ha.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Sc(t),Sc(r)),!0}return Oo(e,ha._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Sc(t)),!0}}return!1}(e,i,n)||function(e,t){return!(!ga(t)||281!==e.parent.kind)&&(Oo(e,ha.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(e,i)||function(e,t,n){if(111127&n){if(Ba(ze(e,t,1024,void 0,!1)))return Oo(e,ha.Cannot_use_namespace_0_as_a_value,Sc(t)),!0}else if(788544&n&&Ba(ze(e,t,1536,void 0,!1)))return Oo(e,ha.Cannot_use_namespace_0_as_a_type,Sc(t)),!0;return!1}(e,i,n)||function(e,t,n){if(111551&n){if(ga(t)){const n=e.parent.parent;if(n&&n.parent&&VN(n)){const r=n.token,i=n.parent.kind;264===i&&96===r?Oo(e,ha.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Sc(t)):263===i&&96===r?Oo(e,ha.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Sc(t)):263===i&&119===r&&Oo(e,ha.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Sc(t))}else Oo(e,ha._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Sc(t));return!0}const n=Ba(ze(e,t,788544,void 0,!1)),r=n&&za(n);if(n&&void 0!==r&&!(111551&r)){const r=Sc(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?Oo(e,ha._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=yc(e.parent,(e=>!dE(e)&&!gE(e)&&(AE(e)||"quit")));if(n&&1===n.members.length){const e=y_(t);return!!(1048576&e.flags)&&UR(e,384,!0)}return!1}(e,n)?Oo(e,ha._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):Oo(e,ha._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(e,i,n)||function(e,t,n){if(788584&n){const n=Ba(ze(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return Oo(e,ha._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Sc(t)),!0}return!1}(e,i,n))){let o,a;if(t&&(a=function(e){const t=_a(e),n=sp().get(t);return n&&Se(n.keys())}(t),a&&Oo(e,r,_a(t),a)),!a&&qi{var a;const s=t.escapedName,c=r&&QN(r)&&af(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=Ts(t);(2&n.flags||32&n.flags||384&n.flags)&&function(e,t){var n;if(gn.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>dp(e)||yu(e)||266===e.kind));if(void 0===r)return gn.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||oa(r,t))){let n;const i=Mp(Ac(r));2&e.flags?n=Oo(t,ha.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=Oo(t,ha.Class_0_used_before_its_declaration,i):256&e.flags?n=Oo(t,ha.Enum_0_used_before_its_declaration,i):(gn.assert(!!(128&e.flags)),NS(F)&&(n=Oo(t,ha.Enum_0_used_before_its_declaration,i))),n&&pT(n,Up(r,ha._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=ps(t);p(n.declarations)&&k(n.declarations,(e=>lN(e)||QN(e)&&!!e.symbol.globalExports))&&jo(!F.allowUmdGlobalAccess,e,ha._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Sc(s))}if(i&&!o&&!(111551&~n)){const r=ps(fd(t)),o=oy(i);r===fs(i)?Oo(e,ha.Parameter_0_cannot_reference_itself,Mp(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&ia(o.parent.locals,r.escapedName,n)===r&&Oo(e,ha.Parameter_0_cannot_reference_identifier_1_declared_after_it,Mp(i.name),Mp(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!wT(e)){const n=Ua(t,111551);if(n){const t=281===n.kind||278===n.kind||280===n.kind?ha._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:ha._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=Sc(s);la(Oo(e,t,r),n,r)}}if(F.isolatedModules&&t&&c&&!(111551&~n)){const e=ia(ye,s,n)===t&&QN(r)&&r.locals&&ia(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find((e=>276===e.kind||273===e.kind||274===e.kind||271===e.kind));t&&!Wl(t)&&Oo(t,ha.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Sc(s))}}}))}}),$e=DC({compilerOptions:F,requireSymbol:Oe,argumentsSymbol:Ie,globals:ye,getSymbolOfDeclaration:fs,error:Oo,getRequiresScopeChangeCache:sa,setRequiresScopeChangeCache:ca,lookup:function(e,t,n){const r=ia(e,t,n);if(r)return r;let i;return i=e===ye?q(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Uo(524288,t):void 0)).concat(Be(e.values())):Be(e.values()),yO(Sc(t),i,n)}});const qe={getNodeCount:()=>Pe(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>Pe(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>Pe(e.getSourceFiles(),((e,t)=>e+t.symbolCount),d),getTypeCount:()=>_,getInstantiationCount:()=>m,getRelationCacheSizes:()=>({assignable:ho.size,identity:vo.size,subtype:mo.size,strictSubtype:go.size}),isUndefinedSymbol:e=>e===Ce,isArgumentsSymbol:e=>e===Ie,isUnknownSymbol:e=>e===vt,getMergedSymbol:ps,symbolIsValue:Cs,getDiagnostics:QJ,getGlobalDiagnostics:function(){return YJ(),_o.getGlobalDiagnostics()},getRecursionIdentity:xC,getUnmatchedProperties:ow,getTypeOfSymbolAtLocation:(e,t)=>{const n=bc(t);return n?function(e,t){if(e=Ts(e),(80===t.kind||81===t.kind)&&(bb(t)&&(t=t.parent),wm(t)&&(!ih(t)||gx(t)))){const n=yD(gx(t)&&211===t.kind?HI(t,void 0,!0):Cj(t));if(Ts(ra(t).resolvedSymbol)===e)return n}return gh(t)&&I_(t.parent)&&Ql(t.parent)?ru(t.parent.symbol):xb(t)&&gx(t.parent)?ku(e):Cu(e)}(e,n):Nt},getTypeOfSymbol:Tu,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=bc(e,fE);return void 0===n?gn.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(gn.assert(ac(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=ia(n.locals,t,111551),o=ia(pd(r.symbol),t,111551);return i&&o?[i,o]:gn.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,xc(t)))},getDeclaredTypeOfSymbol:y_,getPropertiesOfType:Ep,getPropertyOfType:(e,t)=>Uf(e,xc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=bc(n);if(!r)return;const i=YI(xc(t),r);return i?tO(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>qc(e,xc(t)),getIndexInfoOfType:(e,t)=>xm(e,0===t?qt:Ut),getIndexInfosOfType:bm,getIndexInfosOfIndexSymbol:Oh,getSignaturesOfType:Xf,getIndexTypeOfType:(e,t)=>Sm(e,0===t?qt:Ut),getIndexType:e=>ex(e),getBaseTypes:e_,getBaseTypeOfLiteralType:XC,getWidenedType:RD,getWidenedLiteralType:YC,fillMissingTypeArguments:dg,getTypeFromTypeNode:e=>{const t=bc(e,wu);return t?TS(t):Nt},getParameterType:KL,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(317===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(iJ(e)?1:0);if(tcM(e),getReturnTypeOfSignature:jg,isNullableType:MI,getNullableType:fD,getNonNullableType:gD,getNonOptionalType:yD,getTypeArguments:uy,typeToTypeNode:_e.typeToTypeNode,typePredicateToTypePredicateNode:_e.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:_e.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:_e.signatureToSignatureDeclaration,symbolToEntityName:_e.symbolToEntityName,symbolToExpression:_e.symbolToExpression,symbolToNode:_e.symbolToNode,symbolToTypeParameterDeclarations:_e.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:_e.symbolToParameterDeclaration,typeParameterToDeclaration:_e.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=bc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=td();let r=!1;return i(),n.delete("this"),Wm(n);function i(){for(;e;){switch(f_(e)&&e.locals&&!of(e)&&a(e.locals,t),e.kind){case 307:if(!XI(e))break;case 267:s(fs(e).exports,2623475&t);break;case 266:a(fs(e).exports,8&t);break;case 231:e.name&&o(e.symbol,t);case 263:case 264:r||a(pd(fs(e)),788968&t);break;case 218:e.name&&o(e.symbol,t)}qf(e)&&o(Ie,t),r=Rv(e),e=e.parent}a(ye,t)}function o(e,t){if(fx(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function a(e,t){t&&e.forEach((e=>{o(e,t)}))}function s(e,t){t&&e.forEach((e=>{Z_(e,281)||Z_(e,280)||"default"===e.escapedName||o(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=bc(e);return t?lz(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=bc(e);return t?function(e){if(Xw(e)&&nF(e.parent)&&e.parent.name===e){const t=Kb(e),n=Cj(e.parent.expression);return M(1048576&n.flags?n.types:[n],(e=>P(bm(e),(e=>em(t,e.keyType)))))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=bc(e);return t?function(e){if(e&&304===e.kind)return Ha(e.name,2208703)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=bc(e,CN);return t?function(e){if(CN(e)){const t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Pa(e.parent.parent,e):11===t.kind?void 0:Ha(t,2998271)}return Ha(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>ps(e.exportSymbol||e),getTypeAtLocation:e=>{const t=bc(e);return t?uz(t):Nt},getTypeOfAssignmentPattern:e=>{const t=bc(e,Nu);return t&&_z(t)||Nt},getPropertySymbolOfDestructuringAssignment:e=>{const t=bc(e,Xw);return t?function(e){const t=_z(st(e.parent.parent,Nu));return t&&Uf(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>rc(e,bc(t),n,r),typeToString:(e,t,n)=>ic(e,bc(t),n),symbolToString:(e,t,n,r)=>nc(e,bc(t),n,r),typePredicateToString:(e,t,n)=>mc(e,bc(t),n),writeSignature:(e,t,n,r,i)=>rc(e,bc(t),n,r,i),writeType:(e,t,n,r)=>ic(e,bc(t),n,r),writeSymbol:(e,t,n,r,i)=>nc(e,bc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>mc(e,bc(t),n,r),getAugmentedPropertiesOfType:mz,getRootSymbols:function e(t){const n=function(e){if(6&_x(e))return q(na(e).containingType.types,(t=>Uf(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:ln(function(e){let t,n=e;for(;n=na(n).target;)t=n;return t}(e))}}(t);return n?M(n,e):[t]},getSymbolOfExpando:SL,getContextualType:(e,t)=>{const n=bc(e,Qu);if(n)return 4&t?He(n,(()=>PA(n,t))):PA(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=bc(e,Du);return t?SA(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=bc(e,$u);return n&&oA(n,t)},getContextualTypeForJsxAttribute:e=>{const t=bc(e,C_);return t&&CA(t,void 0)},isContextSensitive:vk,getTypeOfPropertyOfContextualType:_A,getFullyQualifiedName:Wa,getResolvedSignature:(e,t,n)=>Ge(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];He(t,(()=>Ge(e,r,void 0,0)));for(const e of r)n.add(e);r.length=0,We(t,(()=>Ge(e,r,void 0,0)));for(const e of r)n.add(e);return Be(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>We(e,(()=>Ge(e,t,n,16))),getExpandedParameters:kd,hasEffectiveRestParameter:tR,containsArgumentsReference:xg,getConstantValue:e=>{const t=bc(e,Lz);return t?Rz(t):void 0},isValidPropertyAccess:(e,t)=>{const n=bc(e,Bu);return!!n&&function(e,t){switch(e.kind){case 211:return SO(e,108===e.expression.kind,t,RD(Ej(e.expression)));case 166:return SO(e,!1,t,RD(Ej(e.left)));case 205:return SO(e,!1,t,TS(e))}}(n,xc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=bc(e,nF);return!!r&&xO(r,t,n)},getSignatureFromDeclaration:e=>{const t=bc(e,uu);return t?mg(t):void 0},isImplementationOfOverload:e=>{const t=bc(e,uu);return t?Ez(t):void 0},getImmediateAliasedSymbol:tI,getAliasedSymbol:Ja,getEmitResolver:function(e,t,n){return n||QJ(e,t),ue},requiresAddingImplicitUndefined:Fz,getExportsOfModule:as,getExportsAndPropertiesOfModule:function(e){const t=as(e),n=ts(e);if(n!==e){const e=Tu(n);cs(e)&&de(t,Ep(e))}return t},forEachExportAndPropertyOfModule:function(e,t){us(e).forEach(((e,n)=>{Is(n)||t(e,n)}));const n=ts(e);if(n!==e){const e=Tu(n);cs(e)&&function(e,t){3670016&(e=kf(e)).flags&&Tp(e).members.forEach(((e,n)=>{Ls(e,n)&&t(e,n)}))}(e,((e,n)=>{t(e,n)}))}},getSymbolWalker:ZM((function(e){return qg(e)||Dt}),Pg,jg,e_,Tp,Tu,Ew,Np,mb,uy),getAmbientModules:function(){return Vn||(Vn=[],ye.forEach(((e,t)=>{jB.test(t)&&Vn.push(e)}))),Vn},getJsxIntrinsicTagNamesAt:function(e){const t=uI(OB.IntrinsicElements,e);return t?Ep(t):u},isOptionalParameter:e=>{const t=bc(e,fE);return!!t&&ig(t)},tryGetMemberInModuleExports:(e,t)=>ss(xc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=ss(e,t);if(n)return n;const r=ts(t);if(r===t)return;const i=Tu(r);return cs(i)?Uf(i,e):void 0}(xc(e),t),tryFindAmbientModule:e=>Hm(e,!0),getApparentType:Sf,getUnionType:Ib,isTypeAssignableTo:Fk,createAnonymousType:Js,createSignature:hd,createSymbol:Uo,createIndexInfo:Ah,getAnyType:()=>Dt,getStringType:()=>qt,getStringLiteralType:gS,getNumberType:()=>Ut,getNumberLiteralType:hS,getBigIntType:()=>Vt,getBigIntLiteralType:yS,createPromiseType:xR,createArrayType:Dv,getElementTypeOfArrayType:jC,getBooleanType:()=>Yt,getFalseType:e=>e?Wt:Gt,getTrueType:e=>e?Kt:Xt,getVoidType:()=>rn,getUndefinedType:()=>Lt,getNullType:()=>zt,getESSymbolType:()=>nn,getNeverType:()=>cn,getOptionalType:()=>Bt,getPromiseType:()=>ev(!1),getPromiseLikeType:()=>tv(!1),getAnyAsyncIterableType:()=>{const e=iv(!1);if(e!==On)return ny(e,[Dt,Dt,Dt])},isSymbolAccessible:Gs,isArrayType:IC,isTupleType:nD,isArrayLikeType:MC,isEmptyAnonymousObjectType:Kk,isTypeInvalidDueToUnionDiscriminant:function(e,t){const n=t.properties;return n.some((t=>{const n=t.name&&($N(t.name)?gS(lC(t.name)):Kb(t.name)),r=n&&fC(n)?mC(n):void 0,i=void 0===r?void 0:qc(e,r);return!!i&&KC(i)&&!Fk(uz(t),i)}))},getExactOptionalProperties:function(e){return Ep(e).filter((e=>kD(Tu(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=Ib(e);if(!(1048576&t.flags))return mz(t);const n=td();for(const r of e)for(const{escapedName:e}of mz(r))if(!n.has(e)){const r=Tf(t,e);r&&n.set(e,r)}return Be(n.values())},getSuggestedSymbolForNonexistentProperty:pO,getSuggestedSymbolForNonexistentJSXAttribute:fO,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>gO(e,xc(t),n),getSuggestedSymbolForNonexistentModule:hO,getSuggestedSymbolForNonexistentClassMember:dO,getBaseConstraintOfType:Zp,getDefaultFromTypeParameter:e=>e&&262144&e.flags?ff(e):void 0,resolveName:(e,t,n,r)=>ze(t,xc(e),n,void 0,!1,r),getJsxNamespace:e=>Sc(Co(e)),getJsxFragmentFactory:e=>{const t=Xz(e);return t&&Sc(mb(t).escapedText)},getAccessibleSymbolChain:qs,getTypePredicateOfSignature:Pg,resolveExternalModuleName:e=>{const t=bc(e,Qu);return t&&Xa(t,t,!0)},resolveExternalModuleSymbol:ts,tryGetThisTypeAt:(e,t,n)=>{const r=bc(e);return r&&VP(r,t,n)},getTypeArgumentConstraint:e=>{const t=bc(e,wu);return t&&function(e){const t=at(e.parent,J_);if(!t)return;const n=Uj(t);if(!n)return;const r=Np(n[t.typeArguments.indexOf(e)]);return r&&fk(r,BS(n,$j(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=bc(n,QN)||gn.fail("Could not determine parsed source file.");if(hT(i,F,e))return u;let o;try{return t=r,ez(i),gn.assert(!!(1&ra(i).flags)),o=de(o,po.getDiagnostics(i.fileName)),SM(XJ(i),((e,t,n)=>{Td(e)||KJ(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})})),o||u}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(qe)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ju,isDeclarationVisible:Pc,isPropertyAccessible:kO,getTypeOnlyAliasDeclaration:Ua,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=fs(e),i=y_(r),o=md(i),a=Tu(r),s=Ch(e),c=s&&e_(i),l=(null==c?void 0:c.length)?md(xe(c),i.thisType):void 0,u=Ku(i),_=t.parent?Mv(t):Lv(t,16);return fJ(e,a,u,l,i,o,_,Bv(t),Rv(t),!1,n)},isTypeParameterPossiblyReferenced:ck,typeHasCallOrConstructSignatures:gz,getSymbolFlags:za};function We(e,t){if(e=yc(e,zu)){const n=[],r=[];for(;e;){const t=ra(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,VT(e)){const t=na(fs(e)),n=t.type;r.push([t,n]),t.type=void 0}e=yc(e.parent,zu)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function He(e,t){const n=yc(e,$u);if(n){let t=e;do{ra(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}b=!0;const r=We(e,t);if(b=!1,n){let t=e;do{ra(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Ge(e,t,n,r){const i=bc(e,$u);we=n;const o=i?vL(i,t,r):void 0;return we=void 0,o}var Ke=new Map,Ye=new Map,Ze=new Map,et=new Map,tt=new Map,rt=new Map,ot=new Map,ct=new Map,lt=new Map,ut=new Map,_t=new Map,dt=new Map,pt=new Map,ft=new Map,mt=new Map,gt=[],ht=new Map,yt=new Set,vt=Uo(4,"unknown"),xt=Uo(0,"__resolving__"),St=new Map,kt=new Map,Ct=new Set,Dt=Fs(1,"any"),wt=Fs(1,"any",262144,"auto"),Et=Fs(1,"any",void 0,"wildcard"),Ft=Fs(1,"any",void 0,"blocked string"),Nt=Fs(1,"error"),Pt=Fs(1,"unresolved"),At=Fs(1,"any",65536,"non-inferrable"),It=Fs(1,"intrinsic"),Ot=Fs(2,"unknown"),Lt=Fs(32768,"undefined"),Rt=U?Lt:Fs(32768,"undefined",65536,"widening"),jt=Fs(32768,"undefined",void 0,"missing"),Mt=ie?jt:Lt,Bt=Fs(32768,"undefined",void 0,"optional"),zt=Fs(65536,"null"),$t=U?zt:Fs(65536,"null",65536,"widening"),qt=Fs(4,"string"),Ut=Fs(8,"number"),Vt=Fs(64,"bigint"),Wt=Fs(512,"false",void 0,"fresh"),Gt=Fs(512,"false"),Kt=Fs(512,"true",void 0,"fresh"),Xt=Fs(512,"true");Kt.regularType=Xt,Kt.freshType=Kt,Xt.regularType=Xt,Xt.freshType=Kt,Wt.regularType=Gt,Wt.freshType=Wt,Gt.regularType=Gt,Gt.freshType=Wt;var Qt,Yt=Ib([Gt,Xt]),nn=Fs(4096,"symbol"),rn=Fs(16384,"void"),cn=Fs(131072,"never"),un=Fs(131072,"never",262144,"silent"),dn=Fs(131072,"never",void 0,"implicit"),pn=Fs(131072,"never",void 0,"unreachable"),fn=Fs(67108864,"object"),mn=Ib([qt,Ut]),hn=Ib([qt,Ut,nn]),yn=Ib([Ut,Vt]),vn=Ib([qt,Ut,Yt,Vt,zt,Lt]),bn=nx(["",""],[Ut]),xn=VS((e=>{return 262144&e.flags?!(t=e).constraint&&!Rh(t)||t.constraint===Rn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Ps(t.symbol),t.restrictiveInstantiation.constraint=Rn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),Sn=VS((e=>262144&e.flags?Et:e),(()=>"(permissive mapper)")),kn=Fs(131072,"never",void 0,"unique literal"),Tn=VS((e=>262144&e.flags?kn:e),(()=>"(unique literal mapper)")),Cn=VS((e=>(!Qt||e!==Bn&&e!==Jn&&e!==zn||Qt(!0),e)),(()=>"(unmeasurable reporter)")),Dn=VS((e=>(!Qt||e!==Bn&&e!==Jn&&e!==zn||Qt(!1),e)),(()=>"(unreliable reporter)")),wn=Js(void 0,x,u,u,u),En=Js(void 0,x,u,u,u);En.objectFlags|=2048;var Fn=Js(void 0,x,u,u,u);Fn.objectFlags|=141440;var Nn=Uo(2048,"__type");Nn.members=td();var Pn=Js(Nn,x,u,u,u),An=Js(void 0,x,u,u,u),In=U?Ib([Lt,zt,An]):Ot,On=Js(void 0,x,u,u,u);On.instantiations=new Map;var Ln=Js(void 0,x,u,u,u);Ln.objectFlags|=262144;var Rn=Js(void 0,x,u,u,u),jn=Js(void 0,x,u,u,u),Mn=Js(void 0,x,u,u,u),Bn=Ps(),Jn=Ps();Jn.constraint=Bn;var zn=Ps(),$n=Ps(),qn=Ps();qn.constraint=$n;var Un,Vn,Wn,Hn,Gn,Kn,Xn,Qn,Zn,er,tr,nr,rr,ir,or,cr,lr,ur,_r,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,Sr,kr,Tr,Cr,Dr,wr,Er,Fr,Nr,Pr,Ar,Ir,Or,Lr,Rr,jr,Mr,Br,Jr,zr,$r,qr,Ur,Vr,Wr,Hr,Gr,Kr,Xr,Qr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai=ug(1,"<>",0,Dt),si=hd(void 0,void 0,void 0,u,Dt,void 0,0,0),ci=hd(void 0,void 0,void 0,u,Nt,void 0,0,0),li=hd(void 0,void 0,void 0,u,Dt,void 0,0,0),ui=hd(void 0,void 0,void 0,u,un,void 0,0,0),_i=Ah(Ut,qt,!0),di=new Map,pi={get yieldType(){return gn.fail("Not supported")},get returnType(){return gn.fail("Not supported")},get nextType(){return gn.fail("Not supported")}},fi=_B(Dt,Dt,Dt),mi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Er||(Er=Wy("AsyncIterator",3,e))||On},getGlobalIterableType:iv,getGlobalIterableIteratorType:ov,getGlobalIteratorObjectType:function(e){return Ar||(Ar=Wy("AsyncIteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Ir||(Ir=Wy("AsyncGenerator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Pr??(Pr=Hy(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,t)=>cM(e,t,ha.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:ha.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:ha.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:ha.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},gi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return xr||(xr=Wy("Iterator",3,e))||On},getGlobalIterableType:av,getGlobalIterableIteratorType:sv,getGlobalIteratorObjectType:function(e){return kr||(kr=Wy("IteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Tr||(Tr=Wy("Generator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Nr??(Nr=Hy(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:ha.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:ha.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:ha.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},hi=new Map,yi=new Map,bi=new Map,xi=0,Si=0,ki=0,Ti=!1,Ci=0,Di=[],wi=[],Ei=[],Fi=0,Ni=[],Pi=[],Ai=[],Oi=0,Li=gS(""),Ri=hS(0),ji=yS({negative:!1,base10Value:"0"}),Mi=[],Bi=[],Ji=[],zi=0,$i=!1,qi=0,Ui=10,Vi=[],Wi=[],Hi=[],Gi=[],Ki=[],Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=[],ao=[],so=[],co=[],lo=[],uo=0,_o=hy(),po=hy(),fo=Ib(Be(UB.keys(),gS)),mo=new Map,go=new Map,ho=new Map,yo=new Map,vo=new Map,bo=new Map,xo=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===F.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())HM(t,F);let t;Un=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!af(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)_o.add(Up(t,ha.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ea(ye,n.locals)}n.jsGlobalAugmentations&&ea(ye,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Wn=Y(Wn,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(((e,t)=>{ye.has(t)||ye.set(t,e)}))}if(t)for(const e of t)for(const t of e)vp(t.parent)&&ta(t);if(function(){const e=Ce.escapedName,t=ye.get(e);t?f(t.declarations,(t=>{QT(t)||_o.add(Up(t,ha.Declaration_name_conflicts_with_built_in_global_identifier_0,Sc(e)))})):ye.set(e,Ce)}(),na(Ce).type=Rt,na(Ie).type=Wy("IArguments",0,!0),na(vt).type=Nt,na(De).type=Ns(16,De),Zn=Wy("Array",1,!0),Gn=Wy("Object",0,!0),Kn=Wy("Function",0,!0),Xn=G&&Wy("CallableFunction",0,!0)||Kn,Qn=G&&Wy("NewableFunction",0,!0)||Kn,tr=Wy("String",0,!0),nr=Wy("Number",0,!0),rr=Wy("Boolean",0,!0),ir=Wy("RegExp",0,!0),cr=Dv(Dt),(lr=Dv(wt))===wn&&(lr=Js(void 0,x,u,u,u)),er=uv("ReadonlyArray",1)||Zn,ur=er?vv(er,[Dt]):cr,or=uv("ThisType",1),t)for(const e of t)for(const t of e)vp(t.parent)||ta(t);Un.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?ha.Cannot_redeclare_block_scoped_variable_0:ha.Duplicate_identifier_0;for(const e of t)Zo(e,i,r,n);for(const e of n)Zo(e,i,r,t)}));else{const r=Be(n.keys()).join(", ");_o.add(pT(Up(e,ha.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Up(t,ha.Conflicts_are_in_this_file))),_o.add(pT(Up(t,ha.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Up(e,ha.Conflicts_are_in_this_file)))}})),Un=void 0}(),qe;function So(e){return!(!nF(e)||!Xw(e.name)||!nF(e.expression)&&!Xw(e.expression)||(Xw(e.expression)?"Symbol"!==kc(e.expression)||Ew(e.expression)!==(Vy("Symbol",1160127,void 0)||vt):!Xw(e.expression.expression)||"Symbol"!==kc(e.expression.name)||"globalThis"!==kc(e.expression.expression)||Ew(e.expression.expression)!==De))}function ko(e){return e?mt.get(e):void 0}function To(e,t){return e&&mt.set(e,t),t}function Co(e){if(e){const t=Cd(e);if(t)if(RN(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=nt(n)?n[0]:n;if(t.localJsxFragmentFactory=GI(e.arguments.factory,A),sJ(t.localJsxFragmentFactory,Eo,su),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=mb(t.localJsxFragmentFactory).escapedText}const r=Xz(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=mb(r).escapedText}else{const e=Do(t);if(e)return t.localJsxNamespace=e}}return ii||(ii="React",F.jsxFactory?(sJ(oi=GI(F.jsxFactory,A),Eo),oi&&(ii=mb(oi).escapedText)):F.reactNamespace&&(ii=xc(F.reactNamespace))),oi||(oi=oD.createQualifiedName(oD.createIdentifier(Sc(ii)),"createElement")),ii}function Do(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=nt(t)?t[0]:t;if(e.localJsxFactory=GI(n.arguments.factory,A),sJ(e.localJsxFactory,Eo,su),e.localJsxFactory)return e.localJsxNamespace=mb(e.localJsxFactory).escapedText}}function Eo(e){return AT(e,-1,-1),hJ(e,Eo,void 0)}function Ao(e,t,n,...r){const i=Oo(t,n,...r);return i.skippedOn=e,i}function Io(e,t,...n){return e?Up(e,t,...n):oS(t,...n)}function Oo(e,t,...n){const r=Io(e,t,...n);return _o.add(r),r}function Lo(e,t){e?_o.add(t):po.add({...t,category:2})}function jo(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=Cd(t);Lo(e,"message"in n?rS(i,0,0,n,...r):Qp(i,n))}else Lo(e,"message"in n?Up(t,n,...r):Hp(Cd(t),t,n))}function Mo(e,t,n,...r){const i=Oo(e,n,...r);return t&&pT(i,Up(e,ha.Did_you_forget_to_use_await)),i}function Jo(e,t){const n=Array.isArray(e)?f(e,tl):tl(e);return n&&pT(t,Up(n,ha.The_declaration_was_marked_as_deprecated_here)),po.add(t),t}function zo(e){const t=gs(e);return t&&p(e.declarations)>1?64&t.flags?X(e.declarations,$o):k(e.declarations,$o):!!e.valueDeclaration&&$o(e.valueDeclaration)||p(e.declarations)&&k(e.declarations,$o)}function $o(e){return!!(536870912&R$(e))}function qo(e,t,n){return Jo(t,Up(e,ha._0_is_deprecated,n))}function Uo(e,t,n){d++;const r=new s(33554432|e,t);return r.links=new KB,r.links.checkFlags=n||0,r}function Vo(e,t){const n=Uo(1,e);return n.links.type=t,n}function Wo(e,t){const n=Uo(4,e);return n.links.type=t,n}function Go(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Ko(e,t){t.mergeId||(t.mergeId=zB,zB++),Vi[t.mergeId]=e}function Xo(e){const t=Uo(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),Ko(t,e),t}function Qo(e,t,n=!1){if(!(e.flags&Go(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Ba(e);if(n===vt)return t;if(n.flags&Go(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=Xo(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&Sg(e,t.valueDeclaration),de(e.declarations,t.declarations),t.members&&(e.members||(e.members=td()),ea(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=td()),ea(e.exports,t.exports,n,e)),n||Ko(e,t)}else 1024&e.flags?e!==De&&Oo(t.declarations&&Ac(t.declarations[0]),ha.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,nc(e)):r(e,t);return e;function r(e,t){const n=!!(384&e.flags||384&t.flags),r=!!(2&e.flags||2&t.flags),o=n?ha.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?ha.Cannot_redeclare_block_scoped_variable_0:ha.Duplicate_identifier_0,a=t.declarations&&Cd(t.declarations[0]),s=e.declarations&&Cd(e.declarations[0]),c=wd(a,F.checkJs),l=wd(s,F.checkJs),u=nc(t);if(a&&s&&Un&&!n&&a!==s){const n=-1===aa(a.path,s.path)?a:s,o=n===a?s:a,_=V(Un,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=V(_.conflictingSymbols,u,(()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]})));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||Yo(t,o,u,e),l||Yo(e,o,u,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)pe(e,n)}}function Yo(e,t,n,r){f(e.declarations,(e=>{Zo(e,t,n,r.declarations)}))}function Zo(e,t,n,r){const i=(eg(e,!1)?ng(e):Ac(e))||e,o=function(e,t,...n){const r=e?Up(e,t,...n):oS(t,...n);return _o.lookup(r)||(_o.add(r),r)}(i,t,n);for(const e of r||u){const t=(eg(e,!1)?ng(e):Ac(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=Up(t,ha._0_was_also_declared_here,n),a=Up(t,ha.and_here);p(o.relatedInformation)>=5||X(o.relatedInformation,(e=>0===uS(e,a)||0===uS(e,r)))||pT(o,p(o.relatedInformation)?a:r)}}function ea(e,t,n=!1,r){t.forEach(((t,i)=>{const o=e.get(i),a=o?Qo(o,t,n):ps(t);r&&o&&(a.parent=r),e.set(i,a)}))}function ta(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(vp(i))ea(ye,i.symbol.exports);else{let t=Ya(e,e,33554432&e.parent.parent.flags?void 0:ha.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!t)return;if(t=ts(t),1920&t.flags)if(X(Wn,(e=>t===e.symbol))){const n=Qo(i.symbol,t,!0);Hn||(Hn=new Map),Hn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=cd(t,"resolvedExports");for(const[n,r]of Be(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Qo(e.get(n),r)}Qo(t,i.symbol)}else Oo(e,ha.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else gn.assert(i.symbol.declarations.length>1)}function na(e){if(33554432&e.flags)return e.links;const t=YB(e);return Wi[t]??(Wi[t]=new KB)}function ra(e){const t=QB(e);return Hi[t]||(Hi[t]=new XB)}function ia(e,t,n){if(n){const r=ps(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags&&za(r)&n)return r}}}function oa(t,n){const r=Cd(t),i=Cd(n),o=Rp(t);if(r!==i){if(L&&(r.externalModuleIndicator||i.externalModuleIndicator)||!F.outFile||hv(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||hv(n)||Fw(n))return!0;if(t.pos<=n.pos&&(!hE(t)||!fm(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=Ph(n,208);return e?yc(e,ZE)!==yc(t,ZE)||t.pose===t?"quit":dE(e)?e.parent.parent===t:!B&&mE(e)&&(e.parent===t||vE(e.parent)&&e.parent.parent===t||bl(e.parent)&&e.parent.parent===t||hE(e.parent)&&e.parent.parent===t||fE(e.parent)&&e.parent.parent.parent===t)));return!e||!(B||!mE(e))&&!!yc(n,(t=>t===e?"quit":uu(t)&&!dm(t)))}return hE(t)?!s(t,n,!1):!ac(t,t.parent)||!(z&&rm(t)===rm(n)&&a(n,t))}return!(!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)&&(277!==n.kind||!n.isExportEquals)&&(!a(n,t)||z&&rm(t)&&(hE(t)||ac(t,t.parent))&&s(t,n,!0)));function a(e,t){return!!yc(e,(n=>{if(n===o)return"quit";if(uu(n))return!0;if(bE(n))return t.pos=r&&o.pos<=i){const n=oD.createPropertyAccessExpression(oD.createThis(),e);if(LT(n.expression,n),LT(n,o),n.flowNode=o.returnFlowNode,!Xk(yN(n,t,mD(t))))return!0}return!1}(e,Tu(fs(t)),P(t.parent.members,bE),t.parent.pos,n.pos))return!0}}else if(172!==t.kind||Rv(t)||rm(e)!==rm(t))return!0;return!1}))}function s(e,t,n){if(t.end>e.end)return!1;const r=yc(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(hE(e)&&t.parent===e.parent||ac(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}));return void 0===r}}function sa(e){return ra(e).declarationRequiresScopeChange}function ca(e,t){ra(e).declarationRequiresScopeChange=t}function la(e,t,n){return t?pT(e,Up(t,281===t.kind||278===t.kind||280===t.kind?ha._0_was_exported_here:ha._0_was_imported_here,n)):e}function _a(e){return it(e)?Sc(e):Mp(e)}function pa(e,t,n){if(!Xw(e)||e.escapedText!==t||tz(e)||hv(e))return!1;const r=sm(e,!1,!1);let i=r;for(;i;){if(yu(i.parent)){const o=fs(i.parent);if(!o)break;if(Uf(Tu(o),t))return Oo(e,ha.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,_a(n),nc(o)),!0;if(i===r&&!Rv(i)&&Uf(y_(o).thisType,t))return Oo(e,ha.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,_a(n)),!0}i=i.parent}return!1}function fa(e){const t=ma(e);return!(!t||!Ha(t,64,!0)||(Oo(e,ha.Cannot_extend_an_interface_0_Did_you_mean_implements,np(t)),0))}function ma(e){switch(e.kind){case 80:case 211:return e.parent?ma(e.parent):void 0;case 233:if(fb(e.expression))return e.expression;default:return}}function ga(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function ya(e,t,n){return!!t&&!!yc(e,(e=>e===t||!!(e===n||uu(e)&&(!dm(e)||3&zh(e)))&&"quit"))}function va(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function ba(e){return e.declarations&&C(e.declarations,xa)}function xa(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&Sh(e)||hF(e)&&2===cg(e)&&Sh(e)||Px(e)&&hF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Sa(e.parent.right)||304===e.kind||303===e.kind&&Sa(e.initializer)||260===e.kind&&Um(e)||208===e.kind&&Um(e.parent.parent)}function Sa(e){return xh(e)||lF(e)&&bL(e)}function ka(e,t){const n=Ia(e);if(n){const e=Ox(n.expression).arguments[0];return Xw(n.name)?Ba(Uf(Dg(e),n.name.escapedText)):void 0}if(ZF(e)||283===e.moduleReference.kind){const t=Xa(e,Im(e)||Am(e)),n=ts(t);return $a(e,t,n,!1),n}const r=Va(e.moduleReference,t);return function(e,t){if($a(e,void 0,t,!1)&&!e.isTypeOnly){const t=Ua(fs(e)),n=281===t.kind||278===t.kind,r=n?ha.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:ha.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?ha._0_was_exported_here:ha._0_was_imported_here,o=278===t.kind?"*":Yd(t.name);pT(Oo(e.moduleReference,r),Up(t,i,o))}}(e,r),r}function Ta(e,t,n,r){const i=e.exports.get("export="),o=i?Uf(Tu(i),t,!0):e.exports.get(t),a=Ba(o,r);return $a(n,o,a,!1),a}function Ca(e){return SN(e)&&!e.isExportEquals||Lv(e,2048)||CN(e)||vN(e)}function Da(t){return q_(t)?e.getEmitSyntaxForUsageLocation(Cd(t),t):void 0}function wa(e,t){if(100<=L&&L<=199&&99===Da(e)){t??(t=Xa(e,e,!0));const n=t&&Dd(t);return n&&(sf(n)||".d.json.ts"===oO(n.fileName))}return!1}function Ea(t,n,r,i){const o=t&&Da(i);if(t&&void 0!==o){const n=e.getImpliedNodeFormatForEmit(t);if(99===o&&1===n&&100<=L&&L<=199)return!0;if(99===o&&99===n)return!1}if(!$)return!1;if(!t||t.isDeclarationFile){const e=Ta(n,"default",void 0,!0);return!(e&&X(e.declarations,Ca)||Ta(n,xc("__esModule"),void 0,r))}return Rm(t)?"object"!=typeof t.externalModuleIndicator&&!Ta(n,xc("__esModule"),void 0,r):os(n)}function Fa(e,t,n){var r;let i;i=hp(e)?e:Ta(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find(QN),a=Na(t);if(!a)return i;const s=wa(a,e),c=Ea(o,e,n,a);if(i||c||s){if(c||s){const r=ts(e,n)||Ba(e,n);return $a(t,e,r,!1),r}}else if(os(e)&&!$){const n=L>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=Oo(t.name,ha.Module_0_can_only_be_default_imported_using_the_1_flag,nc(e),n);r&&pT(i,Up(r,ha.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else dN(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))Oo(t.name,ha.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,nc(e),nc(t.symbol));else{const n=Oo(t.name,ha.Module_0_has_no_default_export,nc(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!(kN(e)&&e.moduleSpecifier&&(null==(n=null==(t=Xa(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&pT(n,Up(e,ha.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Aa(e,e,t,Vl(t)&&t.propertyName||t.name);return $a(t,i,void 0,!1),i}function Na(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return NN(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return gn.assertNever(e)}}function Pa(e,t,n=!1){var r;const i=Im(e)||e.moduleSpecifier,o=Xa(e,i),a=!nF(t)&&t.propertyName||t.name;if(!Xw(a)&&11!==a.kind)return;const s=Zd(a),c=ns(o,i,!1,"default"===s&&$);if(c&&(s||11===a.kind)){if(hp(o))return o;let l;l=o&&o.exports&&o.exports.get("export=")?Uf(Tu(c),s,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Ba(Uf(TS(n),t))}}(c,s),l=Ba(l,n);let u=function(e,t,n,r){var i;if(1536&e.flags){const o=ls(e).get(t),a=Ba(o,r);return $a(n,o,a,!1,null==(i=na(e).typeOnlyExportStarMap)?void 0:i.get(t),t),a}}(c,s,t,n);if(void 0===u&&"default"===s){const e=null==(r=o.declarations)?void 0:r.find(QN);(wa(i,o)||Ea(e,o,n,i))&&(u=ts(o,n)||Ba(o,n))}const _=u&&l&&u!==l?function(e,t){if(e===vt&&t===vt)return vt;if(790504&e.flags)return e;const n=Uo(e.flags|t.flags,e.escapedName);return gn.assert(e.declarations||t.declarations),n.declarations=ne(Y(e.declarations,t.declarations),bt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(l,u):u||l;return Vl(t)&&wa(i,o)&&"default"!==s?Oo(a,ha.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,vi[L]):_||Aa(o,c,e,a),_}}function Aa(e,t,n,r){var i;const o=Wa(e,n),a=Mp(r),s=Xw(r)?hO(r,t):void 0;if(void 0!==s){const e=nc(s),t=Oo(r,ha._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&pT(t,Up(s.valueDeclaration,ha._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?Oo(r,ha.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=at(r.valueDeclaration,f_))?void 0:o.locals)?void 0:a.get(Zd(t)),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)xs(r,s)?function(e,t,n,r){L>=5?Oo(t,PS(F)?ha._0_can_only_be_imported_by_using_a_default_import:ha._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):jm(e)?Oo(t,PS(F)?ha._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:ha._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Oo(t,PS(F)?ha._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:ha._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):Oo(t,ha.Module_0_has_no_exported_member_1,i,n);else{const e=c?T(Wm(c),(e=>!!xs(e,s))):void 0,r=e?Oo(t,ha.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,nc(e)):Oo(t,ha.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&pT(r,...O(s.declarations,((e,t)=>Up(e,0===t?ha._0_is_declared_here:ha.and_here,n))))}}else Oo(t,ha.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function Ia(e){if(ZF(e)&&e.initializer&&nF(e.initializer))return e.initializer}function Oa(e,t,n){const r=e.propertyName||e.name;if(ep(r)){const t=Na(e),r=t&&Xa(e,t);if(r)return Fa(r,e,!!n)}const i=e.parent.parent.moduleSpecifier?Pa(e.parent.parent,e,n):11===r.kind?void 0:Ha(r,t,!1,n);return $a(e,void 0,i,!1),i}function La(e,t){if(SF(e))return aj(e).symbol;if(!su(e)&&!fb(e))return;const n=Ha(e,901119,!0,t);return n||(aj(e),ra(e).resolvedSymbol)}function ja(e,t=!1){switch(e.kind){case 271:case 260:return ka(e,t);case 273:return function(e,t){const n=Xa(e,e.parent.moduleSpecifier);if(n)return Fa(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Xa(e,n),i=ns(r,n,t,!1);return $a(e,r,i,!1),i}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Xa(e,n),i=n&&ns(r,n,t,!1);return $a(e,r,i,!1),i}(e,t);case 276:case 208:return function(e,t){if(xN(e)&&ep(e.propertyName||e.name)){const n=Na(e),r=n&&Xa(e,n);if(r)return Fa(r,e,t)}const n=ZE(e)?oy(e):e.parent.parent.parent,r=Ia(n),i=Pa(n,r||e,t),o=e.propertyName||e.name;return r&&i&&Xw(o)?Ba(Uf(Tu(i),o.escapedText),t):($a(e,void 0,i,!1),i)}(e,t);case 281:return Oa(e,901119,t);case 277:case 226:return function(e,t){const n=La(SN(e)?e.expression:e.right,t);return $a(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(p_(e.parent)){const n=ts(e.parent.symbol,t);return $a(e,void 0,n,!1),n}}(e,t);case 304:return Ha(e.name,901119,!0,t);case 303:return La(e.initializer,t);case 212:case 211:return function(e,t){if(hF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return La(e.parent.right,t)}(e,t);default:return gn.fail()}}function Ma(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Ba(e,t){return!t&&Ma(e)?Ja(e):e}function Ja(e){gn.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=na(e);if(t.aliasTarget)t.aliasTarget===xt&&(t.aliasTarget=vt);else{t.aliasTarget=xt;const n=ba(e);if(!n)return gn.fail();const r=ja(n);t.aliasTarget===xt?t.aliasTarget=r||vt:Oo(n,ha.Circular_definition_of_import_alias_0,nc(e))}return t.aliasTarget}function za(e,t,n){const r=t&&Ua(e),i=r&&kN(r),o=r&&(i?Xa(r.moduleSpecifier,r.moduleSpecifier,!0):Ja(r.symbol)),a=i&&o?us(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=Ts(Ja(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===vt)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function $a(e,t,n,r,i,o){if(!e||nF(e))return!1;const a=fs(e);if(Gl(e))return na(a).typeOnlyDeclaration=e,!0;if(i){const e=na(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=na(a);return qa(s,t,r)||qa(s,n,r)}function qa(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&T(n.declarations,Gl);e.typeOnlyDeclaration=i??na(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Ua(e,t){var n;if(!(2097152&e.flags))return;const r=na(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=Ba(e);$a(null==(n=e.declarations)?void 0:n[0],ba(e)&&tI(e),t,!0)}return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&za(278===r.typeOnlyDeclaration.kind?Ba(us(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):Ja(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}function Va(e,t){return 80===e.kind&&bb(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?Ha(e,1920,!1,t):(gn.assert(271===e.parent.kind),Ha(e,901119,!1,t))}function Wa(e,t){return e.parent?Wa(e.parent,t)+"."+nc(e):nc(e,t,void 0,36)}function Ha(e,t,n,r,i){if(Id(e))return;const o=1920|(jm(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||sy(e)?ha.Cannot_find_namespace_0:ww(mb(e)),s=jm(e)&&!sy(e)?function(e,t){if(Ny(e.parent)){const n=function(e){const t=yc(e,(e=>N_(e)||16777216&e.flags?Lg(e):"quit"));if(t)return;const n=Qg(e);if(n&&jF(n)&&bg(n.expression)){const e=fs(n.expression.left);if(e)return Ka(e)}if(n&&lF(n)&&bg(n.parent)&&jF(n.parent.parent)){const e=fs(n.parent.left);if(e)return Ka(e)}if(n&&(Wf(n)||HN(n))&&hF(n.parent.parent)&&6===cg(n.parent.parent)){const e=fs(n.parent.parent.left);if(e)return Ka(e)}const r=Xg(e);if(r&&uu(r)){const e=fs(r);return e&&e.valueDeclaration}}(e.parent);if(n)return ze(n,e,t,void 0,!0)}}(e,t):void 0;if(a=ps(ze(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return ps(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let c=Ha(r,o,n,!1,i);if(!c||Id(s))return;if(c===vt)return c;if(c.valueDeclaration&&jm(c.valueDeclaration)&&100!==ES(F)&&ZF(c.valueDeclaration)&&c.valueDeclaration.initializer&&NL(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=Xa(e,e);if(t){const e=ts(t);e&&(c=e)}}if(a=ps(ia(ls(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=ps(ia(ls(Ja(c)),s.escapedText,t))),!a){if(!n){const n=Wa(c),r=Mp(s),i=hO(s,c);if(i)return void Oo(s,ha._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,nc(i));const o=_E(e)&&function(e){for(;_E(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!dF(o.parent)&&function(e){let t=mb(e),n=ze(t,t,111551,void 0,!0);if(n){for(;_E(t.parent);){if(n=Uf(Tu(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void Oo(o,ha._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,qp(o));if(1920&t&&_E(e.parent)){const t=ps(ia(ls(c),s.escapedText,788968));if(t)return void Oo(e.parent.right,ha.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,nc(t),Sc(e.parent.right.escapedText))}Oo(s,ha.Namespace_0_has_no_exported_member_1,n,r)}return}}else gn.assertNever(e,"Unknown entity name kind.");return!sy(e)&&su(e)&&(2097152&a.flags||277===e.parent.kind)&&$a(bh(e),a,void 0,!0),a.flags&t||r?a:Ja(a)}function Ka(e){const t=e.parent.valueDeclaration;if(t)return(Xm(t)?Zm(t):M_(t)?Ym(t):void 0)||t}function Xa(e,t,n){const r=1===ES(F)?ha.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ha.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ya(e,t,n?void 0:r,n)}function Ya(e,t,n,r=!1,i=!1){return q_(t)?Za(e,t.text,n,r?void 0:t,i):void 0}function Za(t,n,r,i,o=!1){var a,s,c,l,u,_,d,p,f,m,g;i&&en(n,"@types/")&&Oo(i,ha.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,tn(n,"@types/"),n);const h=Hm(n,!0);if(h)return h;const y=Cd(t),v=q_(t)?t:(null==(a=aN(t)?t:t.parent&&aN(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=yf(t)?t:void 0)?void 0:s.argument.literal)||(ZF(t)&&t.initializer&&$m(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(c=yc(t,gf))?void 0:c.arguments[0])||(null==(l=yc(t,an(_N,JP,kN)))?void 0:l.moduleSpecifier)||(null==(u=yc(t,Pm))?void 0:u.moduleReference.expression),b=v&&q_(v)?e.getModeForUsageLocation(y,v):e.getDefaultResolutionModeForFile(y),x=ES(F),S=null==(_=e.getResolvedModule(y,n,b))?void 0:_.resolvedModule,k=i&&S&&UU(F,S,y),T=S&&(!k||k===ha.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(S.resolvedFileName);if(T){if(k&&Oo(i,k,n,S.resolvedFileName),S.resolvedUsingTsExtension&&iO(n)){const e=(null==(d=yc(t,_N))?void 0:d.importClause)||yc(t,an(uN,kN));(i&&e&&!e.isTypeOnly||yc(t,gf))&&Oo(i,ha.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=Yk(n,e);if($S(L)||99===b){const r=iO(n)&&LM(F);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(gn.checkDefined(Eb(n))))}else if(S.resolvedUsingTsExtension&&!LM(F,y.fileName)){const e=(null==(p=yc(t,_N))?void 0:p.importClause)||yc(t,an(uN,kN));if(i&&!(null==e?void 0:e.isTypeOnly)&&!yc(t,GE)){const e=gn.checkDefined(Eb(n));Oo(i,ha.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(F.rewriteRelativeImportExtensions&&!(33554432&t.flags)&&!iO(n)&&!yf(t)&&!Kl(t)){const t=Eg(n,F);if(!S.resolvedUsingTsExtension&&t)Oo(i,ha.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,da(Ho(y.fileName,e.getCurrentDirectory()),S.resolvedFileName,Uy(e)));else if(S.resolvedUsingTsExtension&&!t&&rv(T,e))Oo(i,ha.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,Bo(n));else if(S.resolvedUsingTsExtension&&t){const t=e.getResolvedProjectReferenceToRedirect(T.path);if(t){const n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),o=iq(t.commandLine,n);ua(r,o,n)!==ua(F.outDir||r,t.commandLine.options.outDir||o,n)&&Oo(i,ha.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(T.symbol){if(i&&S.isExternalLibraryImport&&!oT(S.extension)&&es(!1,i,y,b,S,n),i&&(3===x||99===x)){const e=1===y.impliedNodeFormat&&!yc(t,gf)||!!yc(t,uN),r=yc(t,(e=>GE(e)||kN(e)||_N(e)||JP(e)));if(e&&99===T.impliedNodeFormat&&!hC(r))if(yc(t,uN))Oo(i,ha.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=cT(y.fileName);".ts"!==t&&".js"!==t&&".tsx"!==t&&".jsx"!==t||(e=vd(y));const o=272===(null==r?void 0:r.kind)&&(null==(f=r.importClause)?void 0:f.isTypeOnly)?ha.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:205===(null==r?void 0:r.kind)?ha.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ha.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;_o.add(Hp(Cd(i),i,sS(e,o,n)))}}return ps(T.symbol)}i&&r&&!NC(i)&&Oo(i,ha.File_0_is_not_a_module,T.fileName)}else{if(Wn){const e=Zt(Wn,(e=>e.pattern),n);if(e){const t=Hn&&Hn.get(n);return ps(t||e.symbol)}}if(i){if((!S||oT(S.extension)||void 0!==k)&&k!==ha.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(S){const t=e.getProjectReferenceRedirect(S.resolvedFileName);if(t)return void Oo(i,ha.Output_file_0_has_not_been_built_from_source_file_1,t,S.resolvedFileName)}if(k)Oo(i,k,n,S.resolvedFileName);else{const t=wo(n)&&!Fo(n),o=3===x||99===x;if(!LS(F)&&No(n,".json")&&1!==x&&qS(F))Oo(i,ha.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===b&&o&&t){const t=Ho(n,Ro(y.path)),r=null==(m=xo.find((([n,r])=>e.fileExists(t+n))))?void 0:m[1];r?Oo(i,ha.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):Oo(i,ha.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else(null==(g=e.getResolvedModule(y,n,b))?void 0:g.alternateResult)?jo(!0,i,sS(yd(y,e,n,b,n),r,n)):Oo(i,r,n)}}return}o?Oo(i,ha.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,S.resolvedFileName):es(Z&&!!r,i,y,b,S,n)}}}function es(t,n,r,i,{packageId:o,resolvedFileName:a},s){if(NC(n))return;let c;!As(s)&&o&&(c=yd(r,e,s,i,o.name)),jo(t,n,sS(c,ha.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function ts(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===vt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=na(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:Xo(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=td()),t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Qo(r.exports.get(t),e):e)})),r===e&&(na(r).resolvedExports=void 0,na(r).resolvedMembers=void 0),na(r).cjsExportMerged=r,n.cjsExportMerged=r}(ps(Ba(e.exports.get("export="),t)),ps(e));return ps(n)||e}}function ns(t,n,r,i){var o;const a=ts(t,r);if(!r&&a){if(!(i||1539&a.flags||Z_(a,307))){const e=L>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Oo(n,ha.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const r=n.parent;if(_N(r)&&Ng(r)||gf(r)){const n=gf(r)?r.arguments[0]:r.moduleSpecifier,i=Tu(a),l=EL(i,a,t,n);if(l)return rs(a,l,r);const u=null==(o=null==t?void 0:t.declarations)?void 0:o.find(QN),_=u&&(s=Da(n),c=e.getImpliedNodeFormatForEmit(u),99===s&&1===c);if(PS(F)||_){let e=Vf(i,0);if(e&&e.length||(e=Vf(i,1)),e&&e.length||Uf(i,"default",!0)||_)return rs(a,3670016&i.flags?FL(i,a,t,n):wL(a,a.parent),r)}}}var s,c;return a}function rs(e,t,n){const r=Uo(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=Tp(t);return r.links.type=Js(r,i.members,u,u,i.indexInfos),r}function os(e){return void 0!==e.exports.get("export=")}function as(e){return Wm(us(e))}function ss(e,t){const n=us(t);if(n)return n.get(e)}function cs(e){return!(402784252&e.flags||1&Tx(e)||IC(e)||nD(e))}function ls(e){return 6256&e.flags?cd(e,"resolvedExports"):1536&e.flags?us(e):e.exports||x}function us(e){const t=na(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=ds(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function _s(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&Ba(o)!==Ba(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:np(r.moduleSpecifier)})}))}function ds(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t))),!(i&&i.exports&&pe(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=td(),n=new Map;if(c.declarations)for(const r of c.declarations){const i=Xa(r,r.moduleSpecifier);_s(t,e(i,r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)_o.add(Up(r,ha.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,Sc(t)))})),_s(s,t)}return(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,o)))),s}(e=ts(e))||x;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function ps(e){let t;return e&&e.mergeId&&(t=Vi[e.mergeId])?t:e}function fs(e){return ps(e.symbol&&fd(e.symbol))}function ms(e){return p_(e)?fs(e):void 0}function gs(e){return ps(e.parent&&fd(e.parent))}function hs(e){var t,n;return(219===(null==(t=e.valueDeclaration)?void 0:t.kind)||218===(null==(n=e.valueDeclaration)?void 0:n.kind))&&ms(e.valueDeclaration.parent)||e}function ys(t,n,r){const i=gs(t);if(i&&!(262144&t.flags))return l(i);const o=q(t.declarations,(e=>{if(!fp(e)&&e.parent){if(Ys(e.parent))return fs(e.parent);if(sN(e.parent)&&e.parent.parent&&ts(fs(e.parent.parent))===t)return fs(e.parent.parent)}if(SF(e)&&hF(e.parent)&&64===e.parent.operatorToken.kind&&Px(e.parent.left)&&fb(e.parent.left.expression))return sg(e.parent.left)||og(e.parent.left.expression)?fs(Cd(e)):(aj(e.parent.left.expression),ra(e.parent.left.expression).resolvedSymbol)}));if(!p(o))return;const a=q(o,(e=>bs(e,t)?e:void 0));let s=[],c=[];for(const e of a){const[t,...n]=l(e);s=le(s,t),c=de(c,n)}return Y(s,c);function l(i){const o=q(i.declarations,_),a=n&&function(t,n){const r=Cd(n),i=QB(r),o=na(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;if(r&&r.imports){for(const e of r.imports){if(sy(e))continue;const r=Xa(n,e,!0);r&&bs(r,t)&&(a=le(a,r))}if(p(a))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,a),a}if(o.extendedContainers)return o.extendedContainers;const s=e.getSourceFiles();for(const e of s){if(!XI(e))continue;const n=fs(e);bs(n,t)&&(a=le(a,n))}return o.extendedContainers=a||u}(t,n),s=function(e,t){const n=!!p(e.declarations)&&xe(e.declarations);if(111551&t&&n&&n.parent&&ZF(n.parent)&&(tF(n)&&n===n.parent.initializer||AE(n)&&n===n.parent.type))return fs(n.parent)}(i,r);if(n&&i.flags&$s(r)&&qs(i,n,1920,!1))return le(Y(Y([i],o),a),s);const c=!(i.flags&$s(r))&&788968&i.flags&&524288&y_(i).flags&&111551===r?zs(n,(e=>ld(e,(e=>{if(e.flags&$s(r)&&Tu(e)===y_(i))return e})))):void 0;let l=c?[c,...o,i]:[...o,i];return l=le(l,s),l=de(l,a),l}function _(e){return i&&vs(e,i)}}function vs(e,t){const n=Xs(e),r=n&&n.exports&&n.exports.get("export=");return r&&xs(r,t)?n:void 0}function bs(e,t){if(e===gs(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&xs(n,t))return e;const r=ls(e),i=r.get(t.escapedName);return i&&xs(i,t)?i:ld(r,(e=>{if(xs(e,t))return e}))}function xs(e,t){if(ps(Ba(ps(e)))===ps(Ba(ps(t))))return e}function Ts(e){return ps(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function Cs(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&za(e,!t))}function Ds(e){var t;const n=new c(qe,e);return _++,n.id=_,null==(t=Yn)||t.recordType(n),n}function ws(e,t){const n=Ds(e);return n.symbol=t,n}function Es(e){return new c(qe,e)}function Fs(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;Ct.has(n)&&gn.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`),Ct.add(n)}(t,r);const i=Ds(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Ns(e,t){const n=ws(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function Ps(e){return ws(262144,e)}function Is(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Os(e){let t;return e.forEach(((e,n)=>{Ls(e,n)&&(t||(t=[])).push(e)})),t||u}function Ls(e,t){return!Is(t)&&Cs(e)}function js(e,t,n,r,i){const o=e;return o.members=t,o.properties=u,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==x&&(o.properties=Os(t)),o}function Js(e,t,n,r,i){return js(Ns(16,e),t,n,r,i)}function zs(e,t){let n;for(let r=e;r;r=r.parent){if(f_(r)&&r.locals&&!of(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 307:if(!af(r))break;case 267:const e=fs(r);if(n=t((null==e?void 0:e.exports)||x,void 0,!0,r))return n;break;case 263:case 231:case 264:let i;if((fs(r).members||x).forEach(((e,t)=>{788968&e.flags&&(i||(i=td())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(ye,void 0,!0)}function $s(e){return 111551===e?111551:1920}function qs(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const o=na(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=zs(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s?QB(s):0}|${n}`;if(a.has(c))return a.get(c);const l=YB(e);let u=i.get(l);u||i.set(l,u=[]);const _=zs(t,d);return a.set(c,_),_;function d(n,i,o){if(!pe(u,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];const a=ld(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(Cx(n)&&t&&XI(Cd(t)))&&(!r||X(n.declarations,Pm))&&(!o||!X(n.declarations,Nm))&&(i||!Z_(n,281))){const e=m(n,Ja(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(ps(n.exportSymbol),void 0,i))return[e]}));return a||(n===ye?m(De,De,i):void 0)}(n,i,o);return u.pop(),a}function p(e,n){return!Us(e,t,n)||!!qs(e.parent,t,$s(n),r,i)}function f(t,r,i){return(e===(r||t)||ps(e)===ps(r||t))&&!X(t.declarations,Ys)&&(i||p(ps(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=ls(t),o=i&&d(i,!0);return o&&p(e,$s(n))?[e].concat(o):void 0}}function Us(e,t,n){let r=!1;return zs(t,(t=>{let i=ps(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!Z_(i,281);return i=o?Ja(i):i,!!((o?za(i):i.flags)&n)&&(r=!0,!0)})),r}function Vs(e,t){return 0===Ks(e,t,111551,!1,!0).accessibility}function Ws(e,t,n){return 0===Ks(e,t,n,!1,!1).accessibility}function Hs(e,t,n,r,i,o){if(!p(e))return;let a,s=!1;for(const c of e){const e=qs(c,t,r,!1);if(e){a=c;const t=Zs(e[0],i);if(t)return t}if(o&&X(c.declarations,Ys)){if(i){s=!0;continue}return{accessibility:0}}const l=Hs(ys(c,t,r),t,n,n===c?$s(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:nc(n,t,r),errorModuleName:a!==n?nc(a,t,1920):void 0}:void 0}function Gs(e,t,n,r){return Ks(e,t,n,r,!0)}function Ks(e,t,n,r,i){if(e&&t){const o=Hs([e],t,e,n,r,i);if(o)return o;const a=f(e.declarations,Xs);return a&&a!==Xs(t)?{accessibility:2,errorSymbolName:nc(e,t,n),errorModuleName:nc(a),errorNode:jm(t)?t:void 0}:{accessibility:1,errorSymbolName:nc(e,t,n)}}return{accessibility:0}}function Xs(e){const t=yc(e,Qs);return t&&fs(t)}function Qs(e){return fp(e)||307===e.kind&&af(e)}function Ys(e){return mp(e)||307===e.kind&&af(e)}function Zs(e,t){let n;if(k(P(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!Pc(t)){const o=va(t);if(o&&!Lv(o,32)&&Pc(o.parent))return r(t,o);if(ZF(t)&&LF(t.parent.parent)&&!Lv(t.parent.parent,32)&&Pc(t.parent.parent.parent))return r(t,t.parent.parent);if(Ap(t)&&!Lv(t,32)&&Pc(t.parent))return r(t,t);if(ZE(t)){if(2097152&e.flags&&jm(t)&&(null==(n=t.parent)?void 0:n.parent)&&ZF(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&LF(t.parent.parent.parent.parent)&&!Lv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&Pc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=yc(t,LF);return!!Lv(e,32)||!!Pc(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(ra(e).isVisible=!0,n=fe(n,r)),!0}}function ec(e){let t;return t=186===e.parent.kind||233===e.parent.kind&&!Af(e.parent)||167===e.parent.kind||182===e.parent.kind&&e.parent.parameterName===e?1160127:166===e.kind||211===e.kind||271===e.parent.kind||166===e.parent.kind&&e.parent.left===e||211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e?1920:788968,t}function tc(e,t,n=!0){const r=ec(e),i=mb(e),o=ze(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&gv(i)&&0===Gs(fs(sm(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?Zs(o,n)||{accessibility:1,errorSymbolName:np(i),errorNode:i}:{accessibility:3,errorSymbolName:np(i),errorNode:i}}function nc(e,t,n,r=4,i){let o=70221824,a=0;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(a|=4),16&r&&(a|=1);const s=4&r?_e.symbolToNode:_e.symbolToEntityName;return i?c(i).getText():dd(c);function c(r){const i=s(e,n,t,o,a),c=307===(null==t?void 0:t.kind)?mq():fq(),l=t&&Cd(t);return c.writeNode(4,i,l,r),r}}function rc(e,t,n=0,r,i){return i?o(i).getText():dd(o);function o(i){let o;o=262144&n?1===r?185:184:1===r?180:179;const a=_e.signatureToSignatureDeclaration(e,o,t,70222336|uc(n)),s=gq(),c=t&&Cd(t);return s.writeNode(4,a,c,$y(i)),i}}function ic(e,t,n=1064960,r=zy("")){const i=F.noErrorTruncation||1&n,o=_e.typeToTypeNode(e,t,70221824|uc(n)|(i?1:0),void 0);if(void 0===o)return gn.fail("should always get typenode");const a=e!==Pt?fq():pq(),s=t&&Cd(t);a.writeNode(4,o,s,r);const c=r.getText(),l=i?2*Y_:2*Q_;return l&&c&&c.length>=l?c.substr(0,l-3)+"...":c}function oc(e,t){let n=cc(e.symbol)?ic(e,e.symbol.valueDeclaration):ic(e),r=cc(t.symbol)?ic(t,t.symbol.valueDeclaration):ic(t);return n===r&&(n=sc(e),r=sc(t)),[n,r]}function sc(e){return ic(e,void 0,64)}function cc(e){return e&&!!e.valueDeclaration&&Qu(e.valueDeclaration)&&!vk(e.valueDeclaration)}function uc(e=0){return 848330095&e}function dc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===s_(e.symbol)||524288&e.flags&&16777216&Tx(e)))}function fc(e){return TS(e)}function mc(e,t,n=16384,r){return r?i(r).getText():dd(i);function i(r){const i=70222336|uc(n),o=_e.typePredicateToTypePredicateNode(e,t,i),a=fq(),s=t&&Cd(t);return a.writeNode(4,o,s,r),r}}function gc(e){return 2===e?"private":4===e?"protected":"public"}function vc(e){return e&&e.parent&&268===e.parent.kind&&bp(e.parent.parent)}function Dc(e){return 307===e.kind||fp(e)}function wc(e,t){const n=na(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return Ss(e,DS(F))||HT(e)?HT(e)&&en(e,"-")?`[${e}]`:e:`"${Ey(e,34)}"`}if(8192&n.flags)return`[${Fc(n.symbol,t)}]`}}function Fc(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(YB(e)))&&(e=t.remappedSymbolReferences.get(YB(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&yc(e.declarations[0],Dc)!==yc(t.enclosingDeclaration,Dc)))return"default";if(e.declarations&&e.declarations.length){let n=g(e.declarations,(e=>Ac(e)?e:void 0));const r=n&&Ac(n);if(n&&r){if(iF(n)&&lg(n))return Cc(e);if(dE(r)&&!(4096&_x(e))){const n=na(e).nameType;if(n&&384&n.flags){const n=wc(e,t);if(void 0!==n)return n}}return Mp(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return Mp(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=wc(e,t);return void 0!==r?r:Cc(e)}function Pc(e){if(e){const t=ra(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 338:case 346:case 340:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&QN(e.parent.parent.parent));case 208:return Pc(e.parent.parent);case 260:if(Fu(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(bp(e))return!0;const t=zc(e);return 32&L$(e)||271!==e.kind&&307!==t.kind&&33554432&t.flags?Pc(t):of(t);case 172:case 171:case 177:case 178:case 174:case 173:if(Ov(e,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return Pc(e.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function Ic(e,t){let n,r,i;return 11!==e.kind&&e.parent&&277===e.parent.kind?n=ze(e,e,2998271,void 0,!1):281===e.parent.kind&&(n=Oa(e.parent,2998271)),n&&(i=new Set,i.add(YB(n)),function e(n){f(n,(n=>{const o=va(n)||n;if(t?ra(n).isVisible=!0:(r=r||[],pe(r,o)),Om(n)){const t=mb(n.moduleReference),r=ze(n,t.escapedText,901119,void 0,!1);r&&i&&W(i,YB(r))&&e(r.declarations)}}))}(n.declarations)),r}function Rc(e,t){const n=Mc(e,t);if(n>=0){const{length:e}=Mi;for(let t=n;t=zi;n--){if(Bc(Mi[n],Ji[n]))return-1;if(Mi[n]===e&&Ji[n]===t)return n}return-1}function Bc(e,t){switch(t){case 0:return!!na(e).type;case 2:return!!na(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!na(e).writeType;case 8:return void 0!==ra(e).parameterInitializerContainsUndefined}return gn.assertNever(t)}function Jc(){return Mi.pop(),Ji.pop(),Bi.pop()}function zc(e){return yc(oy(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function qc(e,t){const n=Uf(e,t);return n?Tu(n):void 0}function Uc(e,t){var n;let r;return qc(e,t)||(r=null==(n=Bm(e,t))?void 0:n.type)&&_l(r,!0,!0)}function Wc(e){return e&&!!(1&e.flags)}function Hc(e){return e===Nt||!!(1&e.flags&&e.aliasSymbol)}function Gc(e,t){if(0!==t)return pl(e,!1,t);const n=fs(e);return n&&na(n).type||pl(e,!1,t)}function Kc(e,t,n){if(131072&(e=yF(e,(e=>!(98304&e.flags)))).flags)return wn;if(1048576&e.flags)return CF(e,(e=>Kc(e,t,n)));let r=Ib(O(t,Kb));const i=[],o=[];for(const t of Ep(e)){const e=Xb(t,8576);Fk(e,r)||6&dx(t)||!lS(t)?o.push(e):i.push(t)}if(xx(e)||Sx(r)){if(o.length&&(r=Ib([r,...o])),131072&r.flags)return e;const t=($r||($r=qy("Omit",2,!0)||vt),$r===vt?void 0:$r);return t?py(t,[e,r]):Nt}const a=td();for(const e of i)a.set(e.escapedName,_S(e,!1));const s=Js(n,a,u,u,bm(e));return s.objectFlags|=4194304,s}function Xc(e){return!!(465829888&e.flags)&&$R(Zp(e)||Ot,32768)}function Qc(e){return Zw(pF(e,Xc)?CF(e,(e=>465829888&e.flags?uf(e):e)):e,524288)}function Yc(e,t){const n=Zc(e);return n?yN(n,t):t}function Zc(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return Zc(t);case 209:return Zc(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&zg(t)&&t.flowNode){const n=el(e);if(n){const r=fI(yI.createStringLiteral(n),e),i=Vu(t)?t:yI.createParenthesizedExpression(t),o=fI(yI.createElementAccessExpression(i,r),e);return LT(r,o),LT(o,e),i!==t&<(i,o),o.flowNode=t.flowNode,o}}}function el(e){const t=e.parent;return 208===e.kind&&206===t.kind?nl(e.propertyName||e.name):303===e.kind||304===e.kind?nl(e.name):""+t.elements.indexOf(e)}function nl(e){const t=Kb(e);return 384&t.flags?""+t.value:void 0}function ol(e){const t=e.dotDotDotToken?32:0,n=Gc(e.parent.parent,t);return n&&al(e,n,!1)}function al(e,t,n){if(Wc(t))return t;const r=e.parent;U&&33554432&e.flags&&iy(e)?t=gD(t):U&&r.parent.initializer&&!Kw(ME(r.parent.initializer),65536)&&(t=Zw(t,524288));const i=32|(n||WA(e)?16:0);let o;if(206===r.kind)if(e.dotDotDotToken){if(2&(t=wf(t)).flags||!rI(t))return Oo(e,ha.Rest_types_may_only_be_created_from_object_types),Nt;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=Kc(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=Yc(e,Ix(t,Kb(n),i,n))}else{const n=sB(65|(e.dotDotDotToken?0:128),t,Lt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=CF(t,(e=>58982400&e.flags?uf(e):e));o=gF(e,nD)?CF(e,(e=>Yv(e,a))):Dv(n)}else o=MC(t)?Yc(e,Rx(t,hS(a),i,e.name)||Nt):n}return e.initializer?xv(lc(e))?U&&!Kw(cj(e,0),16777216)?Qc(o):o:uj(e,Ib([Qc(o),cj(e,0)],2)):o}function sl(e){const t=ll(e);if(t)return TS(t)}function ul(e){const t=ph(e,!0);return 209===t.kind&&0===t.elements.length}function _l(e,t=!1,n=!0){return U&&n?mD(e,t):e}function pl(e,t,n){if(ZF(e)&&249===e.parent.parent.kind){const t=ex(BI(Ej(e.parent.parent.expression,n)));return 4456448&t.flags?tx(t):qt}if(ZF(e)&&250===e.parent.parent.kind)return aB(e.parent.parent)||Dt;if(Fu(e.parent))return ol(e);const r=hE(e)&&!zv(e)||gE(e)||RP(e),i=t&&rC(e),o=Hl(e);if(pp(e))return o?Wc(o)||o===Ot?o:Nt:re?Ot:Dt;if(o)return _l(o,r,i);if((Z||jm(e))&&ZF(e)&&!Fu(e.name)&&!(32&L$(e))&&!(33554432&e.flags)){if(!(6&R$(e))&&(!e.initializer||function(e){const t=ph(e,!0);return 106===t.kind||80===t.kind&&Ew(t)===Ce}(e.initializer)))return wt;if(e.initializer&&ul(e.initializer))return lr}if(fE(e)){if(!e.symbol)return;const t=e.parent;if(178===t.kind&&od(t)){const n=Z_(fs(e.parent),177);if(n){const r=mg(n),i=m$(t);return i&&e===i?(gn.assert(!i.type),Tu(r.thisParameter)):jg(r)}}const n=function(e,t){const n=gg(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?QL(n,r):KL(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?YP(t):ZP(e);if(r)return _l(r,!1,i)}if(M_(e)&&e.initializer){if(jm(e)&&!fE(e)){const t=Pl(e,fs(e),Ym(e));if(t)return t}return _l(uj(e,cj(e,n)),r,i)}if(hE(e)&&(Z||jm(e))){if(jv(e)){const t=P(e.parent.members,bE),n=t.length?function(e,t){const n=en(e.escapedName,"__#")?oD.createPrivateIdentifier(e.escapedName.split("@")[1]):Sc(e.escapedName);for(const r of t){const t=oD.createPropertyAccessExpression(oD.createThis(),n);LT(t.expression,t),LT(t,r),t.flowNode=r.returnFlowNode;const i=El(t,e);if(!Z||i!==wt&&i!==lr||Oo(e.valueDeclaration,ha.Member_0_implicitly_has_an_1_type,nc(e),ic(i)),!gF(i,MI))return UM(i)}}(e.symbol,t):128&Hv(e)?tC(e.symbol):void 0;return n&&_l(n,!0,i)}{const t=CC(e.parent),n=t?Sl(e.symbol,t):128&Hv(e)?tC(e.symbol):void 0;return n&&_l(n,!0,i)}}return MN(e)?Kt:Fu(e.name)?jl(e.name,!1,!0):void 0}function ml(e){if(e.valueDeclaration&&hF(e.valueDeclaration)){const t=na(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!xl(e)&&k(e.declarations,(t=>hF(t)&&sA(t)&&(212!==t.left.kind||qh(t.left.argumentExpression))&&!Al(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function vl(e){const t=e.valueDeclaration;return t&&hE(t)&&!xv(t)&&!t.initializer&&(Z||jm(t))}function xl(e){if(e.declarations)for(const t of e.declarations){const e=sm(t,!1,!1);if(e&&(176===e.kind||bL(e)))return e}}function Sl(e,t){const n=en(e.escapedName,"__#")?oD.createPrivateIdentifier(e.escapedName.split("@")[1]):Sc(e.escapedName),r=oD.createPropertyAccessExpression(oD.createThis(),n);LT(r.expression,r),LT(r,t),r.flowNode=t.returnFlowNode;const i=El(r,e);return!Z||i!==wt&&i!==lr||Oo(e.valueDeclaration,ha.Member_0_implicitly_has_an_1_type,nc(e),ic(i)),gF(i,MI)?void 0:UM(i)}function El(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!vl(t)||128&Hv(t.valueDeclaration))&&tC(t)||Lt;return yN(e,wt,n)}function Nl(e,t){const n=Zm(e.valueDeclaration);if(n){const t=jm(n)?cl(n):void 0;return t&&t.typeExpression?TS(t.typeExpression):e.valueDeclaration&&Pl(e.valueDeclaration,e,n)||YC(aj(n))}let r,i=!1,o=!1;if(ml(e)&&(r=Sl(e,xl(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=hF(r)||iF(r)?r:Px(r)?hF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=Px(s)?yg(s):cg(s);(4===c||hF(s)&&sA(s,c))&&(Ll(s)?i=!0:o=!0),iF(s)||(a=Al(a,s,e,r)),a||(n||(n=[])).push(hF(s)||iF(s)?Il(e,t,s,c):cn)}r=a}if(!r){if(!p(n))return Nt;let t=i&&e.declarations?function(e,t){return gn.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=hF(r)?r:hF(r.parent)?r.parent:void 0;return i&&Ll(i)}))}(n,e.declarations):void 0;if(o){const n=tC(e);n&&((t||(t=[])).push(n),i=!0)}r=Ib(X(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=RD(_l(r,!1,o&&!i));return e.valueDeclaration&&jm(e.valueDeclaration)&&yF(a,(e=>!!(-98305&e.flags)))===cn?(BD(e.valueDeclaration,Dt),Dt):a}function Pl(e,t,n){var r,i;if(!jm(e)||!n||!tF(n)||n.properties.length)return;const o=td();for(;hF(e)||nF(e);){const t=ms(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&ea(o,t.exports),e=hF(e)?e.parent:e.parent.parent}const a=ms(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&ea(o,a.exports);const s=Js(t,o,u,u,u);return s.objectFlags|=4096,s}function Al(e,t,n,r){var i;const o=xv(t.parent);if(o){const t=RD(TS(o));if(!e)return t;Hc(e)||Hc(t)||kk(e,t)||GM(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=hs(n.parent);if(e.valueDeclaration){const t=xv(e.valueDeclaration);if(t){const e=Uf(TS(t),n.escapedName);if(e)return Cu(e)}}}return e}function Il(e,t,n,r){if(iF(n)){if(t)return Tu(t);const e=aj(n.arguments[2]),r=qc(e,"value");if(r)return r;const i=qc(e,"get");if(i){const e=jO(i);if(e)return jg(e)}const o=qc(e,"set");if(o){const e=jO(o);if(e)return iR(e)}return Dt}if(function(e,t){return nF(e)&&110===e.expression.kind&&UI(t,(t=>Aw(e,t)))}(n.left,n.right))return Dt;const i=1===r&&(nF(n.left)||rF(n.left))&&(sg(n.left.expression)||Xw(n.left.expression)&&og(n.left.expression)),o=t?Tu(t):i?fS(aj(n.right)):YC(aj(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=Tp(o),r=td();_d(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=td()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&Cd(e.valueDeclaration)!==Cd(i.valueDeclaration)){const t=Sc(e.escapedName),r=(null==(n=at(i.valueDeclaration,Nc))?void 0:n.name)||i.valueDeclaration;pT(Oo(e.valueDeclaration,ha.Duplicate_identifier_0,t),Up(r,ha._0_was_also_declared_here,t)),pT(Oo(r,ha.Duplicate_identifier_0,t),Up(e.valueDeclaration,ha._0_was_also_declared_here,t))}const o=Uo(e.flags|i.flags,t);o.links.type=Ib([Tu(e),Tu(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=Y(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Qo(e,i))}));const a=Js(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&Tx(o))){a.aliasSymbol=o.symbol;const e=uy(o);a.aliasTypeArguments=p(e)?e:void 0}return a.objectFlags|=Zh([o])|20608&Tx(o),a.symbol&&32&a.symbol.flags&&o===s_(a.symbol)&&(a.objectFlags|=16777216),a}return $C(o)?(BD(n,cr),cr):o}function Ll(e){const t=sm(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!bg(t.parent)}function Rl(e,t,n){return e.initializer?_l(_j(e,cj(e,0,Fu(e.name)?jl(e.name,!0,!1):Ot))):Fu(e.name)?jl(e.name,t,n):(n&&!Ul(e)&&BD(e,Dt),t?At:Dt)}function jl(e,t=!1,n=!1){t&&Ni.push(e);const r=206===e.kind?function(e,t,n){const r=td();let i,o=131200;f(e.elements,(e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=Ah(qt,Dt,!1));const s=Kb(a);if(!fC(s))return void(o|=512);const c=mC(s),l=Uo(4|(e.initializer?16777216:0),c);l.links.type=Rl(e,t,n),r.set(l.escapedName,l)}));const a=Js(void 0,r,u,u,i?[i]:u);return a.objectFlags|=o,t&&(a.pattern=e,a.objectFlags|=131072),a}(e,t,n):function(e,t,n){const r=e.elements,i=ke(r),o=i&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return A>=2?Sv(Dt):cr;const a=O(r,(e=>kF(e)?Dt:Rl(e,t,n))),s=w(r,(e=>!(e===o||kF(e)||WA(e))),r.length-1)+1;let c=Gv(a,O(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=cy(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n);return t&&Ni.pop(),r}function Ml(e,t){return ql(pl(e,!0,0),e,t)}function Bl(e){const t=ra(e);if(!t.resolvedType){const n=Uo(4096,"__importAttributes"),r=td();f(e.elements,(e=>{const t=Uo(4,bC(e));t.parent=n,t.links.type=function(e){return fS(aj(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)}));const i=Js(n,r,u,u,u);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}function $l(e){const t=ms(e),n=(r=!1,pr||(pr=Jy("SymbolConstructor",r)));var r;return n&&t&&t===n}function ql(e,t,n){return e?(4096&e.flags&&$l(t.parent)&&(e=bS(t)),n&&JD(t,e),8192&e.flags&&(ZE(t)||!t.type)&&e.symbol!==fs(t)&&(e=nn),RD(e)):(e=fE(t)&&t.dotDotDotToken?cr:Dt,n&&(Ul(t)||BD(t,e)),e)}function Ul(e){const t=oy(e);return Xj(169===t.kind?t.parent:t)}function Hl(e){const t=xv(e);if(t)return TS(t)}function Xl(e){const t=na(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=y_(gs(e));return t.typeParameters?ny(t,O(t.typeParameters,(e=>Dt))):t}(e);if(e===Oe)return Dt;if(134217728&e.flags&&e.valueDeclaration){const t=fs(Cd(e.valueDeclaration)),n=Uo(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=td();return r.set("exports",n),Js(e,r,u,u,u)}gn.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(QN(t)&&sf(t))return t.statements.length?RD(YC(Ej(t.statements[0].expression))):wn;if(vu(t))return eu(e);if(!Rc(e,0))return 512&e.flags&&!(67108864&e.flags)?ou(e):mu(e);let n;if(277===t.kind)n=ql(Hl(t)||aj(t.expression),t);else if(hF(t)||jm(t)&&(iF(t)||(nF(t)||pg(t))&&hF(t.parent)))n=Nl(e);else if(nF(t)||rF(t)||Xw(t)||q_(t)||Pw(t)||nN(t)||tN(t)||vE(t)&&!Wf(t)||yE(t)||QN(t)){if(9136&e.flags)return ou(e);n=hF(t.parent)?Nl(e):Hl(t)||Dt}else if(HN(t))n=Hl(t)||mj(t);else if(MN(t))n=Hl(t)||aI(t);else if(GN(t))n=Hl(t)||fj(t.name,0);else if(Wf(t))n=Hl(t)||gj(t,0);else if(fE(t)||hE(t)||gE(t)||ZF(t)||ZE(t)||Ol(t))n=Ml(t,!0);else if(oN(t))n=ou(e);else{if(!XN(t))return gn.fail("Unhandled declaration kind! "+gn.formatSyntaxKind(t.kind)+" for "+gn.formatSymbol(e));n=lu(e)}return Jc()?n:512&e.flags&&!(67108864&e.flags)?ou(e):mu(e)}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(ZE(t)&&(t=lc(t)),!!fE(t)&&xk(t.parent))}(e)||(t.type=n),n}return t.type}function Ql(e){if(e)switch(e.kind){case 177:return kv(e);case 178:return Cv(e);case 172:return gn.assert(zv(e)),xv(e)}}function Zl(e){const t=Ql(e);return t&&TS(t)}function eu(e){const t=na(e);if(!t.type){if(!Rc(e,0))return Nt;const n=Z_(e,177),r=Z_(e,178),i=at(Z_(e,172),bu);let o=n&&jm(n)&&sl(n)||Zl(n)||Zl(r)||Zl(i)||n&&n.body&&TR(n)||i&&Ml(i,!0);o||(r&&!Xj(r)?jo(Z,r,ha.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,nc(e)):n&&!Xj(n)?jo(Z,n,ha.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,nc(e)):i&&!Xj(i)&&jo(Z,i,ha.Member_0_implicitly_has_an_1_type,nc(e),"any"),o=Dt),Jc()||(Ql(n)?Oo(n,ha._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,nc(e)):Ql(r)||Ql(i)?Oo(r,ha._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,nc(e)):n&&Z&&Oo(n,ha._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,nc(e)),o=Dt),t.type??(t.type=o)}return t.type}function ru(e){const t=na(e);if(!t.writeType){if(!Rc(e,7))return Nt;const n=Z_(e,178)??at(Z_(e,172),bu);let r=Zl(n);Jc()||(Ql(n)&&Oo(n,ha._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,nc(e)),r=Dt),t.writeType??(t.writeType=r||eu(e))}return t.writeType}function iu(e){const t=Ku(s_(e));return 8650752&t.flags?t:2097152&t.flags?T(t.types,(e=>!!(8650752&e.flags))):void 0}function ou(e){let t=na(e);const n=t;if(!t.type){const r=e.valueDeclaration&&SL(e.valueDeclaration,!1);if(r){const n=xL(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&hp(e))return Dt;if(t&&(226===t.kind||Px(t)&&226===t.parent.kind))return Nl(e);if(512&e.flags&&t&&QN(t)&&t.commonJsModuleIndicator){const t=ts(e);if(t!==e){if(!Rc(e,0))return Nt;const n=ps(e.exports.get("export=")),r=Nl(n,n===t?void 0:t);return Jc()?r:mu(e)}}const n=Ns(16,e);if(32&e.flags){const t=iu(e);return t?zb([n,t]):n}return U&&16777216&e.flags?mD(n,!0):n}(e)}return t.type}function lu(e){const t=na(e);return t.type||(t.type=m_(e))}function fu(e){const t=na(e);if(!t.type){if(!Rc(e,0))return Nt;const n=Ja(e),r=e.declarations&&ja(ba(e),!0),i=g(null==r?void 0:r.declarations,(e=>SN(e)?Hl(e):void 0));if(t.type??(t.type=(null==r?void 0:r.declarations)&&zJ(r.declarations)&&e.declarations.length?function(e){const t=Cd(e.declarations[0]),n=Sc(e.escapedName),r=e.declarations.every((e=>jm(e)&&Px(e)&&sg(e.expression))),i=r?oD.createPropertyAccessExpression(oD.createPropertyAccessExpression(oD.createIdentifier("module"),oD.createIdentifier("exports")),n):oD.createPropertyAccessExpression(oD.createIdentifier("exports"),n);return r&<(i.expression.expression,i.expression),LT(i.expression,i),LT(i,t),i.flowNode=t.endFlowNode,yN(i,wt,Lt)}(r):zJ(e.declarations)?wt:i||(111551&za(n)?Tu(n):Nt)),!Jc())return mu(r??e),t.type??(t.type=Nt)}return t.type}function mu(e){const t=e.valueDeclaration;if(t){if(xv(t))return Oo(e.valueDeclaration,ha._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,nc(e)),Nt;Z&&(169!==t.kind||t.initializer)&&Oo(e.valueDeclaration,ha._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,nc(e))}else if(2097152&e.flags){const t=ba(e);t&&Oo(t,ha.Circular_definition_of_import_alias_0,nc(e))}return Dt}function Su(e){const t=na(e);return t.type||(gn.assertIsDefined(t.deferralParent),gn.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?Ib(t.deferralConstituents):zb(t.deferralConstituents)),t.type}function ku(e){const t=_x(e);return 4&e.flags?2&t?65536&t?function(e){const t=na(e);return!t.writeType&&t.deferralWriteConstituents&&(gn.assertIsDefined(t.deferralParent),gn.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?Ib(t.deferralWriteConstituents):zb(t.deferralWriteConstituents)),t.writeType}(e)||Su(e):e.links.writeType||e.links.type:xD(Tu(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=na(e);return t.writeType||(t.writeType=fk(ku(t.target),t.mapper))}(e):ru(e):Tu(e)}function Tu(e){const t=_x(e);return 65536&t?Su(e):1&t?function(e){const t=na(e);return t.type||(t.type=fk(Tu(t.target),t.mapper))}(e):262144&t?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!Rc(e,0))return n.containsError=!0,Nt;const i=fk(rp(n.target||n),ZS(n.mapper,Xd(n),e.links.keyType));let o=U&&16777216&e.flags&&!$R(i,49152)?mD(i,!0):524288&e.links.checkFlags?DD(i):i;Jc()||(Oo(r,ha.Type_of_property_0_circularly_references_itself_in_mapped_type_1,nc(e),ic(n)),o=Nt),(t=e.links).type??(t.type=o)}return e.links.type}(e):8192&t?function(e){const t=na(e);return t.type||(t.type=iw(e.links.propertyType,e.links.mappedType,e.links.constraintType)||Ot),t.type}(e):7&e.flags?Xl(e):9136&e.flags?ou(e):8&e.flags?lu(e):98304&e.flags?eu(e):2097152&e.flags?fu(e):Nt}function Cu(e){return xD(Tu(e),!!(16777216&e.flags))}function Eu(e,t){if(void 0===e||!(4&Tx(e)))return!1;for(const n of t)if(e.target===n)return!0;return!1}function Pu(e,t){return void 0!==e&&void 0!==t&&!!(4&Tx(e))&&e.target===t}function Au(e){return 4&Tx(e)?e.target:e}function Iu(e,t){return function e(n){if(7&Tx(n)){const r=Au(n);return r===t||X(e_(r),e)}return!!(2097152&n.flags)&&X(n.types,e)}(e)}function Ou(e,t){for(const n of t)e=fe(e,g_(fs(n)));return e}function Lu(e,t){for(;;){if((e=e.parent)&&hF(e)){const t=cg(e);if(6===t||3===t){const t=fs(e.left);t&&t.parent&&!yc(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;const n=e.kind;switch(n){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{const r=Lu(e,t);if((218===n||219===n||Wf(e))&&vk(e)){const t=ve(Xf(Tu(fs(e)),0));if(t&&t.typeParameters)return[...r||u,...t.typeParameters]}if(200===n)return le(r,g_(fs(e.typeParameter)));if(194===n)return Y(r,Wx(e));const i=Ou(r,hl(e)),o=t&&(263===n||231===n||264===n||bL(e))&&s_(fs(e)).thisType;return o?le(i,o):i}case 341:const r=Wg(e);r&&(e=r.valueDeclaration);break;case 320:{const n=Lu(e,t);return e.tags?Ou(n,M(e.tags,(e=>IP(e)?e.typeParameters:void 0))):n}}}}function Ru(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return gn.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Lu(n)}function ju(e){if(!e.declarations)return;let t;for(const n of e.declarations)(264===n.kind||263===n.kind||231===n.kind||bL(n)||Rg(n))&&(t=Ou(t,hl(n)));return t}function Mu(e){const t=Xf(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&iJ(e)){const t=$L(e.parameters[0]);return Wc(t)||jC(t)===Dt}}return!1}function Uu(e){if(Xf(e,1).length>0)return!0;if(8650752&e.flags){const t=Zp(e);return!!t&&Mu(t)}return!1}function Wu(e){const t=kx(e.symbol);return t&&Ch(t)}function Hu(e,t,n){const r=p(t),i=jm(n);return P(Xf(e,1),(e=>(i||r>=_g(e.typeParameters))&&r<=p(e.typeParameters)))}function Gu(e,t,n){const r=Hu(e,t,n),i=O(t,TS);return R(r,(e=>X(e.typeParameters)?Ug(e,i,jm(n)):e))}function Ku(e){if(!e.resolvedBaseConstructorType){const t=kx(e.symbol),n=t&&Ch(t),r=Wu(e);if(!r)return e.resolvedBaseConstructorType=Lt;if(!Rc(e,1))return Nt;const i=Ej(r.expression);if(n&&r!==n&&(gn.assert(!n.typeArguments),Ej(n.expression)),2621440&i.flags&&Tp(i),!Jc())return Oo(e.symbol.valueDeclaration,ha._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,nc(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Nt);if(!(1&i.flags||i===$t||Uu(i))){const t=Oo(r.expression,ha.Type_0_is_not_a_constructor_function_type,ic(i));if(262144&i.flags){const e=Bh(i);let n=Ot;if(e){const t=Xf(e,1);t[0]&&(n=jg(t[0]))}i.symbol.declarations&&pT(t,Up(i.symbol.declarations[0],ha.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,nc(i.symbol),ic(n)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Nt)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=i)}return e.resolvedBaseConstructorType}function Xu(e,t){Oo(e,ha.Type_0_recursively_references_itself_as_a_base_type,ic(t,void 0,2))}function e_(e){if(!e.baseTypesResolved){if(Rc(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[o_(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=K_;const t=Sf(Ku(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=u;const n=Wu(e);let r;const i=t.symbol?y_(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=uy(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=dy(n,t.symbol);else if(1&t.flags)r=t;else{const i=Gu(t,n.typeArguments,n);if(!i.length)return Oo(n.expression,ha.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=u;r=jg(i[0])}if(Hc(r))return e.resolvedBaseTypes=u;const o=wf(r);if(!a_(o)){const t=sS(If(void 0,r),ha.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ic(o));return _o.add(Hp(Cd(n.expression),n.expression,t)),e.resolvedBaseTypes=u}if(e===o||Iu(o,e))return Oo(e.symbol.valueDeclaration,ha.Type_0_recursively_references_itself_as_a_base_type,ic(e,void 0,2)),e.resolvedBaseTypes=u;e.resolvedBaseTypes===K_&&(e.members=void 0),e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||u,e.symbol.declarations)for(const t of e.symbol.declarations)if(264===t.kind&&Fh(t))for(const n of Fh(t)){const r=wf(TS(n));Hc(r)||(a_(r)?e===r||Iu(r,e)?Xu(t,e):e.resolvedBaseTypes===u?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):Oo(n,ha.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):gn.fail("type must be class or interface"),!Jc()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||Xu(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function o_(e){return Dv(Ib(R(e.typeParameters,((t,n)=>8&e.elementFlags[n]?Ix(t,Ut):t))||u),e.readonly)}function a_(e){if(262144&e.flags){const t=Zp(e);if(t)return a_(t)}return!!(67633153&e.flags&&!gp(e)||2097152&e.flags&&k(e.types,a_))}function s_(e){let t=na(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=xL(e,e.valueDeclaration&&function(e){var t;const n=e&&SL(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&hF(t)&&vb(t.left)&&64===t.operatorToken.kind){const e=vg(t);return tF(e)&&e}}(r.valueDeclaration);return i?fs(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Ns(r,e),a=Ru(e),s=ju(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=Fh(t);if(e)for(const t of e)if(fb(t.expression)){const e=Ha(t.expression,788968,!0);if(!e||!(64&e.flags)||s_(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=Y(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set($h(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=Ps(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function c_(e){var t;const n=na(e);if(!n.declaredType){if(!Rc(e,2))return Nt;const r=gn.checkDefined(null==(t=e.declarations)?void 0:t.find(Rg),"Type alias symbol with no valid declaration found"),i=Lg(r)?r.typeExpression:r.type;let o=i?TS(i):Nt;if(Jc()){const t=ju(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set($h(t),o)),o===It&&"BuiltinIteratorReturn"===e.escapedName&&(o=cv())}else o=Nt,340===r.kind?Oo(r.typeExpression.type,ha.Type_alias_0_circularly_references_itself,nc(e)):Oo(Nc(r)&&r.name||r,ha.Type_alias_0_circularly_references_itself,nc(e));n.declaredType??(n.declaredType=o)}return n.declaredType}function l_(e){return 1056&e.flags&&8&e.symbol.flags?y_(gs(e.symbol)):e}function u_(e){const t=na(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(od(r)){const t=fs(r),i=Oz(r).value,o=pS(void 0!==i?vS(i,YB(e),t):__(t));na(t).declaredType=o,n.push(fS(o))}const r=n.length?Ib(n,1,e,void 0):__(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function __(e){const t=ws(32,e),n=ws(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function m_(e){const t=na(e);if(!t.declaredType){const n=u_(gs(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function g_(e){const t=na(e);return t.declaredType||(t.declaredType=Ps(e))}function y_(e){return v_(e)||Nt}function v_(e){return 96&e.flags?s_(e):524288&e.flags?c_(e):262144&e.flags?g_(e):384&e.flags?u_(e):8&e.flags?m_(e):2097152&e.flags?function(e){const t=na(e);return t.declaredType||(t.declaredType=y_(Ja(e)))}(e):void 0}function x_(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return x_(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(x_)}return!1}function S_(e){const t=yl(e);return!t||x_(t)}function k_(e){const t=xv(e);return t?x_(t):!j_(e)}function T_(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return k_(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=kv(e),n=hl(e);return(176===e.kind||!!t&&x_(t))&&e.parameters.every(k_)&&n.every(S_)}(t)}}return!1}function D_(e,t,n){const r=td();for(const i of e)r.set(i.escapedName,n&&T_(i)?i:ak(i,t));return r}function F_(e,t){for(const n of t){if(P_(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&hF(t.valueDeclaration)&&!ml(t)&&!im(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function P_(e){return!!e.valueDeclaration&&tu(e.valueDeclaration)&&Rv(e.valueDeclaration)}function A_(e){if(!e.declaredProperties){const t=e.symbol,n=pd(t);e.declaredProperties=Os(n),e.declaredCallSignatures=u,e.declaredConstructSignatures=u,e.declaredIndexInfos=u,e.declaredCallSignatures=kg(n.get("__call")),e.declaredConstructSignatures=kg(n.get("__new")),e.declaredIndexInfos=Ih(t)}return e}function B_(e){return $_(e)&&fC(dE(e)?XA(e):aj(e.argumentExpression))}function z_(e){return $_(e)&&Fk(dE(e)?XA(e):aj(e.argumentExpression),hn)}function $_(e){return!(!dE(e)&&!rF(e))&&fb(dE(e)?e.expression:e.argumentExpression)}function H_(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function G_(e){const t=Ac(e);return!!t&&B_(t)}function id(e){const t=Ac(e);return!!t&&z_(t)}function od(e){return!Vh(e)||G_(e)}function ad(e,t,n,r){gn.assert(!!r.symbol,"The member is expected to have a symbol.");const i=ra(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=hF(r)?r.left:r.name,a=rF(o)?aj(o.argumentExpression):XA(o);if(fC(a)){const s=mC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Uo(0,s,4096));const u=t&&t.get(s);if(!(32&e.flags)&&l.flags&Go(c)){const e=u?Y(u.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&Sc(s)||Mp(o);f(e,(e=>Oo(Ac(e)||e,ha.Property_0_was_also_declared_here,t))),Oo(o||r,ha.Duplicate_property_0,t),l=Uo(0,s,4096)}return l.links.nameType=a,function(e,t,n){gn.assert(!!(4096&_x(e)),"Expected a late-bound symbol."),e.flags|=n,na(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(l,r,c),l.parent?gn.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function sd(e,t,n,r){let i=n.get("__index");if(!i){const e=null==t?void 0:t.get("__index");e?(i=Xo(e),i.links.checkFlags|=4096):i=Uo(0,"__index",4096),n.set("__index",i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function cd(e,t){const n=na(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?ds(e).exports:e.exports:e.members;n[t]=i||x;const o=td();for(const t of e.declarations||u){const n=jf(t);if(n)for(const t of n)r===jv(t)&&(G_(t)?ad(e,i,o,t):id(t)&&sd(0,i,o,t))}const a=hs(e).assignmentDeclarationMembers;if(a){const t=Be(a.values());for(const n of t){const t=cg(n);r===!(3===t||hF(n)&&sA(n,t)||9===t||6===t)&&G_(n)&&ad(e,i,o,n)}}let s=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=td();return ea(n,e),ea(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=na(n.symbol)[t];s?e&&e.forEach(((e,t)=>{const n=s.get(t);if(n){if(n===e)return;s.set(t,Qo(n,e))}else s.set(t,e)})):s=e}n[t]=s||x}return n[t]}function pd(e){return 6256&e.flags?cd(e,"resolvedMembers"):e.members||x}function fd(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=na(e);if(!t.lateSymbol&&X(e.declarations,G_)){const t=ps(e.parent);X(e.declarations,jv)?ls(t):pd(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function md(e,t,n){if(4&Tx(e)){const n=e.target,r=uy(e);return p(n.typeParameters)===p(r)?ny(n,Y(r,[t||n.thisType])):e}if(2097152&e.flags){const r=R(e.types,(e=>md(e,t,n)));return r!==e.types?zb(r):e}return n?Sf(e):e}function gd(e,t,n,r){let i,o,a,s,c;he(n,r,0,n.length)?(o=t.symbol?pd(t.symbol):td(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=BS(n,r),o=D_(t.declaredProperties,i,1===n.length),a=OS(t.declaredCallSignatures,i),s=OS(t.declaredConstructSignatures,i),c=MS(t.declaredIndexInfos,i));const l=e_(t);if(l.length){if(t.symbol&&o===pd(t.symbol)){const e=td(t.declaredProperties),n=Eh(t.symbol);n&&e.set("__index",n),o=e}js(e,o,a,s,c);const n=ke(r);for(const e of l){const t=n?md(fk(e,i),n):e;F_(o,Ep(t)),a=Y(a,Xf(t,0)),s=Y(s,Xf(t,1));const r=t!==Dt?bm(t):[Ah(qt,Dt,!1)];c=Y(c,P(r,(e=>!Yf(c,e.keyType))))}}js(e,o,a,s,c)}function hd(e,t,n,r,i,o,a,s){const c=new l(qe,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function bd(e){const t=hd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function xd(e,t){const n=bd(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function Sd(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){gn.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=bd(e);return n.flags|=t,n}(e,t))}function kd(e,t){if(iJ(e)){const r=e.parameters.length-1,i=e.parameters[r],o=Tu(i);if(nD(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&k(o.types,nD))return O(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=uy(t),o=function(e,t){const n=O(e.target.labeledElementDeclarations,((n,r)=>UL(n,r,e.target.elementFlags[r],t)));if(n){const e=[],t=new Set;for(let r=0;r{const a=o&&o[i]?o[i]:VL(e,n+i,t),s=t.target.elementFlags[i],c=Uo(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?Dv(r):r,c}));return Y(e.parameters.slice(0,n),a)}}function Fd(e,t,n,r,i){for(const o of e)if(EC(o,t,n,r,i,n?Dk:Tk))return o}function Nd(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Fd(t,n,!1,!1,!0)){const i=Nd(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=f(i,(e=>e.thisParameter));r&&(t=FD(r,zb(q(i,(e=>e.thisParameter&&Tu(e.thisParameter)))))),e=xd(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!p(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(gn.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&X(i,(t=>!!t.typeParameters&&!Ad(e.typeParameters,t.typeParameters)))?void 0:O(i,(t=>Ld(t,e))),!i)break}t=i}return t||u}function Ad(e,t){if(p(e)!==p(t))return!1;if(!e||!t)return!0;const n=BS(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=tR(e)||tR(t),l=c&&!tR(o),u=new Array(s+(l?1:0));for(let _=0;_=eR(o)&&_>=eR(a),h=_>=r?void 0:VL(e,_),y=_>=i?void 0:VL(t,_),v=Uo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${_}`,m?32768:g?16384:0);v.links.type=m?Dv(f):f,u[_]=v}if(l){const e=Uo(1,"args",32768);e.links.type=Dv(KL(a,s)),a===t&&(e.links.type=fk(e.links.type,n)),u[s]=e}return u}(e,t,r),s=ke(a);s&&32768&_x(s)&&(i|=1);const c=function(e,t,n){return e&&t?FD(e,zb([Tu(e),fk(Tu(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=hd(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=1048576,l.compositeSignatures=Y(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?l.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?QS(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(l.mapper=e.mapper),l}function Rd(e){const t=bm(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;k(e,(e=>!!xm(e,t)))&&n.push(Ah(t,Ib(O(e,(e=>Sm(e,t)))),X(e,(e=>xm(e,t).isReadonly))))}return n}return u}function jd(e,t){return e?t?zb([e,t]):e:t}function Md(e){const t=N(e,(e=>Xf(e,1).length>0)),n=O(e,Mu);if(t>0&&t===N(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function Bd(e,t,n,r){const i=[];for(let o=0;o!EC(e,n,!1,!1,!1,Tk)))||(e=le(e,n));return e}function zd(e,t,n){if(e)for(let r=0;r{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&k(t.declarations,fp)||e.set(t.escapedName,t)})),i=e}if(js(e,i,u,u,u),32&t.flags){const e=Ku(s_(t));11272192&e.flags?(i=td(function(e){const t=Os(e),n=Nh(e);return n?Y(t,[n]):t}(i)),F_(i,Ep(e))):e===Dt&&(r=Ah(qt,Dt,!1))}const o=Nh(i);if(o?n=Oh(o,Be(i.values())):(r&&(n=le(n,r)),384&t.flags&&(32&y_(t).flags||X(e.properties,(e=>!!(296&Tu(e).flags))))&&(n=le(n,_i))),js(e,i,u,u,n||u),8208&t.flags&&(e.callSignatures=kg(t)),32&t.flags){const n=s_(t);let r=t.members?kg(t.members.get("__constructor")):u;16&t.flags&&(r=de(r.slice(),q(e.callSignatures,(e=>bL(e.declaration)?hd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),r.length||(r=function(e){const t=Xf(Ku(e),1),n=kx(e.symbol),r=!!n&&Lv(n,64);if(0===t.length)return[hd(void 0,e.localTypeParameters,void 0,u,e,void 0,0,r?4:0)];const i=Wu(e),o=jm(i),a=Oy(i),s=p(a),c=[];for(const n of t){const t=_g(n.typeParameters),i=p(n.typeParameters);if(o||s>=t&&s<=i){const s=i?eh(n,dg(a,n.typeParameters,t,o)):bd(n);s.typeParameters=e.localTypeParameters,s.resolvedReturnType=e,s.flags=r?4|s.flags:-5&s.flags,c.push(s)}}return c}(n)),e.constructSignatures=r}}function qd(e,t,n){return fk(e,BS([t.indexType,t.objectType],[hS(0),Gv([n])]))}function Ud(e){const t=xm(e.source,qt),n=lp(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[Ah(qt,iw(t.type,e.mappedType,e.constraintType)||Ot,r&&t.isReadonly)]:u,a=td(),s=function(e){const t=Qd(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!(n&&2097152&n.flags))return;const r=zb(n.types.filter((t=>t!==e.constraintType)));return r!==cn?r:void 0}(e);for(const t of Ep(e.source)){if(s&&!Fk(Xb(t,8576),s))continue;const n=8192|(r&&LR(t)?8:0),o=Uo(4|t.flags&i,t.escapedName,n);if(o.declarations=t.declarations,o.links.nameType=na(t).nameType,o.links.propertyType=Tu(t),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=qd(e.mappedType,e.constraintType.type,t);o.links.mappedType=n,o.links.constraintType=ex(t)}else o.links.mappedType=e.mappedType,o.links.constraintType=e.constraintType;a.set(t.escapedName,o)}js(e,a,u,u,o)}function Vd(e){if(4194304&e.flags){const t=Sf(e.type);return rD(t)?Zv(t):ex(t)}if(16777216&e.flags){if(e.root.isDistributive){const t=e.checkType,n=Vd(t);if(n!==t)return pk(e,YS(e.root.checkType,n,e.mapper),!1)}return e}if(1048576&e.flags)return CF(e,Vd,!0);if(2097152&e.flags){const t=e.types;return 2===t.length&&76&t[0].flags&&t[1]===Pn?e:zb(R(e.types,Vd))}return e}function Wd(e){return 4096&_x(e)}function Hd(e,t,n,r){for(const n of Ep(e))r(Xb(n,t));if(1&e.flags)r(qt);else for(const t of bm(e))(!n||134217732&t.keyType.flags)&&r(t.keyType)}function Gd(e){const t=td();let n;js(e,x,u,u,u);const r=Xd(e),i=Qd(e),o=e.target||e,a=tp(o),s=2!==xp(o),c=rp(o),l=Sf(cp(e)),_=lp(e);function d(i){_F(a?fk(a,ZS(e.mapper,r,i)):i,(o=>function(i,o){if(fC(o)){const n=mC(o),r=t.get(n);if(r)r.links.nameType=Ib([r.links.nameType,o]),r.links.keyType=Ib([r.links.keyType,i]);else{const r=fC(i)?Uf(l,mC(i)):void 0,a=!!(4&_||!(8&_)&&r&&16777216&r.flags),c=!!(1&_||!(2&_)&&r&&LR(r)),u=U&&!a&&r&&16777216&r.flags,d=Uo(4|(a?16777216:0),n,262144|(r?Wd(r):0)|(c?8:0)|(u?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=s?r.declarations:void 0),t.set(n,d)}}else if(Lh(o)||33&o.flags){const t=5&o.flags?qt:40&o.flags?Ut:o,a=fk(c,ZS(e.mapper,r,i)),s=Lm(l,o),u=Ah(t,a,!!(1&_||!(2&_)&&(null==s?void 0:s.isReadonly)));n=zd(n,u,!0)}}(i,o)))}ap(e)?Hd(l,8576,!1,d):_F(Vd(i),d),js(e,t,u,u,n||u)}function Xd(e){return e.typeParameter||(e.typeParameter=g_(fs(e.declaration.typeParameter)))}function Qd(e){return e.constraintType||(e.constraintType=Np(Xd(e))||Nt)}function tp(e){return e.declaration.nameType?e.nameType||(e.nameType=fk(TS(e.declaration.nameType),e.mapper)):void 0}function rp(e){return e.templateType||(e.templateType=e.declaration.type?fk(_l(TS(e.declaration.type),!0,!!(4&lp(e))),e.mapper):Nt)}function op(e){return yl(e.declaration.typeParameter)}function ap(e){const t=op(e);return 198===t.kind&&143===t.operator}function cp(e){if(!e.modifiersType)if(ap(e))e.modifiersType=fk(TS(op(e).type),e.mapper);else{const t=Qd(Mx(e.declaration)),n=t&&262144&t.flags?Np(t):t;e.modifiersType=n&&4194304&n.flags?fk(n.type,e.mapper):Ot}return e.modifiersType}function lp(e){const t=e.declaration;return(t.readonlyToken?41===t.readonlyToken.kind?2:1:0)|(t.questionToken?41===t.questionToken.kind?8:4:0)}function up(e){const t=lp(e);return 8&t?-1:4&t?1:0}function _p(e){if(32&Tx(e))return up(e)||_p(cp(e));if(2097152&e.flags){const t=_p(e.types[0]);return k(e.types,((e,n)=>0===n||_p(e)===t))?t:0}return 0}function gp(e){if(32&Tx(e)){const t=Qd(e);if(Sx(t))return!0;const n=tp(e);if(n&&Sx(fk(n,US(Xd(e),t))))return!0}return!1}function xp(e){const t=tp(e);return t?Fk(t,Xd(e))?1:2:0}function Tp(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=A_(e.target),n=Y(t.typeParameters,[t.thisType]),r=uy(e);gd(e,t,n,r.length===n.length?r:Y(r,[e]))}(e):3&e.objectFlags?function(e){gd(e,A_(e),u,u)}(e):1024&e.objectFlags?Ud(e):16&e.objectFlags?$d(e):32&e.objectFlags?Gd(e):gn.fail("Unhandled object type "+gn.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Pd(O(e.types,(e=>e===Kn?[ci]:Xf(e,0)))),n=Pd(O(e.types,(e=>Xf(e,1)))),r=Rd(e.types);js(e,x,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=Md(i),a=N(o,(e=>e));for(let s=0;s0&&(e=O(e,(e=>{const t=bd(e);return t.resolvedReturnType=Bd(jg(e),i,o,s),t}))),n=Jd(n,e)}t=Jd(t,Xf(c,0)),r=Pe(bm(c),((e,t)=>zd(e,t,!1)),r)}js(e,x,t||u,n||u,r||u)}(e):gn.fail("Unhandled type "+gn.formatTypeFlags(e.flags))),e}function Cp(e){return 524288&e.flags?Tp(e).properties:u}function Dp(e,t){if(524288&e.flags){const n=Tp(e).members.get(t);if(n&&Cs(n))return n}}function wp(e){if(!e.resolvedProperties){const t=td();for(const n of e.types){for(const r of Ep(n))if(!t.has(r.escapedName)){const n=Df(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===bm(n).length)break}e.resolvedProperties=Os(t)}return e.resolvedProperties}function Ep(e){return 3145728&(e=kf(e)).flags?wp(e):Cp(e)}function Fp(e){return 262144&e.flags?Np(e):8388608&e.flags?function(e){return _f(e)?function(e){if(xf(e))return Ax(e.objectType,e.indexType);const t=Op(e.indexType);if(t&&t!==e.indexType){const n=Rx(e.objectType,t,e.accessFlags);if(n)return n}const n=Op(e.objectType);return n&&n!==e.objectType?Rx(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?Xp(e):Zp(e)}function Np(e){return _f(e)?Bh(e):void 0}function Pp(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&X(null==(n=e.symbol)?void 0:n.declarations,(e=>Lv(e,4096)))||3145728&e.flags&&X(e.types,(e=>Pp(e,t)))||8388608&e.flags&&Pp(e.objectType,t+1)||16777216&e.flags&&Pp(Xp(e),t+1)||33554432&e.flags&&Pp(e.baseType,t)||32&Tx(e)&&function(e,t){const n=lk(e);return!!n&&Pp(n,t)}(e,t)||rD(e)&&D(ob(e),((n,r)=>!!(8&e.target.elementFlags[r])&&Pp(n,t)))>=0))}function Op(e){const t=wx(e,!1);return t!==e?t:Fp(e)}function zp(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?fk(TS(e.root.node.trueType),e.combinedMapper):qx(e))}(e),n=Ux(e);e.resolvedDefaultConstraint=Wc(t)?n:Wc(n)?t:Ib([t,n])}return e.resolvedDefaultConstraint}function Wp(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=wx(e.checkType,!1),n=t===e.checkType?Fp(t):t;if(n&&n!==e.checkType){const t=pk(e,YS(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function Kp(e){return Wp(e)||zp(e)}function Xp(e){return _f(e)?Kp(e):void 0}function Zp(e){if(464781312&e.flags||rD(e)){const t=df(e);return t!==Rn&&t!==jn?t:void 0}return 4194304&e.flags?hn:void 0}function uf(e){return Zp(e)||e}function _f(e){return df(e)!==jn}function df(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!Rc(e,4))return jn;let n;const o=xC(e);if((t.length<10||t.length<50&&!E(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=Bh(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){const t=e.types,n=[];let r=!1;for(const e of t){const t=i(e);t?(t!==e&&(r=!0),n.push(t)):r=!0}return r?1048576&e.flags&&n.length===t.length?Ib(n):2097152&e.flags&&n.length?zb(n):void 0:e}if(4194304&e.flags)return hn;if(134217728&e.flags){const t=e.types,n=q(t,i);return n.length===t.length?nx(e.texts,n):qt}if(268435456&e.flags){const t=i(e.type);return t&&t!==e.type?ix(e.symbol,t):qt}if(8388608&e.flags){if(xf(e))return i(Ax(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&Rx(t,n,e.accessFlags);return r&&i(r)}if(16777216&e.flags){const t=Kp(e);return t&&i(t)}return 33554432&e.flags?i(Dy(e)):rD(e)?Gv(O(ob(e),((t,n)=>{const r=262144&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&gF(r,(e=>LC(e)&&!rD(e)))?r:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}(wx(e,!1)),t.pop()),!Jc()){if(262144&e.flags){const t=Rh(e);if(t){const n=Oo(t,ha.Type_parameter_0_has_a_circular_constraint,ic(e));!r||mh(t,r)||mh(r,t)||pT(n,Up(r,ha.Circularity_originates_in_type_at_this_location))}}n=jn}e.immediateBaseConstraint??(e.immediateBaseConstraint=n||Rn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==Rn&&t!==jn?t:void 0}}function pf(e){if(e.default)e.default===Mn&&(e.default=jn);else if(e.target){const t=pf(e.target);e.default=t?fk(t,e.mapper):Rn}else{e.default=Mn;const t=e.symbol&&f(e.symbol.declarations,(e=>pE(e)&&e.default)),n=t?TS(t):Rn;e.default===Mn&&(e.default=n)}return e.default}function ff(e){const t=pf(e);return t!==Rn&&t!==jn?t:void 0}function hf(e){return!(!e.symbol||!f(e.symbol.declarations,(e=>pE(e)&&e.default)))}function vf(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=lk(t);if(n&&!t.declaration.nameType){const r=cp(e),i=gp(r)?vf(r):Zp(r);if(i&&gF(i,(e=>LC(e)||bf(e))))return fk(t,YS(n,i,e.mapper))}return e}(e))}function bf(e){return!!(2097152&e.flags)&&k(e.types,LC)}function xf(e){let t;return!(!(8388608&e.flags&&32&Tx(t=e.objectType)&&!gp(t)&&Sx(e.indexType))||8&lp(t)||t.declaration.nameType)}function Sf(e){const t=465829888&e.flags?Zp(e)||Ot:e,n=Tx(t);return 32&n?vf(t):4&n&&t!==e?md(t,e):2097152&t.flags?function(e,t){if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=md(e,t,!0));const n=`I${lb(e)},${lb(t)}`;return ko(n)??To(n,md(e,t,!0))}(t,e):402653316&t.flags?tr:296&t.flags?nr:2112&t.flags?Ur||(Ur=Wy("BigInt",0,!1))||wn:528&t.flags?rr:12288&t.flags?Zy():67108864&t.flags?wn:4194304&t.flags?hn:2&t.flags&&!U?wn:t}function kf(e){return wf(Sf(wf(e)))}function Tf(e,t,n){var r,i,o;let a,s,c;const l=1048576&e.flags;let u,_=4,d=l?0:8,f=!1;for(const r of e.types){const e=Sf(r);if(!(Hc(e)||131072&e.flags)){const r=Uf(e,t,n),i=r?dx(r):0;if(r){if(106500&r.flags&&(u??(u=l?0:16777216),l?u|=16777216&r.flags:u&=r.flags),a){if(r!==a)if((gJ(r)||r)===(gJ(a)||a)&&-1===wC(a,r,((e,t)=>e===t?-1:0)))f=!!a.parent&&!!p(ju(a.parent));else{s||(s=new Map,s.set(YB(a),a));const e=YB(r);s.has(e)||s.set(e,r)}}else a=r;l&&LR(r)?d|=8:l||LR(r)||(d&=-9),d|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),II(r)||(_=2)}else if(l){const n=!H_(t)&&Bm(e,t);n?(d|=32|(n.isReadonly?8:0),c=le(c,nD(e)?aD(e)||Lt:n.type)):!bw(e)||2097152&Tx(e)?d|=16:(d|=32,c=le(c,Lt))}}}if(!a||l&&(s||48&d)&&1536&d&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{E(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&d||c)){if(f){const t=null==(r=at(a,nd))?void 0:r.links,n=FD(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=ku(a),n}return a}const m=s?Be(s.values()):[a];let g,h,y;const v=[];let b,x,S=!1;for(const e of m){x?e.valueDeclaration&&e.valueDeclaration!==x&&(S=!0):x=e.valueDeclaration,g=de(g,e.declarations);const t=Tu(e);h||(h=t,y=na(e).nameType);const n=ku(e);(b||n!==t)&&(b=le(b||v.slice(),n)),t!==h&&(d|=64),(KC(t)||yx(t))&&(d|=128),131072&t.flags&&t!==kn&&(d|=131072),v.push(t)}de(v,c);const k=Uo(4|(u??0),t,_|d);return k.links.containingType=e,!S&&x&&(k.valueDeclaration=x,x.symbol.parent&&(k.parent=x.symbol.parent)),k.declarations=g,k.links.nameType=y,v.length>2?(k.links.checkFlags|=65536,k.links.deferralParent=e,k.links.deferralConstituents=v,k.links.deferralWriteConstituents=b):(k.links.type=l?Ib(v):zb(v),b&&(k.links.writeType=l?Ib(b):zb(b))),k}function Cf(e,t,n){var r,i,o;let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(i=e.propertyCache)?void 0:i.get(t);return!a&&(a=Tf(e,t,n),a)&&((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=td()):e.propertyCache||(e.propertyCache=td())).set(t,a),!n||48&_x(a)||(null==(o=e.propertyCache)?void 0:o.get(t))||(e.propertyCache||(e.propertyCache=td())).set(t,a)),a}function Df(e,t,n){const r=Cf(e,t,n);return!r||16&_x(r)?void 0:r}function wf(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=R(e.types,wf);if(t===e.types)return e;const n=Ib(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(X(wp(e),Ef)?33554432:0)),33554432&e.objectFlags?cn:e):e}function Ef(e){return Ff(e)||Nf(e)}function Ff(e){return!(16777216&e.flags||192!=(131264&_x(e))||!(131072&Tu(e).flags))}function Nf(e){return!e.valueDeclaration&&!!(1024&_x(e))}function Pf(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&X(e.types,Pf)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=fk(e,Tn));return wf(t)!==t}(e))}function If(e,t){if(2097152&t.flags&&33554432&Tx(t)){const n=T(wp(t),Ff);if(n)return sS(e,ha.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ic(t,void 0,536870912),nc(n));const r=T(wp(t),Nf);if(r)return sS(e,ha.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ic(t,void 0,536870912),nc(r))}return e}function Uf(e,t,n,r){var i,o;if(524288&(e=kf(e)).flags){const a=Tp(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=na(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&Cs(s,r))return s;if(n)return;const c=a===Ln?Kn:a.callSignatures.length?Xn:a.constructSignatures.length?Qn:void 0;if(c){const e=Dp(c,t);if(e)return e}return Dp(Gn,t)}if(2097152&e.flags){const r=Df(e,t,!0);return r||(n?void 0:Df(e,t,n))}if(1048576&e.flags)return Df(e,t,n)}function Vf(e,t){if(3670016&e.flags){const n=Tp(e);return 0===t?n.callSignatures:n.constructSignatures}return u}function Xf(e,t){const n=Vf(kf(e),t);if(0===t&&!p(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(gF(e,(e=>{var t,n;return!(!(null==(t=e.symbol)?void 0:t.parent)||(n=e.symbol.parent,!(n&&Zn.symbol&&er.symbol)||!xs(n,Zn.symbol)&&!xs(n,er.symbol))||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))}))){const n=Dv(CF(e,(e=>JS((Qf(e.symbol.parent)?er:Zn).typeParameters[0],e.mapper))),pF(e,(e=>Qf(e.symbol.parent))));return e.arrayFallbackSignatures=Xf(qc(n,r),t)}e.arrayFallbackSignatures=n}return n}function Qf(e){return!(!e||!er.symbol||!xs(e,er.symbol))}function Yf(e,t){return T(e,(e=>e.keyType===t))}function Zf(e,t){let n,r,i;for(const o of e)o.keyType===qt?n=o:em(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?Ah(Ot,zb(O(i,(e=>e.type))),Pe(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&em(t,qt)?n:void 0)}function em(e,t){return Fk(e,t)||t===qt&&Fk(e,Ut)||t===Ut&&(e===bn||!!(128&e.flags)&&HT(e.value))}function nm(e){return 3670016&e.flags?Tp(e).indexInfos:u}function bm(e){return nm(kf(e))}function xm(e,t){return Yf(bm(e),t)}function Sm(e,t){var n;return null==(n=xm(e,t))?void 0:n.type}function Cm(e,t){return bm(e).filter((e=>em(t,e.keyType)))}function Lm(e,t){return Zf(bm(e),t)}function Bm(e,t){return Lm(e,H_(t)?nn:gS(Sc(t)))}function qm(e){var t;let n;for(const t of hl(e))n=fe(n,g_(t.symbol));return(null==n?void 0:n.length)?n:tN(e)?null==(t=gg(e))?void 0:t.typeParameters:void 0}function Wm(e){const t=[];return e.forEach(((e,n)=>{Is(n)||t.push(e)})),t}function Hm(e,t){if(As(e))return;const n=ia(ye,'"'+e+'"',512);return n&&t?ps(n):n}function Km(e){return Ig(e)||ZT(e)||fE(e)&&nC(e)}function ig(e){if(Km(e))return!0;if(!fE(e))return!1;if(e.initializer){const t=mg(e.parent),n=e.parent.parameters.indexOf(e);return gn.assert(n>=0),n>=eR(t,3)}const t=dm(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=QO(t).length}function ug(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function _g(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;ec.arguments.length&&!_||(o=n.length)}if((177===e.kind||178===e.kind)&&od(e)&&(!s||!r)){const t=177===e.kind?178:177,n=Z_(fs(e),t);n&&(r=function(e){const t=m$(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=FD(Uo(1,"this"),TS(a.typeExpression)));const u=mP(e)?Xg(e):e,_=u&&xE(u)?s_(ps(u.parent.symbol)):void 0,d=_?_.localTypeParameters:qm(e);(V_(e)||jm(e)&&function(e,t){if(mP(e)||!xg(e))return!1;const n=ke(e.parameters),r=n?jc(n):dl(e).filter(FP),i=g(r,(e=>e.typeExpression&&_P(e.typeExpression.type)?e.typeExpression.type:void 0)),o=Uo(3,"args",32768);return i?o.links.type=Dv(TS(i.type)):(o.links.checkFlags|=65536,o.links.deferralParent=cn,o.links.deferralConstituents=[cr],o.links.deferralWriteConstituents=[cr]),i&&t.pop(),t.push(o),!0}(e,n))&&(i|=1),(NE(e)&&Lv(e,64)||xE(e)&&Lv(e.parent,64))&&(i|=4),t.resolvedSignature=hd(e,d,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function gg(e){if(!jm(e)||!du(e))return;const t=cl(e);return(null==t?void 0:t.typeExpression)&&jO(TS(t.typeExpression))}function xg(e){const t=ra(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===Ie.escapedName&&Uz(t)===Ie;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!ay(t)&&!Af(t)&&!!qI(t,e)}}(e.body)),t.containsArgumentsReference}function kg(e){if(!e||!e.declarations)return u;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(jm(r)&&r.jsDoc){const e=Gg(r);if(p(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||xE(r)||BD(e,Dt),t.push(mg(e))}continue}}t.push(!VT(r)&&!Wf(r)&&gg(r)||mg(r))}}return t}function Dg(e){const t=Xa(e,e);if(t){const e=ts(t);if(e)return Tu(e)}return Dt}function wg(e){if(e.thisParameter)return Tu(e.thisParameter)}function Pg(e){if(!e.resolvedTypePredicate){if(e.target){const t=Pg(e.target);e.resolvedTypePredicate=t?ik(t,e.mapper):ai}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=Pg(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Lb(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?jg(i):void 0;if(e!==Wt&&e!==Gt)return}}if(!n)return;const i=Ag(r,t);return ug(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ai;else{const t=e.declaration&&kv(e.declaration);let n;if(!t){const t=gg(e.declaration);t&&e!==t&&(n=Pg(t))}if(t||n)e.resolvedTypePredicate=t&&wE(t)?function(e,t){const n=e.parameterName,r=e.type&&TS(e.type);return 197===n.kind?ug(e.assertsModifier?2:0,void 0,void 0,r):ug(e.assertsModifier?3:1,n.escapedText,D(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||ai;else if(e.declaration&&du(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&ZL(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=ai,e.resolvedTypePredicate=function(e){switch(e.kind){case 176:case 177:case 178:return}if(0!==zh(e))return;let t;if(e.body&&241!==e.body.kind)t=e.body;else if(Of(e.body,(e=>{if(t||!e.expression)return!0;t=e.expression}))||!t||FR(e))return;return function(e,t){return 16&aj(t=ph(t,!0)).flags?f(e.parameters,((n,r)=>{const i=Tu(n.symbol);if(!i||16&i.flags||!Xw(n.name)||DN(n.symbol)||W_(n))return;const o=function(e,t,n,r){const i=zg(t)&&t.flowNode||253===t.parent.kind&&t.parent.flowNode||VM(2,void 0,void 0),o=VM(32,t,i),a=yN(n.name,r,r,e,o);if(a===r)return;const s=VM(64,t,i),c=yN(n.name,r,a,e,s);return 131072&c.flags?a:void 0}(e,t,n,i);return o?ug(1,Sc(n.name.escapedText),r,o):void 0})):void 0}(e,t)}(t)||ai}else e.resolvedTypePredicate=ai}gn.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===ai?void 0:e.resolvedTypePredicate}function Ag(e,t,n){return 2097152!==t?Ib(e,n):zb(e)}function jg(e){if(!e.resolvedReturnType){if(!Rc(e,3))return Nt;let t=e.target?fk(jg(e.target),e.mapper):e.compositeSignatures?fk(Ag(O(e.compositeSignatures,jg),e.compositeKind,2),e.mapper):Mg(e.declaration)||(Id(e.declaration.body)?Dt:TR(e.declaration));if(8&e.flags?t=hD(t):16&e.flags&&(t=mD(t)),!Jc()){if(e.declaration){const t=kv(e.declaration);if(t)Oo(t,ha.Return_type_annotation_circularly_references_itself);else if(Z){const t=e.declaration,n=Ac(t);n?Oo(n,ha._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,Mp(n)):Oo(t,ha.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=Dt}e.resolvedReturnType??(e.resolvedReturnType=t)}return e.resolvedReturnType}function Mg(e){if(176===e.kind)return s_(ps(e.parent.symbol));const t=kv(e);if(mP(e)){const n=Yg(e);if(n&&xE(n.parent)&&!t)return s_(ps(n.parent.parent.symbol))}if(Og(e))return TS(e.parameters[0].type);if(t)return TS(t);if(177===e.kind&&od(e)){const t=jm(e)&&sl(e);if(t)return t;const n=Zl(Z_(fs(e),178));if(n)return n}return function(e){const t=gg(e);return t&&jg(t)}(e)}function Jg(e){return e.compositeSignatures&&X(e.compositeSignatures,Jg)||!e.resolvedReturnType&&Mc(e,3)>=0}function qg(e){if(iJ(e)){const t=Tu(e.parameters[e.parameters.length-1]),n=nD(t)?aD(t):t;return n&&Sm(n,Ut)}}function Ug(e,t,n,r){const i=Vg(e,dg(t,e.typeParameters,_g(e.typeParameters),n));if(r){const e=MO(jg(i));if(e){const t=bd(e);t.typeParameters=r;const n=bd(i);return n.resolvedReturnType=vh(t),n}}return i}function Vg(e,t){const n=e.instantiations||(e.instantiations=new Map),r=$h(t);let i=n.get(r);return i||n.set(r,i=eh(e,t)),i}function eh(e,t){return ok(e,function(e,t){return BS(th(e),t)}(e,t),!0)}function th(e){return R(e.typeParameters,(e=>e.mapper?fk(e,e.mapper):e))}function nh(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return ok(e,XS(e.typeParameters),!0)}(e)):e}function ah(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return Ug(e,O(e.typeParameters,(e=>e.target&&!Np(e.target)?e.target:e)),jm(e.declaration))}(e)):e}function ch(e){return e.typeParameters?e.implementationSignatureCache||(e.implementationSignatureCache=function(e){return e.typeParameters?ok(e,BS([],[])):e}(e)):e}function hh(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=XS(t),r=BS(t,O(t,(e=>Np(e)||Ot)));let i=O(t,(e=>fk(e,r)||Ot));for(let e=0;e{Lh(e)&&!Yf(n,e)&&n.push(Ah(e,t.type?TS(t.type):Dt,Ov(t,8),t))}))}}else if(id(t)){const e=hF(t)?t.left:t.name,u=rF(e)?aj(e.argumentExpression):XA(e);if(Yf(n,u))continue;Fk(u,hn)&&(Fk(u,Ut)?(r=!0,$v(t)||(i=!1)):Fk(u,nn)?(o=!0,$v(t)||(a=!1)):(s=!0,$v(t)||(c=!1)),l.push(t.symbol))}const u=Y(l,P(t,(t=>t!==e)));return s&&!Yf(n,qt)&&n.push(ZA(c,0,u,qt)),r&&!Yf(n,Ut)&&n.push(ZA(i,0,u,Ut)),o&&!Yf(n,nn)&&n.push(ZA(a,0,u,nn)),n}return u}function Lh(e){return!!(4108&e.flags)||yx(e)||!!(2097152&e.flags)&&!bx(e)&&X(e.types,Lh)}function Rh(e){return q(P(e.symbol&&e.symbol.declarations,pE),yl)[0]}function Mh(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(195===n.parent.kind){const[i=n.parent,o]=_h(n.parent.parent);if(183!==o.kind||t){if(169===o.kind&&o.dotDotDotToken||191===o.kind||202===o.kind&&o.dotDotDotToken)r=le(r,Dv(Ot));else if(204===o.kind)r=le(r,qt);else if(168===o.kind&&200===o.parent.kind)r=le(r,hn);else if(200===o.kind&&o.type&&ph(o.type)===n.parent&&194===o.parent.kind&&o.parent.extendsType===o&&200===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=le(r,fk(TS(e.type),US(g_(fs(e.typeParameter)),e.typeParameter.constraint?TS(e.typeParameter.constraint):hn)))}}else{const t=o,n=Uj(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>zj(t,n,r)))));o!==e&&(r=le(r,o))}}}}}return r&&zb(r)}function Bh(e){if(!e.constraint)if(e.target){const t=Np(e.target);e.constraint=t?fk(t,e.mapper):Rn}else{const t=Rh(e);if(t){let n=TS(t);1&n.flags&&!Hc(n)&&(n=200===t.parent.parent.kind?hn:Ot),e.constraint=n}else e.constraint=Mh(e)||Rn}return e.constraint===Rn?void 0:e.constraint}function Jh(e){const t=Z_(e.symbol,168),n=IP(t.parent)?Hg(t.parent):t.parent;return n&&ms(n)}function $h(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function Uh(e,t){return e?`@${YB(e)}`+(t?`:${$h(t)}`:""):""}function Zh(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=Tx(r));return 458752&n}function ey(e,t){return X(t)&&e===On?Ot:ny(e,t)}function ny(e,t){const n=$h(t);let r=e.instantiations.get(n);return r||(r=Ns(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Zh(t):0,r.target=e,r.resolvedTypeArguments=t),r}function cy(e){const t=ws(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function ly(e,t,n,r,i){if(!r){const e=Yx(r=Qx(t));i=n?IS(e,n):e}const o=Ns(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function uy(e){var t,n;if(!e.resolvedTypeArguments){if(!Rc(e,5))return Y(e.target.outerTypeParameters,null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Nt)))||u;const i=e.node,o=i?183===i.kind?Y(e.target.outerTypeParameters,$j(i,e.target.localTypeParameters)):188===i.kind?[TS(i.elementType)]:O(i.elements,TS):u;Jc()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?IS(o,e.mapper):o):(e.resolvedTypeArguments??(e.resolvedTypeArguments=Y(e.target.outerTypeParameters,(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Nt)))||u)),Oo(e.node||r,e.target.symbol?ha.Type_arguments_for_0_circularly_reference_themselves:ha.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&nc(e.target.symbol)))}return e.resolvedTypeArguments}function _y(e){return p(e.target.typeParameters)}function dy(e,t){const n=y_(ps(t)),r=n.localTypeParameters;if(r){const t=p(e.typeArguments),i=_g(r),o=jm(e);if((Z||!o)&&(tr.length)){const t=o&&TF(e)&&!gP(e.parent);if(Oo(e,i===r.length?t?ha.Expected_0_type_arguments_provide_these_with_an_extends_tag:ha.Generic_type_0_requires_1_type_argument_s:t?ha.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:ha.Generic_type_0_requires_between_1_and_2_type_arguments,ic(n,void 0,2),i,r.length),!o)return Nt}return 183===e.kind&&Pv(e,p(e.typeArguments)!==r.length)?ly(n,e,void 0):ny(n,Y(n.outerTypeParameters,dg(Oy(e),r,i,o)))}return Py(e,t)?n:Nt}function py(e,t,n,r){const i=y_(e);if(i===It){const n=GB.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?xy(t[0]):ix(e,t[0])}const o=na(e),a=o.typeParameters,s=$h(t)+Uh(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=mk(i,BS(a,dg(t,a,_g(a),jm(e.valueDeclaration))),n,r)),c}function fy(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Rg);return!(!n||!tm(n))}function my(e){return e.parent?`${my(e.parent)}.${e.escapedName}`:e.escapedName}function yy(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?yy(e.left):211===e.kind?yy(e.expression):void 0,r=n?`${my(n)}.${t}`:t;let i=St.get(r);return i||(St.set(r,i=Uo(524288,t,1048576)),i.parent=n,i.links.declaredType=Pt),i}return vt}function vy(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(fb(t))return t}}(e);if(!r)return vt;const i=Ha(r,t,n);return i&&i!==vt?i:n?vt:yy(r)}function by(e,t){if(t===vt)return Nt;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!jm(t)||524288&e.flags||eg(t,!1))return;const n=ZF(t)?Ym(t):Zm(t);if(n){const t=ms(n);if(t)return xL(t,e)}}(t)||t).flags)return dy(e,t);if(524288&t.flags)return function(e,t){if(1048576&_x(t)){const n=Oy(e),r=Uh(t,n);let i=kt.get(r);return i||(i=Fs(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,kt.set(r,i)),i}const n=y_(t),r=na(t).typeParameters;if(r){const n=p(e.typeArguments),i=_g(r);if(nr.length)return Oo(e,i===r.length?ha.Generic_type_0_requires_1_type_argument_s:ha.Generic_type_0_requires_between_1_and_2_type_arguments,nc(t),i,r.length),Nt;const o=Qx(e);let a,s=!o||!fy(t)&&fy(o)?void 0:o;if(s)a=Yx(s);else if(J_(e)){const t=vy(e,2097152,!0);if(t&&t!==vt){const n=Ja(t);n&&524288&n.flags&&(s=n,a=Oy(e)||(r?[]:void 0))}}return py(t,Oy(e),s,a)}return Py(e,t)?n:Nt}(e,t);const n=v_(t);if(n)return Py(e,t)?fS(n):Nt;if(111551&t.flags&&Ny(e)){const n=function(e,t){const n=ra(e);if(!n.resolvedJSDocType){const r=Tu(t);let i=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=by(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(vy(e,788968),Tu(t))}return Nt}function xy(e){return Sy(e)?Cy(e,Ot):e}function Sy(e){return!!(3145728&e.flags&&X(e.types,Sy)||33554432&e.flags&&!ky(e)&&Sy(e.baseType)||524288&e.flags&&!Kk(e)||432275456&e.flags&&!yx(e))}function ky(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function Ty(e,t){return 3&t.flags||t===e||1&e.flags?e:Cy(e,t)}function Cy(e,t){const n=`${lb(e)}>${lb(t)}`,r=dt.get(n);if(r)return r;const i=Ds(33554432);return i.baseType=e,i.constraint=t,dt.set(n,i),i}function Dy(e){return ky(e)?e.baseType:zb([e.constraint,e.baseType])}function wy(e){return 189===e.kind&&1===e.elements.length}function Fy(e,t,n){return wy(t)&&wy(n)?Fy(e,t.elements[0],n.elements[0]):Bx(TS(t))===Bx(e)?TS(n):void 0}function Ny(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function Py(e,t){return!e.typeArguments||(Oo(e,ha.Type_0_is_not_generic,t?nc(t):e.typeName?Mp(e.typeName):MB),!1)}function Ay(e){if(Xw(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return Py(e),qt;case"Number":return Py(e),Ut;case"Boolean":return Py(e),Yt;case"Void":return Py(e),rn;case"Undefined":return Py(e),Lt;case"Null":return Py(e),zt;case"Function":case"function":return Py(e),Kn;case"array":return t&&t.length||Z?void 0:cr;case"promise":return t&&t.length||Z?void 0:xR(Dt);case"Object":if(t&&2===t.length){if(zm(e)){const e=TS(t[0]),n=TS(t[1]),r=e===qt||e===Ut?[Ah(e,n,!1)]:u;return Js(void 0,x,u,u,r)}return Dt}return Py(e),Z?void 0:Dt}}}function Iy(e){const t=ra(e);if(!t.resolvedType){if(Fl(e)&&Yu(e.parent))return t.resolvedSymbol=vt,t.resolvedType=aj(e.parent.expression);let n,r;const i=788968;Ny(e)&&(r=Ay(e),r||(n=vy(e,i,!0),n===vt?n=vy(e,111551|i):vy(e,i),r=by(e,n))),r||(n=vy(e,i),r=by(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Oy(e){return O(e.typeArguments,TS)}function Ly(e){const t=ra(e);if(!t.resolvedType){const n=RL(e);t.resolvedType=fS(RD(n))}return t.resolvedType}function My(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 263:case 264:case 266:return e}}if(!e)return t?On:wn;const r=y_(e);return 524288&r.flags?p(r.typeParameters)!==t?(Oo(n(e),ha.Global_type_0_must_have_1_type_parameter_s,Cc(e),t),t?On:wn):r:(Oo(n(e),ha.Global_type_0_must_be_a_class_or_interface_type,Cc(e)),t?On:wn)}function By(e,t){return Vy(e,111551,t?ha.Cannot_find_global_value_0:void 0)}function Jy(e,t){return Vy(e,788968,t?ha.Cannot_find_global_type_0:void 0)}function qy(e,t,n){const r=Vy(e,788968,n?ha.Cannot_find_global_type_0:void 0);if(!r||(y_(r),p(na(r).typeParameters)===t))return r;Oo(r.declarations&&T(r.declarations,iN),ha.Global_type_0_must_have_1_type_parameter_s,Cc(r),t)}function Vy(e,t,n){return ze(void 0,e,t,n,!1,!1)}function Wy(e,t,n){const r=Jy(e,n);return r||n?My(r,t):void 0}function Hy(e,t){let n;for(const r of e)n=le(n,Wy(r,t,!1));return n??u}function Gy(){return Lr||(Lr=Wy("ImportMeta",0,!0)||wn)}function Ky(){if(!Rr){const e=Uo(0,"ImportMetaExpression"),t=Gy(),n=Uo(4,"meta",8);n.parent=e,n.links.type=t;const r=td([n]);e.members=r,Rr=Js(e,r,u,u,u)}return Rr}function Xy(e){return jr||(jr=Wy("ImportCallOptions",0,e))||wn}function Qy(e){return Mr||(Mr=Wy("ImportAttributes",0,e))||wn}function Yy(e){return dr||(dr=By("Symbol",e))}function Zy(){return fr||(fr=Wy("Symbol",0,!1))||wn}function ev(e){return gr||(gr=Wy("Promise",1,e))||On}function tv(e){return hr||(hr=Wy("PromiseLike",1,e))||On}function nv(e){return yr||(yr=By("Promise",e))}function iv(e){return wr||(wr=Wy("AsyncIterable",3,e))||On}function ov(e){return Fr||(Fr=Wy("AsyncIterableIterator",3,e))||On}function av(e){return br||(br=Wy("Iterable",3,e))||On}function sv(e){return Sr||(Sr=Wy("IterableIterator",3,e))||On}function cv(){return Q?Lt:Dt}function lv(e){return Br||(Br=Wy("Disposable",0,e))||wn}function uv(e,t=0){const n=Vy(e,788968,void 0);return n&&My(n,t)}function pv(e){return qr||(qr=qy("Awaited",1,e)||(e?vt:void 0)),qr===vt?void 0:qr}function vv(e,t){return e!==On?ny(e,t):wn}function bv(e){return vv(mr||(mr=Wy("TypedPropertyDescriptor",1,!0)||On),[e])}function Sv(e){return vv(av(!0),[e,rn,Lt])}function Dv(e,t){return vv(t?er:Zn,[e])}function wv(e){switch(e.kind){case 190:return 2;case 191:return Ev(e);case 202:return e.questionToken?2:e.dotDotDotToken?Ev(e):1;default:return 1}}function Ev(e){return kS(e.type)?4:8}function Fv(e){const t=function(e){return UE(e)&&148===e.operator}(e.parent);return kS(e)?t?er:Zn:Kv(O(e.elements,wv),t,O(e.elements,Nv))}function Nv(e){return LE(e)||fE(e)?e:void 0}function Pv(e,t){return!!Qx(e)||Vv(e)&&(188===e.kind?Wv(e.elementType):189===e.kind?X(e.elements,Wv):t||X(e.typeArguments,Wv))}function Vv(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return Vv(t);case 265:return!0}return!1}function Wv(e){switch(e.kind){case 183:return Ny(e)||!!(524288&vy(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&Wv(e.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return Wv(e.type);case 191:return 188!==e.type.kind||Wv(e.type.elementType);case 192:case 193:return X(e.types,Wv);case 199:return Wv(e.objectType)||Wv(e.indexType);case 194:return Wv(e.checkType)||Wv(e.extendsType)||Wv(e.trueType)||Wv(e.falseType)}return!1}function Gv(e,t,n=!1,r=[]){const i=Kv(t||O(e,(e=>1)),n,r);return i===On?wn:e.length?Xv(i,e):i}function Kv(e,t,n){if(1===e.length&&4&e[0])return t?er:Zn;const r=O(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(X(n,(e=>!!e))?","+O(n,(e=>e?QB(e):"_")).join(","):"");let i=Ke.get(r);return i||Ke.set(r,i=function(e,t,n){const r=e.length,i=N(e,(e=>!!(9&e)));let o;const a=[];let s=0;if(r){o=new Array(r);for(let i=0;i!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return qb(O(t,((t,n)=>8&e.elementFlags[n]?t:Ot)))?CF(t[n],(r=>Qv(e,Ee(t,n,r)))):Nt}const s=[],c=[],l=[];let u=-1,_=-1,d=-1;for(let c=0;c=1e4)return Oo(r,Af(r)?ha.Type_produces_a_tuple_type_that_is_too_large_to_represent:ha.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Nt;f(e,((e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])}))}else m(MC(l)&&Sm(l,Ut)||Nt,4,null==(o=e.labeledElementDeclarations)?void 0:o[c]);else m(l,u,null==(a=e.labeledElementDeclarations)?void 0:a[c])}for(let e=0;e=0&&_8&c[_+t]?Ix(e,Ut):e))),s.splice(_+1,d-_),c.splice(_+1,d-_),l.splice(_+1,d-_));const p=Kv(c,e.readonly,l);return p===On?wn:c.length?ny(p,s):p;function m(e,t,n){1&t&&(u=c.length),4&t&&_<0&&(_=c.length),6&t&&(d=c.length),s.push(2&t?_l(e,!0):e),c.push(t),l.push(n)}}function Yv(e,t,n=0){const r=e.target,i=_y(e)-n;return t>r.fixedLength?function(e){const t=aD(e);return t&&Dv(t)}(e)||Gv(u):Gv(uy(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function Zv(e){return Ib(le(Me(e.target.fixedLength,(e=>gS(""+e))),ex(e.target.readonly?er:Zn)))}function rb(e,t){return e.elementFlags.length-w(e.elementFlags,(e=>!(e&t)))-1}function ib(e){return e.fixedLength+rb(e,3)}function ob(e){const t=uy(e),n=_y(e);return t.length===n?t:t.slice(0,n)}function lb(e){return e.id}function db(e,t){return Fe(e,t,lb,Tt)>=0}function Cb(e,t){const n=Fe(e,t,lb,Tt);return n<0&&(e.splice(~n,0,t),!0)}function Db(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&Tx(n)&&(t|=536870912),n===Et&&(t|=8388608),Hc(n)&&(t|=1073741824),!U&&98304&r)65536&Tx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Fe(e,n,lb,Tt);r<0&&e.splice(~r,0,n)}return t}function wb(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?wb(e,t|(Nb(i)?1048576:0),i.types):Db(e,t,i),r=i);return t}function Fb(e,t){return 134217728&t.flags?mw(e,t):dw(e,t)}function Nb(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function Pb(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?pe(e,n):t&&1048576&t.flags&&Pb(e,t.types)}}function Ab(e,t){const n=Es(e);return n.types=t,n}function Ib(e,t=1,n,r,i){if(0===e.length)return cn;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id=2&&a[0]===Lt&&a[1]===jt&&Ht(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||mS(i)&&db(e,i.regularType))&&Ht(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=P(e,yx);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&X(t,(e=>Fb(r,e)))&&Ht(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&Tx(n)){const e=8650752&n.types[0].flags?0:1;pe(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&Tx(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&Cb(t,r.types[1-e])}if(gF(Zp(n),(e=>db(t,e)))){let r=e.length;for(;r>0;){r--;const i=e[r];if(2097152&i.flags&&67108864&Tx(i)){const o=8650752&i.types[0].flags?0:1;i.types[o]===n&&db(t,i.types[1-o])&&Ht(e,r)}}Cb(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=$h(e),o=pt.get(i);if(o)return o;const a=t&&X(e,(e=>!!(524288&e.flags)&&!gp(e)&&Hk(Tp(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&uf(t).flags){tT(t,Ib(O(e,(e=>e===t?cn:e))),go)&&Ht(e,c);continue}const i=61603840&t.flags?T(Ep(t),(e=>HC(Tu(e)))):void 0,o=i&&fS(Tu(i));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=Yn)||n.instant(Yn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void Oo(r,ha.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&61603840&a.flags){const e=qc(a,i.escapedName);if(e&&HC(e)&&fS(e)!==o)continue}if(tT(t,a,go)&&(!(1&Tx(Au(t)))||!(1&Tx(Au(a)))||Nk(t,a))){Ht(e,c);break}}}}return pt.set(i,e),e}(a,!!(524288&s)),!a))return Nt;if(0===a.length)return 65536&s?4194304&s?zt:$t:32768&s?4194304&s?Lt:Rt:cn}if(!o&&1048576&s){const t=[];Pb(t,e);const r=[];for(const e of a)X(t,(t=>db(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(Pe(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)Cb(r,e);o=Ab(1048576,r)}}return Rb(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,i,o)}function Lb(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Rb(e,t,n,r,i){if(0===e.length)return cn;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${$h(i.types)}`:2097152&i.flags?`&${$h(i.types)}`:`#${i.type.id}|${$h(e)}`:$h(e))+Uh(n,r);let a=Ye.get(o);return a||(a=Ds(1048576),a.objectFlags=t|Zh(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),Ye.set(o,a)),a}function jb(e,t,n){const r=n.flags;return 2097152&r?Mb(e,t,n.types):(Kk(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?(n===Et&&(t|=8388608),Hc(n)&&(t|=1073741824)):!U&&98304&r||(n===jt&&(t|=262144,n=Lt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function Mb(e,t,n){for(const r of n)t=jb(e,t,fS(r));return t}function Bb(e,t){for(const n of e)if(!db(n.types,t)){if(t===jt)return db(n.types,Lt);if(t===Lt)return db(n.types,jt);const e=128&t.flags?qt:288&t.flags?Ut:2048&t.flags?Vt:8192&t.flags?nn:void 0;if(!e||!db(n.types,e))return!1}return!0}function Jb(e,t){for(let n=0;n!(e.flags&t)))}function zb(e,t=0,n,r){const i=new Map,o=Mb(i,0,e),a=Be(i.values());let s=0;if(131072&o)return E(a,un)?un:cn;if(U&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return cn;if(402653184&o&&128&o&&function(e){let t=e.length;const n=P(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const i of n){if(wk(i,r)){Ht(e,t);break}if(yx(r))return!0}}return!1}(a))return cn;if(1&o)return 8388608&o?Et:1073741824&o?Nt:Dt;if(!U&&98304&o)return 16777216&o?cn:32768&o?Lt:zt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||Kk(r)&&470302716&t)&&Ht(e,n)}}(a,o)),262144&o&&(a[a.indexOf(Lt)]=jt),0===a.length)return Ot;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!vx(n)||16777216&o)){const e=Zp(t);if(e&&gF(e,(e=>!!(469893116&e.flags)||Kk(e)))){if(Ek(e,n))return t;if(!(1048576&e.flags&&pF(e,(e=>Ek(e,n)))||Ek(n,e)))return cn;s=67108864}}}const c=$h(a)+(2&t?"*":Uh(n,r));let l=et.get(c);if(!l){if(1048576&o)if(function(e){let t;const n=D(e,(e=>!!(32768&Tx(e))));if(n<0)return!1;let r=n+1;for(;r!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=X(a,kD)?jt:Lt;Jb(a,32768),l=Ib([zb(a,t),e],1,n,r)}else if(k(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))Jb(a,65536),l=Ib([zb(a,t),zt],1,n,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);l=zb([zb(a.slice(0,e),t),zb(a.slice(e),t)],t,n,r)}else{if(!qb(a))return Nt;const e=function(e,t){const n=$b(e),r=[];for(let i=0;i=0;t--)if(1048576&e[t].flags){const r=e[t].types,i=r.length;n[t]=r[o%i],o=Math.floor(o/i)}const a=zb(n,t);131072&a.flags||r.push(a)}return r}(a,t);l=Ib(e,1,n,r,X(e,(e=>!!(2097152&e.flags)))&&Vb(e)>Vb(a)?Ab(2097152,a):void 0)}else l=function(e,t,n,r){const i=Ds(2097152);return i.objectFlags=t|Zh(e,98304),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);et.set(c,l)}return l}function $b(e){return Pe(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function qb(e){var t;const n=$b(e);return!(n>=1e5&&(null==(t=Yn)||t.instant(Yn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),Oo(r,ha.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Ub(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Ub(e.origin):Vb(e.types):1}function Vb(e){return Pe(e,((e,t)=>e+Ub(t)),0)}function Wb(e,t){const n=Ds(4194304);return n.type=e,n.indexFlags=t,n}function Hb(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Wb(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Wb(e,0))}function Gb(e,t){const n=Xd(e),r=Qd(e),i=tp(e.target||e);if(!(i||2&t))return r;const o=[];if(Sx(r)){if(ap(e))return Hb(e,t);_F(r,s)}else ap(e)?Hd(Sf(cp(e)),8576,!!(1&t),s):_F(Vd(r),s);const a=2&t?yF(Ib(o),(e=>!(5&e.flags))):Ib(o);return 1048576&a.flags&&1048576&r.flags&&$h(a.types)===$h(r.types)?r:a;function s(t){const r=i?fk(i,ZS(e.mapper,n,t)):t;o.push(r===qt?mn:r)}}function Kb(e){if(Qw(e))return cn;if(Pw(e))return fS(Ej(e));if(dE(e))return fS(XA(e));const t=Hh(e);return void 0!==t?gS(Sc(t)):Qu(e)?fS(Ej(e)):cn}function Xb(e,t,n){if(n||!(6&dx(e))){let n=na(fd(e)).nameType;if(!n){const t=Ac(e.valueDeclaration);n="default"===e.escapedName?gS("default"):t&&Kb(t)||(Yh(e)?void 0:gS(Cc(e)))}if(n&&n.flags&t)return n}return cn}function Qb(e,t){return!!(e.flags&t||2097152&e.flags&&X(e.types,(e=>Qb(e,t))))}function Yb(e,t,n){const r=n&&(7&Tx(e)||e.aliasSymbol)?function(e){const t=Es(4194304);return t.type=e,t}(e):void 0;return Ib(Y(O(Ep(e),(e=>Xb(e,t))),O(bm(e),(e=>e!==_i&&Qb(e.keyType,t)?e.keyType===qt&&8&t?mn:e.keyType:cn))),1,void 0,void 0,r)}function Zb(e,t=0){return!!(58982400&e.flags||rD(e)||gp(e)&&(!function(e){const t=Xd(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?k(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(tp(e)||t)}(e)||2===xp(e))||1048576&e.flags&&!(4&t)&&Pf(e)||2097152&e.flags&&$R(e,465829888)&&X(e.types,Kk))}function ex(e,t=0){return ky(e=wf(e))?xy(ex(e.baseType,t)):Zb(e,t)?Hb(e,t):1048576&e.flags?zb(O(e.types,(e=>ex(e,t)))):2097152&e.flags?Ib(O(e.types,(e=>ex(e,t)))):32&Tx(e)?Gb(e,t):e===Et?Et:2&e.flags?cn:131073&e.flags?hn:Yb(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function tx(e){const t=(zr||(zr=qy("Extract",2,!0)||vt),zr===vt?void 0:zr);return t?py(t,[e,qt]):qt}function nx(e,t){const n=D(t,(e=>!!(1179648&e.flags)));if(n>=0)return qb(t)?CF(t[n],(r=>nx(e,Ee(t,n,r)))):Nt;if(E(t,Et))return Et;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a""===e))){if(k(r,(e=>!!(4&e.flags))))return qt;if(1===r.length&&yx(r[0]))return r[0]}const a=`${$h(r)}|${O(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=ut.get(a);return s||ut.set(a,s=function(e,t){const n=Ds(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function rx(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?kT(e.value):98816&e.flags?e.intrinsicName:void 0}function ix(e,t){return 1179648&t.flags?CF(t,(t=>ix(e,t))):128&t.flags?gS(ox(e,t.value)):134217728&t.flags?nx(...function(e,t,n){switch(GB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>ix(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>ix(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[ix(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[ix(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||Sx(t)?ax(e,t):hx(t)?ax(e,nx(["",""],[t])):t}function ox(e,t){switch(GB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function ax(e,t){const n=`${YB(e)},${lb(t)}`;let r=_t.get(n);return r||_t.set(n,r=function(e,t){const n=ws(268435456,e);return n.type=t,n}(e,t)),r}function sx(e){if(Z)return!1;if(4096&Tx(e))return!0;if(1048576&e.flags)return k(e.types,sx);if(2097152&e.flags)return X(e.types,sx);if(465829888&e.flags){const t=df(e);return t!==e&&sx(t)}return!1}function cx(e,t){return fC(e)?mC(e):t&&cu(t)?Hh(t):void 0}function lx(e,t){if(8208&t.flags){const n=yc(e.parent,(e=>!Px(e)))||e.parent;return $u(n)?qu(n)&&Xw(e)&&Uw(n,e):k(t.declarations,(e=>!uu(e)||$o(e)))}return!0}function ux(e,t,n,r,i,o){const a=i&&212===i.kind?i:void 0,s=i&&Qw(i)?void 0:cx(n,i);if(void 0!==s){if(256&o)return _A(t,s)||Dt;const e=Uf(t,s);if(e){if(64&o&&i&&e.declarations&&zo(e)&&lx(i,e)&&qo((null==a?void 0:a.argumentExpression)??(VE(i)?i.indexType:i),e.declarations,s),a){if(vO(e,a,bO(a.expression,t.symbol)),RR(a,e,rh(a)))return void Oo(a.argumentExpression,ha.Cannot_assign_to_0_because_it_is_a_read_only_property,nc(e));if(8&o&&(ra(i).resolvedSymbol=e),nO(a,e))return wt}const n=4&o?ku(e):Tu(e);return a&&1!==rh(a)?yN(a,n):i&&VE(i)&&kD(n)?Ib([n,Lt]):n}if(gF(t,nD)&&HT(s)){const e=+s;if(i&&gF(t,(e=>!(12&e.target.combinedFlags)))&&!(16&o)){const n=px(i);if(nD(t)){if(e<0)return Oo(n,ha.A_tuple_type_cannot_be_indexed_with_a_negative_value),Lt;Oo(n,ha.Tuple_type_0_of_length_1_has_no_element_at_index_2,ic(t),_y(t),Sc(s))}else Oo(n,ha.Property_0_does_not_exist_on_type_1,Sc(s),ic(t))}if(e>=0)return c(xm(t,Ut)),cD(t,e,1&o?jt:void 0)}}if(!(98304&n.flags)&&qR(n,402665900)){if(131073&t.flags)return t;const l=Lm(t,n)||xm(t,qt);if(l)return 2&o&&l.keyType!==Ut?void(a&&(4&o?Oo(a,ha.Type_0_is_generic_and_can_only_be_indexed_for_reading,ic(e)):Oo(a,ha.Type_0_cannot_be_used_to_index_type_1,ic(n),ic(e)))):i&&l.keyType===qt&&!qR(n,12)?(Oo(px(i),ha.Type_0_cannot_be_used_as_an_index_type,ic(n)),1&o?Ib([l.type,jt]):l.type):(c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&gs(n.symbol)===t.symbol)?Ib([l.type,jt]):l.type);if(131072&n.flags)return cn;if(sx(t))return Dt;if(a&&!VR(t)){if(bw(t)){if(Z&&384&n.flags)return _o.add(Up(a,ha.Property_0_does_not_exist_on_type_1,n.value,ic(t))),Lt;if(12&n.flags)return Ib(le(O(t.properties,(e=>Tu(e))),Lt))}if(t.symbol===De&&void 0!==s&&De.exports.has(s)&&418&De.exports.get(s).flags)Oo(a,ha.Property_0_does_not_exist_on_type_1,Sc(s),ic(t));else if(Z&&!(128&o))if(void 0!==s&&_O(s,t)){const e=ic(t);Oo(a,ha.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+np(a.argumentExpression)+"]")}else if(Sm(t,Ut))Oo(a.argumentExpression,ha.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=mO(s,t)))void 0!==e&&Oo(a.argumentExpression,ha.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,ic(t),e);else{const e=function(e,t,n){function r(t){const r=Dp(e,t);if(r){const e=jO(Tu(r));return!!e&&eR(e)>=1&&Fk(n,KL(e,0))}return!1}const i=ih(t)?"set":"get";if(!r(i))return;let o=yb(t.expression);return void 0===o?o=i:o+="."+i,o}(t,a,n);if(void 0!==e)Oo(a,ha.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ic(t),e);else{let e;if(1024&n.flags)e=sS(void 0,ha.Property_0_does_not_exist_on_type_1,"["+ic(n)+"]",ic(t));else if(8192&n.flags){const r=Wa(n.symbol,a);e=sS(void 0,ha.Property_0_does_not_exist_on_type_1,"["+r+"]",ic(t))}else 128&n.flags||256&n.flags?e=sS(void 0,ha.Property_0_does_not_exist_on_type_1,n.value,ic(t)):12&n.flags&&(e=sS(void 0,ha.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ic(n),ic(t)));e=sS(e,ha.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ic(r),ic(t)),_o.add(Hp(Cd(a),a,e))}}}return}}if(16&o&&bw(t))return Lt;if(sx(t))return Dt;if(i){const e=px(i);if(10!==e.kind&&384&n.flags)Oo(e,ha.Property_0_does_not_exist_on_type_1,""+n.value,ic(t));else if(12&n.flags)Oo(e,ha.Type_0_has_no_matching_index_signature_for_type_1,ic(t),ic(n));else{const t=10===e.kind?"bigint":ic(n);Oo(e,ha.Type_0_cannot_be_used_as_an_index_type,t)}}return Wc(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(ih(a)||fh(a))&&Oo(a,ha.Index_signature_in_type_0_only_permits_reading,ic(t))}}function px(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function hx(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||hx(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||yx(e)}function yx(e){return!!(134217728&e.flags)&&k(e.types,hx)||!!(268435456&e.flags)&&hx(e.type)}function vx(e){return!!(402653184&e.flags)&&!yx(e)}function bx(e){return!!Dx(e)}function xx(e){return!!(4194304&Dx(e))}function Sx(e){return!!(8388608&Dx(e))}function Dx(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Pe(e.types,((e,t)=>e|Dx(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Dx(e.baseType)|Dx(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||gp(e)||rD(e)?4194304:0)|(63176704&e.flags||vx(e)?8388608:0)}function wx(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===jn?e:e[n];e[n]=jn;const r=wx(e.objectType,t),i=wx(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=O(t.types,(t=>wx(Ix(e,t),n)));return n?zb(r):Ib(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=Ex(r,i,t);if(o)return e[n]=o}if(rD(r)&&296&i.flags){const o=lD(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return gp(r)&&2!==xp(r)?e[n]=CF(Ax(r,e.indexType),(e=>wx(e,t))):e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=qx(e),o=Ux(e);if(131072&o.flags&&Bx(i)===Bx(n)){if(1&n.flags||Fk(hk(n),hk(r)))return wx(i,t);if(Fx(n,r))return cn}else if(131072&i.flags&&Bx(o)===Bx(n)){if(!(1&n.flags)&&Fk(hk(n),hk(r)))return cn;if(1&n.flags||Fx(n,r))return wx(o,t)}return e}(e,t):e}function Ex(e,t,n){if(1048576&e.flags||2097152&e.flags&&!Zb(e)){const r=O(e.types,(e=>wx(Ix(e,t),n)));return 2097152&e.flags||n?zb(r):Ib(r)}}function Fx(e,t){return!!(131072&Ib([jd(e,t),cn]).flags)}function Ax(e,t){const n=BS([Xd(e)],[t]),r=QS(e.mapper,n),i=fk(rp(e.target||e),r),o=up(e)>0||(bx(e)?_p(cp(e))>0:function(e,t){const n=Zp(t);return!!n&&X(Ep(e),(e=>!!(16777216&e.flags)&&Fk(Xb(e,8576),n)))}(e,t));return _l(i,!0,o)}function Ix(e,t,n=0,r,i,o){return Rx(e,t,n,r,i,o)||(r?Nt:Ot)}function Lx(e,t){return gF(e,(e=>{if(384&e.flags){const n=mC(e);if(HT(n)){const e=+n;return e>=0&&e0&&!X(e.elements,(e=>RE(e)||jE(e)||LE(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function zx(e,t){return bx(e)||t&&nD(e)&&X(ob(e),bx)}function $x(e,t,n,i,o){let a,s,c=0;for(;;){if(1e3===c)return Oo(r,ha.Type_instantiation_is_excessively_deep_and_possibly_infinite),Nt;const u=fk(Bx(e.checkType),t),_=fk(e.extendsType,t);if(u===Nt||_===Nt)return Nt;if(u===Et||_===Et)return Et;const d=dh(e.node.checkType),f=dh(e.node.extendsType),m=Jx(d)&&Jx(f)&&p(d.elements)===p(f.elements),g=zx(u,m);let h;if(e.inferTypeParameters){const n=VD(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=QS(n.nonFixingMapper,t)),g||hw(n.inferences,u,_,1536),h=t?QS(n.mapper,t):n.mapper}const y=h?fk(e.extendsType,h):_;if(!g&&!zx(y,m)){if(!(3&y.flags)&&(1&u.flags||!Fk(gk(u),gk(y)))){(1&u.flags||n&&!(131072&y.flags)&&pF(gk(y),(e=>Fk(e,gk(u)))))&&(s||(s=[])).push(fk(TS(e.node.trueType),h||t));const r=TS(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(l(r,t))continue}a=fk(r,t);break}if(3&y.flags||Fk(hk(u),hk(y))){const n=TS(e.node.trueType),r=h||t;if(l(n,r))continue;a=fk(n,r);break}}a=Ds(16777216),a.root=e,a.checkType=fk(e.checkType,t),a.extendsType=fk(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol=i||e.aliasSymbol,a.aliasTypeArguments=i?o:IS(e.aliasTypeArguments,t);break}return s?Ib(le(s,a)):a;function l(n,r){if(16777216&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=QS(n.mapper,r),l=O(a.outerTypeParameters,(e=>JS(e,s))),u=BS(a.outerTypeParameters,l),_=a.isDistributive?JS(a.checkType,u):void 0;if(!(_&&_!==a.checkType&&1179648&_.flags))return e=a,t=u,i=void 0,o=void 0,a.aliasSymbol&&c++,!0}}return!1}}function qx(e){return e.resolvedTrueType||(e.resolvedTrueType=fk(TS(e.root.node.trueType),e.mapper))}function Ux(e){return e.resolvedFalseType||(e.resolvedFalseType=fk(TS(e.root.node.falseType),e.mapper))}function Wx(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=le(t,y_(e)))})),t}function Hx(e){return Xw(e)?[e]:le(Hx(e.left),e.right)}function Gx(e){var t;const n=ra(e);if(!n.resolvedType){if(!yf(e))return Oo(e.argument,ha.String_literal_expected),n.resolvedSymbol=vt,n.resolvedType=Nt;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=Xa(e,e.argument.literal);if(!i)return n.resolvedSymbol=vt,n.resolvedType=Nt;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=ts(i,!1);if(Id(e.qualifier))a.flags&r?n.resolvedType=Kx(e,n,a,r):(Oo(e,111551===r?ha.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:ha.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=vt,n.resolvedType=Nt);else{const t=Hx(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=ps(Ba(s)),l=e.isTypeOf||jm(e)&&o?Uf(Tu(c),i.escapedText,!1,!0):void 0,u=(e.isTypeOf?void 0:ia(ls(c),i.escapedText,a))??l;if(!u)return Oo(i,ha.Namespace_0_has_no_exported_member_1,Wa(s),Mp(i)),n.resolvedType=Nt;ra(i).resolvedSymbol=u,ra(i.parent).resolvedSymbol=u,s=u}n.resolvedType=Kx(e,n,s,r)}}return n.resolvedType}function Kx(e,t,n,r){const i=Ba(n);return t.resolvedSymbol=i,111551===r?jL(Tu(n),e):by(e,i)}function Xx(e){const t=ra(e);if(!t.resolvedType){const n=Qx(e);if(!e.symbol||0===pd(e.symbol).size&&!n)t.resolvedType=Pn;else{let r=Ns(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=Yx(n),fP(e)&&e.isArrayType&&(r=Dv(r)),t.resolvedType=r}}return t.resolvedType}function Qx(e){let t=e.parent;for(;$E(t)||ZN(t)||UE(t)&&148===t.operator;)t=t.parent;return Rg(t)?fs(t):void 0}function Yx(e){return e?ju(e):void 0}function eS(e){return!!(524288&e.flags)&&!gp(e)}function tS(e){return Gk(e)||!!(474058748&e.flags)}function nS(e,t){if(!(1048576&e.flags))return e;if(k(e.types,tS))return T(e.types,Gk)||wn;const n=T(e.types,(e=>!tS(e)));return n?T(e.types,(e=>e!==n&&!tS(e)))?e:function(e){const n=td();for(const r of Ep(e))if(6&dx(r));else if(lS(r)){const e=65536&r.flags&&!(32768&r.flags),i=Uo(16777220,r.escapedName,Wd(r)|(t?8:0));i.links.type=e?Lt:_l(Tu(r),!0),i.declarations=r.declarations,i.links.nameType=na(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=Js(e.symbol,n,u,u,bm(e));return r.objectFlags|=131200,r}(n):e}function aS(e,t,n,r,i){if(1&e.flags||1&t.flags)return Dt;if(2&e.flags||2&t.flags)return Ot;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=nS(e,i)).flags)return qb([e,t])?CF(e,(e=>aS(e,t,n,r,i))):Nt;if(1048576&(t=nS(t,i)).flags)return qb([e,t])?CF(t,(t=>aS(e,t,n,r,i))):Nt;if(473960444&t.flags)return e;if(xx(e)||xx(t)){if(Gk(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(eS(a)&&eS(t))return zb(Y(o.slice(0,o.length-1),[aS(a,t,n,r,i)]))}return zb([e,t])}const o=td(),a=new Set,s=e===wn?bm(t):Rd([e,t]);for(const e of Ep(t))6&dx(e)?a.add(e.escapedName):lS(e)&&o.set(e.escapedName,_S(e,i));for(const t of Ep(e))if(!a.has(t.escapedName)&&lS(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=Tu(e);if(16777216&e.flags){const r=Y(t.declarations,e.declarations),i=Uo(4|16777216&t.flags,t.escapedName),a=Tu(t),s=DD(a),c=DD(n);i.links.type=s===c?a:Ib([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=na(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,_S(t,i));const c=Js(n,o,u,u,R(s,(e=>function(e,t){return e.isReadonly!==t?Ah(e.keyType,e.type,t,e.declaration):e}(e,i))));return c.objectFlags|=2228352|r,c}function lS(e){var t;return!(X(e.declarations,tu)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>yu(e.parent)))))}function _S(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===LR(e))return e;const r=Uo(4|16777216&e.flags,e.escapedName,Wd(e)|(t?8:0));return r.links.type=n?Lt:Tu(e),r.declarations=e.declarations,r.links.nameType=na(e).nameType,r.links.syntheticOrigin=e,r}function dS(e,t,n,r){const i=ws(e,n);return i.value=t,i.regularType=r||i,i}function pS(e){if(2976&e.flags){if(!e.freshType){const t=dS(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function fS(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=CF(e,fS)):e}function mS(e){return!!(2976&e.flags)&&e.freshType===e}function gS(e){let t;return tt.get(e)||(tt.set(e,t=dS(128,e)),t)}function hS(e){let t;return rt.get(e)||(rt.set(e,t=dS(256,e)),t)}function yS(e){let t;const n=kT(e);return ot.get(n)||(ot.set(n,t=dS(2048,e)),t)}function vS(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return ct.get(i)||(ct.set(i,r=dS(o,e,n)),r)}function bS(e){if(jm(e)&&ZN(e)){const t=Qg(e);t&&(e=Bg(t)||t)}if($f(e)){const t=zf(e)?ms(e.left):ms(e);if(t){const e=na(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=ws(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${YB(t.symbol)}`,t}(t))}}return nn}function xS(e){const t=ra(e);return t.resolvedType||(t.resolvedType=function(e){const t=sm(e,!1,!1),n=t&&t.parent;if(n&&(yu(n)||264===n.kind)&&!Rv(t)&&(!xE(t)||mh(e,t.body)))return s_(fs(n)).thisType;if(n&&tF(n)&&hF(n.parent)&&6===cg(n.parent))return s_(ms(n.parent.left).parent).thisType;const r=16777216&e.flags?Kg(e):void 0;return r&&lF(r)&&hF(r.parent)&&3===cg(r.parent)?s_(ms(r.parent.left).parent).thisType:bL(t)&&mh(e,t.body)?s_(fs(t)).thisType:(Oo(e,ha.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Nt)}(e)),t.resolvedType}function SS(e){return TS(kS(e.type)||e.type)}function kS(e){switch(e.kind){case 196:return kS(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return kS(e.type);break;case 188:return e.elementType}}function TS(e){return function(e,t){let n,r=!0;for(;t&&!b_(t)&&320!==t.kind;){const i=t.parent;if(169===i.kind&&(r=!r),(r||8650752&e.flags)&&194===i.kind&&t===i.trueType){const t=Fy(e,i.checkType,i.extendsType);t&&(n=le(n,t))}else if(262144&e.flags&&200===i.kind&&!i.nameType&&t===i.type){const t=TS(i);if(Xd(t)===Bx(e)){const e=lk(t);if(e){const t=Np(e);t&&gF(t,LC)&&(n=le(n,Ib([Ut,bn])))}}}t=i}return n?Ty(e,zb(n)):e}(CS(e),e)}function CS(e){switch(e.kind){case 133:case 312:case 313:return Dt;case 159:return Ot;case 154:return qt;case 150:return Ut;case 163:return Vt;case 136:return Yt;case 155:return nn;case 116:return rn;case 157:return Lt;case 106:return zt;case 146:return cn;case 151:return 524288&e.flags&&!Z?Dt:fn;case 141:return It;case 197:case 110:return xS(e);case 201:return function(e){if(106===e.literal.kind)return zt;const t=ra(e);return t.resolvedType||(t.resolvedType=fS(Ej(e.literal))),t.resolvedType}(e);case 183:case 233:return Iy(e);case 182:return e.assertsModifier?rn:Yt;case 186:return Ly(e);case 188:case 189:return function(e){const t=ra(e);if(!t.resolvedType){const n=Fv(e);if(n===On)t.resolvedType=wn;else if(189===e.kind&&X(e.elements,(e=>!!(8&wv(e))))||!Pv(e)){const r=188===e.kind?[TS(e.elementType)]:O(e.elements,TS);t.resolvedType=Xv(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:ly(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return _l(TS(e.type),!0)}(e);case 192:return function(e){const t=ra(e);if(!t.resolvedType){const n=Qx(e);t.resolvedType=Ib(O(e.types,TS),1,n,Yx(n))}return t.resolvedType}(e);case 193:return function(e){const t=ra(e);if(!t.resolvedType){const n=Qx(e),r=O(e.types,TS),i=2===r.length?r.indexOf(Pn):-1,o=i>=0?r[1-i]:Ot,a=!!(76&o.flags||134217728&o.flags&&yx(o));t.resolvedType=zb(r,a?1:0,n,Yx(n))}return t.resolvedType}(e);case 314:return function(e){const t=TS(e.type);return U?fD(t,65536):t}(e);case 316:return _l(TS(e.type));case 202:return function(e){const t=ra(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?SS(e):_l(TS(e.type),!0,!!e.questionToken))}(e);case 196:case 315:case 309:return TS(e.type);case 191:return SS(e);case 318:return function(e){const t=TS(e.type),{parent:n}=e,r=e.parent.parent;if(ZN(e.parent)&&FP(r)){const e=Kg(r),n=vP(r.parent.parent);if(e||n){const i=ke(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Wg(r);if(!i||o&&i.symbol===o&&W_(i))return Dv(t)}}return fE(n)&&uP(n.parent)?Dv(t):_l(t)}(e);case 184:case 185:case 187:case 322:case 317:case 323:return Xx(e);case 198:return function(e){const t=ra(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=ex(TS(e.type));break;case 158:t.resolvedType=155===e.type.kind?bS(lh(e.parent)):Nt;break;case 148:t.resolvedType=TS(e.type);break;default:gn.assertNever(e.operator)}return t.resolvedType}(e);case 199:return jx(e);case 200:return Mx(e);case 194:return function(e){const t=ra(e);if(!t.resolvedType){const n=TS(e.checkType),r=Qx(e),i=Yx(r),o=Lu(e,!0),a=i?o:P(o,(t=>ck(t,e))),s={node:e,checkType:n,extendsType:TS(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Wx(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=$x(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set($h(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=ra(e);return t.resolvedType||(t.resolvedType=g_(fs(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=ra(e);return t.resolvedType||(t.resolvedType=nx([e.head.text,...O(e.templateSpans,(e=>e.literal.text))],O(e.templateSpans,(e=>TS(e.type))))),t.resolvedType}(e);case 205:return Gx(e);case 80:case 166:case 211:const t=lz(e);return t?y_(t):Nt;default:return Nt}}function FS(e,t,n){if(e&&e.length)for(let r=0;rX(n,(t=>ck(e,t))))):s,o.outerTypeParameters=s}if(s.length){const i=QS(e.mapper,t),o=O(s,(e=>JS(e,i))),c=n||e.aliasSymbol,l=n?r:IS(e.aliasTypeArguments,t),u=(134217728&e.objectFlags?"S":"")+$h(o)+Uh(c,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set($h(s)+Uh(a.aliasSymbol,a.aliasTypeArguments),a));let _=a.instantiations.get(u);if(!_){if(134217728&e.objectFlags)return _=dk(e,t),a.instantiations.set(u,_),_;const n=BS(s,o);_=4&a.objectFlags?ly(e.target,e.node,n,c,l):32&a.objectFlags?function(e,t,n,r){const i=lk(e);if(i){const e=fk(i,t);if(i!==e)return FF(wf(e),o,n,r)}return fk(Qd(e),t)===Et?Et:dk(e,t,n,r);function o(n){if(61603843&n.flags&&n!==Et&&!Hc(n)){if(!e.declaration.nameType){let r;if(IC(n)||1&n.flags&&Mc(i,4)<0&&(r=Np(i))&&gF(r,LC))return function(e,t,n){const r=_k(t,Ut,!0,n);return Hc(r)?Nt:Dv(r,uk(OC(e),lp(t)))}(n,e,YS(i,n,t));if(nD(n))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?YS(n,e,r):r,s=O(ob(e),((e,s)=>{const c=i[s];return s1&e?2:e)):8&c?O(i,(e=>2&e?1:e)):i,u=uk(e.target.readonly,lp(t));return E(s,Nt)?Nt:Gv(s,l,u,e.target.labeledElementDeclarations)}(n,e,i,t);if(bf(n))return zb(O(n.types,o))}return dk(e,YS(i,n,t))}return n}}(a,n,c,l):dk(a,n,c,l),a.instantiations.set(u,_);const r=Tx(_);if(3899393&_.flags&&!(524288&r)){const e=X(o,ZD);524288&Tx(_)||(_.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return _}return e}function ck(e,t){if(e.symbol&&e.symbol.declarations&&1===e.symbol.declarations.length){const r=e.symbol.declarations[0].parent;for(let e=t;e!==r;e=e.parent)if(!e||241===e.kind||194===e.kind&&qI(e.extendsType,n))return!0;return n(t)}return!0;function n(t){switch(t.kind){case 197:return!!e.isThisType;case 80:return!e.isThisType&&Af(t)&&function(e){return!(183===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||205===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&CS(t)===e;case 186:const r=mb(t.exprName);if(!gv(r)){const i=Ew(r),o=e.symbol.declarations[0],a=168===o.kind?o.parent:e.isThisType?o:void 0;if(i.declarations&&a)return X(i.declarations,(e=>mh(e,a)))||X(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||X(t.typeParameters,n)||X(t.parameters,n)||!!t.type&&n(t.type)}return!!qI(t,n)}}function lk(e){const t=Qd(e);if(4194304&t.flags){const e=Bx(t.type);if(262144&e.flags)return e}}function uk(e,t){return!!(1&t)||!(2&t)&&e}function _k(e,t,n,r){const i=ZS(r,Xd(e),t),o=fk(rp(e.target||e),i),a=lp(e);return U&&4&a&&!$R(o,49152)?mD(o,!0):U&&8&a&&n?Zw(o,524288):o}function dk(e,t,n,r){gn.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=Ns(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=Xd(e),r=rk(n);i.typeParameter=r,t=QS(US(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),134217728&e.objectFlags&&(i.outerTypeParameters=e.outerTypeParameters),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:IS(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?Zh(i.aliasTypeArguments):0,i}function pk(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const e=O(o.outerTypeParameters,(e=>JS(e,t))),a=(n?"C":"")+$h(e)+Uh(r,i);let s=o.instantiations.get(a);if(!s){const t=BS(o.outerTypeParameters,e),c=o.checkType,l=o.isDistributive?wf(JS(c,t)):void 0;s=l&&c!==l&&1179648&l.flags?FF(l,(e=>$x(o,YS(c,e,t),n)),r,i):$x(o,t,n,r,i),o.instantiations.set(a,s)}return s}return e}function fk(e,t){return e&&t?mk(e,t,void 0,void 0):e}function mk(e,t,n,i){var o;if(!ZD(e))return e;if(100===y||h>=5e6)return null==(o=Yn)||o.instant(Yn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:y,instantiationCount:h}),Oo(r,ha.Type_instantiation_is_excessively_deep_and_possibly_infinite),Nt;m++,h++,y++;const a=function(e,t,n,r){const i=e.flags;if(262144&i)return JS(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=IS(n,t);return r!==n?Xv(e.target,r):e}return 1024&i?function(e,t){const n=fk(e.mappedType,t);if(!(32&Tx(n)))return e;const r=fk(e.constraintType,t);if(!(4194304&r.flags))return e;const i=nw(fk(e.source,t),n,r);return i||e}(e,t):sk(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=IS(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:IS(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?zb(s,0,c,l):Ib(s,1,c,l)}if(4194304&i)return ex(fk(e.type,t));if(134217728&i)return nx(e.texts,IS(e.types,t));if(268435456&i)return ix(e.symbol,fk(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:IS(e.aliasTypeArguments,t);return Ix(fk(e.objectType,t),fk(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return pk(e,QS(e.mapper,t),!1,n,r);if(33554432&i){const n=fk(e.baseType,t);if(ky(e))return xy(n);const r=fk(e.constraint,t);return 8650752&n.flags&&bx(r)?Ty(n,r):3&r.flags||Fk(hk(n),hk(r))?n:8650752&n.flags?Ty(n,r):zb([r,n])}return e}(e,t,n,i);return y--,a}function gk(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=fk(e,Sn))}function hk(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=fk(e,xn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function yk(e,t){return Ah(e.keyType,fk(e.type,t),e.isReadonly,e.declaration)}function vk(e){switch(gn.assert(174!==e.kind||Wf(e)),e.kind){case 218:case 219:case 174:case 262:return bk(e);case 210:return X(e.properties,vk);case 209:return X(e.elements,vk);case 227:return vk(e.whenTrue)||vk(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(vk(e.left)||vk(e.right));case 303:return vk(e.initializer);case 217:return vk(e.expression);case 292:return X(e.properties,vk)||IN(e.parent)&&X(e.parent.parent.children,vk);case 291:{const{initializer:t}=e;return!!t&&vk(t)}case 294:{const{expression:t}=e;return!!t&&vk(t)}}return!1}function bk(e){return $T(e)||function(e){return!(e.typeParameters||kv(e)||!e.body)&&(241!==e.body.kind?vk(e.body):!!Of(e.body,(e=>!!e.expression&&vk(e.expression))))}(e)}function xk(e){return(VT(e)||Wf(e))&&bk(e)}function Sk(e){if(524288&e.flags){const t=Tp(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Ns(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=u,n.constructSignatures=u,n.indexInfos=u,n}}else if(2097152&e.flags)return zb(O(e.types,Sk));return e}function kk(e,t){return tT(e,t,vo)}function Tk(e,t){return tT(e,t,vo)?-1:0}function Ck(e,t){return tT(e,t,ho)?-1:0}function Dk(e,t){return tT(e,t,mo)?-1:0}function wk(e,t){return tT(e,t,mo)}function Ek(e,t){return tT(e,t,go)}function Fk(e,t){return tT(e,t,ho)}function Nk(e,t){return 1048576&e.flags?k(e.types,(e=>Nk(e,t))):1048576&t.flags?X(t.types,(t=>Nk(e,t))):2097152&e.flags?X(e.types,(e=>Nk(e,t))):58982400&e.flags?Nk(Zp(e)||Ot,t):Kk(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!Kk(e):t===Kn?!!(524288&e.flags)&&Hw(e):Iu(e,Au(t))||IC(t)&&!OC(t)&&Nk(e,er)}function Pk(e,t){return tT(e,t,yo)}function Ak(e,t){return Pk(e,t)||Pk(t,e)}function Ik(e,t,n,r,i,o){return sT(e,t,ho,n,r,i,o)}function Ok(e,t,n,r,i,o){return Lk(e,t,ho,n,r,i,o,void 0)}function Lk(e,t,n,r,i,o,a,s){return!!tT(e,t,n)||(!r||!jk(i,e,t,n,o,a,s))&&sT(e,t,n,r,o,a,s)}function Rk(e){return!!(16777216&e.flags||2097152&e.flags&&X(e.types,Rk))}function jk(e,t,n,r,i,o,a){if(!e||Rk(n))return!1;if(!sT(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=Xf(t,0),c=Xf(t,1);for(const l of[c,s])if(X(l,(e=>{const t=jg(e);return!(131073&t.flags)&&sT(t,n,r,void 0)}))){const r=a||{};return Ik(t,n,e,i,o,r),pT(r.errors[r.errors.length-1],Up(e,l===c?ha.Did_you_mean_to_use_new_with_this_expression:ha.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 234:if(!TC(e))break;case 294:case 217:return jk(e.expression,t,n,r,i,o,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return jk(e.right,t,n,r,i,o,a)}break;case 210:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&Jk(function*(e){if(p(e.properties))for(const t of e.properties){if(KN(t))continue;const e=Xb(fs(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Jp(t.name)?ha.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:gn.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 209:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(qC(t))return Jk($k(e,n),t,n,r,i,o);IA(e,n,!1);const a=HA(e,1,!0);return OA(),!!qC(a)&&Jk($k(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 292:return function(e,t,n,r,i,o){let a,s=Jk(function*(e){if(p(e.properties))for(const t of e.properties)JN(t)||iI(lC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:gS(lC(t.name))})}(e),t,n,r,i,o);if(IN(e.parent)&&PN(e.parent.parent)){const a=e.parent.parent,l=vI(pI(e)),u=void 0===l?"children":Sc(l),_=gS(u),d=Ix(n,_),f=gy(a.children);if(!p(f))return s;const m=p(f)>1;let g,h;if(av(!1)!==On){const e=Sv(Dt);g=yF(d,(t=>Fk(t,e))),h=yF(d,(t=>!Fk(t,e)))}else g=yF(d,UC),h=yF(d,(e=>!UC(e)));if(m){if(g!==cn){const e=Gv(cI(a,0)),t=function*(e,t){if(!p(e.children))return;let n=0;for(let r=0;r!UC(e))),c=s!==cn?lB(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:u,errorMessage:_}=n.value;let d=c;const p=a!==cn?Mk(t,a,u):void 0;if(!p||8388608&p.flags||(d=c?Ib([c,p]):p),!d)continue;let f=Rx(t,u);if(!f)continue;const m=cx(u,void 0);if(!sT(f,d,r,void 0)&&(l=!0,!s||!jk(s,f,d,r,void 0,i,o))){const n=o||{},c=s?Bk(s,f):f;if(ie&&dT(c,d)){const t=Up(e,ha.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ic(c),ic(d));_o.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(Uf(a,m)||vt).flags),s=!!(m&&16777216&(Uf(t,m)||vt).flags);d=xD(d,o),f=xD(f,o&&s),sT(c,d,r,e,_,i,n)&&c!==f&&sT(f,d,r,e,_,i,n)}}}return l}(t,e,g,r,i,o)||s}else if(!tT(Ix(t,_),d,r)){s=!0;const e=Oo(a.openingElement.tagName,ha.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,ic(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==cn){const e=zk(f[0],_,c);e&&(s=Jk(function*(){yield e}(),t,n,r,i,o)||s)}else if(!tT(Ix(t,_),d,r)){s=!0;const e=Oo(a.openingElement.tagName,ha.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,ic(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=np(e.parent.tagName),r=vI(pI(e)),i=void 0===r?"children":Sc(r),o=Ix(n,gS(i)),s=ha._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:iS(s,t,i,ic(o))}}return a}}(e,t,n,r,o,a);case 219:return function(e,t,n,r,i,o){if(OF(e.body))return!1;if(X(e.parameters,R_))return!1;const a=jO(t);if(!a)return!1;const s=Xf(n,0);if(!p(s))return!1;const c=e.body,l=jg(a),u=Ib(O(s,jg));if(!sT(l,u,r,void 0)){const t=c&&jk(c,l,u,r,void 0,i,o);if(t)return t;const a=o||{};if(sT(l,u,r,c,void 0,i,a),a.errors)return n.symbol&&p(n.symbol.declarations)&&pT(a.errors[a.errors.length-1],Up(n.symbol.declarations[0],ha.The_expected_type_comes_from_the_return_type_of_this_signature)),2&zh(e)||qc(l,"then")||!sT(xR(l),u,r,void 0)||pT(a.errors[a.errors.length-1],Up(e,ha.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function Mk(e,t,n){const r=Rx(t,n);if(r)return r;if(1048576&t.flags){const r=yT(e,t);if(r)return Rx(r,n)}}function Bk(e,t){IA(e,t,!1);const n=fj(e,1);return OA(),n}function Jk(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:u}=s;let _=Mk(t,n,l);if(!_||8388608&_.flags)continue;let d=Rx(t,l);if(!d)continue;const f=cx(l,void 0);if(!sT(d,_,r,void 0)&&(a=!0,!c||!jk(c,d,_,r,void 0,i,o))){const a=o||{},s=c?Bk(c,d):d;if(ie&&dT(s,_)){const t=Up(e,ha.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ic(s),ic(_));_o.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(Uf(n,f)||vt).flags),c=!!(f&&16777216&(Uf(t,f)||vt).flags);_=xD(_,o),d=xD(d,o&&c),sT(s,_,r,e,u,i,a)&&s!==d&&sT(d,_,r,e,u,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=fC(l)?mC(l):void 0,r=void 0!==t?Uf(n,t):void 0;let i=!1;if(!r){const t=Lm(n,l);t&&t.declaration&&!Cd(t.declaration).hasNoDefaultLib&&(i=!0,pT(e,Up(t.declaration,ha.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&p(r.declarations)||n.symbol&&p(n.symbol.declarations))){const i=r&&p(r.declarations)?r.declarations[0]:n.symbol.declarations[0];Cd(i).hasNoDefaultLib||pT(e,Up(i,ha.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?ic(l):Sc(t),ic(n)))}}}}return a}function zk(e,t,n){switch(e.kind){case 294:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return gn.assertNever(e,"Found invalid jsx child")}}function*$k(e,t){const n=p(e.elements);if(n)for(let r=0;rc:eR(e)>c))return!r||8&n||i(ha.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,eR(e),c),0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=JO(e,t=ah(t),void 0,a));const l=ZL(e),u=rR(e),_=rR(t);(u||_)&&fk(u||_,s);const d=t.declaration?t.declaration.kind:0,p=!(3&n)&&H&&174!==d&&173!==d&&176!==d;let f=-1;const m=wg(e);if(m&&m!==rn){const e=wg(t);if(e){const t=!p&&a(m,e,!1)||a(e,m,r);if(!t)return r&&i(ha.The_this_types_of_each_signature_are_incompatible),0;f&=t}}const g=u||_?Math.min(l,c):Math.max(l,c),h=u||_?g-1:-1;for(let c=0;c=eR(e)&&c=3&&32768&t[0].flags&&65536&t[1].flags&&X(t,Kk)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function tT(e,t,n){if(mS(e)&&(e=e.regularType),mS(t)&&(t=t.regularType),e===t)return!0;if(n!==vo){if(n===yo&&!(131072&t.flags)&&eT(t,e,n)||eT(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(zT(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&sT(e,t,n,void 0)}function nT(e,t){return 2048&Tx(e)&&iI(t.escapedName)}function rT(e,t){for(;;){const n=mS(e)?e.regularType:rD(e)?aT(e,t):4&Tx(e)?e.node?ny(e.target,uy(e)):JC(e)||e:3145728&e.flags?iT(e,t):33554432&e.flags?t?e.baseType:Dy(e):25165824&e.flags?wx(e,t):e;if(n===e)return n;e=n}}function iT(e,t){const n=wf(e);if(n!==e)return n;if(2097152&e.flags&&function(e){let t=!1,n=!1;for(const r of e.types)if(t||(t=!!(465829888&r.flags)),n||(n=!!(98304&r.flags)||Kk(r)),t&&n)return!0;return!1}(e)){const n=R(e.types,(e=>rT(e,t)));if(n!==e.types)return zb(n)}return e}function aT(e,t){const n=ob(e),r=R(n,(e=>25165824&e.flags?wx(e,t):e));return n!==r?Qv(e.target,r):e}function sT(e,t,n,i,o,a,s){var c;let l,_,d,f,m,g,h,y,v=0,b=0,x=0,S=0,k=!1,T=0,C=0,w=16e6-n.size>>3;gn.assert(n!==vo||!i,"no error reporting in identity checking");const N=q(e,t,3,!!i,o);if(y&&L(),k){const o=zT(e,t,0,n,!1);n.set(o,2|(w<=0?32:64)),null==(c=Yn)||c.instant(Yn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:b,targetDepth:x});const a=w<=0?ha.Excessive_complexity_comparing_types_0_and_1:ha.Excessive_stack_depth_comparing_types_0_and_1,l=Oo(i||r,a,ic(e),ic(t));s&&(s.errors||(s.errors=[])).push(l)}else if(l){if(a){const e=a();e&&(cS(e,l),l=e)}let r;if(o&&i&&!N&&e.symbol){const i=na(e.symbol);i.originatingImport&&!gf(i.originatingImport)&&sT(Tu(i.target),t,n,void 0)&&(r=le(r,Up(i.originatingImport,ha.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}const c=Hp(Cd(i),i,l,r);_&&pT(c,..._),s&&(s.errors||(s.errors=[])).push(c),s&&s.skipLogging||_o.add(c)}return i&&s&&s.skipLogging&&0===N&&gn.assert(!!s.errors,"missed opportunity to interact with error."),0!==N;function P(e){l=e.errorInfo,h=e.lastSkippedInfo,y=e.incompatibleStack,T=e.overrideNextErrorInfo,C=e.skipParentCounter,_=e.relatedInfo}function A(){return{errorInfo:l,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:T,skipParentCounter:C,relatedInfo:null==_?void 0:_.slice()}}function I(e,...t){T++,h=void 0,(y||(y=[])).push([e,...t])}function L(){const e=y||[];y=void 0;const t=h;if(h=void 0,1===e.length)return j(...e[0]),void(t&&J(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case ha.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:Ss(e,DS(F))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case ha.Call_signature_return_types_0_and_1_are_incompatible.code:case ha.Construct_signature_return_types_0_and_1_are_incompatible.code:case ha.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case ha.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===ha.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=ha.Call_signature_return_types_0_and_1_are_incompatible:t.code===ha.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=ha.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else n=`${t.code===ha.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===ha.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===ha.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===ha.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case ha.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([ha.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case ha.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([ha.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return gn.fail(`Unhandled Diagnostic: ${t.code}`)}}n?j(")"===n[n.length-1]?ha.The_types_returned_by_0_are_incompatible_between_these_types:ha.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,j(e,...t),e.elidedInCompatabilityPyramid=n}t&&J(void 0,...t)}function j(e,...t){gn.assert(!!i),y&&L(),e.elidedInCompatabilityPyramid||(0===C?l=sS(l,e,...t):C--)}function M(e,...t){j(e,...t),C++}function B(e){gn.assert(!!l),_?_.push(e):_=[e]}function J(e,t,r){y&&L();const[i,o]=oc(t,r);let a=t,s=i;if(131072&r.flags||!KC(t)||uT(r)||(a=XC(t),gn.assert(!Fk(a,r),"generalized source shouldn't be assignable"),s=sc(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==$n&&r!==qn){const e=Zp(r);let n;e&&(Fk(a,e)||(n=Fk(t,e)))?j(ha._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,ic(e)):(l=void 0,j(ha._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ie&&_T(t,r).length&&(e=ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===yo)e=ha.Type_0_is_not_comparable_to_type_1;else if(i===o)e=ha.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ie&&_T(t,r).length)e=ha.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Jt(e.value,n,(e=>e.value))}(t,r);if(e)return void j(ha.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,ic(e))}e=ha.Type_0_is_not_assignable_to_type_1}j(e,s,o)}function z(e,t,n){return nD(e)?e.target.readonly&&RC(t)?(n&&j(ha.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ic(e),ic(t)),!1):LC(t):OC(e)&&RC(t)?(n&&j(ha.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ic(e),ic(t)),!1):!nD(t)||IC(e)}function $(e,t,n){return q(e,t,3,n)}function q(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===yo&&!(131072&t.flags)&&eT(t,e,n)||eT(e,t,n,o?j:void 0)?-1:(o&&V(e,t,e,t,a),0);const c=rT(e,!1);let l=rT(t,!0);if(c===l)return-1;if(n===vo)return c.flags!==l.flags?0:67358815&c.flags?-1:(W(c,l),te(c,l,!1,0,r));if(262144&c.flags&&Fp(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=rT(t,!0),c===l))return-1}if(n===yo&&!(131072&l.flags)&&eT(l,c,n)||eT(c,l,n,o?j:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&bw(c)&&8192&Tx(c)&&function(e,t,r){var o;if(!NI(t)||!Z&&4096&Tx(t))return!1;const a=!!(2048&Tx(e));if((n===ho||n===yo)&&(sF(Gn,t)||!a&&Gk(t)))return!1;let s,c=t;1048576&t.flags&&(c=I$(e,t,q)||function(e){if($R(e,67108864)){const t=yF(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of Ep(e))if(G(t,e.symbol)&&!nT(e,t)){if(!FI(c,t.escapedName,a)){if(r){const n=yF(c,NI);if(!i)return gn.fail();if(BN(i)||w_(i)||w_(i.parent)){t.valueDeclaration&&MN(t.valueDeclaration)&&Cd(i)===Cd(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=nc(t),r=fO(e,n),o=r?nc(r):void 0;o?j(ha.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,ic(n),o):j(ha.Property_0_does_not_exist_on_type_1,e,ic(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&ve(e.symbol.declarations);let a;if(t.valueDeclaration&&yc(t.valueDeclaration,(e=>e===r))&&Cd(r)===Cd(i)){const e=t.valueDeclaration;gn.assertNode(e,Du);const r=e.name;i=r,Xw(r)&&(a=mO(r,n))}void 0!==a?M(ha.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,nc(t),ic(n),a):M(ha.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,nc(t),ic(n))}}return!0}if(s&&!q(Tu(t),H(s,t.escapedName),3,r))return r&&I(ha.Types_of_property_0_are_incompatible,nc(t)),!0}return!1}(c,l,o))return o&&J(a,c,t.aliasSymbol?t:l),0;const u=(n!==yo||HC(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&xT(l)&&(Ep(c).length>0||gz(c)),_=!!(2048&Tx(c));if(u&&!function(e,t,n){for(const r of Ep(e))if(FI(t,r.escapedName,n))return!0;return!1}(c,l,_)){if(o){const n=ic(e.aliasSymbol?e:c),r=ic(t.aliasSymbol?t:l),i=Xf(c,0),o=Xf(c,1);i.length>0&&q(jg(i[0]),l,1,!1)||o.length>0&&q(jg(o[0]),l,1,!1)?j(ha.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):j(ha.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}W(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?K(c,l,o,s):te(c,l,o,s,r);if(d)return d}return o&&V(e,t,c,l,a),0}function V(e,t,n,r,o){var a,s;const c=!!JC(e),u=!!JC(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||u?t:r;let _=T>0;if(_&&T--,524288&n.flags&&524288&r.flags){const e=l;z(n,r,!0),l!==e&&(_=!!l)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=cc(e.symbol)?ic(e,e.symbol.valueDeclaration):ic(e),r=cc(t.symbol)?ic(t,t.symbol.valueDeclaration):ic(t);(tr===e&&qt===t||nr===e&&Ut===t||rr===e&&Yt===t||Zy()===e&&nn===t)&&j(ha._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Gn===n)j(ha.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&Tx(n)&&2097152&r.flags){const e=r.types,t=uI(OB.IntrinsicAttributes,i),n=uI(OB.IntrinsicClassAttributes,i);if(!Hc(t)&&!Hc(n)&&(E(e,t)||E(e,n)))return}else l=If(l,t);if(!o&&_){const e=A();let t;return J(o,n,r),l&&l!==e.errorInfo&&(t={code:l.code,messageText:l.messageText}),P(e),t&&l&&(l.canonicalHead=t),void(h=[n,r])}if(J(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!Fp(n)){const e=rk(n);if(e.constraint=fk(r,US(n,e)),_f(e)){const e=ic(r,n.symbol.declarations[0]);B(Up(n.symbol.declarations[0],ha.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function W(e,t){if(Yn&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&Yn.instant(Yn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function H(e,t){return Ib(Pe(e,((e,n)=>{var r;const i=3145728&(n=Sf(n)).flags?Df(n,t):Dp(n,t);return le(e,i&&Tu(i)||(null==(r=Bm(n,t))?void 0:r.type)||Lt)}),void 0)||u)}function G(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function K(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&E(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&E(r.types,e))return-1}return n===yo?ee(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?NF(t,-32769):t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length==0){const t=q(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=q(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i)}if(1048576&t.flags)return Y(ND(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),i);if(2097152&t.flags)return function(e,t,n,r){let i=-1;const o=t.types;for(const t of o){const o=q(e,t,2,n,void 0,r);if(!o)return 0;i&=o}return i}(e,t,r,2);if(n===yo&&402784252&t.flags){const n=R(e.types,(e=>465829888&e.flags?Zp(e)||Ot:e));if(n!==e.types){if(131072&(e=zb(n)).flags)return 0;if(!(2097152&e.flags))return q(e,t,1,!1)||q(t,e,1,!1)}}return ee(e,t,!1,1)}function Q(e,t){let n=-1;const r=e.types;for(const e of r){const r=Y(e,t,!1,0);if(!r)return 0;n&=r}return n}function Y(e,t,r,i){const o=t.types;if(1048576&t.flags){if(db(o,e))return-1;if(n!==yo&&32768&Tx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===mo||n===go)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?qt:256&e.flags?Ut:2048&e.flags?Vt:void 0;return n&&db(o,n)||t&&db(o,t)?-1:0}const r=$w(t,e);if(r){const t=q(e,r,2,!1,void 0,i);if(t)return t}}for(const t of o){const n=q(e,t,2,!1,void 0,i);if(n)return n}if(r){const n=yT(e,t,q);n&&q(e,n,2,!0,void 0,i)}return 0}function ee(e,t,n,r){const i=e.types;if(1048576&e.flags&&db(i,t))return-1;const o=i.length;for(let e=0;e(E|=e?16:8,C(e))),3===S?(null==(a=Yn)||a.instant(Yn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map((e=>e.id)),targetId:t.id,targetIdStack:g.map((e=>e.id)),depth:b,targetDepth:x}),D=3):(null==(s=Yn)||s.push(Yn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),D=function(e,t,r,i){const o=A();let a=function(e,t,r,i,o){let a,s,c=!1,_=e.flags;const d=t.flags;if(n===vo){if(3145728&_){let n=Q(e,t);return n&&(n&=Q(t,e)),n}if(4194304&_)return q(e.type,t.type,3,!1);if(8388608&_&&(a=q(e.objectType,t.objectType,3,!1))&&(a&=q(e.indexType,t.indexType,3,!1)))return a;if(16777216&_&&e.root.isDistributive===t.root.isDistributive&&(a=q(e.checkType,t.checkType,3,!1))&&(a&=q(e.extendsType,t.extendsType,3,!1))&&(a&=q(qx(e),qx(t),3,!1))&&(a&=q(Ux(e),Ux(t),3,!1)))return a;if(33554432&_&&(a=q(e.baseType,t.baseType,3,!1))&&(a&=q(e.constraint,t.constraint,3,!1)))return a;if(!(524288&_))return 0}else if(3145728&_||3145728&d){if(a=K(e,t,r,i))return a;if(!(465829888&_||524288&_&&1048576&d||2097152&_&&467402752&d))return 0}if(17301504&_&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!RT(e)&&!RT(t)){const n=NT(e.aliasSymbol);if(n===u)return 1;const r=na(e.aliasSymbol).typeParameters,o=_g(r),a=h(dg(e.aliasTypeArguments,r,o,jm(e.aliasSymbol.valueDeclaration)),dg(t.aliasTypeArguments,r,o,jm(e.aliasSymbol.valueDeclaration)),n,i);if(void 0!==a)return a}if(iD(e)&&!e.target.readonly&&(a=q(uy(e)[0],t,1))||iD(t)&&(t.target.readonly||RC(Zp(e)||e))&&(a=q(e,uy(t)[0],2)))return a;if(262144&d){if(32&Tx(e)&&!e.declaration.nameType&&q(ex(t),Qd(e),3)&&!(4&lp(e))){const n=rp(e),i=Ix(t,Xd(e));if(a=q(n,i,3,r))return a}if(n===yo&&262144&_){let n=Np(e);if(n)for(;n&&pF(n,(e=>!!(262144&e.flags)));){if(a=q(n,t,1,!1))return a;n=Np(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&_&&(a=q(n,e.type,3,!1)))return a;if(nD(n)){if(a=q(e,Zv(n),2,r))return a}else{const i=Op(n);if(i){if(-1===q(e,ex(i,4|t.indexFlags),2,r))return-1}else if(gp(n)){const t=tp(n),i=Qd(n);let o;if(o=t&&ap(n)?Ib([ne(t,n),t]):t||i,-1===q(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&_){if((a=q(e.objectType,t.objectType,3,r))&&(a&=q(e.indexType,t.indexType,3,r)),a)return a;r&&(s=l)}if(n===ho||n===yo){const n=t.objectType,c=t.indexType,u=Zp(n)||n,_=Zp(c)||c;if(!xx(u)&&!Sx(_)){const t=Rx(u,_,4|(u!==n?2:0));if(t){if(r&&s&&P(o),a=q(e,t,2,r,void 0,i))return a;r&&s&&l&&(l=f([s])<=f([l])?s:l)}}}r&&(s=void 0)}else if(gp(t)&&n!==vo){const n=!!t.declaration.nameType,i=rp(t),c=lp(t);if(!(8&c)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===Xd(t))return-1;if(!gp(e)){const i=n?tp(t):Qd(t),u=ex(e,2),_=4&c,d=_?jd(i,u):void 0;if(_?!(131072&d.flags):q(i,u,3)){const o=rp(t),s=Xd(t),c=NF(o,-98305);if(!n&&8388608&c.flags&&c.indexType===s){if(a=q(e,c.objectType,2,r))return a}else{const t=Ix(e,n?d||i:d?zb([d,s]):s);if(a=q(t,o,3,r))return a}}s=l,P(o)}}}else if(16777216&d){if(dC(t,g,x,10))return 3;const n=t;if(!(n.root.inferTypeParameters||function(e){return e.isDistributive&&(ck(e.checkType,e.node.trueType)||ck(e.checkType,e.node.falseType))}(n.root)||16777216&e.flags&&e.root===n.root)){const t=!Fk(gk(n.checkType),gk(n.extendsType)),r=!t&&Fk(hk(n.checkType),hk(n.extendsType));if((a=t?-1:q(e,qx(n),2,!1,void 0,i))&&(a&=r?-1:q(e,Ux(n),2,!1,void 0,i),a))return a}}else if(134217728&d){if(134217728&_){if(n===yo)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;fk(e,Cn)}if(mw(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&dw(e,t))return-1;if(8650752&_){if(!(8388608&_&&8388608&d)){const n=Fp(e)||Ot;if(a=q(n,t,1,!1,void 0,i))return a;if(a=q(md(n,e),t,1,r&&n!==Ot&&!(d&_&262144),void 0,i))return a;if(xf(e)){const n=Fp(e.indexType);if(n&&(a=q(Ix(e.objectType,n),t,1,r)))return a}}}else if(4194304&_){const n=Zb(e.type,e.indexFlags)&&32&Tx(e.type);if(a=q(hn,t,1,r&&!n))return a;if(n){const n=e.type,i=tp(n),o=i&&ap(n)?ne(i,n):i||Qd(n);if(a=q(o,t,1,r))return a}}else if(134217728&_&&!(524288&d)){if(!(134217728&d)){const n=Zp(e);if(n&&n!==e&&(a=q(n,t,1,r)))return a}}else if(268435456&_)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(a=q(e.type,t.type,3,r))return a}else{const n=Zp(e);if(n&&(a=q(n,t,1,r)))return a}else if(16777216&_){if(dC(e,m,b,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=VD(n,void 0,0,$);hw(e.inferences,t.extendsType,o,1536),o=fk(o,e.mapper),i=e.mapper}if(kk(o,t.extendsType)&&(q(e.checkType,t.checkType,3)||q(t.checkType,e.checkType,3))&&((a=q(fk(qx(e),i),qx(t),3,r))&&(a&=q(Ux(e),Ux(t),3,r)),a))return a}const n=zp(e);if(n&&(a=q(n,t,1,r)))return a;const i=16777216&d||!_f(e)?void 0:Wp(e);if(i&&(P(o),a=q(i,t,1,r)))return a}else{if(n!==mo&&n!==go&&32&Tx(p=t)&&4&lp(p)&&Gk(e))return-1;if(gp(t))return gp(e)&&(a=function(e,t,r){const i=n===yo||(n===vo?lp(e)===lp(t):_p(e)<=_p(t));if(i){let n;if(n=q(Qd(t),fk(Qd(e),_p(e)<0?Dn:Cn),3,r)){const i=BS([Xd(e)],[Xd(t)]);if(fk(tp(e),i)===fk(tp(t),i))return n&q(fk(rp(e),i),rp(t),3,r)}}return 0}(e,t,r))?a:0;const f=!!(402784252&_);if(n!==vo)_=(e=Sf(e)).flags;else if(gp(e))return 0;if(4&Tx(e)&&4&Tx(t)&&e.target===t.target&&!nD(e)&&!RT(e)&&!RT(t)){if($C(e))return-1;const n=TT(e.target);if(n===u)return 1;const r=h(uy(e),uy(t),n,i);if(void 0!==r)return r}else{if(OC(t)?gF(e,LC):IC(t)&&gF(e,(e=>nD(e)&&!e.target.readonly)))return n!==vo?q(Sm(e,Ut)||Dt,Sm(t,Ut)||Dt,3,r):0;if(rD(e)&&nD(t)&&!rD(t)){const n=uf(e);if(n!==e)return q(n,t,1,r)}else if((n===mo||n===go)&&Gk(t)&&8192&Tx(t)&&!Gk(e))return 0}if(2621440&_&&524288&d){const n=r&&l===o.errorInfo&&!f;if(a=ae(e,t,n,void 0,!1,i),a&&(a&=se(e,t,0,n,i),a&&(a&=se(e,t,1,n,i),a&&(a&=fe(e,t,f,n,i)))),c&&a)l=s||l||o.errorInfo;else if(a)return a}if(2621440&_&&1048576&d){const r=NF(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=Ep(e),o=Bw(i,t);if(!o)return 0;let a=1;for(const n of o)if(a*=bF(Cu(n)),a>25)return null==(r=Yn)||r.instant(Yn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:a}),0;const s=new Array(o.length),c=new Set;for(let e=0;er[i]),!1,0,U||n===yo))continue e}pe(u,a,bt),i=!0}if(!i)return 0}let _=-1;for(const t of u)if(_&=ae(e,t,!1,c,!1,0),_&&(_&=se(e,t,0,!1,0),_&&(_&=se(e,t,1,!1,0),!_||nD(e)&&nD(t)||(_&=fe(e,t,!1,!1,0)))),!_)return _;return _}(e,r);if(t)return t}}}var p;return 0;function f(e){return e?Pe(e,((e,t)=>e+1+f(t.next)),0):0}function h(e,t,i,_){if(a=function(e=u,t=u,r=u,i,o){if(e.length!==t.length&&n===vo)return 0;const a=e.length<=t.length?e.length:t.length;let s=-1;for(let c=0;c!!(24&e))))return s=void 0,void P(o);const d=t&&function(e,t){for(let n=0;n!(7&e)))))return 0;s=l,P(o)}}}(e,t,r,i,o);if(n!==vo){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=Fp(i);for(;e&&21233664&e.flags;)e=Fp(e);e&&(n=le(n,e),t&&(n=le(n,i)))}else(469892092&i.flags||Kk(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||Kk(t))&&(n=le(n,t));return rT(zb(n,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&gF(n,(t=>t!==e))&&(a=q(n,t,1,!1,void 0,i))}a&&!(2&i)&&2097152&t.flags&&!xx(t)&&2621440&e.flags?(a&=ae(e,t,r,void 0,!1,0),a&&bw(e)&&8192&Tx(e)&&(a&=fe(e,t,!1,r,0))):a&&eS(t)&&!LC(t)&&2097152&e.flags&&3670016&Sf(e).flags&&!X(e.types,(e=>e===t||!!(262144&Tx(e))))&&(a&=ae(e,t,r,void 0,!0,i))}return a&&P(o),a}(e,t,r,i),null==(c=Yn)||c.pop()),Qt&&(Qt=C),1&o&&b--,2&o&&x--,S=y,D?(-1===D||0===b&&0===x)&&F(-1===D||3===D):(n.set(_,2|E),w--,F(!1)),D;function F(e){for(let t=h;t{r.push(fk(e,ZS(t.mapper,Xd(t),n)))})),Ib(r)}function re(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r{return!!(4&dx(t))&&(n=e,r=XT(t),!WT(n,(e=>{const t=XT(e);return!!t&&Iu(t,r)})));var n,r}))}(r,i))return a&&j(ha.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,nc(i),ic(XT(r)||e),ic(XT(i)||t)),0}else if(4&l)return a&&j(ha.Property_0_is_protected_in_type_1_but_public_in_type_2,nc(i),ic(e),ic(t)),0;if(n===go&&LR(r)&&!LR(i))return 0;const _=function(e,t,n,r,i){const o=U&&!!(48&_x(t)),a=_l(Cu(t),!1,o);return q(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return _?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&j(ha.Property_0_is_optional_in_type_1_but_required_in_type_2,nc(i),ic(e),ic(t)),0):_:(a&&I(ha.Types_of_property_0_are_incompatible,nc(i)),0)}function ae(e,t,r,i,a,s){if(n===vo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=re(Cp(e),n),i=re(Cp(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=Dp(t,e.escapedName);if(!n)return 0;const r=wC(e,n,q);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(nD(t)){if(LC(e)){if(!t.target.readonly&&(OC(e)||nD(e)&&e.target.readonly))return 0;const n=_y(e),o=_y(t),a=nD(e)?4&e.target.combinedFlags:4,l=!!(12&t.target.combinedFlags),u=nD(e)?e.target.minLength:0,_=t.target.minLength;if(!a&&n<_)return r&&j(ha.Source_has_0_element_s_but_target_requires_1,n,_),0;if(!l&&o!(e&t)));return n>=0?n:e.elementFlags.length}(t.target,11),m=rb(t.target,11);let g=!!i;for(let a=0;a=f?o-1-Math.min(_,m):a,y=t.target.elementFlags[h];if(8&y&&!(8&u))return r&&j(ha.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&u&&!(12&y))return r&&j(ha.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,h),0;if(1&y&&!(1&u))return r&&j(ha.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(g&&((12&u||12&y)&&(g=!1),g&&(null==i?void 0:i.has(""+a))))continue;const v=xD(d[a],!!(u&y&2)),b=p[h],x=q(v,8&u&&4&y?Dv(b):xD(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(l&&a>=f&&_>=m&&f!==n-m-1?I(ha.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,h):I(ha.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,h)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const u=!(n!==mo&&n!==go||bw(e)||$C(e)||nD(e)),_=aw(e,t,u,!1);if(_)return r&&function(e,t){const n=Vf(e,0),r=Vf(e,1),i=Cp(e);return!((n.length||r.length)&&!i.length)||!!(Xf(t,0).length&&n.length||Xf(t,1).length&&r.length)}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&Nc(n.valueDeclaration)&&Qw(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Qh(e.symbol,r);if(i&&Uf(e,i)){const n=oD.getDeclarationName(e.symbol.valueDeclaration),i=oD.getDeclarationName(t.symbol.valueDeclaration);return void j(ha.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,_a(r),_a(""===n.escapedText?MB:n),_a(""===i.escapedText?MB:i))}}const a=Be(ow(e,t,r,!1));if((!o||o.code!==ha.Class_0_incorrectly_implements_interface_1.code&&o.code!==ha.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=nc(n,void 0,0,20);j(ha.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...oc(e,t)),p(n.declarations)&&B(Up(n.declarations[0],ha._0_is_declared_here,r)),i&&l&&T++}else z(e,t,!1)&&(a.length>5?j(ha.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ic(e),ic(t),O(a.slice(0,4),(e=>nc(e))).join(", "),a.length-4):j(ha.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ic(e),ic(t),O(a,(e=>nc(e))).join(", ")),i&&l&&T++)}(e,t,_,u),0;if(bw(t))for(const n of re(Ep(e),i))if(!(Dp(t,n.escapedName)||32768&Tu(n).flags))return r&&j(ha.Property_0_does_not_exist_on_type_1,nc(n),ic(t)),0;const d=Ep(t),f=nD(e)&&nD(t);for(const o of re(d,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||HT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=Uf(e,i);if(a&&a!==o){const i=oe(e,t,a,o,Cu,r,s,n===yo);if(!i)return 0;c&=i}}}return c}function se(e,t,r,i,o){var a,s;if(n===vo)return function(e,t,n){const r=Xf(e,n),i=Xf(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;erc(e,void 0,262144,r);return j(ha.Type_0_is_not_assignable_to_type_1,e(t),e(c)),j(ha.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of _){const n=A();let a=i;for(const e of u){const r=_e(e,t,!0,a,o,p(e,t));if(r){d&=r,P(n);continue e}a=!1}return a&&j(ha.Type_0_provides_no_match_for_the_signature_1,ic(e),rc(t,void 0,void 0,r)),0}return d}function ce(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>I(ha.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ic(e),ic(t)):(e,t)=>I(ha.Call_signature_return_types_0_and_1_are_incompatible,ic(e),ic(t))}function ue(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>I(ha.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ic(e),ic(t)):(e,t)=>I(ha.Construct_signature_return_types_0_and_1_are_incompatible,ic(e),ic(t))}function _e(e,t,r,i,o,a){const s=n===mo?16:n===go?24:0;return Vk(r?nh(e):e,r?nh(t):t,s,i,j,a,(function(e,t,n){return q(e,t,3,n,void 0,o)}),Cn)}function de(e,t,n,r){const i=q(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?j(ha._0_index_signatures_are_incompatible,ic(e.keyType)):j(ha._0_and_1_index_signatures_are_incompatible,ic(e.keyType),ic(t.keyType))),i}function fe(e,t,r,i,o){if(n===vo)return function(e,t){const n=bm(e),r=bm(t);if(n.length!==r.length)return 0;for(const t of r){const n=xm(e,t.keyType);if(!n||!q(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=bm(t),s=X(a,(e=>e.keyType===qt));let c=-1;for(const t of a){const a=n!==go&&!r&&s&&1&t.type.flags?-1:gp(e)&&s?q(rp(e),t.type,3,i):me(e,t,i,o);if(!a)return 0;c&=a}return c}function me(e,t,r,i){const o=Lm(e,t.keyType);return o?de(o,t,r,i):1&i||!(n!==go||8192&Tx(e))||!wD(e)?(r&&j(ha.Index_signature_for_type_0_is_missing_in_type_1,ic(t.keyType),ic(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?wp(e):Cp(e);for(const s of a)if(!nT(e,s)&&em(Xb(s,8576),o)){const e=Cu(s),a=q(ie||32768&e.flags||o===Ut||!(16777216&s.flags)?e:Zw(e,524288),t.type,3,n,void 0,r);if(!a)return n&&j(ha.Property_0_is_incompatible_with_index_signature,nc(s)),0;i&=a}for(const a of bm(e))if(em(a.keyType,o)){const e=de(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function uT(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!f(e.types,uT);if(465829888&e.flags){const t=Fp(e);if(t&&t!==e)return uT(t)}return HC(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function _T(e,t){return nD(e)&&nD(t)?u:Ep(t).filter((t=>dT(qc(e,t.escapedName),Tu(t))))}function dT(e,t){return!!e&&!!t&&$R(e,32768)&&!!kD(t)}function yT(e,t,n=Ck){return I$(e,t,n)||function(e,t){const n=Tx(e);if(20&n&&1048576&t.flags)return T(t.types,(t=>{if(524288&t.flags){const r=n&Tx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&Tx(e)&&pF(t,MC))return T(t.types,(e=>!MC(e)))}(e,t)||function(e,t){let n=0;const r=Xf(e,n).length>0||(n=1,Xf(e,n).length>0);if(r)return T(t.types,(e=>Xf(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=zb([ex(e),ex(i)]);if(4194304&t.flags)return i;if(HC(t)||1048576&t.flags){const e=1048576&t.flags?N(t.types,HC):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function vT(e,t,n){const r=e.types,i=r.map((e=>402784252&e.flags?0:-1));for(const[e,o]of t){let t=!1;for(let a=0;a!!n(e,s)))?t=!0:i[a]=3}for(let e=0;ei[t])),0):e;return 131072&o.flags?e:o}function xT(e){if(524288&e.flags){const t=Tp(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&k(t.properties,(e=>!!(16777216&e.flags)))}return 33554432&e.flags?xT(e.baseType):!!(2097152&e.flags)&&k(e.types,xT)}function TT(e){return e===Zn||e===er||8&e.objectFlags?S:PT(e.symbol,e.typeParameters)}function NT(e){return PT(e,na(e).typeParameters)}function PT(e,t=u){var n,r;const i=na(e);if(!i.variances){null==(n=Yn)||n.push(Yn.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:lb(y_(e))});const o=$i,a=zi;$i||($i=!0,zi=Mi.length),i.variances=u;const s=[];for(const n of t){const t=jT(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=Qt;Qt=e=>e?i=!0:t=!0;const a=IT(e,n,Bn),s=IT(e,n,Jn);r=(Fk(s,a)?1:0)|(Fk(a,s)?2:0),3===r&&Fk(IT(e,n,zn),a)&&(r=4),Qt=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}o||($i=!1,zi=a),i.variances=s,null==(r=Yn)||r.pop({variances:s.map(gn.formatVariance)})}return i.variances}function IT(e,t,n){const r=US(t,n),i=y_(e);if(Hc(i))return i;const o=524288&e.flags?py(e,IS(na(e).typeParameters,r)):ny(i,IS(i.typeParameters,r));return yt.add(lb(o)),o}function RT(e){return yt.has(lb(e))}function jT(e){var t;return 28672&Pe(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|Hv(t)),0)}function MT(e){return 262144&e.flags&&!Np(e)}function JT(e){return function(e){return!!(4&Tx(e))&&!e.node}(e)&&X(uy(e),(e=>!!(262144&e.flags)||JT(e)))}function zT(e,t,n,r,i){if(r===vo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return JT(e)&&JT(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of uy(e)){if(262144&a.flags){if(r||MT(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&JT(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function WT(e,t){if(!(6&_x(e)))return t(e);for(const n of e.links.containingType.types){const r=Uf(n,e.escapedName),i=r&&WT(r,t);if(i)return i}}function XT(e){return e.parent&&32&e.parent.flags?y_(gs(e)):void 0}function tC(e){const t=XT(e),n=t&&e_(t)[0];return n&&qc(n,e.escapedName)}function uC(e,t,n){return WT(t,(t=>!!(4&dx(t,n))&&!Iu(e,XT(t))))?void 0:e}function dC(e,t,n,r=3){if(n>=r){if(96&~Tx(e)||(e=yC(e)),2097152&e.flags)return X(e.types,(e=>dC(e,t,n,r)));const i=xC(e);let o=0,a=0;for(let e=0;e=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function yC(e){let t;for(;!(96&~Tx(e))&&(t=cp(e))&&(t.symbol||2097152&t.flags&&X(t.types,(e=>!!e.symbol)));)e=t;return e}function vC(e,t){return 96&~Tx(e)||(e=yC(e)),2097152&e.flags?X(e.types,(e=>vC(e,t))):xC(e)===t}function xC(e){if(524288&e.flags&&!xw(e)){if(4&Tx(e)&&e.node)return e.node;if(e.symbol&&!(16&Tx(e)&&32&e.symbol.flags))return e.symbol;if(nD(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function wC(e,t,n){if(e===t)return-1;const r=6&dx(e);if(r!==(6&dx(t)))return 0;if(r){if(gJ(e)!==gJ(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return LR(e)!==LR(t)?0:n(Tu(e),Tu(t))}function EC(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=ZL(e),i=ZL(t),o=eR(e),a=eR(t),s=tR(e),c=tR(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(p(e.typeParameters)!==p(t.typeParameters))return 0;if(t.typeParameters){const n=BS(e.typeParameters,t.typeParameters);for(let r=0;re|(1048576&t.flags?PC(t.types):t.flags)),0)}function AC(e){if(1===e.length)return e[0];const t=U?R(e,(e=>yF(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=XC(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?Ib(t):Pe(t,((e,t)=>wk(e,t)?t:e));return t===e?n:fD(n,98304&PC(e))}function IC(e){return!!(4&Tx(e))&&(e.target===Zn||e.target===er)}function OC(e){return!!(4&Tx(e))&&e.target===er}function LC(e){return IC(e)||nD(e)}function RC(e){return IC(e)&&!OC(e)||nD(e)&&!e.target.readonly}function jC(e){return IC(e)?uy(e)[0]:void 0}function MC(e){return IC(e)||!(98304&e.flags)&&Fk(e,ur)}function BC(e){return RC(e)||!(98305&e.flags)&&Fk(e,cr)}function JC(e){if(!(4&Tx(e)&&3&Tx(e.target)))return;if(33554432&Tx(e))return 67108864&Tx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&Tx(t)){const e=Wu(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=e_(t);if(1!==n.length)return;if(pd(e.symbol).size)return;let r=p(t.typeParameters)?fk(n[0],BS(t.typeParameters,uy(e).slice(0,t.typeParameters.length))):n[0];return p(uy(e))>p(t.typeParameters)&&(r=md(r,Te(uy(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function zC(e){return U?e===dn:e===Rt}function $C(e){const t=jC(e);return!!t&&zC(t)}function qC(e){let t;return nD(e)||!!Uf(e,"0")||MC(e)&&!!(t=qc(e,"length"))&&gF(t,(e=>!!(256&e.flags)))}function UC(e){return MC(e)||qC(e)}function VC(e,t){const n=qc(e,""+t);return n||(gF(e,nD)?cD(e,t,F.noUncheckedIndexedAccess?Lt:void 0):void 0)}function WC(e){return!(240544&e.flags)}function HC(e){return!!(109472&e.flags)}function GC(e){const t=uf(e);return 2097152&t.flags?X(t.types,HC):HC(t)}function KC(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||k(e.types,HC):HC(e))}function XC(e){return 1056&e.flags?l_(e):402653312&e.flags?qt:256&e.flags?Ut:2048&e.flags?Vt:512&e.flags?Yt:1048576&e.flags?function(e){const t=`B${lb(e)}`;return ko(t)??To(t,CF(e,XC))}(e):e}function QC(e){return 402653312&e.flags?qt:288&e.flags?Ut:2048&e.flags?Vt:512&e.flags?Yt:1048576&e.flags?CF(e,QC):e}function YC(e){return 1056&e.flags&&mS(e)?l_(e):128&e.flags&&mS(e)?qt:256&e.flags&&mS(e)?Ut:2048&e.flags&&mS(e)?Vt:512&e.flags&&mS(e)?Yt:1048576&e.flags?CF(e,YC):e}function ZC(e){return 8192&e.flags?nn:1048576&e.flags?CF(e,ZC):e}function eD(e,t){return dj(e,t)||(e=ZC(YC(e))),fS(e)}function tD(e,t,n,r){return e&&HC(e)&&(e=eD(e,t?NB(n,t,r):void 0)),e}function nD(e){return!!(4&Tx(e)&&8&e.target.objectFlags)}function rD(e){return nD(e)&&!!(8&e.target.combinedFlags)}function iD(e){return rD(e)&&1===e.target.elementFlags.length}function aD(e){return lD(e,e.target.fixedLength)}function cD(e,t,n){return CF(e,(e=>{const r=e,i=aD(r);return i?n&&t>=ib(r.target)?Ib([i,n]):i:Lt}))}function lD(e,t,n=0,r=!1,i=!1){const o=_y(e)-n;if(tKw(e,4194304)))}function pD(e){return 4&e.flags?Li:8&e.flags?Ri:64&e.flags?ji:e===Gt||e===Wt||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&uD(e)?e:cn}function fD(e,t){const n=t&~e.flags&98304;return 0===n?e:Ib(32768===n?[e,Lt]:65536===n?[e,zt]:[e,Lt,zt])}function mD(e,t=!1){gn.assert(U);const n=t?Mt:Lt;return e===n||1048576&e.flags&&e.types[0]===n?e:Ib([e,n])}function gD(e){return U?eE(e,2097152):e}function hD(e){return U?Ib([e,Bt]):e}function yD(e){return U?vF(e,Bt):e}function vD(e,t,n){return n?wl(t)?mD(e):hD(e):e}function bD(e,t){return Dl(t)?gD(e):Tl(t)?yD(e):e}function xD(e,t){return ie&&t?vF(e,jt):e}function kD(e){return e===jt||!!(1048576&e.flags)&&e.types[0]===jt}function DD(e){return ie?vF(e,jt):Zw(e,524288)}function wD(e){const t=Tx(e);return 2097152&e.flags?k(e.types,wD):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||gz(e))||!!(4194304&t)||!!(1024&t&&wD(e.source))}function FD(e,t){const n=Uo(e.flags,e.escapedName,8&_x(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=na(e).nameType;return r&&(n.links.nameType=r),n}function ND(e){if(!(bw(e)&&8192&Tx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=td();for(const r of Cp(e)){const e=Tu(r),i=t(e);n.set(r.escapedName,i===e?r:FD(r,i))}return n}(e,ND),i=Js(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function PD(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function AD(e){if(!e.siblings){const t=[];for(const n of AD(e.parent))if(bw(n)){const r=Dp(n,e.propertyName);r&&_F(Tu(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function ID(e){if(!e.resolvedProperties){const t=new Map;for(const n of AD(e))if(bw(n)&&!(2097152&Tx(n)))for(const e of Ep(n))t.set(e.escapedName,e);e.resolvedProperties=Be(t.values())}return e.resolvedProperties}function OD(e,t){if(!(4&e.flags))return e;const n=Tu(e),r=jD(n,t&&PD(t,e.escapedName,void 0));return r===n?e:FD(e,r)}function LD(e){const t=ht.get(e.escapedName);if(t)return t;const n=FD(e,Mt);return n.flags|=16777216,ht.set(e.escapedName,n),n}function RD(e){return jD(e,void 0)}function jD(e,t){if(196608&Tx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=Dt;else if(bw(e))n=function(e,t){const n=td();for(const r of Cp(e))n.set(r.escapedName,OD(r,t));if(t)for(const e of ID(t))n.has(e.escapedName)||n.set(e.escapedName,LD(e));const r=Js(e.symbol,n,u,u,R(bm(e),(e=>Ah(e.keyType,RD(e.type),e.isReadonly))));return r.objectFlags|=266240&Tx(e),r}(e,t);else if(1048576&e.flags){const r=t||PD(void 0,void 0,e.types),i=R(e.types,(e=>98304&e.flags?e:jD(e,r)));n=Ib(i,X(i,Gk)?2:1)}else 2097152&e.flags?n=zb(R(e.types,RD)):LC(e)&&(n=ny(e.target,R(uy(e),RD)));return n&&void 0===t&&(e.widened=n),n||e}return e}function MD(e){var t;let n=!1;if(65536&Tx(e))if(1048576&e.flags)if(X(e.types,Gk))n=!0;else for(const t of e.types)n||(n=MD(t));else if(LC(e))for(const t of uy(e))n||(n=MD(t));else if(bw(e))for(const r of Cp(e)){const i=Tu(r);if(65536&Tx(i)&&(n=MD(i),!n)){const o=null==(t=r.declarations)?void 0:t.find((t=>{var n;return(null==(n=t.symbol.valueDeclaration)?void 0:n.parent)===e.symbol.valueDeclaration}));o&&(Oo(o,ha.Object_literal_s_property_0_implicitly_has_an_1_type,nc(r),ic(RD(i))),n=!0)}}return n}function BD(e,t,n){const r=ic(RD(t));if(jm(e)&&!lT(Cd(e),F))return;let i;switch(e.kind){case 226:case 172:case 171:i=Z?ha.Member_0_implicitly_has_an_1_type:ha.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(Xw(t.name)){const n=Tc(t.name);if((TE(t.parent)||yE(t.parent)||FE(t.parent))&&t.parent.parameters.includes(t)&&(ze(t,t.name.escapedText,788968,void 0,!0)||n&&Nx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Mp(t.name)+(t.dotDotDotToken?"[]":"");return void jo(Z,e,ha.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?Z?ha.Rest_parameter_0_implicitly_has_an_any_type:ha.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Z?ha.Parameter_0_implicitly_has_an_1_type:ha.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(i=ha.Binding_element_0_implicitly_has_an_1_type,!Z)return;break;case 317:return void Oo(e,ha.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 323:return void(Z&&CP(e.parent)&&Oo(e.parent.tagName,ha.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Z&&!e.name)return void Oo(e,3===n?ha.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:ha.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=Z?3===n?ha._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:ha._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:ha._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void(Z&&Oo(e,ha.Mapped_object_type_implicitly_has_an_any_template_type));default:i=Z?ha.Variable_0_implicitly_has_an_1_type:ha.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}jo(Z,e,i,Mp(Ac(e)),r)}function JD(e,t,n){a((()=>{Z&&65536&Tx(t)&&(!n||du(e)&&function(e,t){const n=qA(e);if(!n)return!0;let r=jg(n);const i=zh(e);switch(t){case 1:return 1&i?r=NB(1,r,!!(2&i))??r:2&i&&(r=lM(r)??r),bx(r);case 3:const e=NB(0,r,!!(2&i));return!!e&&bx(e);case 2:const t=NB(2,r,!!(2&i));return!!t&&bx(t)}return!1}(e,n))&&(MD(t)||BD(e,t,n))}))}function zD(e,t,n){const r=ZL(e),i=ZL(t),o=nR(e),a=nR(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=wg(e);if(l){const e=wg(t);e&&n(l,e)}for(let r=0;re.typeParameter)),O(e.inferences,((t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?xA(t,2):PA(t,2);r&&hw(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),GD(e.inferences),t.isFixed=!0),Tw(e,n)))))}(i),i.nonFixingMapper=function(e){return WS(O(e.inferences,(e=>e.typeParameter)),O(e.inferences,((t,n)=>()=>Tw(e,n))))}(i),i}function GD(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function KD(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function XD(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function QD(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function YD(e){return e&&e.mapper}function ZD(e){const t=Tx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!ew(e)&&(4&t&&(e.node||X(uy(e),ZD))||134217728&t&&p(e.outerTypeParameters)||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!ew(e)&&X(e.types,ZD));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function ew(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=Z_(e.aliasSymbol,265);return!(!t||!yc(t.parent,(e=>307===e.kind||267!==e.kind&&"quit")))}return!1}function tw(e,t,n=0){return!!(e===t||3145728&e.flags&&X(e.types,(e=>tw(e,t,n)))||n<3&&16777216&e.flags&&(tw(qx(e),t,n+1)||tw(Ux(e),t,n+1)))}function nw(e,t,n){const r=e.id+","+t.id+","+n.id;if(yi.has(r))return yi.get(r);const i=function(e,t,n){if(!(xm(e,qt)||0!==Ep(e).length&&rw(e)))return;if(IC(e)){const r=iw(uy(e)[0],t,n);if(!r)return;return Dv(r,OC(e))}if(nD(e)){const r=O(ob(e),(e=>iw(e,t,n)));if(!k(r,(e=>!!e)))return;return Gv(r,4&lp(t)?R(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Ns(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return yi.set(r,i),i}function rw(e){return!(262144&Tx(e))||bw(e)&&X(Ep(e),(e=>rw(Tu(e))))||nD(e)&&X(ob(e),rw)}function iw(e,t,n){const r=e.id+","+t.id+","+n.id;if(hi.has(r))return hi.get(r)||Ot;co.push(e),lo.push(t);const i=uo;let o;return dC(e,co,co.length,2)&&(uo|=1),dC(t,lo,lo.length,2)&&(uo|=2),3!==uo&&(o=function(e,t,n){const r=Ix(n.type,Xd(t)),i=rp(t),o=XD(r);return hw([o],e,i),sw(o)||Ot}(e,t,n)),co.pop(),lo.pop(),uo=i,hi.set(r,o),o}function*ow(e,t,n,r){const i=Ep(t);for(const t of i)if(!P_(t)&&(n||!(16777216&t.flags||48&_x(t)))){const n=Uf(e,t.escapedName);if(n){if(r){const e=Tu(t);if(109472&e.flags){const r=Tu(n);1&r.flags||fS(r)===fS(e)||(yield t)}}}else yield t}}function aw(e,t,n,r){return be(ow(e,t,n,r))}function sw(e){return e.candidates?Ib(e.candidates,2):e.contraCandidates?zb(e.contraCandidates):void 0}function cw(e){return!!ra(e).skipDirectInference}function lw(e){return!(!e.symbol||!X(e.symbol.declarations,cw))}function uw(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function _w(e){return yS(CT(e))}function dw(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return Fk(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return Pe(n,((e,t)=>ix(t,e)),e)===e&&dw(e,t)}return!1}function pw(e,t){if(2097152&t.flags)return k(t.types,(t=>t===Pn||pw(e,t)));if(4&t.flags||Fk(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&uw(n,!1)||64&t.flags&&DT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&dw(gS(n),t)||134217728&t.flags&&mw(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&Fk(e.types[0],t)}return!1}function fw(e,t){return 128&e.flags?gw([e.value],u,t):134217728&e.flags?ae(e.texts,t.texts)?O(e.types,((e,n)=>{return Fk(uf(e),uf(t.types[n]))?e:402653317&(r=e).flags?r:nx(["",""],[r]);var r})):gw(e.texts,e.types,t):void 0}function mw(e,t){const n=fw(e,t);return!!n&&k(n,((e,n)=>pw(e,t.types[n])))}function gw(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p{if(!(128&e.flags))return;const n=xc(e.value),r=Uo(4,n);r.links.type=Dt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[Ah(qt,wn,!1)]:u;return Js(void 0,t,u,u,n)}(t);!function(e,t,n){const i=r;r|=n,y(e,t),r=i}(e,a.type,256)}else if(8388608&t.flags&&8388608&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(268435456&t.flags&&268435456&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(33554432&t.flags)p(t.baseType,a),f(Dy(t),a,4);else if(16777216&a.flags)m(t,a,C);else if(3145728&a.flags)x(t,a.types,a.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(134217728&a.flags)!function(e,t){const n=fw(e,t),r=t.types;if(n||k(t.texts,(e=>0===e.length)))for(let e=0;ee|t.flags),0);if(!(4&r)){const n=t.value;296&r&&!uw(n,!0)&&(r&=-297),2112&r&&!DT(n,!0)&&(r&=-2113);const o=Pe(e,((e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&mw(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===ox(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?hS(+n):32&e.flags?e:32&i.flags?hS(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?_w(n):2048&e.flags?e:2048&i.flags&&kT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Kt:"false"===n?Wt:Yt:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e),cn);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,a);else{if(gp(t=wf(t))&&gp(a)&&m(t,a,D),!(512&r&&467927040&t.flags)){const e=Sf(t);if(e!==t&&!(2621440&e.flags))return p(e,a);t=e}2621440&t.flags&&m(t,a,w)}else h(uy(t),uy(a),TT(t.target))}}}function f(e,t,n){const i=r;r|=n,p(e,t),r=i}function m(e,t,n){const r=e.id+","+t.id,i=a&&a.get(r);if(void 0!==i)return void(_=Math.min(_,i));(a||(a=new Map)).set(r,-1);const o=_;_=2048;const l=d;(s??(s=[])).push(e),(c??(c=[])).push(t),dC(e,s,s.length,2)&&(d|=1),dC(t,c,c.length,2)&&(d|=2),3!==d?n(e,t):_=-1,c.pop(),s.pop(),d=l,a.set(r,_),_=Math.min(_,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=fe(r,t),i=fe(i,o));return[r?P(e,(e=>!E(r,e))):e,i?P(t,(e=>!E(i,e))):t]}function h(e,t,n){const r=e.length!!b(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===i&&!s){const e=M(o,((e,t)=>a[t]?void 0:e));if(e.length)return void p(Ib(e),n)}}else for(const n of t)b(n)?i++:p(e,n);if(2097152&n?1===i:i>0)for(const n of t)b(n)&&f(e,n,1)}function S(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const i of n.types)r=S(e,t,i)||r;return r}if(4194304&n.flags){const r=b(n.type);if(r&&!r.isFixed&&!lw(e)){const i=nw(e,t,n);i&&f(i,r.typeParameter,262144&Tx(e)?16:8)}return!0}if(262144&n.flags){f(ex(e,e.pattern?2:0),n,32);const r=Fp(n);return r&&S(e,t,r)||p(Ib(Y(O(Ep(e),Tu),O(bm(e),(e=>e!==_i?e.type:cn)))),rp(t)),!0}return!1}function C(e,t){16777216&e.flags?(p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(qx(e),qx(t)),p(Ux(e),Ux(t))):function(e,t,n,i){const o=r;r|=i,x(e,t,n),r=o}(e,[qx(t),Ux(t)],t.flags,i?64:0)}function D(e,t){p(Qd(e),Qd(t)),p(rp(e),rp(t));const n=tp(e),r=tp(t);n&&r&&p(n,r)}function w(e,t){var n,r;if(4&Tx(e)&&4&Tx(t)&&(e.target===t.target||IC(e)&&IC(t)))h(uy(e),uy(t),TT(e.target));else{if(gp(e)&&gp(t)&&D(e,t),32&Tx(t)&&!t.declaration.nameType&&S(e,t,Qd(t)))return;if(!function(e,t){return nD(e)&&nD(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!(12&t.target.combinedFlags)&&(!!(12&e.target.combinedFlags)||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t0){const e=Xf(t,n),o=e.length;for(let t=0;twk(t,e)?t:e))}function kw(e,t){const n=function(e){if(e.length>1){const t=P(e,xw);if(t.length){const n=Ib(t,2);return Y(P(e,(e=>!xw(e))),[n])}}return e}(e.candidates),r=function(e){const t=Np(e);return!!t&&$R(16777216&t.flags?zp(t):t,406978556)}(e.typeParameter)||Pp(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=Pg(e);return n?!!n.type&&tw(n.type,t):tw(jg(e),t)}(t,e.typeParameter)),o=r?R(n,fS):i?R(n,YC):n;return RD(416&e.priority?Ib(o,2):AC(o))}function Tw(e,t){const n=e.inferences[t];if(!n.inferredType){let o,a;if(e.signature){const s=n.candidates?kw(n,e.signature):void 0,c=n.contraCandidates?Sw(n):void 0;if(s||c){const t=s&&(!c||!(131073&s.flags)&&X(n.contraCandidates,(e=>Fk(s,e)))&&k(e.inferences,(e=>e!==n&&Np(e.typeParameter)!==n.typeParameter||k(e.candidates,(e=>Fk(e,s))))));o=t?s:c,a=t?c:s}else if(1&e.flags)o=un;else{const a=ff(n.typeParameter);a&&(o=fk(a,(r=function(e,t){const n=e.inferences.slice(t);return BS(O(n,(e=>e.typeParameter)),O(n,(()=>Ot)))}(e,t),i=e.nonFixingMapper,r?GS(5,r,i):i)))}}else o=sw(n);n.inferredType=o||Cw(!!(2&e.flags));const s=Np(n.typeParameter);if(s){const t=fk(s,e.nonFixingMapper);o&&e.compareTypes(o,md(t,o))||(n.inferredType=a&&e.compareTypes(a,md(t,a))?a:t)}}var r,i;return n.inferredType}function Cw(e){return e?Dt:Ot}function Dw(e){const t=[];for(let n=0;nrN(e)||iN(e)||AE(e))))}function Nw(e,t,n,r){switch(e.kind){case 80:if(!yv(e)){const i=Ew(e);return i!==vt?`${r?QB(r):"-1"}|${lb(t)}|${lb(n)}|${YB(i)}`:void 0}case 110:return`0|${r?QB(r):"-1"}|${lb(t)}|${lb(n)}`;case 235:case 217:return Nw(e.expression,t,n,r);case 166:const i=Nw(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 211:case 212:const o=Ow(e);if(void 0!==o){const i=Nw(e.expression,t,n,r);return i&&`${i}.${o}`}if(rF(e)&&Xw(e.argumentExpression)){const i=Ew(e.argumentExpression);if(zN(i)||qN(i)&&!DN(i)){const o=Nw(e.expression,t,n,r);return o&&`${o}.@${YB(i)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${QB(e)}#${lb(t)}`}}function Aw(e,t){switch(t.kind){case 217:case 235:return Aw(e,t.expression);case 226:return _b(t)&&Aw(e,t.left)||hF(t)&&28===t.operatorToken.kind&&Aw(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return yv(e)?110===t.kind:80===t.kind&&Ew(e)===Ew(t)||(ZF(t)||ZE(t))&&Ts(Ew(e))===fs(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return Aw(e.expression,t);case 211:case 212:const n=Ow(e);if(void 0!==n){const r=Px(t)?Ow(t):void 0;if(void 0!==r)return r===n&&Aw(e.expression,t.expression)}if(rF(e)&&rF(t)&&Xw(e.argumentExpression)&&Xw(t.argumentExpression)){const n=Ew(e.argumentExpression);if(n===Ew(t.argumentExpression)&&(zN(n)||qN(n)&&!DN(n)))return Aw(e.expression,t.expression)}break;case 166:return Px(t)&&e.right.escapedText===Ow(t)&&Aw(e.left,t.expression);case 226:return hF(e)&&28===e.operatorToken.kind&&Aw(e.right,t)}return!1}function Ow(e){if(nF(e))return e.name.escapedText;if(rF(e))return function(e){return qh(e.argumentExpression)?xc(e.argumentExpression.text):fb(e.argumentExpression)?function(e){const t=Ha(e,111551,!0);if(!t||!(zN(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=Hl(n);if(r){const e=Lw(r);if(void 0!==e)return e}if(M_(n)&&oa(n,e)){const e=Qm(n);if(e){const t=Fu(n.parent)?ol(n):Cj(e);return t&&Lw(t)}if(XN(n))return $p(n.name)}}(e.argumentExpression):void 0}(e);if(ZE(e)){const t=el(e);return t?xc(t):void 0}return fE(e)?""+e.parent.parameters.indexOf(e):void 0}function Lw(e){return 8192&e.flags?e.escapedName:384&e.flags?xc(""+e.value):void 0}function Rw(e,t){for(;Px(e);)if(Aw(e=e.expression,t))return!0;return!1}function jw(e,t){for(;Tl(e);)if(Aw(e=e.expression,t))return!0;return!1}function Mw(e,t){if(e&&1048576&e.flags){const n=Cf(e,t);if(n&&2&_x(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||bx(Tu(n)))),!!n.links.isDiscriminantProperty}return!1}function Bw(e,t){let n;for(const r of e)if(Mw(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function Jw(e){const t=e.types;if(!(t.length<10||32768&Tx(e)||N(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=f(t,(e=>59506688&e.flags?f(Ep(e),(e=>HC(Tu(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=qc(i,t);if(e){if(!KC(e))return;let t=!1;_F(e,(e=>{const r=lb(fS(e)),o=n.get(r);o?o!==Ot&&(n.set(r,Ot),t=!0):n.set(r,i)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function zw(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(lb(fS(t)));return r!==Ot?r:void 0}function $w(e,t){const n=Jw(e),r=n&&qc(t,n);return r&&zw(e,r)}function qw(e,t){return Aw(e,t)||Rw(e,t)}function Uw(e,t){if(e.arguments)for(const n of e.arguments)if(qw(t,n)||jw(n,t))return!0;return!(211!==e.expression.kind||!qw(t,e.expression.expression))}function Vw(e){return e.id<=0&&(e.id=$B,$B++),e.id}function Ww(e,t){if(e===t)return e;if(131072&t.flags)return t;const n=`A${lb(e)},${lb(t)}`;return ko(n)??To(n,function(e,t){const n=yF(e,(e=>function(e,t){if(!(1048576&e.flags))return Fk(e,t);for(const n of e.types)if(Fk(n,t))return!0;return!1}(t,e))),r=512&t.flags&&mS(t)?CF(n,pS):n;return Fk(t,r)?r:e}(e,t))}function Hw(e){if(256&Tx(e))return!1;const t=Tp(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&wk(e,Kn))}function Gw(e,t){return Yw(e,t)&t}function Kw(e,t){return 0!==Gw(e,t)}function Yw(e,t){467927040&e.flags&&(e=Zp(e)||Ot);const n=e.flags;if(268435460&n)return U?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return U?t?12123649:7929345:t?12582401:16776705}if(40&n)return U?16317698:16776450;if(256&n){const t=0===e.value;return U?t?12123394:7929090:t?12582146:16776450}if(64&n)return U?16317188:16775940;if(2048&n){const t=uD(e);return U?t?12122884:7928580:t?12581636:16775940}return 16&n?U?16316168:16774920:528&n?U?e===Wt||e===Gt?12121864:7927560:e===Wt||e===Gt?12580616:16774920:524288&n?t&(U?83427327:83886079)?16&Tx(e)&&Gk(e)?U?83427327:83886079:Hw(e)?U?7880640:16728e3:U?7888800:16736160:0:16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?U?7925520:16772880:67108864&n?U?7888800:16736160:131072&n?0:1048576&n?Pe(e.types,((e,n)=>e|Yw(n,t)),0):2097152&n?function(e,t){const n=$R(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=Yw(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function Zw(e,t){return yF(e,(e=>Kw(e,t)))}function eE(e,t){const n=nE(Zw(U&&2&e.flags?In:e,t));if(U)switch(t){case 524288:return tE(n,65536,131072,33554432,zt);case 1048576:return tE(n,131072,65536,16777216,Lt);case 2097152:case 4194304:return CF(n,(e=>Kw(e,262144)?function(e){return _r||(_r=Vy("NonNullable",524288,void 0)||vt),_r!==vt?py(_r,[e]):zb([e,wn])}(e):e))}return n}function tE(e,t,n,r,i){const o=Gw(e,50528256);if(!(o&t))return e;const a=Ib([wn,i]);return CF(e,(e=>Kw(e,t)?zb([e,o&r||!Kw(e,n)?wn:a]):e))}function nE(e){return e===In?Ot:e}function rE(e,t){return t?Ib([Qc(e),Cj(t)]):e}function iE(e,t){var n;const r=Kb(t);if(!fC(r))return Nt;const i=mC(r);return qc(e,i)||aE(null==(n=Bm(e,i))?void 0:n.type)||Nt}function oE(e,t){return gF(e,qC)&&VC(e,t)||aE(sB(65,e,Lt,void 0))||Nt}function aE(e){return e&&F.noUncheckedIndexedAccess?Ib([e,jt]):e}function sE(e){return Dv(sB(65,e,Lt,void 0)||Nt)}function cE(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function uE(e){return iE(IE(e.parent),e.name)}function IE(e){const{parent:t}=e;switch(t.kind){case 249:return qt;case 250:return aB(t)||Nt;case 226:return function(e){return 209===e.parent.kind&&cE(e.parent)||303===e.parent.kind&&cE(e.parent.parent)?rE(IE(e),e.right):Cj(e.right)}(t);case 220:return Lt;case 209:return function(e,t){return oE(IE(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return sE(IE(e.parent))}(t);case 303:return uE(t);case 304:return function(e){return rE(uE(e),e.objectAssignmentInitializer)}(t)}return Nt}function ME(e){return ra(e).resolvedType||Cj(e)}function BE(e){return 260===e.kind?function(e){return e.initializer?ME(e.initializer):249===e.parent.parent.kind?qt:250===e.parent.parent.kind&&aB(e.parent.parent)||Nt}(e):function(e){const t=e.parent,n=BE(t.parent);return rE(206===t.kind?iE(n,e.propertyName||e.name):e.dotDotDotToken?sE(n):oE(n,t.elements.indexOf(e)),e.initializer)}(e)}function zE(e){switch(e.kind){case 217:return zE(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return zE(e.left);case 28:return zE(e.right)}}return e}function qE(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?qE(t):e}function WE(e){return 296===e.kind?fS(Cj(e.expression)):cn}function KE(e){const t=ra(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(WE(n))}return t.switchTypes}function XE(e){if(X(e.caseBlock.clauses,(e=>296===e.kind&&!q_(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!E(t,e)?e:void 0)}return t}function sF(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!db(t.types,n))return!1;return!0}return!!(1056&e.flags&&l_(e)===t)||db(t.types,e)}(e,t))}function _F(e,t){return 1048576&e.flags?f(e.types,t):t(e)}function pF(e,t){return 1048576&e.flags?X(e.types,t):t(e)}function gF(e,t){return 1048576&e.flags?k(e.types,t):t(e)}function yF(e,t){if(1048576&e.flags){const n=e.types,r=P(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=P(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=Ab(1048576,a)}}return Rb(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:cn}function vF(e,t){return yF(e,(e=>e!==t))}function bF(e){return 1048576&e.flags?e.types.length:1}function CF(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?CF(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&Ib(o,n?0:1):e}function FF(e,t,n,r){return 1048576&e.flags&&n?Ib(O(e.types,t),1,n,r):CF(e,t)}function NF(e,t){return yF(e,(e=>!!(e.flags&t)))}function PF(e,t){return $R(e,134217804)&&$R(t,402655616)?CF(e,(e=>4&e.flags?NF(t,402653316):yx(e)&&!$R(t,402653188)?NF(t,128):8&e.flags?NF(t,264):64&e.flags?NF(t,2112):e)):e}function IF(e){return 0===e.flags}function RF(e){return 0===e.flags?e.type:e}function BF(e,t){return t?{flags:0,type:131072&e.flags?un:e}:e}function JF(e){return gt[e.id]||(gt[e.id]=function(e){const t=Ns(256);return t.elementType=e,t}(e))}function UF(e,t){const n=ND(XC(wj(t)));return sF(n,e.elementType)?e:JF(Ib([e.elementType,n]))}function VF(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?lr:Dv(1048576&t.flags?Ib(t.types,2):t));var t}function WF(e){return 256&Tx(e)?VF(e):e}function HF(e){return 256&Tx(e)?e.elementType:cn}function GF(e){const t=qE(e),n=t.parent,r=nF(n)&&("length"===n.name.escapedText||213===n.parent.kind&&Xw(n.name)&&ry(n.name)),i=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!ih(n.parent)&&qR(Cj(n.argumentExpression),296);return r||i}function KF(e,t){if(8752&(e=Ba(e)).flags)return Tu(e);if(7&e.flags){if(262144&_x(e)){const t=e.links.syntheticOrigin;if(t&&KF(t))return Tu(e)}const n=e.valueDeclaration;if(n){if(function(e){return(ZF(e)||hE(e)||gE(e)||fE(e))&&!!(xv(e)||jm(e)&&j_(e)&&e.initializer&&VT(e.initializer)&&kv(e.initializer))}(n))return Tu(e);if(ZF(n)&&250===n.parent.parent.kind){const e=n.parent.parent,t=XF(e.expression,void 0);if(t)return sB(e.awaitModifier?15:13,t,Lt,void 0)}t&&pT(t,Up(n,ha._0_needs_an_explicit_type_annotation,nc(e)))}}}function XF(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return KF(Ts(Ew(e)),t);case 110:return function(e){const t=sm(e,!1,!1);if(uu(t)){const e=mg(t);if(e.thisParameter)return KF(e.thisParameter)}if(yu(t.parent)){const e=fs(t.parent);return Rv(t)?Tu(e):y_(e).thisType}}(e);case 108:return WP(e);case 211:{const n=XF(e.expression,t);if(n){const r=e.name;let i;if(Qw(r)){if(!n.symbol)return;i=Uf(n,Qh(n.symbol,r.escapedText))}else i=Uf(n,r.escapedText);return i&&KF(i,t)}return}case 217:return XF(e.expression,t)}}function QF(e){const t=ra(e);let n=t.effectsSignature;if(void 0===n){let r;hF(e)?r=HR(jI(e.right)):244===e.parent.kind?r=XF(e.expression,void 0):108!==e.expression.kind&&(r=Tl(e)?VI(bD(Ej(e.expression),e.expression),e.expression):jI(e.expression));const i=Xf(r&&Sf(r)||Ot,0),o=1!==i.length||i[0].typeParameters?X(i,YF)?vL(e):void 0:i[0];n=t.effectsSignature=o&&YF(o)?o:ci}return n===ci?void 0:n}function YF(e){return!!(Pg(e)||e.declaration&&131072&(Mg(e.declaration)||Ot).flags)}function cN(e){const t=fN(e,!1);return ti=e,ni=t,t}function pN(e){const t=ph(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(pN(t.left)||pN(t.right))||57===t.operatorToken.kind&&pN(t.left)&&pN(t.right))}function fN(e,t){for(;;){if(e===ti)return ni;const n=e.flags;if(4096&n){if(!t){const t=Vw(e),n=eo[t];return void 0!==n?n:eo[t]=fN(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=QF(e.node);if(t){const n=Pg(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&pN(t))return!1}if(131072&jg(t).flags)return!1}e=e.antecedent}else{if(4&n)return X(e.antecedent,(e=>fN(e,!1)));if(8&n){const t=e.antecedent;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){ti=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=fN(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&ER(t.switchStatement))return!1;e=e.antecedent}}}}}function mN(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=Vw(e),n=to[t];return void 0!==n?n:to[t]=mN(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return k(e.antecedent,(e=>mN(e,!1)));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=mN(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function hN(e){switch(e.kind){case 110:return!0;case 80:if(!yv(e)){const t=Ew(e);return zN(t)||qN(t)&&!DN(t)||!!t.valueDeclaration&&lF(t.valueDeclaration)}break;case 211:case 212:return hN(e.expression)&&LR(ra(e).resolvedSymbol||vt);case 206:case 207:const t=oy(e.parent);return fE(t)||UT(t)?!EN(t):ZF(t)&&j$(t)}return!1}function yN(e,t,n=t,r,i=(t=>null==(t=at(e,zg))?void 0:t.flowNode)()){let o,a=!1,s=0;if(Ti)return Nt;if(!i)return t;Ci++;const c=ki,l=RF(d(i));ki=c;const u=256&Tx(l)&&GF(e)?lr:WF(l);return u===pn||e.parent&&235===e.parent.kind&&!(131072&u.flags)&&131072&Zw(u,2097152).flags?t:u;function _(){return a?o:(a=!0,o=Nw(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Yn)||o.instant(Yn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),Ti=!0,function(e){const t=yc(e,gu),n=Cd(e),r=tf(n,t.statements.pos);_o.add(rS(n,r.start,r.length,ha.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Nt;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;e=0&&n.parameterIndex297===e.kind));if(n===r||o>=n&&oGw(e,t)===t))}return Ib(O(i.slice(n,r),(t=>t?V(e,t):cn)))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=D(t.caseBlock.clauses,(e=>297===e.kind)),o=n===r||i>=n&&i296===t.kind?Y(e,t.expression,!0):cn)))}(i,t.node);else{U&&(jw(n,e)?i=$(i,t.node,(e=>!(163840&e.flags))):221===n.kind&&jw(n.expression,e)&&(i=$(i,t.node,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=w(n,i);r&&(i=function(e,t,n){if(n.clauseStartzw(e,t)||Ot)));if(t!==Ot)return t}return F(e,t,(e=>q(e,n)))}(i,r,t.node))}return BF(i,IF(r))}function x(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedent){if(!i&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){i=s;continue}const e=d(s),c=RF(e);if(c===t&&t===n)return c;pe(r,c),sF(c,n)||(o=!0),IF(e)&&(a=!0)}if(i){const e=d(i),s=RF(e);if(!(131072&s.flags||E(r,s)||ER(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),sF(s,n)||(o=!0),IF(e)&&(a=!0)}}return BF(C(r,o?2:1),a)}function S(e){const r=Vw(e),i=Gi[r]||(Gi[r]=new Map),o=_();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=xi;t{const t=Uc(e,r)||Ot;return!(131072&t.flags)&&!(131072&s.flags)&&Ak(s,t)}))}function N(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=Jw(e);if(o&&o===Ow(t)){const t=zw(e,Cj(r));if(t)return n===(i?37:38)?t:HC(qc(t,o)||Ot)?vF(e,t):e}}return F(e,t,(e=>B(e,n,r,i)))}function P(t,n,r){if(Aw(e,n))return eE(t,r?4194304:8388608);U&&r&&jw(n,e)&&(t=eE(t,2097152));const i=w(n,t);return i?F(t,i,(e=>Zw(e,r?4194304:8388608))):t}function A(e,t,n){const r=Uf(e,t);return r?!!(16777216&r.flags||48&_x(r))||n:!!Bm(e,t)||!n}function I(e,t,n){const r=mC(t);if(pF(e,(e=>A(e,r,!0))))return yF(e,(e=>A(e,r,n)));if(n){const n=(Wr||(Wr=qy("Record",2,!0)||vt),Wr===vt?void 0:Wr);if(n)return zb([e,py(n,[t,Ot])])}return e}function L(e,t,n,r,i){return Y(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function j(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return P(Y(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=zE(n.left),a=zE(n.right);if(221===o.kind&&q_(a))return J(t,o,i,a,r);if(221===a.kind&&q_(o))return J(t,a,i,o,r);if(Aw(e,o))return B(t,i,a,r);if(Aw(e,a))return B(t,i,o,r);U&&(jw(o,e)?t=M(t,i,a,r):jw(a,e)&&(t=M(t,i,o,r)));const s=w(o,t);if(s)return N(t,s,i,a,r);const c=w(a,t);if(c)return N(t,c,i,o,r);if(H(o))return G(t,i,a,r);if(H(a))return G(t,i,o,r);if(pu(a)&&!Px(o))return L(t,o,a,i,r);if(pu(o)&&!Px(a))return L(t,a,o,i,r);break;case 104:return function(t,n,r){const i=zE(n.left);if(!Aw(e,i))return r&&U&&jw(i,e)?eE(t,2097152):t;const o=n.right,a=Cj(o);if(!Nk(a,Gn))return t;const s=QF(n),c=s&&Pg(s);if(c&&1===c.kind&&0===c.parameterIndex)return X(t,c.type,r,!0);if(!Nk(a,Kn))return t;const l=CF(a,K);return(!Wc(t)||l!==Gn&&l!==Kn)&&(r||524288&l.flags&&!Kk(l))?X(t,l,r,!0):t}(t,n,r);case 103:if(Qw(n.left))return function(t,n,r){const i=zE(n.right);if(!Aw(e,i))return t;gn.assertNode(n.left,Qw);const o=eO(n.left);if(void 0===o)return t;const a=o.parent,s=jv(gn.checkDefined(o.valueDeclaration,"should always have a declaration"))?Tu(a):y_(a);return X(t,s,r,!0)}(t,n,r);const l=zE(n.right);if(kD(t)&&Px(e)&&Aw(e.expression,l)){const i=Cj(n.left);if(fC(i)&&Ow(e)===mC(i))return Zw(t,r?524288:65536)}if(Aw(e,l)){const e=Cj(n.left);if(fC(e))return I(t,e,r)}break;case 28:return Y(t,n.right,r);case 56:return r?Y(Y(t,n.left,!0),n.right,!0):Ib([Y(t,n.left,!1),Y(t,n.right,!1)]);case 57:return r?Ib([Y(t,n.left,!0),Y(t,n.right,!0)]):Y(Y(t,n.left,!1),n.right,!1)}return t}function M(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=Cj(n);return i!==r&&gF(a,(e=>!!(e.flags&o)))||i===r&&gF(a,(e=>!(e.flags&(3|o))))?eE(e,2097152):e}function B(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=Cj(n),o=35===t||36===t;if(98304&i.flags)return U?eE(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||pF(e,Kk))){if(469893116&i.flags||Kk(i))return i;if(524288&i.flags)return fn}return PF(yF(e,(e=>{return Ak(e,i)||o&&(t=i,!!(524&e.flags)&&!!(28&t.flags));var t})),i)}return HC(i)?yF(e,(e=>!(GC(e)&&Ak(e,i)))):e}function J(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=zE(n.expression);if(!Aw(e,a)){U&&jw(a,e)&&o===("undefined"!==i.text)&&(t=eE(t,2097152));const n=w(a,t);return n?F(t,n,(e=>z(e,i,o))):t}return z(t,i,o)}function z(e,t,n){return n?V(e,t.text):eE(e,UB.get(t.text)||32768)}function $(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&k(KE(t).slice(n,r),i)?Zw(e,2097152):e}function q(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=KE(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||E(o,cn);if(2&e.flags&&!a){let t;for(let n=0;nAk(s,e))),s);if(!a)return c;const l=yF(e,(e=>!(GC(e)&&E(i,32768&e.flags?Lt:fS(function(e){return 2097152&e.flags&&T(e.types,HC)||e}(e))))));return 131072&c.flags?l:Ib([c,l])}function V(e,t){switch(t){case"string":return W(e,qt,1);case"number":return W(e,Ut,2);case"bigint":return W(e,Vt,4);case"boolean":return W(e,Yt,8);case"symbol":return W(e,nn,16);case"object":return 1&e.flags?e:Ib([W(e,fn,32),W(e,zt,131072)]);case"function":return 1&e.flags?e:W(e,Kn,64);case"undefined":return W(e,Lt,65536)}return W(e,fn,128)}function W(e,t,n){return CF(e,(e=>tT(e,t,go)?Kw(e,n)?e:cn:wk(t,e)?t:Kw(e,n)?zb([e,t]):cn))}function H(t){return(nF(t)&&"constructor"===kc(t.name)||rF(t)&&q_(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&Aw(e,t.expression)}function G(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=Cj(n);if(!jz(i)&&!Uu(i))return e;const o=Uf(i,"prototype");if(!o)return e;const a=Tu(o),s=Wc(a)?void 0:a;return s&&s!==Gn&&s!==Kn?Wc(e)?s:yF(e,(e=>{return n=s,524288&(t=e).flags&&1&Tx(t)||524288&n.flags&&1&Tx(n)?t.symbol===n.symbol:wk(t,n);var t,n})):e}function K(e){const t=qc(e,"prototype");if(t&&!Wc(t))return t;const n=Xf(e,1);return n.length?Ib(O(n,(e=>jg(nh(e))))):wn}function X(e,t,n,r){const i=1048576&e.flags?`N${lb(e)},${lb(t)},${(n?1:0)|(r?2:0)}`:void 0;return ko(i)??To(i,function(e,t,n,r){if(!n){if(e===t)return cn;if(r)return yF(e,(e=>!Nk(e,t)));const n=X(e,t,!0,!1);return yF(e,(e=>!sF(e,n)))}if(3&e.flags)return t;if(e===t)return t;const i=r?Nk:wk,o=1048576&e.flags?Jw(e):void 0,a=CF(t,(t=>{const n=o&&qc(t,o),a=CF(n&&zw(e,n)||e,r?e=>Nk(e,t)?e:Nk(t,e)?t:cn:e=>Ek(e,t)?e:Ek(t,e)?t:wk(e,t)?e:wk(t,e)?t:cn);return 131072&a.flags?CF(e,(e=>$R(e,465829888)&&i(t,Zp(e)||Ot)?zb([e,t]):cn)):a}));return 131072&a.flags?wk(t,e)?t:Fk(e,t)?e:Fk(t,e)?t:zb([e,t]):a}(e,t,n,r))}function Q(t,n,r,i){if(n.type&&(!Wc(t)||n.type!==Gn&&n.type!==Kn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=ph(t.expression);return Px(n)?ph(n.expression):void 0}(n,r);if(o){if(Aw(e,o))return X(t,n.type,i,!1);U&&jw(o,e)&&(i&&!Kw(n.type,65536)||!i&&gF(n.type,MI))&&(t=eE(t,2097152));const r=w(o,t);if(r)return F(t,r,(e=>X(e,n.type,i,!1)))}}return t}function Y(t,n,r){if(Dl(n)||hF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(Aw(e,n))return eE(t,r?2097152:262144);const i=w(n,t);return i?F(t,i,(e=>Zw(e,r?2097152:262144))):t}(t,n,r);switch(n.kind){case 80:if(!Aw(e,n)&&v<5){const i=Ew(n);if(zN(i)){const n=i.valueDeclaration;if(n&&ZF(n)&&!n.type&&n.initializer&&hN(e)){v++;const e=Y(t,n.initializer,r);return v--,e}}}case 110:case 108:case 211:case 212:return P(t,n,r);case 213:return function(t,n,r){if(Uw(n,e)){const e=r||!kl(n)?QF(n):void 0,i=e&&Pg(e);if(i&&(0===i.kind||1===i.kind))return Q(t,i,n,r)}if(kD(t)&&Px(e)&&nF(n.expression)){const i=n.expression;if(Aw(e.expression,zE(i.expression))&&Xw(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(q_(i)&&Ow(e)===xc(i.text))return Zw(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Y(t,n.expression,r);case 226:return j(t,n,r);case 224:if(54===n.operator)return Y(t,n.operand,!r)}return t}}function bN(e){return yc(e.parent,(e=>uu(e)&&!dm(e)||268===e.kind||307===e.kind||172===e.kind))}function DN(e){return!wN(e,void 0)}function wN(e,t){const n=yc(e.valueDeclaration,ON);if(!n)return!1;const r=ra(n);return 131072&r.flags||(r.flags|=131072,function(e){return!!yc(e.parent,(e=>ON(e)&&!!(131072&ra(e).flags)))}(n)||jN(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)232!==e.kind&&FN(e.name)))}function ON(e){return du(e)||QN(e)}function jN(e){switch(e.kind){case 80:const t=rh(e);if(0!==t){const n=Ew(e),r=1===t||void 0!==n.lastAssignmentPos&&n.lastAssignmentPos<0;if(qN(n)){if(void 0===n.lastAssignmentPos||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE){const t=yc(e,ON),r=yc(n.valueDeclaration,ON);n.lastAssignmentPos=t===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:n=e.end}e=e.parent}return n}(e,n.valueDeclaration):Number.MAX_VALUE}r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1)}}return;case 281:const n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&11!==r.kind){const e=Ha(r,111551,!0,!0);if(e&&qN(e)){const t=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=t*Number.MAX_VALUE}}return;case 264:case 265:case 266:return}wu(e)||qI(e,jN)}function zN(e){return 3&e.flags&&!!(6&AI(e))}function qN(e){const t=e.valueDeclaration&&oy(e.valueDeclaration);return!!t&&(fE(t)||ZF(t)&&(WN(t.parent)||UN(t)))}function UN(e){return!!(1&e.parent.flags)&&!(32&_c(e)||243===e.parent.parent.kind&&of(e.parent.parent.parent))}function YN(e,t){const n=U&&169===t.kind&&t.initializer&&Kw(e,16777216)&&!function(e){const t=ra(e);if(void 0===t.parameterInitializerContainsUndefined){if(!Rc(e,8))return mu(e.symbol),!0;const n=!!Kw(cj(e,0),16777216);if(!Jc())return mu(e.symbol),!0;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?Zw(e,524288):e}function nP(e){return 2097152&e.flags?X(e.types,nP):!!(465829888&e.flags&&1146880&uf(e).flags)}function rP(e){return 2097152&e.flags?X(e.types,rP):!(!(465829888&e.flags)||$R(uf(e),98304))}function iP(e,t,n){ky(e)&&(e=e.baseType);const r=!(n&&2&n)&&pF(e,nP)&&(function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||214===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(pF(e,rP)&&Sx(Cj(n.argumentExpression)))}(e,t)||function(e,t){const n=(Xw(e)||nF(e)||rF(e))&&!((IN(e.parent)||AN(e.parent))&&e.parent.tagName===e)&&PA(e,t&&32&t?8:void 0);return n&&!bx(n)}(t,n));return r?CF(e,uf):e}function oP(e){return!!yc(e,(e=>{const t=e.parent;return void 0===t?"quit":SN(t)?t.expression===e&&fb(e):!!CN(t)&&(t.name===e||t.propertyName===e)}))}function aP(e,t,n,r){if(Re&&(!(33554432&e.flags)||gE(e)||hE(e)))switch(t){case 1:return lP(e);case 2:return dP(e,n,r);case 3:return pP(e);case 4:return hP(e);case 5:return yP(e);case 6:return bP(e);case 7:return xP(e);case 8:return SP(e);case 0:if(Xw(e)&&(wm(e)||GN(e.parent)||uN(e.parent)&&e.parent.moduleReference===e)&&LP(e)){if(Ju(e.parent)&&(nF(e.parent)?e.parent.expression:e.parent.left)!==e)return;return void lP(e)}if(Ju(e)){let t=e;for(;Ju(t);){if(Af(t))return;t=t.parent}return dP(e)}if(SN(e))return pP(e);if(w_(e)||RN(e))return hP(e);if(uN(e))return Om(e)||NJ(e)?bP(e):void 0;if(CN(e))return xP(e);if((du(e)||yE(e))&&yP(e),!F.emitDecoratorMetadata)return;if(!(gI(e)&&qv(e)&&e.modifiers&&vm(B,e,e.parent,e.parent.parent)))return;return SP(e);default:gn.assertNever(t,`Unhandled reference hint: ${t}`)}}function lP(e){const t=Ew(e);t&&t!==Ie&&t!==vt&&!yv(e)&&kP(t,e)}function dP(e,t,n){const r=nF(e)?e.expression:e.left;if(gv(r)||!Xw(r))return;const i=Ew(r);if(!i||i===vt)return;if(NS(F)||jS(F)&&oP(e))return void kP(i,e);const o=n||aj(r);if(Wc(o)||o===un)return void kP(i,e);let a=t;if(!a&&!n){const t=nF(e)?e.name:e.right,n=Qw(t)&&YI(t.escapedText,t),r=Sf(0!==rh(e)||QI(e)?RD(o):o);a=Qw(t)?n&&tO(r,n)||void 0:Uf(r,t.escapedText)}a&&(Dz(a)||8&a.flags&&306===e.parent.kind)||kP(i,e)}function pP(e){if(Xw(e.expression)){const t=e.expression,n=Ts(Ha(t,-1,!0,!0,e));n&&kP(n,t)}}function hP(e){if(!dI(e)){const t=_o&&2===F.jsx?ha.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=Co(e),r=w_(e)?e.tagName:e;let i;if(RN(e)&&"null"===n||(i=ze(r,n,1===F.jsx?111167:111551,t,!0)),i&&(i.isReferenced=-1,Re&&2097152&i.flags&&!Ua(i)&&TP(i)),RN(e)){const n=Do(Cd(e));n&&ze(r,n,1===F.jsx?111167:111551,t,!0)}}}function yP(e){A<2&&2&zh(e)&&function(e){wP(e&&hm(e),!1)}(kv(e))}function bP(e){Lv(e,32)&&DP(e)}function xP(e){if(e.parent.parent.moduleSpecifier||e.isTypeOnly||e.parent.parent.isTypeOnly);else{const t=e.propertyName||e.name;if(11===t.kind)return;const n=ze(t,t.escapedText,2998271,void 0,!0);if(n&&(n===Ce||n===De||n.declarations&&of(zc(n.declarations[0]))));else{const r=n&&(2097152&n.flags?Ja(n):n);(!r||111551&za(r))&&(DP(e),lP(t))}}}function SP(e){if(F.emitDecoratorMetadata){const t=T(e.modifiers,mE);if(!t)return;switch(Zz(t,16),e.kind){case 263:const t=_v(e);if(t)for(const e of t.parameters)EP(hM(e));break;case 177:case 178:const n=177===e.kind?178:177,r=Z_(fs(e),n);EP(Ql(e)||r&&Ql(r));break;case 174:for(const t of e.parameters)EP(hM(t));EP(kv(e));break;case 172:EP(xv(e));break;case 169:EP(hM(e));const i=e.parent;for(const e of i.parameters)EP(hM(e));EP(kv(i))}}}function kP(e,t){if(Re&&Ma(e,111551)&&!hv(t)){const n=Ja(e);1160127&za(e,!0)&&(NS(F)||jS(F)&&oP(t)||!Dz(Ts(n)))&&TP(e)}}function TP(e){gn.assert(Re);const t=na(e);if(!t.referenced){t.referenced=!0;const n=ba(e);if(!n)return gn.fail();Om(n)&&111551&za(Ba(e))&&lP(mb(n.moduleReference))}}function DP(e){const t=fs(e),n=Ja(t);n&&(n===vt||111551&za(t,!0)&&!Dz(n))&&TP(t)}function wP(e,t){if(!e)return;const n=mb(e),r=2097152|(80===e.kind?788968:1920),i=ze(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if(Re&&Cs(i)&&!Dz(Ja(i))&&!Ua(i))TP(i);else if(t&&NS(F)&&wS(F)>=5&&!Cs(i)&&!X(i.declarations,Gl)){const t=Oo(e,ha.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=T(i.declarations||u,xa);r&&pT(t,Up(r,ha._0_was_imported_here,kc(n)))}}function EP(e){const t=mM(e);t&&su(t)&&wP(t,!0)}function NP(e,t){if(yv(e))return;if(t===Ie){if(cO(e))return void Oo(e,ha.arguments_cannot_be_referenced_in_property_initializers);let t=tm(e);if(t)for(A<2&&(219===t.kind?Oo(e,ha.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Lv(t,1024)&&Oo(e,ha.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),ra(t).flags|=512;t&&uF(t);)t=tm(t),t&&(ra(t).flags|=512);return}const n=Ts(t),r=IJ(n,e);zo(r)&&lx(e,r)&&r.declarations&&qo(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&yu(i)&&i.name!==e){let t=sm(e,!1,!1);for(;307!==t.kind&&t.parent!==i;)t=sm(t,!1,!1);307!==t.kind&&(ra(i).flags|=262144,ra(t).flags|=262144,ra(e).flags|=536870912)}!function(e,t){if(A>=2||!(34&t.flags)||!t.valueDeclaration||QN(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=Rp(t.valueDeclaration),r=function(e,t){return!!yc(e,(e=>e===t?"quit":uu(e)||e.parent&&hE(e.parent)&&!jv(e.parent)&&e.parent.initializer===e))}(e,n),i=jP(n);if(i){if(r){let r=!0;if(zF(n)){const i=Ph(t.valueDeclaration,261);if(i&&i.parent===n){const i=function(e,t){return yc(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=ra(i);e.flags|=8192,pe(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(ra(i).flags|=4096)}if(zF(n)){const r=Ph(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(ih(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}return!!r&&!!yc(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(ra(t.valueDeclaration).flags|=65536)}ra(t.valueDeclaration).flags|=32768}r&&(ra(t.valueDeclaration).flags|=16384)}(e,t)}function AP(e,t){if(yv(e))return UP(e);const n=Ew(e);if(n===vt)return Nt;if(NP(e,n),n===Ie)return cO(e)?Nt:Tu(n);LP(e)&&aP(e,1);const r=Ts(n);let i=r.valueDeclaration;const o=i;if(i&&208===i.kind&&E(Ni,i.parent)&&yc(e,(e=>e===i.parent)))return At;let a=function(e,t){var n;const r=Tu(e),i=e.valueDeclaration;if(i){if(ZE(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=oy(e);if(260===n.kind&&6&R$(n)||169===n.kind){const r=ra(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=Gc(e,0),a=o&&CF(o,uf);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!EN(n))){const e=yN(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?cn:al(i,e,!0)}}}}if(fE(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&xk(e)){const r=UA(e);if(r&&1===r.parameters.length&&iJ(r)){const o=kf(fk(Tu(r.parameters[0]),null==(n=MA(e))?void 0:n.nonFixingMapper));if(1048576&o.flags&&gF(o,nD)&&!X(e.parameters,EN))return Ix(yN(e,o,o,void 0,t.flowNode),hS(e.parameters.indexOf(i)-(fv(e)?1:0)))}}}}return r}(r,e);const s=rh(e);if(s){if(!(3&r.flags||jm(e)&&512&r.flags))return Oo(e,384&r.flags?ha.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?ha.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?ha.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?ha.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?ha.Cannot_assign_to_0_because_it_is_an_import:ha.Cannot_assign_to_0_because_it_is_not_a_variable,nc(n)),Nt;if(LR(r))return 3&r.flags?Oo(e,ha.Cannot_assign_to_0_because_it_is_a_constant,nc(n)):Oo(e,ha.Cannot_assign_to_0_because_it_is_a_read_only_property,nc(n)),Nt}const c=2097152&r.flags;if(3&r.flags){if(1===s)return oh(e)?XC(a):a}else{if(!c)return a;i=ba(n)}if(!i)return a;a=iP(a,e,t);const l=169===oy(i).kind,u=bN(i);let _=bN(e);const d=_!==u,p=e.parent&&e.parent.parent&&KN(e.parent)&&cE(e.parent.parent),f=134217728&n.flags,m=a===wt||a===lr,g=m&&235===e.parent.kind;for(;_!==u&&(218===_.kind||219===_.kind||Hf(_))&&(zN(r)&&a!==lr||qN(r)&&wN(r,e));)_=bN(_);const h=o&&ZF(o)&&!o.initializer&&!o.exclamationToken&&UN(o)&&!function(e){return(void 0!==e.lastAssignmentPos||DN(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(n),y=l||c||d&&!h||p||f||function(e,t){if(ZE(t)){const n=yc(e,ZE);return n&&oy(n)===oy(t)}}(e,i)||a!==wt&&a!==lr&&(!U||!!(16387&a.flags)||hv(e)||Fw(e)||281===e.parent.kind)||235===e.parent.kind||260===i.kind&&i.exclamationToken||33554432&i.flags,v=g?Lt:y?l?YN(a,i):a:m?Lt:mD(a),b=g?gD(yN(e,a,v,_)):yN(e,a,v,_);if(GF(e)||a!==wt&&a!==lr){if(!y&&!Xk(a)&&Xk(b))return Oo(e,ha.Variable_0_is_used_before_being_assigned,nc(n)),a}else if(b===wt||b===lr)return Z&&(Oo(Ac(i),ha.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,nc(n),ic(b)),Oo(e,ha.Variable_0_implicitly_has_an_1_type,nc(n),ic(b))),UM(b);return s?XC(b):b}function LP(e){var t;const n=e.parent;if(n){if(nF(n)&&n.expression===e)return!1;if(CN(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&kN(r)&&r.isTypeOnly)return!1}return!0}function jP(e){return yc(e,(e=>!e||ay(e)?"quit":Zu(e,!1)))}function BP(e,t){ra(e).flags|=2,172===t.kind||176===t.kind?ra(t.parent).flags|=4:ra(t).flags|=4}function zP(e){return mf(e)?e:uu(e)?void 0:qI(e,zP)}function $P(e){return Ku(y_(fs(e)))===$t}function qP(e,t,n){const r=t.parent;Dh(r)&&!$P(r)&&zg(e)&&e.flowNode&&!mN(e.flowNode,!1)&&Oo(e,n)}function UP(e){const t=hv(e);let n=sm(e,!0,!0),r=!1,i=!1;for(176===n.kind&&qP(e,n,ha.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=sm(n,!1,!i),r=!0),167===n.kind;)n=sm(n,!r,!1),i=!0;if(function(e,t){hE(t)&&jv(t)&&B&&t.initializer&&Bs(t.initializer,e.pos)&&qv(t.parent)&&Oo(e,ha.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)Oo(e,ha.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:Oo(e,ha.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Oo(e,ha.this_cannot_be_referenced_in_current_location)}!t&&r&&A<2&&BP(e,n);const o=VP(e,!0,n);if(te){const t=Tu(De);if(o===t&&r)Oo(e,ha.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=Oo(e,ha.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!QN(n)){const e=VP(n);e&&e!==t&&pT(r,Up(n,ha.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||Dt}function VP(e,t=!0,n=sm(e,!1,!1)){const r=jm(e);if(uu(n)&&(!tA(e)||fv(n))){let t=wg(mg(n))||r&&function(e){const t=il(e);if(t&&t.typeExpression)return TS(t.typeExpression);const n=gg(e);return n?wg(n):void 0}(n);if(!t){const e=function(e){return 218===e.kind&&hF(e.parent)&&3===cg(e.parent)?e.parent.left.expression.expression:174===e.kind&&210===e.parent.kind&&hF(e.parent.parent)&&6===cg(e.parent.parent)?e.parent.parent.left.expression:218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&hF(e.parent.parent.parent)&&6===cg(e.parent.parent.parent)?e.parent.parent.parent.left.expression:218===e.kind&&HN(e.parent)&&Xw(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&tF(e.parent.parent)&&iF(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===cg(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:vE(e)&&Xw(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&tF(e.parent)&&iF(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===cg(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=Ej(e).symbol;n&&n.members&&16&n.flags&&(t=y_(n).thisType)}else bL(n)&&(t=y_(ps(n.symbol)).thisType);t||(t=YP(n))}if(t)return yN(e,t)}if(yu(n.parent)){const t=fs(n.parent);return yN(e,Rv(n)?Tu(t):y_(t).thisType)}if(QN(n)){if(n.commonJsModuleIndicator){const e=fs(n);return e&&Tu(e)}if(n.externalModuleIndicator)return Lt;if(t)return Tu(De)}}function WP(e){const t=213===e.parent.kind&&e.parent.expression===e,n=_m(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&219===r.kind;)Lv(r,1024)&&(o=!0),r=_m(r,!0),i=A<2;r&&Lv(r,1024)&&(o=!0)}let a=0;if(!r||(s=r,!(t?176===s.kind:(yu(s.parent)||210===s.parent.kind)&&(Rv(s)?174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||175===s.kind:174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||171===s.kind||176===s.kind)))){const n=yc(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?Oo(e,ha.super_cannot_be_referenced_in_a_computed_property_name):t?Oo(e,ha.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(yu(r.parent)||210===r.parent.kind)?Oo(e,ha.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Oo(e,ha.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Nt}var s;if(t||176!==n.kind||qP(e,r,ha.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Rv(r)||t?(a=32,!t&&A>=2&&A<=8&&(hE(r)||bE(r))&&jp(e.parent,(e=>{QN(e)&&!af(e)||(ra(e).flags|=2097152)}))):a=16,ra(e).flags|=a,174===r.kind&&o&&(pm(e.parent)&&ih(e.parent)?ra(r).flags|=256:ra(r).flags|=128),i&&BP(e.parent,r),210===r.parent.kind)return A<2?(Oo(e,ha.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Nt):Dt;const c=r.parent;if(!Dh(c))return Oo(e,ha.super_can_only_be_referenced_in_a_derived_class),Nt;if($P(c))return t?Nt:$t;const l=y_(fs(c)),u=l&&e_(l)[0];return u?176===r.kind&&function(e,t){return!!yc(e,(e=>du(e)?"quit":169===e.kind&&e.parent===t))}(e,r)?(Oo(e,ha.super_cannot_be_referenced_in_constructor_arguments),Nt):32===a?Ku(l):md(u,l.thisType):Nt}function HP(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function KP(e){return 4&Tx(e)&&e.target===or?uy(e)[0]:void 0}function XP(e){return CF(e,(e=>2097152&e.flags?f(e.types,KP):KP(e)))}function QP(e,t){let n=e,r=t;for(;r;){const e=XP(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=EA(n,void 0)}}function YP(e){if(219===e.kind)return;if(xk(e)){const t=UA(e);if(t){const e=t.thisParameter;if(e)return Tu(e)}}const t=jm(e);if(te||t){const n=HP(e);if(n){const e=EA(n,void 0),t=QP(n,e);return t?fk(t,YD(MA(n))):RD(e?gD(e):aj(n))}const r=uh(e.parent);if(_b(r)){const e=r.left;if(Px(e)){const{expression:n}=e;if(t&&Xw(n)){const e=Cd(r);if(e.commonJsModuleIndicator&&Ew(n)===e.symbol)return}return RD(aj(n))}}}}function ZP(e){const t=e.parent;if(!xk(t))return;const n=dm(t);if(n&&n.arguments){const r=QO(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return UO(r,i,r.length,Dt,void 0,0);const o=ra(n),a=o.resolvedSignature;o.resolvedSignature=si;const s=i!!(58998787&e.flags)||Ij(e,n,void 0))):2&n?yF(t,(e=>!!(58998787&e.flags)||!!eM(e))):t}const i=dm(e);return i?PA(i,t):void 0}function iA(e,t){const n=QO(e).indexOf(t);return-1===n?void 0:oA(e,n)}function oA(e,t){if(gf(e))return 0===t?qt:1===t?Xy(!1):Dt;const n=ra(e).resolvedSignature===li?li:vL(e);if(w_(e)&&0===t)return BA(n,e);const r=n.parameters.length-1;return iJ(n)&&t>=r?Ix(Tu(n.parameters[r]),hS(t-r),256):KL(n,t)}function aA(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=cg(e);switch(r){case 0:case 4:const i=function(e){if(p_(e)&&e.symbol)return e.symbol;if(Xw(e))return Ew(e);if(nF(e)){const n=Cj(e.expression);return Qw(e.name)?t(n,e.name):Uf(n,e.name.escapedText)}if(rF(e)){const t=aj(e.argumentExpression);if(!fC(t))return;return Uf(Cj(e.expression),mC(t))}return;function t(e,t){const n=YI(t.escapedText,t);return n&&tO(e,n)}}(e.left),o=i&&i.valueDeclaration;if(o&&(hE(o)||gE(o))){const t=xv(o);return t&&fk(TS(t),na(i).mapper)||(hE(o)?o.initializer&&Cj(e.left):void 0)}return 0===r?Cj(e.left):cA(e);case 5:if(sA(e,r))return cA(e);if(p_(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=st(e.left,Px),r=xv(t);if(r)return TS(r);if(Xw(n.expression)){const e=n.expression,t=ze(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&xv(t.valueDeclaration);if(e){const t=hg(n);if(void 0!==t)return _A(TS(e),t)}return}}return jm(t)||t===e.left?void 0:Cj(e.left)}return Cj(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=p_(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&xv(a);return s?TS(s):void 0;case 7:case 8:case 9:return gn.fail("Does not apply");default:return gn.assertNever(r)}}(n):void 0;case 57:case 61:const i=PA(n,t);return e===o&&(i&&i.pattern||!i&&!tg(n))?Cj(r):i;case 56:case 28:return e===o?PA(n,t):void 0;default:return}}function sA(e,t=cg(e)){if(4===t)return!0;if(!jm(e)||5!==t||!Xw(e.left.expression))return!1;const n=e.left.expression.escapedText,r=ze(e.left,n,111551,void 0,!0,!0);return mm(null==r?void 0:r.valueDeclaration)}function cA(e){if(!e.symbol)return Cj(e.left);if(e.symbol.valueDeclaration){const t=xv(e.symbol.valueDeclaration);if(t){const e=TS(t);if(e)return e}}const t=st(e.left,Px);if(!Wf(sm(t.expression,!1,!1)))return;const n=UP(t.expression),r=hg(t);return void 0!==r&&_A(n,r)||void 0}function lA(e,t){if(16777216&e.flags){const n=e;return!!(131072&wf(qx(n)).flags)&&Bx(Ux(n))===Bx(n.checkType)&&Fk(t,n.extendsType)}return!!(2097152&e.flags)&&X(e.types,(e=>lA(e,t)))}function _A(e,t,n){return CF(e,(e=>{if(2097152&e.flags){let r,i,o=!1;for(const a of e.types){if(!(524288&a.flags))continue;if(gp(a)&&2!==xp(a)){r=dA(r,gA(a,t,n));continue}const e=vA(a,t);e?(o=!0,i=void 0,r=dA(r,e)):o||(i=le(i,a))}if(i)for(const e of i)r=dA(r,bA(e,t,n));if(!r)return;return 1===r.length?r[0]:zb(r)}if(524288&e.flags)return gp(e)&&2!==xp(e)?gA(e,t,n):vA(e,t)??bA(e,t,n)}),!0)}function dA(e,t){return t?le(e,1&t.flags?Ot:t):e}function gA(e,t,n){const r=n||gS(Sc(t)),i=Qd(e);if(!(e.nameType&&lA(e.nameType,r)||lA(i,r)))return Fk(r,Zp(i)||i)?Ax(e,r):void 0}function vA(e,t){const n=Uf(e,t);var r;if(n&&!(262144&_x(r=n)&&!r.links.type&&Mc(r,0)>=0))return xD(Tu(n),!!(16777216&n.flags))}function bA(e,t,n){var r;if(nD(e)&&HT(t)&&+t>=0){const t=lD(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=Zf(nm(e),n||gS(Sc(t))))?void 0:r.type}function xA(e,t){if(gn.assert(Wf(e)),!(67108864&e.flags))return SA(e,t)}function SA(e,t){const n=e.parent,r=HN(e)&&eA(e,t);if(r)return r;const i=EA(n,t);if(i){if(od(e)){const t=fs(e);return _A(i,t.escapedName,na(t).nameType)}if(Vh(e)){const t=Ac(e);if(t&&dE(t)){const e=Ej(t.expression),n=fC(e)&&_A(i,mC(e));if(n)return n}}if(e.name){const t=Kb(e.name);return CF(i,(e=>{var n;return null==(n=Zf(nm(e),t))?void 0:n.type}),!0)}}}function kA(e,t,n,r,i){return e&&CF(e,(e=>{if(nD(e)){if((void 0===r||ti)?n-t:0,a=o>0&&12&e.target.combinedFlags?rb(e.target,3):0;return o>0&&o<=a?uy(e)[_y(e)-o]:lD(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||tMC(e)?Ix(e,hS(a)):e),!0))}(n,e,t):void 0}function CA(e,t){if(MN(e)){const n=EA(e.parent,t);if(!n||Wc(n))return;return _A(n,cC(e.name))}return PA(e.parent,t)}function DA(e){switch(e.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return DA(e.expression);case 294:return!e.expression||DA(e.expression)}return!1}function wA(e,t){const n=`D${QB(e)},${lb(t)}`;return ko(n)??To(n,function(e,t){const n=Jw(e),r=n&&T(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&DA(e.initializer))),i=r&&wj(r.initializer);return i&&zw(e,i)}(t,e)??vT(t,Y(O(P(e.properties,(e=>!!e.symbol&&(303===e.kind?DA(e.initializer)&&Mw(t,e.symbol.escapedName):304===e.kind&&Mw(t,e.symbol.escapedName)))),(e=>[()=>wj(303===e.kind?e.initializer:e.name),e.symbol.escapedName])),O(P(Ep(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&Mw(t,n.escapedName)})),(e=>[()=>Lt,e.escapedName]))),Fk))}function EA(e,t){const n=FA(Wf(e)?xA(e,t):PA(e,t),e,t);if(n&&!(t&&2&t&&8650752&n.flags)){const t=CF(n,(e=>32&Tx(e)?e:Sf(e)),!0);return 1048576&t.flags&&tF(e)?wA(e,t):1048576&t.flags&&BN(e)?function(e,t){const n=`D${QB(e)},${lb(t)}`,r=ko(n);if(r)return r;const i=vI(pI(e));return To(n,vT(t,Y(O(P(e.properties,(e=>!!e.symbol&&291===e.kind&&Mw(t,e.symbol.escapedName)&&(!e.initializer||DA(e.initializer)))),(e=>[e.initializer?()=>wj(e.initializer):()=>Kt,e.symbol.escapedName])),O(P(Ep(t),(n=>{var r;if(!(16777216&n.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const o=e.parent.parent;return(n.escapedName!==i||!PN(o)||!gy(o.children).length)&&!e.symbol.members.has(n.escapedName)&&Mw(t,n.escapedName)})),(e=>[()=>Lt,e.escapedName]))),Fk))}(e,t):t}}function FA(e,t,n){if(e&&$R(e,465829888)){const r=MA(t);if(r&&1&n&&X(r.inferences,bj))return NA(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=NA(e,r.returnMapper);return 1048576&t.flags&&db(t.types,Gt)&&db(t.types,Xt)?yF(t,(e=>e!==Gt&&e!==Xt)):t}}return e}function NA(e,t){return 465829888&e.flags?fk(e,t):1048576&e.flags?Ib(O(e.types,(e=>NA(e,t))),0):2097152&e.flags?zb(O(e.types,(e=>NA(e,t)))):e}function PA(e,t){var n;if(67108864&e.flags)return;const r=LA(e,!t);if(r>=0)return wi[r];const{parent:i}=e;switch(i.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(j_(n)&&e===n.initializer){const e=eA(n,t);if(e)return e;if(!(8&t)&&Fu(n.name)&&n.name.elements.length>0)return jl(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=tm(e);if(n){let e=rA(n,t);if(e){const t=zh(n);if(1&t){const n=!!(2&t);1048576&e.flags&&(e=yF(e,(e=>!!NB(1,e,n))));const r=NB(1,e,!!(2&t));if(!r)return;e=r}if(2&t){const t=CF(e,lM);return t&&Ib([t,SR(t)])}return e}}}(e,t);case 229:return function(e,t){const n=tm(e);if(n){const r=zh(n);let i=rA(n,t);if(i){const n=!!(2&r);if(!e.asteriskToken&&1048576&i.flags&&(i=yF(i,(e=>!!NB(1,e,n)))),e.asteriskToken){const r=PB(i,n),o=(null==r?void 0:r.yieldType)??un,a=PA(e,t)??un,s=(null==r?void 0:r.nextType)??Ot,c=CR(o,a,s,!1);return n?Ib([c,CR(o,a,s,!0)]):c}return NB(0,i,n)}}}(i,t);case 223:return function(e,t){const n=PA(e,t);if(n){const e=lM(n);return e&&Ib([e,SR(e)])}}(i,t);case 213:case 214:return iA(i,e);case 170:return function(e){const t=bR(e);return t?vh(t):void 0}(i);case 216:case 234:return Fl(i.type)?PA(i,t):TS(i.type);case 226:return aA(e,t);case 303:case 304:return SA(i,t);case 305:return PA(i.parent,t);case 209:{const r=i,o=EA(r,t),a=ip(r.elements,e),s=(n=ra(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;r=0)return wi[n]}return oA(e,0)}(i,t);case 301:return function(e){return _A(Qy(!1),bC(e))}(i)}}function AA(e){IA(e,PA(e,void 0),!0)}function IA(e,t,n){Di[Fi]=e,wi[Fi]=t,Ei[Fi]=n,Fi++}function OA(){Fi--}function LA(e,t){for(let n=Fi-1;n>=0;n--)if(e===Di[n]&&(t||!Ei[n]))return n;return-1}function MA(e){for(let t=Oi-1;t>=0;t--)if(mh(e,Pi[t]))return Ai[t]}function BA(e,t){return RN(t)||0!==WO(t)?function(e,t){let n=oR(e,Ot);n=JA(t,pI(t),n);const r=uI(OB.IntrinsicAttributes,t);return Hc(r)||(n=jd(r,n)),n}(e,t):function(e,t){const n=pI(t),r=(i=n,hI(OB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?oR(e,Ot):""===r?jg(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=jg(r);if(Wc(e))return e;const i=qc(e,t);if(!i)return;n.push(i)}return zb(n)}const n=jg(e);return Wc(n)?n:qc(n,t)}(e,r);if(!o)return r&&p(t.attributes.properties)&&Oo(t,ha.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Sc(r)),Ot;if(o=JA(t,n,o),Wc(o))return o;{let n=o;const r=uI(OB.IntrinsicClassAttributes,t);if(!Hc(r)){const i=ju(r.symbol),o=jg(e);let a;a=i?fk(r,BS(i,dg([o],i,_g(i),jm(t)))):r,n=jd(a,n)}const i=uI(OB.IntrinsicAttributes,t);return Hc(i)||(n=jd(i,n)),n}}(e,t)}function JA(e,t,n){const r=(i=t)&&ia(i.exports,OB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if(RN(e))return gL(e);if(oI(e.tagName))return vh(mL(e,SI(e)));const t=aj(e.tagName);if(128&t.flags){const n=xI(t,e);return n?vh(mL(e,n)):Nt}return t}(e),i=wI(r,jm(e),t,n);if(i)return i}return n}function zA(e){return HS(F,"noImplicitAny")?Pe(e,((e,t)=>e!==t&&e?Ad(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=BS(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=ZL(e),i=ZL(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=tR(e)||tR(t),l=c&&!tR(o),u=new Array(s+(l?1:0));for(let _=0;_=eR(o)&&_>=eR(a),h=_>=r?void 0:VL(e,_),y=_>=i?void 0:VL(t,_),v=Uo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${_}`,m?32768:g?16384:0);v.links.type=m?Dv(f):f,u[_]=v}if(l){const e=Uo(1,"args",32768);e.links.type=Dv(KL(a,s)),a===t&&(e.links.type=fk(e.links.type,n)),u[s]=e}return u}(e,t,r),s=ke(a);s&&32768&_x(s)&&(i|=1);const c=function(e,t,n){if(!e||!t)return e||t;const r=Ib([Tu(e),fk(Tu(t),n)]);return FD(e,r)}(e.thisParameter,t.thisParameter,r),l=Math.max(e.minArgumentCount,t.minArgumentCount),u=hd(o,n,c,a,void 0,void 0,l,i);return u.compositeKind=2097152,u.compositeSignatures=Y(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(u.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?QS(e.mapper,r):r),u}(e,t):void 0:e)):void 0}function $A(e,t){const n=P(Xf(e,0),(e=>!function(e,t){let n=0;for(;nfunction(e){const t=Cd(e);if(!T$(t)&&!e.isUnterminated){let r;n??(n=ks(99,!0)),n.setScriptTarget(t.languageVersion),n.setLanguageVariant(t.languageVariant),n.setOnError(((e,i,o)=>{const a=n.getTokenEnd();if(3===e.category&&r&&a===r.start&&i===r.length){const n=Zx(t.fileName,t.text,a,i,e,o);pT(r,n)}else r&&a===r.start||(r=rS(t,a,i,e,o),_o.add(r))})),n.setText(t.text,e.pos,e.end-e.pos);try{return n.scan(),gn.assert(14===n.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{n.setText(""),n.setOnError(void 0)}}return!1}(e)))),ir}function WA(e){return 208===e.kind&&!!e.initializer||303===e.kind&&WA(e.initializer)||304===e.kind&&!!e.objectAssignmentInitializer||226===e.kind&&64===e.operatorToken.kind}function HA(e,t,n){const r=e.elements,i=r.length,o=[],a=[];AA(e);const s=ih(e),c=pj(e),l=EA(e,void 0),u=function(e){const t=uh(e.parent);return xF(t)&&qu(t.parent)}(e)||!!l&&pF(l,(e=>qC(e)||gp(e)&&!e.nameType&&!!lk(e.target||e)));let _=!1;for(let c=0;c8&a[t]?Rx(e,Ut)||Dt:e)),2):U?dn:Rt,c))}function GA(e){if(!(4&Tx(e)))return e;let t=e.literalType;return t||(t=e.literalType=cy(e),t.objectFlags|=147456),t}function KA(e){switch(e.kind){case 167:return function(e){return qR(XA(e),296)}(e);case 80:return HT(e.escapedText);case 9:case 11:return HT(e.text);default:return!1}}function XA(e){const t=ra(e.expression);if(!t.resolvedType){if((AE(e.parent.parent)||yu(e.parent.parent)||rN(e.parent.parent))&&hF(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Nt;if(t.resolvedType=Ej(e.expression),hE(e.parent)&&!jv(e.parent)&&SF(e.parent.parent)){const t=jP(Rp(e.parent.parent));t&&(ra(t).flags|=4096,ra(e).flags|=32768,ra(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!qR(t.resolvedType,402665900)&&!Fk(t.resolvedType,hn))&&Oo(e,ha.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function QA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return HT(e.escapedName)||n&&Nc(n)&&KA(n.name)}function YA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Yh(e)||n&&Nc(n)&&dE(n.name)&&qR(XA(n.name),4096)}function ZA(e,t,n,r){const i=[];for(let e=t;e0&&(a=aS(a,x(),e.symbol,m,l),o=[],i=td(),h=!1,y=!1,v=!1);const n=wf(Ej(u.expression,2&t));if(rI(n)){const t=nS(n,l);if(r&&lI(t,r,u),b=o.length,Hc(a))continue;a=aS(a,t,e.symbol,m,l)}else Oo(u,ha.Spread_types_may_only_be_created_from_object_types),a=Nt;continue}gn.assert(177===u.kind||178===u.kind),VJ(u)}!S||8576&S.flags?i.set(f.escapedName,f):Fk(S,hn)&&(Fk(S,Ut)?y=!0:Fk(S,nn)?v=!0:h=!0,n&&(g=!0)),o.push(f)}return OA(),Hc(a)?Nt:a!==wn?(o.length>0&&(a=aS(a,x(),e.symbol,m,l),o=[],i=td(),h=!1,y=!1),CF(a,(e=>e===wn?x():e))):x();function x(){const t=[],r=pj(e);h&&t.push(ZA(r,b,o,qt)),y&&t.push(ZA(r,b,o,Ut)),v&&t.push(ZA(r,b,o,nn));const a=Js(e.symbol,i,u,u,t);return a.objectFlags|=131200|m,f&&(a.objectFlags|=4096),g&&(a.objectFlags|=512),n&&(a.pattern=e),a}}function rI(e){const t=dD(CF(e,uf));return!!(126615553&t.flags||3145728&t.flags&&k(t.types,rI))}function iI(e){return e.includes("-")}function oI(e){return Xw(e)&&jy(e.escapedText)||$N(e)}function aI(e,t){return e.initializer?fj(e.initializer,t):Kt}function sI(e,t=0){const n=U?td():void 0;let r,i=td(),o=En,a=!1,s=!1,c=2048;const l=vI(pI(e));let _,d=e;if(!RN(e)){const u=e.attributes;_=u.symbol,d=u;const p=PA(u,0);for(const e of u.properties){const _=e.symbol;if(MN(e)){const r=aI(e,t);c|=458752&Tx(r);const o=Uo(4|_.flags,_.escapedName);if(o.declarations=_.declarations,o.parent=_.parent,_.valueDeclaration&&(o.valueDeclaration=_.valueDeclaration),o.links.type=r,o.links.target=_,i.set(o.escapedName,o),null==n||n.set(o.escapedName,o),cC(e.name)===l&&(s=!0),p){const t=Uf(p,_.escapedName);t&&t.declarations&&zo(t)&&Xw(e.name)&&qo(e.name,t.declarations,e.name.escapedText)}if(p&&2&t&&!(4&t)&&vk(e)){const t=MA(u);gn.assert(t),KD(t,e.initializer.expression,r)}}else{gn.assert(293===e.kind),i.size>0&&(o=aS(o,f(),u.symbol,c,!1),i=td());const s=wf(Ej(e.expression,2&t));Wc(s)&&(a=!0),rI(s)?(o=aS(o,s,u.symbol,c,!1),n&&lI(s,n,e)):(Oo(e.expression,ha.Spread_types_may_only_be_created_from_object_types),r=r?zb([r,s]):s)}}a||i.size>0&&(o=aS(o,f(),u.symbol,c,!1))}const p=e.parent;if((PN(p)&&p.openingElement===e||LN(p)&&p.openingFragment===e)&&gy(p.children).length>0){const n=cI(p,t);if(!a&&l&&""!==l){s&&Oo(d,ha._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Sc(l));const t=IN(e)?EA(e.attributes,void 0):void 0,r=t&&_A(t,l),i=Uo(4,l);i.links.type=1===n.length?n[0]:r&&pF(r,qC)?Gv(n):Dv(Ib(n)),i.valueDeclaration=oD.createPropertySignature(void 0,Sc(l),void 0,void 0),LT(i.valueDeclaration,d),i.valueDeclaration.symbol=i;const a=td();a.set(l,i),o=aS(o,Js(_,a,u,u,u),_,c,!1)}}return a?Dt:r&&o!==En?zb([r,o]):r||(o===En?f():o);function f(){return c|=8192,function(e,t,n){const r=Js(t,n,u,u,u);return r.objectFlags|=139392|e,r}(c,_,i)}}function cI(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(qt);else{if(294===r.kind&&!r.expression)continue;n.push(fj(r,t))}return n}function lI(e,t,n){for(const r of Ep(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);e&&pT(Oo(e.valueDeclaration,ha._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Sc(e.escapedName)),Up(n,ha.This_spread_always_overwrites_this_property))}}function uI(e,t){const n=pI(t),r=n&&ls(n),i=r&&ia(r,e,788968);return i?y_(i):Nt}function _I(e){const t=ra(e);if(!t.resolvedSymbol){const n=uI(OB.IntrinsicElements,e);if(Hc(n))return Z&&Oo(e,ha.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Sc(OB.IntrinsicElements)),t.resolvedSymbol=vt;{if(!Xw(e.tagName)&&!$N(e.tagName))return gn.fail();const r=$N(e.tagName)?_C(e.tagName):e.tagName.escapedText,i=Uf(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=az(n,gS(Sc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):Uc(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(Oo(e,ha.Property_0_does_not_exist_on_type_1,pC(e.tagName),"JSX."+OB.IntrinsicElements),t.resolvedSymbol=vt)}}return t.resolvedSymbol}function dI(e){const t=e&&Cd(e),n=t&&ra(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=nk(tk(F,t),F);if(!r)return;const i=1===ES(F)?ha.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ha.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,o=function(e,t){const n=F.importHelpers?1:0,r=null==e?void 0:e.imports[n];return r&&gn.assert(sy(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`),r}(t,r),a=Za(o||e,r,i,e),s=a&&a!==vt?ps(Ba(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function pI(e){const t=e&&ra(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=dI(e);if(!n||n===vt){const t=Co(e);n=ze(e,t,1920,void 0,!1)}if(n){const e=Ba(ia(ls(Ba(n)),OB.JSX,1920));if(e&&e!==vt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=Ba(Vy(OB.JSX,1920,void 0));return n!==vt?n:void 0}function hI(e,t){const n=t&&ia(t.exports,e,788968),r=n&&y_(n),i=r&&Ep(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&Oo(n.declarations[0],ha.The_global_type_JSX_0_may_not_have_more_than_one_property,Sc(e))}}function vI(e){return hI(OB.ElementChildrenAttributeNameContainer,e)}function bI(e,t){if(4&e.flags)return[si];if(128&e.flags){const n=xI(e,t);return n?[mL(t,n)]:(Oo(t,ha.Property_0_does_not_exist_on_type_1,e.value,"JSX."+OB.IntrinsicElements),u)}const n=Sf(e);let r=Xf(n,1);return 0===r.length&&(r=Xf(n,0)),0===r.length&&1048576&n.flags&&(r=Pd(O(n.types,(e=>bI(e,t))))),r}function xI(e,t){const n=uI(OB.IntrinsicElements,t);if(!Hc(n)){const t=Uf(n,xc(e.value));if(t)return Tu(t);const r=Sm(n,qt);return r||void 0}return Dt}function SI(e){var t;gn.assert(oI(e.tagName));const n=ra(e);if(!n.resolvedJsxElementAttributesType){const r=_I(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=Tu(r)||Nt;if(2&n.jsxFlags){const r=$N(e.tagName)?_C(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=Bm(uI(OB.IntrinsicElements,e),r))?void 0:t.type)||Nt}return n.resolvedJsxElementAttributesType=Nt}return n.resolvedJsxElementAttributesType}function kI(e){const t=uI(OB.ElementClass,e);if(!Hc(t))return t}function TI(e){return uI(OB.Element,e)}function CI(e){const t=TI(e);if(t)return Ib([t,zt])}function DI(e){const t=pI(e);if(!t)return;const n=(r=t)&&ia(r.exports,OB.ElementType,788968);var r;if(!n)return;const i=wI(n,jm(e));return i&&!Hc(i)?i:void 0}function wI(e,t,...n){const r=y_(e);if(524288&e.flags){const i=na(e).typeParameters;if(p(i)>=n.length){const o=dg(n,i,n.length,t);return 0===p(o)?r:py(e,o)}}if(p(r.typeParameters)>=n.length)return ny(r,dg(n,r.typeParameters,n.length,t))}function EI(e){const t=w_(e);var n;t&&function(e){(function(e){if(nF(e)&&$N(e.expression))return w$(e.expression,ha.JSX_property_access_expressions_cannot_include_JSX_namespace_names);$N(e)&&ek(F)&&!jy(e.namespace.escapedText)&&w$(e,ha.React_components_cannot_include_JSX_namespace_names)})(e.tagName),s$(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,i=cC(e);if(t.get(i))return w$(e,ha.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&294===r.kind&&!r.expression)return w$(r,ha.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(F.jsx||0)&&Oo(n,ha.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===TI(n)&&Z&&Oo(n,ha.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),hP(e);const r=vL(e);if(kL(r,e),t){const t=e,n=DI(t);if(void 0!==n){const e=t.tagName;sT(oI(e)?gS(pC(e)):Ej(e),n,ho,e,ha.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=np(e);return sS(void 0,ha._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=CI(n);e&&sT(t,e,ho,n.tagName,ha.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=kI(n);e&&sT(t,e,ho,n.tagName,ha.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=CI(n),i=kI(n);if(!e||!i)return;sT(t,Ib([e,i]),ho,n.tagName,ha.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=np(n.tagName);return sS(void 0,ha._0_cannot_be_used_as_a_JSX_component,e)}}(WO(t),jg(r),t)}}function FI(e,t,n){if(524288&e.flags&&(Dp(e,t)||Bm(e,t)||H_(t)&&xm(e,qt)||n&&iI(t)))return!0;if(33554432&e.flags)return FI(e.baseType,t,n);if(3145728&e.flags&&NI(e))for(const r of e.types)if(FI(r,t,n))return!0;return!1}function NI(e){return!!(524288&e.flags&&!(512&Tx(e))||67108864&e.flags||33554432&e.flags&&NI(e.baseType)||1048576&e.flags&&X(e.types,NI)||2097152&e.flags&&k(e.types,NI))}function PI(e,t){if(function(e){e.expression&&pA(e.expression)&&w$(e.expression,ha.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=Ej(e.expression,t);return e.dotDotDotToken&&n!==Dt&&!IC(n)&&Oo(e,ha.JSX_spread_child_must_be_an_array_type),n}return Nt}function AI(e){return e.valueDeclaration?R$(e.valueDeclaration):0}function II(e){if(8192&e.flags||4&_x(e))return!0;if(jm(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&hF(t)&&3===cg(t)}}function OI(e,t,n,r,i,o=!0){return LI(e,t,n,r,i,o?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function LI(e,t,n,r,i,o){var a;const s=dx(i,n);if(t){if(A<2&&RI(i))return o&&Oo(o,ha.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&Oo(o,ha.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,nc(i),ic(XT(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(xu)))return o&&Oo(o,ha.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,nc(i)),!1}if(64&s&&RI(i)&&(fm(e)||gm(e)||QE(e.parent)&&mm(e.parent.parent))){const t=kx(gs(i));if(t&&function(e){return!!yc(e,(e=>!!(xE(e)&&Od(e.body)||hE(e))||!(!yu(e)&&!du(e))&&"quit"))}(e))return o&&Oo(o,ha.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,nc(i),Kh(t.name)),!1}if(!(6&s))return!0;if(2&s)return!!rz(e,kx(gs(i)))||(o&&Oo(o,ha.Property_0_is_private_and_only_accessible_within_class_1,nc(i),ic(XT(i))),!1);if(t)return!0;let c=nz(e,(e=>uC(y_(fs(e)),i,n)));return!c&&(c=function(e){const t=function(e){const t=sm(e,!1,!1);return t&&uu(t)?fv(t):void 0}(e);let n=(null==t?void 0:t.type)&&TS(t.type);if(n)262144&n.flags&&(n=Np(n));else{const t=sm(e,!1,!1);uu(t)&&(n=YP(t))}if(n&&7&Tx(n))return Au(n)}(e),c=c&&uC(c,i,n),256&s||!c)?(o&&Oo(o,ha.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,nc(i),ic(XT(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?Np(r):Zp(r)),!(!r||!Iu(r,c))||(o&&Oo(o,ha.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,nc(i),ic(c),ic(r)),!1))}function RI(e){return!!WT(e,(e=>!(8192&e.flags)))}function jI(e){return VI(Ej(e),e)}function MI(e){return Kw(e,50331648)}function BI(e){return MI(e)?gD(e):e}function JI(e,t){const n=fb(e)?qp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(Xw(e)&&"undefined"===n)return void Oo(e,ha.The_value_0_cannot_be_used_here,"undefined");Oo(e,16777216&t?33554432&t?ha._0_is_possibly_null_or_undefined:ha._0_is_possibly_undefined:ha._0_is_possibly_null,n)}else Oo(e,16777216&t?33554432&t?ha.Object_is_possibly_null_or_undefined:ha.Object_is_possibly_undefined:ha.Object_is_possibly_null);else Oo(e,ha.The_value_0_cannot_be_used_here,"null")}function zI(e,t){Oo(e,16777216&t?33554432&t?ha.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:ha.Cannot_invoke_an_object_which_is_possibly_undefined:ha.Cannot_invoke_an_object_which_is_possibly_null)}function $I(e,t,n){if(U&&2&e.flags){if(fb(t)){const e=qp(t);if(e.length<100)return Oo(t,ha._0_is_of_type_unknown,e),Nt}return Oo(t,ha.Object_is_of_type_unknown),Nt}const r=Gw(e,50331648);if(50331648&r){n(t,r);const i=gD(e);return 229376&i.flags?Nt:i}return e}function VI(e,t){return $I(e,t,JI)}function WI(e,t){const n=VI(e,t);if(16384&n.flags){if(fb(t)){const e=qp(t);if(Xw(t)&&"undefined"===e)return Oo(t,ha.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return Oo(t,ha._0_is_possibly_undefined,e),n}Oo(t,ha.Object_is_possibly_undefined)}return n}function HI(e,t,n){return 64&e.flags?function(e,t){const n=Ej(e.expression),r=bD(n,e.expression);return vD(rO(e,e.expression,VI(r,e.expression),e.name,t),e,r!==n)}(e,t):rO(e,e.expression,jI(e.expression),e.name,t,n)}function KI(e,t){const n=Fm(e)&&gv(e.left)?VI(UP(e.left),e.left):jI(e.left);return rO(e,e.left,n,e.right,t)}function QI(e){for(;217===e.parent.kind;)e=e.parent;return qu(e.parent)&&e.parent.expression===e}function YI(e,t){for(let n=am(t);n;n=rm(n)){const{symbol:t}=n,r=Qh(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function ZI(e){!function(e){if(!rm(e))return w$(e,ha.Private_identifiers_are_not_allowed_outside_class_bodies);if(!$F(e.parent)){if(!wm(e))return w$(e,ha.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=hF(e.parent)&&103===e.parent.operatorToken.kind;if(!eO(e)&&!t)w$(e,ha.Cannot_find_name_0,kc(e))}}(e);const t=eO(e);return t&&vO(t,void 0,!1),Dt}function eO(e){if(!wm(e))return;const t=ra(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=YI(e.escapedText,e)),t.resolvedSymbol}function tO(e,t){return Uf(e,t.escapedName)}function nO(e,t){return(ml(t)||fm(e)&&vl(t))&&sm(e,!0,!1)===xl(t)}function rO(e,t,n,r,i,o){const a=ra(t).resolvedSymbol,s=rh(e),c=Sf(0!==s||QI(e)?RD(n):n),l=Wc(c)||c===un;let u,_;if(Qw(r)){(A{const n=e.valueDeclaration;if(n&&Nc(n)&&Qw(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=_a(t);if(r){const i=gn.checkDefined(r.valueDeclaration),a=gn.checkDefined(rm(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=rm(r);if(gn.assert(!!s),yc(s,(e=>a===e)))return pT(Oo(t,ha.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,ic(e)),Up(r,ha.The_shadowing_declaration_of_0_is_defined_here,o),Up(i,ha.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return Oo(t,ha.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,_a(a.name||MB)),!0}return!1}(n,r,t))return Nt;const e=am(r);e&&wd(Cd(e),F.checkJs)&&w$(r,ha.Private_field_0_must_be_declared_in_an_enclosing_class,kc(r))}else 65536&u.flags&&!(32768&u.flags)&&1!==s&&Oo(e,ha.Private_accessor_was_defined_without_a_getter)}else{if(l)return Xw(t)&&a&&aP(e,2,void 0,n),Hc(c)?Nt:c;u=Uf(c,r.escapedText,VR(c),166===e.kind)}if(aP(e,2,u,n),u){const n=IJ(u,r);if(zo(n)&&lx(e,n)&&n.declarations&&qo(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||Cd(t).isDeclarationFile)return;let i;const o=kc(n);!cO(t)||function(e){return hE(e)&&!zv(e)&&e.questionToken}(r)||Px(t)&&Px(t.expression)||oa(r,n)||vE(r)&&256&L$(r)||!J&&function(e){if(!(32&e.parent.flags))return!1;let t=Tu(e.parent);for(;;){if(t=t.symbol&&lO(t),!t)return!1;const n=Uf(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||oa(r,n)||(i=Oo(n,ha.Class_0_used_before_its_declaration,o)):i=Oo(n,ha.Property_0_is_used_before_its_initialization,o),i&&pT(i,Up(r,ha._0_is_declared_here,o))}(u,e,r),vO(u,e,bO(t,a)),ra(e).resolvedSymbol=u,OI(e,108===t.kind,gx(e),c,u),RR(e,u,s))return Oo(r,ha.Cannot_assign_to_0_because_it_is_a_read_only_property,kc(r)),Nt;_=nO(e,u)?wt:o||mx(e)?ku(u):Tu(u)}else{const t=Qw(r)||0!==s&&xx(n)&&!KT(n)?void 0:Bm(c,r.escapedText);if(!t||!t.type){const t=aO(e,n.symbol,!0);return!t&&sx(n)?Dt:n.symbol===De?(De.exports.has(r.escapedText)&&418&De.exports.get(r.escapedText).flags?Oo(r,ha.Property_0_does_not_exist_on_type_1,Sc(r.escapedText),ic(n)):Z&&Oo(r,ha.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ic(n)),Dt):(r.escapedText&&!fa(e)&&uO(r,KT(n)?c:n,t),Nt)}t.isReadonly&&(ih(e)||fh(e))&&Oo(e,ha.Index_signature_in_type_0_only_permits_reading,ic(c)),_=t.type,F.noUncheckedIndexedAccess&&1!==rh(e)&&(_=Ib([_,jt])),F.noPropertyAccessFromIndexSignature&&nF(e)&&Oo(r,ha.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Sc(r.escapedText)),t.declaration&&$o(t.declaration)&&qo(r,[t.declaration],r.escapedText)}return sO(e,u,_,r,i)}function aO(e,t,n){var r;const i=Cd(e);if(i&&void 0===F.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=f(null==t?void 0:t.declarations,Cd),a=!(null==t?void 0:t.valueDeclaration)||!yu(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||km(!1,t.valueDeclaration);return!(i!==o&&o&&of(o)||n&&t&&32&t.flags&&a||e&&n&&nF(e)&&110===e.expression.kind&&a)}return!1}function sO(e,t,n,r,i){const o=rh(e);if(1===o)return xD(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!zJ(t.declarations))return n;if(n===wt)return El(e,t);n=iP(n,e,i);let a=!1;if(U&&K&&Px(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&vJ(n)&&!Rv(n)){const t=bN(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else U&&t&&t.valueDeclaration&&nF(t.valueDeclaration)&&yg(t.valueDeclaration)&&bN(e)===bN(t.valueDeclaration)&&(a=!0);const s=yN(e,n,a?mD(n):n);return a&&!Xk(n)&&Xk(s)?(Oo(r,ha.Property_0_is_used_before_being_assigned,nc(t)),n):o?XC(s):s}function cO(e){return!!yc(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!OF(e.parent)||!bE(e.parent.parent))||"quit";default:return!wm(e)&&"quit"}}))}function lO(e){const t=e_(e);if(0!==t.length)return zb(t)}function uO(e,t,n){let r,i;if(!Qw(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!Uf(n,e.escapedText)&&!Bm(n,e.escapedText)){r=sS(r,ha.Property_0_does_not_exist_on_type_1,Mp(e),ic(n));break}if(_O(e.escapedText,t)){const n=Mp(e),i=ic(t);r=sS(r,ha.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,i,i+"."+n)}else{const o=tM(t);if(o&&Uf(o,e.escapedText))r=sS(r,ha.Property_0_does_not_exist_on_type_1,Mp(e),ic(t)),i=Up(e,ha.Did_you_forget_to_use_await);else{const o=Mp(e),a=ic(t),s=function(e,t){const n=Sf(t).symbol;if(!n)return;const r=Cc(n),i=sp().get(r);if(i)for(const[t,n]of i)if(E(n,e))return t}(o,t);if(void 0!==s)r=sS(r,ha.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,o,a,s);else{const s=pO(e,t);if(void 0!==s){const e=Cc(s);r=sS(r,n?ha.Property_0_may_not_exist_on_type_1_Did_you_mean_2:ha.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,a,e),i=s.valueDeclaration&&Up(s.valueDeclaration,ha._0_is_declared_here,e)}else{const e=function(e){return F.lib&&!F.lib.includes("dom")&&(n=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Sc(e.symbol.escapedName)),3145728&(t=e).flags?k(t.types,n):n(t))&&Gk(e);var t,n}(t)?ha.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:ha.Property_0_does_not_exist_on_type_1;r=sS(If(r,t),e,o,a)}}}}const o=Hp(Cd(e),e,r);i&&pT(o,i),Lo(!n||r.code!==ha.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,o)}function _O(e,t){const n=t.symbol&&Uf(Tu(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Rv(n.valueDeclaration)}function dO(e,t){return yO(e,Ep(t),106500)}function pO(e,t){let n=Ep(t);if("string"!=typeof e){const r=e.parent;nF(r)&&(n=P(n,(e=>xO(r,t,e)))),e=kc(e)}return yO(e,n,111551)}function fO(e,t){const n=it(e)?e:kc(e),r=Ep(t);return("for"===n?T(r,(e=>"htmlFor"===Cc(e))):"class"===n?T(r,(e=>"className"===Cc(e))):void 0)??yO(n,r,111551)}function mO(e,t){const n=pO(e,t);return n&&Cc(n)}function gO(e,t,n){return gn.assert(void 0!==t,"outername should always be defined"),$e(e,t,n,void 0,!1,!1)}function hO(e,t){return t.exports&&yO(kc(e),as(t),2623475)}function yO(e,t,n){return Jt(e,t,(function(e){const t=Cc(e);if(!en(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(na(e).aliasTarget!==xt)return Ja(e)}(e);if(r&&r.flags&n)return t}}}))}function vO(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=Ov(r,2),o=e.valueDeclaration&&Nc(e.valueDeclaration)&&Qw(e.valueDeclaration.name);if((i||o)&&(!t||!mx(t)||65536&e.flags)){if(n){const n=yc(t,du);if(n&&n.symbol===e)return}(1&_x(e)?na(e).target:e).isReferenced=-1}}function bO(e,t){return 110===e.kind||!!t&&fb(e)&&t===Ew(mb(e))}function xO(e,t,n){return kO(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function SO(e,t,n,r){if(Wc(r))return!0;const i=Uf(r,n);return!!i&&kO(e,t,!1,r,i)}function kO(e,t,n,r,i){if(Wc(r))return!0;if(i.valueDeclaration&&tu(i.valueDeclaration)){const t=rm(i.valueDeclaration);return!Tl(e)&&!!yc(e,(e=>e===t))}return LI(e,t,n,r,i)}function TO(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!Fu(e.name))return fs(e)}else if(80===t.kind)return Ew(t)}function CO(e,t){return 64&e.flags?function(e,t){const n=Ej(e.expression),r=bD(n,e.expression);return vD(DO(e,VI(r,e.expression),t),e,r!==n)}(e,t):DO(e,jI(e.expression),t)}function DO(e,t,n){const r=0!==rh(e)||QI(e)?RD(t):t,i=e.argumentExpression,o=Ej(i);if(Hc(r)||r===un)return r;if(VR(r)&&!q_(i))return Oo(i,ha.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Nt;const a=function(e){const t=ph(e);if(80===t.kind){const r=Ew(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(249===i.kind&&t===i.statement&&TO(i)===r&&1===bm(n=Cj(i.expression)).length&&xm(n,Ut))return!0;t=i,i=i.parent}}}var n;return!1}(i)?Ut:o,s=rh(e);let c;0===s?c=32:(c=4|(xx(r)&&!KT(r)?2:0),2===s&&(c|=32));const l=Rx(r,a,c,e)||Nt;return Hj(sO(e,ra(e).resolvedSymbol,l,i,n),e)}function wO(e){return qu(e)||aF(e)||w_(e)}function EO(e){return wO(e)&&f(e.typeArguments,$J),215===e.kind?Ej(e.template):w_(e)?Ej(e.attributes):hF(e)?Ej(e.left):qu(e)&&f(e.arguments,(e=>{Ej(e)})),si}function FO(e){return EO(e),ci}function NO(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function PO(e){return D(e,NO)}function AO(e){return!!(16384&e.flags)}function IO(e){return!!(49155&e.flags)}function OO(e,t,n,r=!1){if(RN(e))return!0;let i,o=!1,a=ZL(n),s=eR(n);if(215===e.kind)if(i=t.length,228===e.template.kind){const t=Te(e.template.templateSpans);o=Id(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;gn.assert(15===t.kind),o=!!t.isUnterminated}else if(170===e.kind)i=YO(e,n);else if(226===e.kind)i=1;else if(w_(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return gn.assert(214===e.kind),0===eR(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=PO(t);if(a>=0)return a>=eR(n)&&(tR(n)||aa)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function RO(e,t){let n;return!!(e.target&&(n=XL(e.target,t))&&bx(n))}function jO(e){return BO(e,0,!1)}function MO(e){return BO(e,0,!1)||BO(e,1,!1)}function BO(e,t,n){if(524288&e.flags){const r=Tp(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function JO(e,t,n,r){const i=VD(th(e),e,0,r),o=nR(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return zD(a?ok(t,a):t,e,((e,t)=>{hw(i.inferences,e,t)})),n||UD(t,e,((e,t)=>{hw(i.inferences,e,t,128)})),Ug(e,Dw(i),jm(t.declaration))}function zO(e){if(!e)return rn;const t=Ej(e);return Tb(e)?t:Cl(e.parent)?gD(t):Tl(e.parent)?yD(t):t}function $O(e,t,n,r,i){if(w_(e))return function(e,t,n,r){const i=BA(t,e),o=oj(e.attributes,i,r,n);return hw(r.inferences,o,i),Dw(r)}(e,t,r,i);if(170!==e.kind&&226!==e.kind){const n=k(t.typeParameters,(e=>!!ff(e))),r=PA(e,n?8:0);if(r){const o=jg(t);if(ZD(o)){const a=MA(e);if(n||PA(e,8)===r){const e=YD(function(e,t=0){return e&&WD(O(e.inferences,QD),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=fk(r,e),n=jO(t),s=n&&n.typeParameters?vh(Vg(n,n.typeParameters)):t;hw(i.inferences,s,o,128)}const s=VD(t.typeParameters,t,i.flags),c=fk(r,a&&a.returnMapper);hw(s.inferences,c,o),i.returnMapper=X(s.inferences,vj)?YD(function(e){const t=P(e.inferences,vj);return t.length?WD(O(t,QD),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=rR(t),a=o?Math.min(ZL(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=T(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=D(n,NO,a)<0?n.length-a:void 0)}const s=wg(t);if(s&&ZD(s)){const t=KO(e);hw(i.inferences,zO(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(NO(t)){const e=237===t.kind?t.type:oj(t.expression,r,i,o);return MC(e)?qO(e):Dv(sB(33,e,Lt,230===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let u=t;usS(void 0,ha.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||ha.Type_0_does_not_satisfy_the_constraint_1;s||(s=BS(o,a));const u=a[e];if(!Ik(u,md(fk(i,s),u),n?t[e]:void 0,l,c))return}}return a}function WO(e){if(oI(e.tagName))return 2;const t=Sf(Ej(e.tagName));return p(Xf(t,1))?0:p(Xf(t,0))?1:2}function HO(e){return DF(e=ph(e))?ph(e.expression):e}function GO(e,t,n,r,i,o,a,s){const c={errors:void 0,skipLogging:!0};if(E_(e))return function(e,t,n,r,i,o,a){const s=BA(t,e),c=RN(e)?sI(e):oj(e.attributes,s,void 0,r),l=4&r?ND(c):c;return function(){var t;if(dI(e))return!0;const n=!IN(e)&&!AN(e)||oI(e.tagName)||$N(e.tagName)?void 0:Ej(e.tagName);if(!n)return!0;const r=Xf(n,0);if(!p(r))return!0;const o=Kz(e);if(!o)return!0;const s=Ha(o,111551,!0,!1,e);if(!s)return!0;const c=Xf(Tu(s),0);if(!p(c))return!0;let l=!1,u=0;for(const e of c){const t=Xf(KL(e,0),0);if(p(t))for(const e of t){if(l=!0,tR(e))return!0;const t=ZL(e);t>u&&(u=t)}}if(!l)return!0;let _=1/0;for(const e of r){const t=eR(e);t<_&&(_=t)}if(_<=u)return!0;if(i){const n=e.tagName,r=Up(n,ha.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,qp(n),_,qp(o),u),i=null==(t=lz(n))?void 0:t.valueDeclaration;i&&pT(r,Up(i,ha._0_is_declared_here,qp(n))),a.skipLogging&&(a.errors||(a.errors=[])).push(r),a.skipLogging||_o.add(r)}return!1}()&&Lk(l,s,n,i?RN(e)?e:e.tagName:void 0,RN(e)?void 0:e.attributes,void 0,o,a)}(e,n,r,i,o,a,c)?void 0:(gn.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||u);const l=wg(n);if(l&&l!==rn&&!(oF(e)||iF(e)&&pm(e.expression))){const t=KO(e),n=zO(t),i=o?t||e:void 0,s=ha.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!sT(n,l,r,i,s,a,c))return gn.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||u}const _=ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,d=rR(n),f=d?Math.min(ZL(n)-1,t.length):t.length;for(let e=0;e{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=bR(e);if(n){const e=[];for(const r of n.parameters){const n=Tu(r);e.push(XO(t,n))}return e}return gn.fail()}(e);if(226===e.kind)return[e.left];if(w_(e))return e.attributes.properties.length>0||IN(e)&&e.parent.children.length>0?[e.attributes]:u;const t=e.arguments||u,n=PO(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=XO(n,4&a?Dv(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function YO(e,t){return F.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return zv(e.parent)?3:2;case 174:case 177:case 178:return t.parameters.length<=2?2:3;case 169:return 3;default:return gn.fail()}}(e,t):Math.min(Math.max(ZL(t),1),2)}function ZO(e){const t=Cd(e),{start:n,length:r}=rf(t,nF(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function eL(e,t,...n){if(iF(e)){const{sourceFile:r,start:i,length:o}=ZO(e);return"message"in t?rS(r,i,o,t,...n):Qp(r,t)}return"message"in t?Up(e,t,...n):Hp(Cd(e),e,t)}function tL(e,t,n,r){var i;const o=PO(n);if(o>-1)return Up(n[o],ha.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;for(const e of t){const t=eR(e),r=ZL(e);tl&&(l=t),n.length1&&(y=N(S,mo,D,w)),y||(y=N(S,ho,D,w)),y)return y;if(y=function(e,t,n,r,i){return gn.assert(t.length>0),VJ(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===we?n.length:we),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=wO(e)?e.typeArguments:void 0,c=s?eh(o,function(e,t,n){const r=e.map(uz);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter));let n;t.length&&(n=iL(t,t.map($L)));const{min:r,max:i}=fT(e,rL),o=[];for(let t=0;tiJ(e)?tXL(e,t)))))}const a=q(e,(e=>iJ(e)?Te(e.parameters):void 0));let s=128;if(0!==a.length){const t=Dv(Ib(q(e,qg),2));o.push(oL(a,t)),s|=1}return e.some(oJ)&&(s|=2),hd(e[0].declaration,void 0,n,o,zb(e.map(jg)),void 0,r,s)}(t)}(e,S,C,!!n,r),ra(e).resolvedSignature=y,d)if(!o&&_&&(o=ha.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=sS(n,ha.The_last_overload_gave_the_following_error),n=sS(n,ha.No_overload_matches_this_call)),o&&(n=sS(n,o));const r=GO(e,C,t,ho,0,!0,(()=>n),void 0);if(r)for(const e of r)t.declaration&&m.length>3&&pT(e,Up(t.declaration,ha.The_last_overload_is_declared_here)),F(t,e),_o.add(e);else gn.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=GO(e,C,o,ho,0,!0,(()=>sS(void 0,ha.Overload_0_of_1_2_gave_the_following_error,a+1,S.length,rc(o))),void 0);s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):gn.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:j(t);gn.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=sS(O(s,Yp),ha.No_overload_matches_this_call);o&&(c=sS(c,o));const l=[...M(s,(e=>e.relatedInformation))];let u;if(k(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];u={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else u=Hp(Cd(e),qu(E=e)?nF(E.expression)?E.expression.name:E.expression:aF(E)?nF(E.tag)?E.tag.name:E.tag:w_(E)?E.tagName:E,c,l);F(m[0],u),_o.add(u)}else if(g)_o.add(tL(e,[g],C,o));else if(h)VO(h,e.typeArguments,!0,o);else if(!l){const n=P(t,(e=>LO(e,v)));0===n.length?_o.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=_g(o.typeParameters),s=p(o.typeParameters);if(r){let t=sS(void 0,ha.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?T(s,(e=>du(e)&&Od(e.body))):void 0;if(c){const e=mg(c),n=!e.typeParameters;N([e],ho,n)&&pT(t,Up(c,ha.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,g=o,h=a}function N(t,n,r,i=!1){var o,a;if(m=void 0,g=void 0,h=void 0,r){const r=t[0];if(X(v)||!OO(e,C,r,i))return;return GO(e,C,r,n,0,!1,void 0,void 0)?void(m=[r]):r}for(let r=0;re===t))&&(l=ch(l)),X(v)){if(n=VO(l,v,!1),!n){h=l;continue}}else c=VD(l.typeParameters,l,jm(e)?2:0),n=IS($O(e,l,C,8|x,c),c.nonFixingMapper),x|=4&c.flags?8:0;if(s=Ug(l,n,jm(l.declaration),c&&c.inferredTypeParameters),rR(l)&&!OO(e,C,s,i)){g=s;continue}}else s=l;if(!GO(e,C,s,n,x,!1,void 0,c)){if(x){if(x=0,c&&(s=Ug(l,IS($O(e,l,C,x,c),c.mapper),jm(l.declaration),c.inferredTypeParameters),rR(l)&&!OO(e,C,s,i))){g=s;continue}if(GO(e,C,s,n,x,!1,void 0,c)){(m||(m=[])).push(s);continue}}return t[r]=s,s}(m||(m=[])).push(s)}}}}function rL(e){const t=e.parameters.length;return iJ(e)?t-1:t}function iL(e,t){return oL(e,Ib(t,2))}function oL(e,t){return FD(xe(e),t)}function aL(e){return!(!e.typeParameters||!jz(jg(e)))}function sL(e,t,n,r){return Wc(e)||Wc(t)&&!!(262144&e.flags)||!n&&!r&&!(1048576&t.flags)&&!(131072&wf(t).flags)&&Fk(e,Kn)}function cL(e,t,n){let r=jI(e.expression);if(r===un)return ui;if(r=Sf(r),Hc(r))return FO(e);if(Wc(r))return e.typeArguments&&Oo(e,ha.Untyped_function_calls_may_not_accept_type_arguments),EO(e);const i=Xf(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=Uv(n,6);if(!r||176!==n.kind)return!0;const i=kx(n.parent.symbol),o=y_(n.parent.symbol);if(!rz(e,i)){const t=rm(e);if(t&&4&r){const e=uz(t);if(uL(n.parent.symbol,e))return!0}return 2&r&&Oo(e,ha.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ic(o)),4&r&&Oo(e,ha.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ic(o)),!1}return!0}(e,i[0]))return FO(e);if(lL(i,(e=>!!(4&e.flags))))return Oo(e,ha.Cannot_create_an_instance_of_an_abstract_class),FO(e);const o=r.symbol&&kx(r.symbol);return o&&Lv(o,64)?(Oo(e,ha.Cannot_create_an_instance_of_an_abstract_class),FO(e)):nL(e,i,t,n,0)}const o=Xf(r,0);if(o.length){const r=nL(e,o,t,n,0);return Z||(r.declaration&&!bL(r.declaration)&&jg(r)!==rn&&Oo(e,ha.Only_a_void_function_can_be_called_with_the_new_keyword),wg(r)===rn&&Oo(e,ha.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return dL(e.expression,r,1),FO(e)}function lL(e,t){return nt(e)?X(e,(e=>lL(e,t))):1048576===e.compositeKind?X(e.compositeSignatures,t):t(e)}function uL(e,t){const n=e_(t);if(!p(n))return!1;const r=n[0];if(2097152&r.flags){const t=Md(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&Tx(i)){if(i.symbol===e)return!0;if(uL(e,i))return!0}n++}return!1}return r.symbol===e||uL(e,r)}function _L(e,t,n){let r;const i=0===n,o=cM(t),a=o&&Xf(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==Xf(a,n).length){if(o=!0,r)break}else if(r||(r=sS(r,i?ha.Type_0_has_no_call_signatures:ha.Type_0_has_no_construct_signatures,ic(a)),r=sS(r,i?ha.Not_all_constituents_of_type_0_are_callable:ha.Not_all_constituents_of_type_0_are_constructable,ic(t))),o)break;o||(r=sS(void 0,i?ha.No_constituent_of_type_0_is_callable:ha.No_constituent_of_type_0_is_constructable,ic(t))),r||(r=sS(r,i?ha.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ha.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ic(t)))}else r=sS(r,i?ha.Type_0_has_no_call_signatures:ha.Type_0_has_no_construct_signatures,ic(t));let s=i?ha.This_expression_is_not_callable:ha.This_expression_is_not_constructable;if(iF(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=ra(e);t&&32768&t.flags&&(s=ha.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:sS(r,s),relatedMessage:a?ha.Did_you_forget_to_use_await:void 0}}function dL(e,t,n,r){const{messageChain:i,relatedMessage:o}=_L(e,t,n),a=Hp(Cd(e),e,i);if(o&&pT(a,Up(e,o)),iF(e.parent)){const{start:t,length:n}=ZO(e.parent);a.start=t,a.length=n}_o.add(a),pL(t,n,r?pT(a,r):a)}function pL(e,t,n){if(!e.symbol)return;const r=na(e.symbol).originatingImport;if(r&&!gf(r)){const i=Xf(Tu(na(e.symbol).target),t);if(!i||!i.length)return;pT(n,Up(r,ha.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function fL(e,t,n){const r=Ej(e.expression),i=Sf(r);if(Hc(i))return FO(e);const o=Xf(i,0),a=Xf(i,1).length;if(sL(r,i,o.length,a))return EO(e);if(s=e,(c=o).length&&k(c,(e=>0===e.minArgumentCount&&!iJ(e)&&e.parameters.lengthjm(e.declaration)&&!!Vc(e.declaration)))?(Oo(e,ha.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ic(i)),FO(e)):nL(e,a,t,n,r)}(e,t,n);case 214:return cL(e,t,n);case 215:return function(e,t,n){const r=Ej(e.tag),i=Sf(r);if(Hc(i))return FO(e);const o=Xf(i,0),a=Xf(i,1).length;if(sL(r,i,o.length,a))return EO(e);if(!o.length){if(eF(e.parent)){const t=Up(e.tag,ha.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return _o.add(t),FO(e)}return dL(e.tag,i,0),FO(e)}return nL(e,o,t,n,0)}(e,t,n);case 170:return fL(e,t,n);case 289:case 286:case 285:return hL(e,t,n);case 226:return function(e,t,n){const r=Ej(e.right);if(!Wc(r)){const i=HR(r);if(i){const r=Sf(i);if(Hc(r))return FO(e);const o=Xf(r,0),a=Xf(r,1);if(sL(i,r,o.length,a.length))return EO(e);if(o.length)return nL(e,o,t,n,0)}else if(!gz(r)&&!wk(r,Kn))return Oo(e.right,ha.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),FO(e)}return si}(e,t,n)}gn.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function vL(e,t,n){const r=ra(e),i=r.resolvedSignature;if(i&&i!==li&&!t)return i;const o=zi;i||(zi=Mi.length),r.resolvedSignature=li;let a=yL(e,t,n||0);return zi=o,a!==li&&(r.resolvedSignature!==li&&(a=r.resolvedSignature),r.resolvedSignature=xi===Si?a:i),a}function bL(e){var t;if(!e||!jm(e))return!1;const n=tN(e)||lF(e)?e:(ZF(e)||HN(e))&&e.initializer&&lF(e.initializer)?e.initializer:void 0;if(n){if(Vc(e))return!0;if(HN(uh(n.parent)))return!1;const r=fs(n);return!!(null==(t=null==r?void 0:r.members)?void 0:t.size)}return!1}function xL(e,t){var n,r;if(t){const i=na(t);if(!i.inferredClassSymbol||!i.inferredClassSymbol.has(YB(e))){const o=nd(e)?e:Xo(e);return o.exports=o.exports||td(),o.members=o.members||td(),o.flags|=32&t.flags,(null==(n=t.exports)?void 0:n.size)&&ea(o.exports,t.exports),(null==(r=t.members)?void 0:r.size)&&ea(o.members,t.members),(i.inferredClassSymbol||(i.inferredClassSymbol=new Map)).set(YB(o),o),o}return i.inferredClassSymbol.get(YB(e))}}function SL(e,t){if(!e.parent)return;let n,r;if(ZF(e.parent)&&e.parent.initializer===e){if(!(jm(e)||j$(e.parent)&&du(e)))return;n=e.parent.name,r=e.parent}else if(hF(e.parent)){const i=e.parent,o=e.parent.operatorToken.kind;if(64!==o||!t&&i.right!==e){if(!(57!==o&&61!==o||(ZF(i.parent)&&i.parent.initializer===i?(n=i.parent.name,r=i.parent):hF(i.parent)&&64===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(n=i.parent.left,r=n),n&&fg(n)&&rg(n,i.left))))return}else n=i.left,r=n}else t&&tN(e)&&(n=e.name,r=e);return r&&n&&(t||eg(e,vb(n)))?ms(r):void 0}function kL(e,t){var n,r,i,o;if(!(128&e.flags)&&e.declaration&&536870912&e.declaration.flags){const a=TL(t),s=yb(ym(t));n=a,r=e.declaration,i=s,o=rc(e),Jo(r,i?Up(n,ha.The_signature_0_of_1_is_deprecated,o,i):Up(n,ha._0_is_deprecated,o))}}function TL(e){switch((e=ph(e)).kind){case 213:case 170:case 214:return TL(e.expression);case 215:return TL(e.tag);case 286:case 285:return TL(e.tagName);case 212:return e.argumentExpression;case 211:return e.name;case 183:const t=e;return _E(t.typeName)?t.typeName.right:t;default:return e}}function CL(e){if(!iF(e))return!1;let t=e.expression;if(nF(t)&&"for"===t.name.escapedText&&(t=t.expression),!Xw(t)||"Symbol"!==t.escapedText)return!1;const n=Yy(!1);return!!n&&n===ze(t,"Symbol",111551,void 0,!1)}function DL(e){if(function(e){if(F.verbatimModuleSyntax&&1===L)return w$(e,ha.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===L)return w$(e,ha.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return w$(e,ha.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==L&&199!==L&&100!==L&&200!==L&&(r$(t),t.length>1))return w$(t[1],ha.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);if(0===t.length||t.length>2)return w$(e,ha.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=T(t,xF);n&&w$(n,ha.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return kR(e,Dt);const t=e.arguments[0],n=aj(t),r=e.arguments.length>1?aj(e.arguments[1]):void 0;for(let t=2;t!!e.typeParameters&&LO(e,n))),(e=>{const t=VO(e,n,!0);return t?Ug(e,t,jm(e.declaration)):e}))}}function ML(e,t,n){const r=Ej(e,n),i=TS(t);return Hc(i)?i:(Ok(r,i,yc(t.parent,(e=>238===e.kind||350===e.kind)),e,ha.Type_0_does_not_satisfy_the_expected_type_1),r)}function BL(e){return function(e){const t=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==t)return w$(e.name,ha._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Sc(e.name.escapedText),Ra(e.keywordToken),"target");break;case 102:"meta"!==t&&w$(e.name,ha._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Sc(e.name.escapedText),Ra(e.keywordToken),"meta")}}(e),105===e.keywordToken?zL(e):102===e.keywordToken?function(e){100===L||199===L?99!==Cd(e).impliedNodeFormat&&Oo(e,ha.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):L<6&&4!==L&&Oo(e,ha.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const t=Cd(e);return gn.assert(!!(8388608&t.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?Gy():Nt}(e):gn.assertNever(e.keywordToken)}function JL(e){switch(e.keywordToken){case 102:return Ky();case 105:const t=zL(e);return Hc(t)?Nt:function(e){const t=Uo(0,"NewTargetExpression"),n=Uo(4,"target",8);n.parent=t,n.links.type=e;const r=td([n]);return t.members=r,Js(t,r,u,u,u)}(t);default:gn.assertNever(e.keywordToken)}}function zL(e){const t=um(e);return t?176===t.kind?Tu(fs(t.parent)):Tu(fs(t)):(Oo(e,ha.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Nt)}function $L(e){const t=e.valueDeclaration;return _l(Tu(e),!1,!!t&&(j_(t)||rC(t)))}function qL(e,t,n){switch(e.name.kind){case 80:{const r=e.name.escapedText;return e.dotDotDotToken?12&n?r:`${r}_${t}`:3&n?r:`${r}_n`}case 207:if(e.dotDotDotToken){const r=e.name.elements,i=at(ke(r),ZE),o=r.length-((null==i?void 0:i.dotDotDotToken)?1:0);if(t=r-1)return t===r-1?o:Dv(Ix(o,Ut));const a=[],s=[],c=[];for(let n=t;n!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&yF(KL(e,n),AO).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function tR(e){if(iJ(e)){const t=Tu(e.parameters[e.parameters.length-1]);return!nD(t)||!!(12&t.target.combinedFlags)}return!1}function nR(e){if(iJ(e)){const t=Tu(e.parameters[e.parameters.length-1]);if(!nD(t))return Wc(t)?cr:t;if(12&t.target.combinedFlags)return Yv(t,t.target.fixedLength)}}function rR(e){const t=nR(e);return!t||IC(t)||Wc(t)?void 0:t}function iR(e){return oR(e,cn)}function oR(e,t){return e.parameters.length>0?KL(e,0):t}function aR(e,t,n){const r=e.parameters.length-(iJ(e)?1:0);for(let i=0;i=0);const i=xE(e.parent)?Tu(fs(e.parent.parent)):pz(e.parent),o=xE(e.parent)?Lt:fz(e.parent),a=hS(r),s=Vo("target",i),c=Vo("propertyKey",o),l=Vo("parameterIndex",a);n.decoratorSignature=_M(void 0,void 0,[s,c,l],rn);break}case 174:case 177:case 178:case 172:{const e=t;if(!yu(e.parent))break;const r=Vo("target",pz(e)),i=Vo("propertyKey",fz(e)),o=hE(e)?rn:bv(uz(e));if(!hE(t)||zv(t)){const t=Vo("descriptor",bv(uz(e)));n.decoratorSignature=_M(void 0,void 0,[r,i,t],Ib([o,rn]))}else n.decoratorSignature=_M(void 0,void 0,[r,i],Ib([o,rn]));break}}return n.decoratorSignature===si?void 0:n.decoratorSignature}(e):vR(e)}function xR(e){const t=ev(!0);return t!==On?ny(t,[e=lM(oM(e))||Ot]):Ot}function SR(e){const t=tv(!0);return t!==On?ny(t,[e=lM(oM(e))||Ot]):Ot}function kR(e,t){const n=xR(t);return n===Ot?(Oo(e,gf(e)?ha.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ha.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Nt):(nv(!0)||Oo(e,gf(e)?ha.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ha.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function TR(e,t){if(!e.body)return Nt;const n=zh(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=rn;if(241!==e.body.kind)o=aj(e.body,t&&-9&t),r&&(o=oM(nM(o,!1,e,ha.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=NR(e,t);n?n.length>0&&(o=Ib(n,2)):c=cn;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&zh(e));return Lf(e.body,(e=>{const o=e.expression?Ej(e.expression,t):Rt;let a;if(pe(n,DR(e,o,Dt,i)),e.asteriskToken){const t=mB(o,i?19:17,e.expression);a=t&&t.nextType}else a=PA(e,void 0);a&&pe(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=X(r)?Ib(r,2):void 0,s=X(i)?zb(i):void 0}else{const r=NR(e,t);if(!r)return 2&n?kR(e,cn):cn;if(0===r.length){const t=rA(e,void 0),r=t&&32768&(IB(t,n)||rn).flags?Lt:rn;return 2&n?kR(e,r):r}o=Ib(r,2)}if(o||a||s){if(a&&JD(e,a,3),o&&JD(e,o,1),s&&JD(e,s,2),o&&HC(o)||a&&HC(a)||s&&HC(s)){const t=qA(e),n=t?t===mg(e)?i?void 0:o:FA(jg(t),e,void 0):void 0;i?(a=tD(a,n,0,r),o=tD(o,n,1,r),s=tD(s,n,2,r)):o=function(e,t,n){return e&&HC(e)&&(e=eD(e,t?n?tM(t):t:void 0)),e}(o,n,r)}a&&(a=RD(a)),o&&(o=RD(o)),s&&(s=RD(s))}return i?CR(a||cn,o||c,s||nA(2,e)||Ot,r):r?xR(o||c):o||c}function CR(e,t,n,r){const i=r?mi:gi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ot,t=i.resolveIterationType(t,void 0)||Ot,o===On){const r=i.getGlobalIterableIteratorType(!1);return r!==On?vv(r,[e,t,n]):(i.getGlobalIterableIteratorType(!0),wn)}return vv(o,[e,t,n])}function DR(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?sB(r?19:17,t,n,i):t;return r?cM(o,i,e.asteriskToken?ha.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ha.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function wR(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?UB.get(o)||32768:0}return r}function ER(e){const t=ra(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=XE(e);if(!t)return!1;const n=uf(aj(e.expression.expression)),r=wR(0,0,t);return 3&n.flags?!(556800&~r):!pF(n,(e=>Gw(e,r)===r))}const t=aj(e.expression);if(!KC(t))return!1;const n=KE(e);return!(!n.length||X(n,WC))&&(r=CF(t,fS),i=n,1048576&r.flags?!f(r.types,(e=>!E(i,e))):E(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function FR(e){return e.endFlowNode&&cN(e.endFlowNode)}function NR(e,t){const n=zh(e),r=[];let i=FR(e),o=!1;if(Of(e.body,(a=>{let s=a.expression;if(s){if(s=ph(s,!0),2&n&&223===s.kind&&(s=ph(s.expression,!0)),213===s.kind&&80===s.expression.kind&&aj(s.expression).symbol===ps(e.symbol)&&(!VT(e.symbol.valueDeclaration)||hN(s.expression)))return void(o=!0);let i=aj(s,t&&-9&t);2&n&&(i=oM(nM(i,!1,e,ha.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),pe(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(U&&r.length&&i)||bL(e)&&r.some((t=>t.symbol===e.symbol))||pe(r,Lt),r}function PR(e,t){a((function(){const n=zh(e),r=t&&IB(t,n);if(r&&($R(r,16384)||32769&r.flags))return;if(173===e.kind||Id(e.body)||241!==e.body.kind||!FR(e))return;const i=1024&e.flags,o=kv(e)||e;if(r&&131072&r.flags)Oo(o,ha.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)Oo(o,ha.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&U&&!Fk(Lt,r))Oo(o,ha.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(F.noImplicitReturns){if(!r){if(!i)return;const t=jg(mg(e));if(LB(e,t))return}Oo(o,ha.Not_all_code_paths_return_a_value)}}))}function AR(e,t){if(gn.assert(174!==e.kind||Wf(e)),VJ(e),lF(e)&&qM(e,e.name),t&&4&t&&vk(e)){if(!kv(e)&&!$T(e)){const n=UA(e);if(n&&ZD(jg(n))){const n=ra(e);if(n.contextFreeType)return n.contextFreeType;const r=TR(e,t),i=hd(void 0,void 0,void 0,u,r,void 0,0,64),o=Js(e.symbol,x,[i],u,u);return o.objectFlags|=262144,n.contextFreeType=o}}return Ln}return a$(e)||218!==e.kind||_$(e),function(e,t){const n=ra(e);if(!(64&n.flags)){const r=UA(e);if(!(64&n.flags)){n.flags|=64;const i=ve(Xf(Tu(fs(e)),0));if(!i)return;if(vk(e))if(r){const n=MA(e);let o;if(t&&2&t){aR(i,r,n);const e=nR(r);e&&262144&e.flags&&(o=ok(r,n.nonFixingMapper))}o||(o=n?ok(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=FD(t.thisParameter,void 0)),sR(e.thisParameter,Tu(t.thisParameter)))}const n=e.parameters.length-(iJ(e)?1:0);for(let r=0;re.parameters.length){const n=MA(e);t&&2&t&&aR(i,r,n)}if(r&&!Mg(e)&&!i.resolvedReturnType){const n=TR(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}Aj(e)}}}(e,t),Tu(fs(e))}function IR(e,t,n,r=!1){if(!Fk(t,yn)){const i=r&&eM(t);return Mo(e,!!i&&Fk(i,yn),n),!1}return!0}function OR(e){if(!iF(e))return!1;if(!lg(e))return!1;const t=aj(e.arguments[2]);if(qc(t,"value")){const e=Uf(t,"writable"),n=e&&Tu(e);if(!n||n===Wt||n===Gt)return!0;if(e&&e.valueDeclaration&&HN(e.valueDeclaration)){const t=Ej(e.valueDeclaration.initializer);if(t===Wt||t===Gt)return!0}return!1}return!Uf(t,"set")}function LR(e){return!!(8&_x(e)||4&e.flags&&8&dx(e)||3&e.flags&&6&AI(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||X(e.declarations,OR))}function RR(e,t,n){var r,i;if(0===n)return!1;if(LR(t)){if(4&t.flags&&Px(e)&&110===e.expression.kind){const n=tm(e);if(!n||176!==n.kind&&!bL(n))return!0;if(t.valueDeclaration){const e=hF(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(Px(e)){const t=ph(e.expression);if(80===t.kind){const e=ra(t).resolvedSymbol;if(2097152&e.flags){const t=ba(e);return!!t&&274===t.kind}}}return!1}function jR(e,t,n){const r=hA(e,7);return 80===r.kind||Px(r)?!(64&r.flags&&(Oo(e,n),1)):(Oo(e,t),!1)}function MR(e){Ej(e.expression);const t=ph(e.expression);if(!Px(t))return Oo(t,ha.The_operand_of_a_delete_operator_must_be_a_property_reference),Yt;nF(t)&&Qw(t.name)&&Oo(t,ha.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const n=Ts(ra(t).resolvedSymbol);return n&&(LR(n)?Oo(t,ha.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):function(e,t){const n=Tu(t);!U||131075&n.flags||(ie?16777216&t.flags:Kw(n,16777216))||Oo(e,ha.The_operand_of_a_delete_operator_must_be_optional)}(t,n)),Yt}function BR(e){let t=!1;const n=om(e);if(n&&bE(n))Oo(e,fF(e)?ha.await_expression_cannot_be_used_inside_a_class_static_block:ha.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(65536&e.flags))if(lm(e)){const n=Cd(e);if(!T$(n)){let r;if(!kp(n,F)){r??(r=tf(n,e.pos));const i=fF(e)?ha.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ha.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=rS(n,r.start,r.length,i);_o.add(o),t=!0}switch(L){case 100:case 199:if(1===n.impliedNodeFormat){r??(r=tf(n,e.pos)),_o.add(rS(n,r.start,r.length,ha.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(A>=4)break;default:r??(r=tf(n,e.pos));const i=fF(e)?ha.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ha.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;_o.add(rS(n,r.start,r.length,i)),t=!0}}}else{const r=Cd(e);if(!T$(r)){const i=tf(r,e.pos),o=fF(e)?ha.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ha.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=rS(r,i.start,i.length,o);!n||176===n.kind||2&zh(n)||pT(a,Up(n,ha.Did_you_mean_to_mark_this_function_as_async)),_o.add(a),t=!0}}return fF(e)&&tA(e)&&(Oo(e,ha.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function JR(e){return $R(e,2112)?qR(e,3)||$R(e,296)?yn:Vt:Ut}function zR(e,t){if($R(e,t))return!0;const n=uf(e);return!!n&&$R(n,t)}function $R(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if($R(e,t))return!0}return!1}function qR(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&Fk(e,Ut)||!!(2112&t)&&Fk(e,Vt)||!!(402653316&t)&&Fk(e,qt)||!!(528&t)&&Fk(e,Yt)||!!(16384&t)&&Fk(e,rn)||!!(131072&t)&&Fk(e,cn)||!!(65536&t)&&Fk(e,zt)||!!(32768&t)&&Fk(e,Lt)||!!(4096&t)&&Fk(e,nn)||!!(67108864&t)&&Fk(e,fn))}function UR(e,t,n){return 1048576&e.flags?k(e.types,(e=>UR(e,t,n))):qR(e,t,n)}function VR(e){return!!(16&Tx(e))&&!!e.symbol&&WR(e.symbol)}function WR(e){return!!(128&e.flags)}function HR(e){const t=xB("hasInstance");if(UR(e,67108864)){const n=Uf(e,t);if(n){const e=Tu(n);if(e&&0!==Xf(e,0).length)return e}}}function GR(e,t,n,r){return n===un||r===un?un:(Qw(e)?((Ae===An||!!(2097152&e.flags)&&Kk(uf(e))))&&Oo(t,ha.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,ic(r)),Yt)}function KR(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(303===a.kind||304===a.kind){const e=a.name,n=Kb(e);if(fC(n)){const e=Uf(t,mC(n));e&&(vO(e,a,i),OI(a,!1,!0,t,e))}const r=Yc(a,Ix(t,n,32|(WA(a)?16:0),e));return QR(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(nYv(e,n))):Dv(r),i);Oo(o.operatorToken,ha.A_rest_element_cannot_have_an_initializer)}}}function QR(e,t,n,r){let i;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(U&&!Kw(Ej(r.objectAssignmentInitializer),16777216)&&(t=Zw(t,524288)),function(e,t,n,r,i){const o=t.kind;if(64===o&&(210===e.kind||209===e.kind))return QR(e,Ej(n,r),r,110===n.kind);let a;a=nb(o)?iB(e,r):Ej(e,r);const s=Ej(n,r);tj(e,t,n,a,s,r,i)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 226===i.kind&&64===i.operatorToken.kind&&(se(i,n),i=i.left,U&&(t=Zw(t,524288))),210===i.kind?function(e,t,n){const r=e.properties;if(U&&0===r.length)return VI(t,e);for(let i=0;i=32&&jo(XN(uh(n.parent.parent)),s||t,ha.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,np(e),Ra(c),r.value%32)}return l}case 40:case 65:if(r===un||i===un)return un;let g;if(qR(r,402653316)||qR(i,402653316)||(r=VI(r,e),i=VI(i,n)),qR(r,296,!0)&&qR(i,296,!0)?g=Ut:qR(r,2112,!0)&&qR(i,2112,!0)?g=Vt:qR(r,402653316,!0)||qR(i,402653316,!0)?g=qt:(Wc(r)||Wc(i))&&(g=Hc(r)||Hc(i)?Nt:Dt),g&&!_(c))return g;if(!g){const e=402655727;return f(((t,n)=>qR(t,e)&&qR(n,e))),Dt}return 65===c&&d(g),g;case 30:case 32:case 33:case 34:return _(c)&&(r=QC(VI(r,e)),i=QC(VI(i,n)),p(((e,t)=>{if(Wc(e)||Wc(t))return!0;const n=Fk(e,yn),r=Fk(t,yn);return n&&r||!n&&!r&&Ak(e,t)}))),Yt;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((zl(e)||zl(n))&&(!jm(e)||37===c||38===c)){const e=35===c||37===c;Oo(s,ha.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=m(ph(n)),o=m(ph(r));if(i||o){const a=Oo(e,ha.This_condition_will_always_return_0,Ra(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Ra(54):"",c=i?r:n,l=ph(c);pT(a,Up(c,ha.Did_you_mean_0,`${s}Number.isNaN(${fb(l)?qp(l):"..."})`))}}(s,c,e,n),p(((e,t)=>ZR(e,t)||ZR(t,e)))}return Yt;case 104:return function(e,t,n,r,i){if(n===un||r===un)return un;!Wc(n)&&UR(n,402784252)&&Oo(e,ha.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),gn.assert(kb(e.parent));const o=vL(e.parent,void 0,i);return o===li?un:(Ik(jg(o),Yt,t,ha.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Yt)}(e,n,r,i,o);case 103:return GR(e,n,r,i);case 56:case 77:{const e=Kw(r,4194304)?Ib([(l=U?r:XC(i),CF(l,pD)),i]):r;return 77===c&&d(i),e}case 57:case 76:{const e=Kw(r,8388608)?Ib([gD(dD(r)),i],2):r;return 76===c&&d(i),e}case 61:case 78:{const e=Kw(r,262144)?Ib([gD(r),i],2):r;return 78===c&&d(i),e}case 64:const h=hF(e.parent)?cg(e.parent):0;return function(e,t){if(2===e)for(const e of Cp(t)){const t=Tu(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=ze(e.valueDeclaration,t,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(OP)&&(Yo(n,ha.Duplicate_identifier_0,Sc(t),e),Yo(e,ha.Duplicate_identifier_0,Sc(t),n))}}}(h,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=ms(e),i=Zm(n);return!!i&&tF(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(h)?(524288&i.flags&&(2===h||6===h||Gk(i)||Hw(i)||1&Tx(i))||d(i),r):(d(i),i);case 28:if(!F.allowUnreachableCode&&YR(e)&&!function(e){return 217===e.parent.kind&&Pw(e.left)&&"0"===e.left.text&&(iF(e.parent.parent)&&e.parent.parent.expression===e.parent||215===e.parent.parent.kind)&&(Px(e.right)||Xw(e.right)&&"eval"===e.right.escapedText)}(e.parent)){const t=Cd(e),n=is(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===ha.JSX_expressions_must_have_one_parent_element.code&&Ms(e,n)))||Oo(e,ha.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return gn.fail()}var l;function u(e,t){return qR(e,2112)&&qR(t,2112)}function _(t){const o=zR(r,12288)?e:zR(i,12288)?n:void 0;return!o||(Oo(o,ha.The_0_operator_cannot_be_applied_to_type_symbol,Ra(t)),!1)}function d(i){cb(c)&&a((function(){let o=r;if(ZJ(t.kind)&&211===e.kind&&(o=HI(e,void 0,!0)),jR(e,ha.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,ha.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(ie&&nF(e)&&$R(i,32768)){const n=qc(Cj(e.expression),e.name.escapedText);dT(i,n)&&(t=ha.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Ok(i,o,e,n,t)}}))}function p(e){return!e(r,i)&&(f(e),!0)}function f(e){let n=!1;const o=s||t;if(e){const t=lM(r),o=lM(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let a=r,c=i;!n&&e&&([a,c]=function(e,t,n){let r=e,i=t;const o=XC(e),a=XC(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[l,u]=oc(a,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return Mo(e,n,ha.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,u)||Mo(o,n,ha.Operator_0_cannot_be_applied_to_types_1_and_2,Ra(t.kind),l,u)}function m(e){if(Xw(e)&&"NaN"===e.escapedText){const t=Vr||(Vr=By("NaN",!1));return!!t&&t===Ew(e)}return!1}}function nj(e){const t=e.parent;return cF(t)&&nj(t)||rF(t)&&t.argumentExpression===e}function rj(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=Ej(r.expression);zR(e,12288)&&Oo(r.expression,ha.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(Fk(e,vn)?e:qt)}const r=215!==e.parent.kind&&ge(e).value;return r?pS(gS(r)):pj(e)||nj(e)||pF(PA(e,void 0)||Ot,ij)?nx(t,n):qt}function ij(e){return!!(134217856&e.flags||58982400&e.flags&&$R(Zp(e)||Ot,402653316))}function oj(e,t,n,r){const i=function(e){return BN(e)&&!AN(e.parent)?e.parent.parent:e}(e);IA(i,t,!1),function(e,t){Pi[Oi]=e,Ai[Oi]=t,Oi++}(i,n);const o=Ej(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=$R(o,2944)&&dj(o,FA(t,e,void 0))?fS(o):o;return Oi--,OA(),a}function aj(e,t){if(t)return Ej(e,t);const n=ra(e);if(!n.resolvedType){const r=xi,i=ri;xi=Si,ri=void 0,n.resolvedType=Ej(e,t),ri=i,xi=r}return n.resolvedType}function sj(e){return 216===(e=ph(e,!0)).kind||234===e.kind||fA(e)}function cj(e,t,n){const r=Qm(e);if(jm(e)){const n=sC(e);if(n)return ML(r,n,t)}const i=Dj(r)||(n?oj(r,n,void 0,t||0):aj(r,t));if(fE(ZE(e)?lc(e):e)){if(206===e.name.kind&&bw(i))return function(e,t){let n;for(const r of t.elements)if(r.initializer){const t=lj(r);t&&!Uf(e,t)&&(n=le(n,r))}if(!n)return e;const r=td();for(const t of Cp(e))r.set(t.escapedName,t);for(const e of n){const t=Uo(16777220,lj(e));t.links.type=Rl(e,!1,!1),r.set(t.escapedName,t)}const i=Js(e.symbol,r,u,u,bm(e));return i.objectFlags=e.objectFlags,i}(i,e.name);if(207===e.name.kind&&nD(i))return function(e,t){if(12&e.target.combinedFlags||_y(e)>=t.elements.length)return e;const n=t.elements,r=ob(e).slice(),i=e.target.elementFlags.slice();for(let t=_y(e);tdj(e,t)));if(58982400&t.flags){const n=Zp(t)||Ot;return $R(n,4)&&$R(e,128)||$R(n,8)&&$R(e,256)||$R(n,64)&&$R(e,2048)||$R(n,4096)&&$R(e,8192)||dj(e,n)}return!!(406847616&t.flags&&$R(e,128)||256&t.flags&&$R(e,256)||2048&t.flags&&$R(e,2048)||512&t.flags&&$R(e,512)||8192&t.flags&&$R(e,8192))}return!1}function pj(e){const t=e.parent;return Yu(t)&&Fl(t.type)||fA(t)&&Fl(mA(t))||AL(e)&&Pp(PA(e,0))||(cF(t)||eF(t)||xF(t))&&pj(t)||(HN(t)||GN(t)||AF(t))&&pj(t.parent)}function fj(e,t,n){const r=Ej(e,t,n);return pj(e)||Jf(e)?fS(r):sj(e)?r:eD(r,FA(PA(e,void 0),e,void 0))}function mj(e,t){return 167===e.name.kind&&XA(e.name),fj(e.initializer,t)}function gj(e,t){return h$(e),167===e.name.kind&&XA(e.name),hj(e,AR(e,t),t)}function hj(e,t,n){if(n&&10&n){const r=BO(t,0,!0),i=BO(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=EA(e,2);if(t){const i=BO(gD(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return yj(e,n),Ln;const t=MA(e),r=t.signature&&jg(t.signature),a=r&&MO(r);if(a&&!a.typeParameters&&!k(t.inferences,vj)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(xj(e.inferredTypeParameters,t)||xj(n,t)){const a=Ps(Uo(262144,Sj(Y(e.inferredTypeParameters,n),t)));a.target=o,r=le(r,o),i=le(i,a),n.push(a)}else n.push(o)}if(i){const e=BS(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=Vg(o,e),r=O(t.inferences,(e=>XD(e.typeParameter)));if(zD(n,i,((e,t)=>{hw(r,e,t,0,!0)})),X(r,vj)&&(UD(n,i,((e,t)=>{hw(r,e,t)})),!function(e,t){for(let n=0;ne&&O(e.inferences,(e=>e.typeParameter)))).slice())}}}}return t}function yj(e,t){2&t&&(MA(e).flags|=4)}function vj(e){return!(!e.candidates&&!e.contraCandidates)}function bj(e){return!!(e.candidates||e.contraCandidates||hf(e.typeParameter))}function xj(e,t){return X(e,(e=>e.symbol.escapedName===t))}function Sj(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!xj(e,n))return n}}function Tj(e){const t=jO(e);if(t&&!t.typeParameters)return jg(t)}function Cj(e){const t=Dj(e);if(t)return t;if(268435456&e.flags&&ri){const t=ri[QB(e)];if(t)return t}const n=Ci,r=Ej(e,64);return Ci!==n&&((ri||(ri=[]))[QB(e)]=r,OT(e,268435456|e.flags)),r}function Dj(e){let t=ph(e,!0);if(fA(t)){const e=mA(t);if(!Fl(e))return TS(e)}if(t=ph(e),fF(t)){const e=Dj(t.expression);return e?cM(e):void 0}return!iF(t)||108===t.expression.kind||$m(t,!0)||CL(t)?Yu(t)&&!Fl(t.type)?TS(t.type):Jl(e)||pu(e)?Ej(e):void 0:kl(t)?function(e){const t=Ej(e.expression),n=bD(t,e.expression),r=Tj(t);return r&&vD(r,e,n!==t)}(t):Tj(jI(t.expression))}function wj(e){const t=ra(e);if(t.contextFreeType)return t.contextFreeType;IA(e,Dt,!1);const n=t.contextFreeType=Ej(e,4);return OA(),n}function Ej(n,i,o){var s,c;null==(s=Yn)||s.push(Yn.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const l=r;r=n,h=0;const _=function(e,n,r){const i=e.kind;if(t)switch(i){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(i){case 80:return AP(e,n);case 81:return ZI(e);case 110:return UP(e);case 108:return WP(e);case 106:return $t;case 15:case 11:return cw(e)?Ft:pS(gS(e.text));case 9:return P$(e),pS(hS(+e.text));case 10:return function(e){const t=HE(e.parent)||mF(e.parent)&&HE(e.parent.parent);if(!t&&A<7&&w$(e,ha.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(e),pS(yS({negative:!1,base10Value:ST(e.text)}));case 112:return Kt;case 97:return Wt;case 228:return rj(e);case 14:return VA(e);case 209:return HA(e,n,r);case 210:return nI(e,n);case 211:return HI(e,n);case 166:return KI(e,n);case 212:return CO(e,n);case 213:if(102===e.expression.kind)return DL(e);case 214:return function(e,t){var n,r,i;s$(e,e.typeArguments);const o=vL(e,void 0,t);if(o===li)return un;if(kL(o,e),108===e.expression.kind)return rn;if(214===e.kind){const t=o.declaration;if(t&&176!==t.kind&&180!==t.kind&&185!==t.kind&&(!mP(t)||176!==(null==(r=null==(n=Yg(t))?void 0:n.parent)?void 0:r.kind))&&!Og(t)&&!bL(t))return Z&&Oo(e,ha.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Dt}if(jm(e)&&NL(e))return Dg(e.arguments[0]);const a=jg(o);if(12288&a.flags&&CL(e))return bS(uh(e.parent));if(213===e.kind&&!e.questionDotToken&&244===e.parent.kind&&16384&a.flags&&Pg(o))if(gb(e.expression)){if(!QF(e)){const t=Oo(e.expression,ha.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);XF(e.expression,t)}}else Oo(e.expression,ha.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(jm(e)){const t=SL(e,!1);if(null==(i=null==t?void 0:t.exports)?void 0:i.size){const e=Js(t,t.exports,u,u,u);return e.objectFlags|=4096,zb([a,e])}}return a}(e,n);case 215:return PL(e);case 217:return function(e,t){if(L_(e)){if(oC(e))return ML(e.expression,aC(e),t);if(fA(e))return IL(e,t)}return Ej(e.expression,t)}(e,n);case 231:return function(e){return dJ(e),VJ(e),function(e){if(e.name)return;const t=yA(e);if(!ty(t))return;let n;n=!B&&ABR(e)));const t=Ej(e.expression),n=nM(t,!0,e,ha.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||Hc(n)||3&t.flags||Lo(!1,Up(e,ha.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=Ej(e.operand);if(t===un)return un;switch(e.operand.kind){case 9:switch(e.operator){case 41:return pS(hS(-e.operand.text));case 40:return pS(hS(+e.operand.text))}break;case 10:if(41===e.operator)return pS(yS({negative:!0,base10Value:ST(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return VI(t,e.operand),zR(t,12288)&&Oo(e.operand,ha.The_0_operator_cannot_be_applied_to_type_symbol,Ra(e.operator)),40===e.operator?(zR(t,2112)&&Oo(e.operand,ha.Operator_0_cannot_be_applied_to_type_1,Ra(e.operator),ic(XC(t))),Ut):JR(t);case 54:nB(t,e.operand);const n=Gw(t,12582912);return 4194304===n?Wt:8388608===n?Kt:Yt;case 46:case 47:return IR(e.operand,VI(t,e.operand),ha.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&jR(e.operand,ha.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,ha.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),JR(t)}return Nt}(e);case 225:return function(e){const t=Ej(e.operand);return t===un?un:(IR(e.operand,VI(t,e.operand),ha.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&jR(e.operand,ha.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,ha.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),JR(t))}(e);case 226:return se(e,n);case 227:return function(e,t){const n=iB(e.condition,t);return tB(e.condition,n,e.whenTrue),Ib([Ej(e.whenTrue,t),Ej(e.whenFalse,t)],2)}(e,n);case 230:return function(e,t){return AIj(e,n,void 0))));const o=i&&PB(i,r),s=o&&o.yieldType||Dt,c=o&&o.nextType||Dt,l=e.expression?Ej(e.expression):Rt,u=DR(e,l,c,r);if(i&&u&&Ok(u,s,e.expression||e,e.expression),e.asteriskToken)return lB(r?19:17,1,l,e.expression)||Dt;if(i)return NB(2,i,r)||Dt;let _=nA(2,t);return _||(_=Dt,a((()=>{if(Z&&!BT(e)){const t=PA(e,void 0);t&&!Wc(t)||Oo(e,ha.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),_}(e);case 237:return function(e){return e.isSpread?Ix(e.type,Ut):e.type}(e);case 294:return PI(e,n);case 284:case 285:return function(e){return VJ(e),TI(e)||Dt}(e);case 288:return function(e){EI(e.openingFragment);const t=Cd(e);!ek(F)||!F.jsxFactory&&!t.pragmas.has("jsx")||F.jsxFragmentFactory||t.pragmas.has("jsxfrag")||Oo(e,F.jsxFactory?ha.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:ha.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),cI(e);const n=TI(e);return Hc(n)?Dt:n}(e);case 292:return function(e,t){return sI(e.parent,t)}(e,n);case 286:gn.fail("Shouldn't ever directly check a JsxOpeningElement")}return Nt}(n,i,o),d=hj(n,_,i);return VR(d)&&function(t,n){const r=211===t.parent.kind&&t.parent.expression===t||212===t.parent.kind&&t.parent.expression===t||(80===t.kind||166===t.kind)&&iz(t)||186===t.parent.kind&&t.parent.exprName===t||281===t.parent.kind;if(r||Oo(t,ha.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),F.isolatedModules||F.verbatimModuleSyntax&&r&&!ze(t,mb(t),2097152,void 0,!1,!0)){gn.assert(!!(128&n.symbol.flags));const r=n.symbol.valueDeclaration,i=e.getRedirectReferenceForResolutionFromSourceOfProject(Cd(r).resolvedPath);!(33554432&r.flags)||wT(t)||i&&jS(i.commandLine.options)||Oo(t,ha.Cannot_access_ambient_const_enums_when_0_is_enabled,Le)}}(n,d),r=l,null==(c=Yn)||c.pop(),d}function Fj(e){t$(e),e.expression&&C$(e.expression,ha.Type_expected),$J(e.constraint),$J(e.default);const t=g_(fs(e));Zp(t),function(e){return pf(e)!==jn}(t)||Oo(e.default,ha.Type_parameter_0_has_a_circular_default,ic(t));const n=Np(t),r=ff(t);n&&r&&Ik(r,md(fk(n,US(t,r)),r),e.default,ha.Type_0_does_not_satisfy_the_constraint_1),VJ(e),a((()=>WB(e.name,ha.Type_parameter_name_cannot_be_0)))}function Nj(e){t$(e),WM(e);const t=tm(e);Lv(e,31)&&(176===t.kind&&Od(t.body)||Oo(e,ha.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&Xw(e.name)&&"constructor"===e.name.escapedText&&Oo(e.name,ha.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&rC(e)&&Fu(e.name)&&t.body&&Oo(e,ha.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&Xw(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&Oo(e,ha.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||Oo(e,ha.A_constructor_cannot_have_a_this_parameter),219===t.kind&&Oo(e,ha.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||Oo(e,ha.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||Fu(e.name)||Fk(wf(Tu(e.symbol)),ur)||Oo(e,ha.A_rest_parameter_must_be_of_an_array_type)}function Pj(e,t,n){for(const r of e.elements){if(kF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return Oo(t,ha.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&Pj(e,t,n))return!0}}function Aj(e){181===e.kind?function(e){t$(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return w$(t?t.name:e,ha.An_index_signature_must_have_exactly_one_parameter);if(r$(e.parameters,ha.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return w$(t.dotDotDotToken,ha.An_index_signature_cannot_have_a_rest_parameter);if(Av(t))return w$(t.name,ha.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return w$(t.questionToken,ha.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return w$(t.name,ha.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return w$(t.name,ha.An_index_signature_parameter_must_have_a_type_annotation);const n=TS(t.type);pF(n,(e=>!!(8576&e.flags)))||bx(n)?w$(t.name,ha.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):gF(n,Lh)?e.type||w$(e,ha.An_index_signature_must_have_a_type_annotation):w$(t.name,ha.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||a$(e);const t=zh(e);4&t||(!(3&~t)&&A{Xw(e)&&r.add(e.escapedText),Fu(e)&&i.add(t)}));const o=xg(e);if(o){const e=t.length-1,o=t[e];n&&o&&Xw(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!IC(TS(o.typeExpression.type))&&Oo(o.name,ha.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,kc(o.name))}else f(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||Xw(e)&&r.has(e.escapedText)||(_E(e)?n&&Oo(e,ha.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,qp(e),qp(e.left)):t||jo(n,e,ha.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,kc(e)))}))}(e),f(e.parameters,Nj),e.type&&$J(e.type),a((function(){!function(e){A>=2||!V_(e)||33554432&e.flags||Id(e.body)||f(e.parameters,(e=>{e.name&&!Fu(e.name)&&e.name.escapedText===Ie.escapedName&&Ao("noEmit",e,ha.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=kv(e),n=t;if(jm(e)){const r=cl(e);if(r&&r.typeExpression&&EE(r.typeExpression.type)){const e=jO(TS(r.typeExpression));e&&e.declaration&&(t=kv(e.declaration),n=r.typeExpression.type)}}if(Z&&!t)switch(e.kind){case 180:Oo(e,ha.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Oo(e,ha.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=zh(e);if(1==(5&r)){const e=TS(t);e===rn?Oo(n,ha.A_generator_cannot_have_a_void_type_annotation):Ij(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=TS(t);if(A>=2){if(Hc(r))return;const e=ev(!0);if(e!==On&&!Pu(r,e))return void o(ha.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,ic(lM(r)||rn))}else{if(aP(e,5),Hc(r))return;const a=hm(t);if(void 0===a)return void o(ha.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,ic(r));const s=Ha(a,111551,!0),c=s?Tu(s):Nt;if(Hc(c))return void(80===a.kind&&"Promise"===a.escapedText&&Au(r)===ev(!1)?Oo(n,ha.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):o(ha.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,qp(a)));const l=(i=!0,vr||(vr=Wy("PromiseConstructorLike",0,i))||wn);if(l===wn)return void o(ha.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,qp(a));const u=ha.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Ik(c,l,n,u,(()=>t===n?void 0:sS(void 0,ha.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const _=a&&mb(a),d=ia(e.locals,_.escapedText,111551);if(d)return void Oo(d.valueDeclaration,ha.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,kc(_),qp(a))}var i;function o(e,t,n,r){t===n?Oo(n,e,r):pT(Oo(n,ha.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Up(t,e,r))}nM(r,!1,e,ha.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&317!==e.kind&&xM(e)}))}function Ij(e,t,n){const r=NB(0,e,!!(2&t))||Dt;return Ik(CR(r,NB(1,e,!!(2&t))||r,NB(2,e,!!(2&t))||Ot,!!(2&t)),e,n)}function Oj(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=kc(r);break;default:continue}t.get(e)?(Oo(Ac(n.symbol.valueDeclaration),ha.Duplicate_identifier_0,e),Oo(n.name,ha.Duplicate_identifier_0,e)):t.set(e,!0)}}function Lj(e){if(264===e.kind){const t=fs(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=Eh(fs(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)DE(n)&&1===n.parameters.length&&n.parameters[0].type&&_F(TS(n.parameters[0].type),(t=>{const r=e.get(lb(t));r?r.declarations.push(n):e.set(lb(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)Oo(t,ha.Duplicate_index_signature_for_type_0,ic(e.type))}))}}function Rj(e){t$(e)||function(e){if(dE(e.name)&&hF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return w$(e.parent.members[0],ha.A_mapped_type_may_not_declare_properties_or_methods);if(yu(e.parent)){if(Iw(e.name)&&"constructor"===e.name.text)return w$(e.name,ha.Classes_may_not_have_a_field_named_constructor);if(g$(e.name,ha.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(A<2&&Qw(e.name))return w$(e.name,ha.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(A<2&&bu(e))return w$(e.name,ha.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(bu(e)&&d$(e.questionToken,ha.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(g$(e.name,ha.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(gn.assertNode(e,gE),e.initializer)return w$(e.initializer,ha.An_interface_property_cannot_have_an_initializer)}else if(AE(e.parent)){if(g$(e.name,ha.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(gn.assertNode(e,gE),e.initializer)return w$(e.initializer,ha.A_type_literal_property_cannot_have_an_initializer)}if(33554432&e.flags&&v$(e),hE(e)&&e.exclamationToken&&(!yu(e.parent)||!e.type||e.initializer||33554432&e.flags||Rv(e)||Bv(e))){const t=e.initializer?ha.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?ha.A_definite_assignment_assertion_is_not_permitted_in_this_context:ha.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return w$(e.exclamationToken,t)}}(e)||u$(e.name),WM(e),jj(e),Lv(e,64)&&172===e.kind&&e.initializer&&Oo(e,ha.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Mp(e.name))}function jj(e){if(Qw(e.name)&&(ALv(e,31)))))if(function(e,t){const n=uh(e.parent);return jF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(jF(n)&&mf(hA(n.expression))){t=n;break}if(Bj(n))break}void 0===t&&Oo(e,ha.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else Oo(i,ha.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||Oo(e,ha.Constructors_for_derived_classes_must_contain_a_super_call)}}))}function Bj(e){return 108===e.kind||110===e.kind||!cm(e)&&!!qI(e,Bj)}function Jj(e){Xw(e.name)&&"constructor"===kc(e.name)&&yu(e.parent)&&Oo(e.name,ha.Class_constructor_may_not_be_an_accessor),a((function(){if(a$(e)||function(e){if(!(33554432&e.flags)&&187!==e.parent.kind&&264!==e.parent.kind){if(A<2&&Qw(e.name))return w$(e.name,ha.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!Lv(e,64))return D$(e,e.end-1,1,ha._0_expected,"{")}if(e.body){if(Lv(e,64))return w$(e,ha.An_abstract_accessor_cannot_have_an_implementation);if(187===e.parent.kind||264===e.parent.kind)return w$(e.body,ha.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return w$(e.name,ha.An_accessor_cannot_have_type_parameters);if(!function(e){return m$(e)||e.parameters.length===(177===e.kind?0:1)}(e))return w$(e.name,177===e.kind?ha.A_get_accessor_cannot_have_parameters:ha.A_set_accessor_must_have_exactly_one_parameter);if(178===e.kind){if(e.type)return w$(e.name,ha.A_set_accessor_cannot_have_a_return_type_annotation);const t=gn.checkDefined(dv(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return w$(t.dotDotDotToken,ha.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return w$(t.questionToken,ha.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return w$(e.name,ha.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||u$(e.name),yM(e),Aj(e),177===e.kind&&!(33554432&e.flags)&&Od(e.body)&&512&e.flags&&(1024&e.flags||Oo(e.name,ha.A_get_accessor_must_return_a_value)),167===e.name.kind&&XA(e.name),od(e)){const t=fs(e),n=Z_(t,177),r=Z_(t,178);if(n&&r&&!(1&Az(n))){ra(n).flags|=1;const e=Hv(n),t=Hv(r);(64&e)!=(64&t)&&(Oo(n.name,ha.Accessors_must_both_be_abstract_or_non_abstract),Oo(r.name,ha.Accessors_must_both_be_abstract_or_non_abstract)),(4&e&&!(6&t)||2&e&&!(2&t))&&(Oo(n.name,ha.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Oo(r.name,ha.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const t=eu(fs(e));177===e.kind&&PR(e,t)})),$J(e.body),jj(e)}function zj(e,t,n){return e.typeArguments&&n{const t=Uj(e);t&&qj(e,t)}));const t=ra(e).resolvedSymbol;t&&X(t.declarations,(e=>QT(e)&&!!(536870912&e.flags)))&&qo(TL(e),t.declarations,t.escapedName)}}function Hj(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,i=gp(n)&&2===xp(n)?Gb(n,0):ex(n,0),o=!!xm(n,Ut);if(gF(r,(e=>Fk(e,i)||o&&em(e,Ut))))return 212===t.kind&&ih(t)&&32&Tx(n)&&1&lp(n)&&Oo(t,ha.Index_signature_in_type_0_only_permits_reading,ic(n)),e;if(xx(n)){const e=cx(r,t);if(e){const r=_F(Sf(n),(t=>Uf(t,e)));if(r&&6&dx(r))return Oo(t,ha.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Sc(e)),Nt}}return Oo(t,ha.Type_0_cannot_be_used_to_index_type_1,ic(r),ic(n)),Nt}function Gj(e){!function(e){var t;(null==(t=e.members)?void 0:t.length)&&w$(e.members[0],ha.A_mapped_type_may_not_declare_properties_or_methods)}(e),$J(e.typeParameter),$J(e.nameType),$J(e.type),e.type||BD(e,Dt);const t=Mx(e),n=tp(t);n?Ik(n,hn,e.nameType):Ik(Qd(t),hn,yl(e.typeParameter))}function Kj(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return w$(e.type,ha._0_expected,Ra(155));let t=lh(e.parent);if(jm(t)&&ZN(t)){const e=Qg(t);e&&(t=Bg(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return w$(e,ha.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Bf(n))return w$(e,ha.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return w$(t.name,ha.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Rv(t)||!$v(t))return w$(t.name,ha.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Lv(t,8))return w$(t.name,ha.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:w$(e,ha.unique_symbol_types_are_not_allowed_here)}}else 148===e.operator&&188!==e.type.kind&&189!==e.type.kind&&C$(e,ha.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Ra(155))}(e),$J(e.type)}function Xj(e){return(Ov(e,2)||tu(e))&&!!(33554432&e.flags)}function Qj(e,t){let n=L$(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=Lp(e);!(t&&128&t.flags)||128&n||sN(e.parent)&&aN(e.parent.parent)&&vp(e.parent.parent)||(n|=32),n|=128}return n&t}function Yj(e){a((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function n(e,n,r,i,o){if(i^o){const i=Qj(t(e,n),r);Ve(e,(e=>Cd(e).fileName)).forEach((e=>{const o=Qj(t(e,n),r);for(const t of e){const e=Qj(t,r)^i,n=Qj(t,r)^o;32&n?Oo(Ac(t),ha.Overload_signatures_must_all_be_exported_or_non_exported):128&n?Oo(Ac(t),ha.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?Oo(Ac(t)||t,ha.Overload_signatures_must_all_be_public_private_or_protected):64&e&&Oo(Ac(t),ha.Overload_signatures_must_all_be_abstract_or_non_abstract)}}))}}function r(e,n,r,i){if(r!==i){const r=Ig(t(e,n));f(e,(e=>{Ig(e)!==r&&Oo(Ac(e),ha.Overload_signatures_must_all_be_optional_or_required)}))}}const i=230;let o,a,s,c=0,l=i,u=!1,_=!0,d=!1;const m=e.declarations,g=!!(16384&e.flags);function h(e){if(e.name&&Id(e.name))return;let t=!1;const n=qI(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(Qw(e.name)&&Qw(r)&&e.name.escapedText===r.escapedText||dE(e.name)&&dE(r)&&kk(XA(e.name),XA(r))||Gh(e.name)&&Gh(r)&&Xh(e.name)===Xh(r)))return void(174!==e.kind&&173!==e.kind||Rv(e)===Rv(n)||Oo(t,Rv(e)?ha.Function_overload_must_be_static:ha.Function_overload_must_not_be_static));if(Od(n.body))return void Oo(t,ha.Function_implementation_name_must_be_0,Mp(e.name))}const r=e.name||e;g?Oo(r,ha.Constructor_implementation_is_missing):Lv(e,64)?Oo(r,ha.All_declarations_of_an_abstract_method_must_be_consecutive):Oo(r,ha.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let y=!1,v=!1,b=!1;const x=[];if(m)for(const e of m){const t=e,n=33554432&t.flags,r=t.parent&&(264===t.parent.kind||187===t.parent.kind)||n;if(r&&(s=void 0),263!==t.kind&&231!==t.kind||n||(b=!0),262===t.kind||174===t.kind||173===t.kind||176===t.kind){x.push(t);const e=Qj(t,i);c|=e,l&=e,u=u||Ig(t),_=_&&Ig(t);const n=Od(t.body);n&&o?g?v=!0:y=!0:(null==s?void 0:s.parent)===t.parent&&s.end!==t.pos&&h(s),n?o||(o=t):d=!0,s=t,r||(a=t)}jm(e)&&uu(e)&&e.jsDoc&&(d=p(Gg(e))>0)}if(v&&f(x,(e=>{Oo(e,ha.Multiple_constructor_implementations_are_not_allowed)})),y&&f(x,(e=>{Oo(Ac(e)||e,ha.Duplicate_function_implementation)})),b&&!g&&16&e.flags&&m){const t=P(m,(e=>263===e.kind)).map((e=>Up(e,ha.Consider_adding_a_declare_modifier_to_this_class)));f(m,(n=>{const r=263===n.kind?ha.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?ha.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&pT(Oo(Ac(n)||n,r,Cc(e)),...t)}))}if(!a||a.body||Lv(a,64)||a.questionToken||h(a),d&&(m&&(n(m,o,i,c,l),r(m,o,u,_)),o)){const t=kg(e),n=mg(o);for(const e of t)if(!Wk(n,e)){pT(Oo(e.declaration&&mP(e.declaration)?e.declaration.parent.tagName:e.declaration,ha.This_overload_signature_is_not_compatible_with_its_implementation_signature),Up(o,ha.The_implementation_signature_is_declared_here));break}}}(e)))}function Zj(e){a((()=>function(e){let t=e.localSymbol;if(!t&&(t=fs(e),!t.exportSymbol))return;if(Z_(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=Qj(e,2080);32&o?2048&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=Ac(e);t&a?Oo(n,ha.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Mp(n)):t&o&&Oo(n,ha.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Mp(n))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return fp(t)||0!==zM(t)?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:const e=t,n=SN(e)?e.expression:e.right;if(!fb(n))return 1;t=n;case 271:case 274:case 273:let r=0;return f(Ja(fs(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return gn.failBadSyntaxKind(t)}}}(e)))}function eM(e,t,n,...r){const i=tM(e,t);return i&&cM(i,t,n,...r)}function tM(e,t,n){if(Wc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(Pu(e,ev(!1)))return r.promisedTypeOfPromise=uy(e)[0];if(UR(uf(e),402915324))return;const i=qc(e,"then");if(Wc(i))return;const o=i?Xf(i,0):u;if(0===o.length)return void(t&&Oo(t,ha.A_promise_must_have_a_then_method));let a,s;for(const t of o){const n=wg(t);n&&n!==rn&&!tT(e,n,mo)?a=n:s=le(s,t)}if(!s)return gn.assertIsDefined(a),n&&(n.value=a),void(t&&Oo(t,ha.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ic(e),ic(a)));const c=Zw(Ib(O(s,iR)),2097152);if(Wc(c))return;const l=Xf(c,0);if(0!==l.length)return r.promisedTypeOfPromise=Ib(O(l,iR),2);t&&Oo(t,ha.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function nM(e,t,n,r,...i){return(t?cM(e,n,r,...i):lM(e,n,r,...i))||Nt}function rM(e){if(UR(uf(e),402915324))return!1;const t=qc(e,"then");return!!t&&Xf(Zw(t,2097152),0).length>0}function iM(e){var t;if(16777216&e.flags){const n=pv(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function oM(e){return 1048576&e.flags?CF(e,oM):iM(e)?e.aliasTypeArguments[0]:e}function aM(e){if(Wc(e)||iM(e))return!1;if(xx(e)){const t=Zp(e);if(t?3&t.flags||Gk(t)||pF(t,rM):$R(e,8650752))return!0}return!1}function sM(e){return aM(e)?function(e){const t=pv(!0);if(t)return py(t,[oM(e)])}(e)??e:(gn.assert(iM(e)||void 0===tM(e),"type provided should not be a non-generic 'promise'-like."),e)}function cM(e,t,n,...r){const i=lM(e,t,n,...r);return i&&sM(i)}function lM(e,t,n,...r){if(Wc(e))return e;if(iM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(so.lastIndexOf(e.id)>=0)return void(t&&Oo(t,ha.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>lM(e,t,n,...r):lM;so.push(e.id);const a=CF(e,o);return so.pop(),i.awaitedTypeOfType=a}if(aM(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=tM(e,void 0,o);if(a){if(e.id===a.id||so.lastIndexOf(a.id)>=0)return void(t&&Oo(t,ha.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));so.push(e.id);const o=lM(a,t,n,...r);if(so.pop(),!o)return;return i.awaitedTypeOfType=o}if(!rM(e))return i.awaitedTypeOfType=e;if(t){let i;gn.assertIsDefined(n),o.value&&(i=sS(i,ha.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ic(e),ic(o.value))),i=sS(i,n,...r),_o.add(Hp(Cd(t),t,i))}}function uM(e){!function(e){if(!T$(Cd(e))){let t=e.expression;if(cF(t))return!1;let n,r=!0;for(;;)if(TF(t)||wF(t))t=t.expression;else if(iF(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!nF(t)){Xw(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)pT(Oo(e.expression,ha.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Up(n,ha.Invalid_syntax_in_decorator))}}(e);const t=vL(e);kL(t,e);const n=jg(t);if(1&n.flags)return;const r=bR(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:i=ha.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!B){i=ha.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:i=ha.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:i=ha.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return gn.failBadSyntaxKind(e.parent)}Ik(n,o,e.expression,i)}function _M(e,t,n,r,i,o=n.length,a=0){return hd(oD.createFunctionTypeNode(void 0,u,oD.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function dM(e,t,n,r,i,o,a){return vh(_M(e,t,n,r,i,o,a))}function pM(e){return dM(void 0,void 0,u,e)}function fM(e){return dM(void 0,void 0,[Vo("value",e)],rn)}function mM(e){if(e)switch(e.kind){case 193:case 192:return gM(e.types);case 194:return gM([e.trueType,e.falseType]);case 196:case 202:return mM(e.type);case 183:return e.typeName}}function gM(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!U&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=mM(n);if(!e)return;if(t){if(!Xw(t)||!Xw(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function hM(e){const t=xv(e);return W_(e)?Rf(t):t}function yM(e){if(!(gI(e)&&qv(e)&&e.modifiers&&vm(B,e,e.parent,e.parent.parent)))return;const t=T(e.modifiers,mE);if(t){B?(Zz(t,8),169===e.kind&&Zz(t,32)):At.kind===e.kind&&!(524288&t.flags)));e===i&&Yj(r),n.parent&&Yj(n)}const r=173===e.kind?void 0:e.body;if($J(r),PR(e,Mg(e)),a((function(){kv(e)||(Id(r)&&!Xj(e)&&BD(e,Dt),1&n&&Od(r)&&jg(mg(e)))})),jm(e)){const t=cl(e);t&&t.typeExpression&&!$A(TS(t.typeExpression),e)&&Oo(t.typeExpression.type,ha.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function xM(e){a((function(){const t=Cd(e);let n=bi.get(t.path);n||(n=[],bi.set(t.path,n)),n.push(e)}))}function SM(e,t){for(const n of e)switch(n.kind){case 263:case 231:CM(n,t),wM(n,t);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:AM(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&AM(n,t),wM(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:wM(n,t);break;case 195:DM(n,t);break;default:gn.assertNever(n,"Node should not have been registered for unused identifiers check")}}function kM(e,t,n){n(e,0,Up(Ac(e)||e,QT(e)?ha._0_is_declared_but_never_used:ha._0_is_declared_but_its_value_is_never_read,t))}function TM(e){return Xw(e)&&95===kc(e).charCodeAt(0)}function CM(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=fs(n);e.isReferenced||!(Ov(n,2)||Nc(n)&&Qw(n.name))||33554432&n.flags||t(n,0,Up(n.name,ha._0_is_declared_but_its_value_is_never_read,nc(e)));break;case 176:for(const e of n.parameters)!e.symbol.isReferenced&&Lv(e,2)&&t(e,0,Up(e.name,ha.Property_0_is_declared_but_its_value_is_never_read,Cc(e.symbol)));break;case 181:case 240:case 175:break;default:gn.fail("Unexpected class member")}}function DM(e,t){const{typeParameter:n}=e;EM(n)&&t(e,1,Up(e,ha._0_is_declared_but_its_value_is_never_read,kc(n.name)))}function wM(e,t){const n=fs(e).declarations;if(!n||Te(n)!==e)return;const r=hl(e),i=new Set;for(const e of r){if(!EM(e))continue;const n=kc(e.name),{parent:r}=e;if(195!==r.kind&&r.typeParameters.every(EM)){if(W(i,r)){const i=Cd(r),o=IP(r)?mT(r):gT(i,r.typeParameters),a=1===r.typeParameters.length?[ha._0_is_declared_but_its_value_is_never_read,n]:[ha.All_type_parameters_are_unused];t(e,1,rS(i,o.pos,o.end-o.pos,...a))}}else t(e,1,Up(e,ha._0_is_declared_but_its_value_is_never_read,n))}}function EM(e){return!(262144&ps(e.symbol).isReferenced||TM(e.name))}function FM(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function NM(e){return at(oy(e),fE)}function PM(e){return ZE(e)?QE(e.parent)?!(!e.propertyName||!TM(e.name)):TM(e.name):fp(e)||(ZF(e)&&i_(e.parent.parent)||OM(e))&&TM(e.name)}function AM(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!PM(a))if(OM(a))FM(n,273===(o=a).kind?o:274===o.kind?o.parent:o.parent.parent,a,QB);else if(ZE(a)&&QE(a.parent))a!==Te(a.parent.elements)&&Te(a.parent.elements).dotDotDotToken||FM(r,a.parent,a,QB);else if(ZF(a)){const e=7&R$(a),t=Ac(a);(4===e||6===e)&&t&&TM(t)||FM(i,a.parent,a,QB)}else{const n=e.valueDeclaration&&NM(e.valueDeclaration),i=e.valueDeclaration&&Ac(e.valueDeclaration);n&&i?ac(n,n.parent)||mv(n)||TM(i)||(ZE(a)&&YE(a.parent)?FM(r,a.parent,a,QB):t(n,1,Up(i,ha._0_is_declared_but_its_value_is_never_read,Cc(e)))):kM(a,Cc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?Up(r,ha._0_is_declared_but_its_value_is_never_read,kc(xe(n).name)):Up(r,ha.All_imports_in_import_declaration_are_unused));else for(const e of n)kM(e,kc(e.name),t)})),r.forEach((([e,n])=>{const r=NM(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?FM(i,e.parent.parent,e.parent,QB):t(e,r,1===n.length?Up(e,ha._0_is_declared_but_its_value_is_never_read,IM(xe(n).name)):Up(e,ha.All_destructured_elements_are_unused));else for(const e of n)t(e,r,Up(e,ha._0_is_declared_but_its_value_is_never_read,IM(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?Up(xe(n).name,ha._0_is_declared_but_its_value_is_never_read,IM(xe(n).name)):Up(243===e.parent.kind?e.parent:e,ha.All_variables_are_unused));else for(const e of n)t(e,0,Up(e,ha._0_is_declared_but_its_value_is_never_read,IM(e.name)))}))}function IM(e){switch(e.kind){case 80:return kc(e);case 207:case 206:return IM(st(xe(e.elements),ZE).name);default:return gn.assertNever(e)}}function OM(e){return 273===e.kind||276===e.kind||274===e.kind}function RM(e){if(241===e.kind&&N$(e),gu(e)){const t=Ti;f(e.statements,$J),Ti=t}else f(e.statements,$J);e.locals&&xM(e)}function jM(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((dN(e)||uN(e)||xN(e))&&Gl(e))return!1;const r=oy(e);return!fE(r)||!Id(r.parent.body)}function MM(e){yc(e,(t=>!!(4&Az(t))&&(80!==e.kind?Oo(Ac(e),ha.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Oo(e,ha.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function BM(e){yc(e,(t=>!!(8&Az(t))&&(80!==e.kind?Oo(Ac(e),ha.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Oo(e,ha.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function JM(e){1048576&Az(Rp(e))&&(gn.assert(Nc(e)&&Xw(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Ao("noEmit",e,ha.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function $M(e){let t=!1;if(SF(e)){for(const n of e.members)if(2097152&Az(n)){t=!0;break}}else if(lF(e))2097152&Az(e)&&(t=!0);else{const n=Rp(e);n&&2097152&Az(n)&&(t=!0)}t&&(gn.assert(Nc(e)&&Xw(e.name),"The target of a Reflect collision check should be an identifier"),Ao("noEmit",e,ha.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Mp(e.name),"Reflect"))}function qM(t,n){n&&(function(t,n){if(e.getEmitModuleFormatOfFile(Cd(t))>=5)return;if(!n||!jM(t,n,"require")&&!jM(t,n,"exports"))return;if(aN(t)&&1!==zM(t))return;const r=zc(t);307===r.kind&&af(r)&&Ao("noEmit",n,ha.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Mp(n),Mp(n))}(t,n),function(e,t){if(!t||A>=4||!jM(e,t,"Promise"))return;if(aN(e)&&1!==zM(e))return;const n=zc(e);307===n.kind&&af(n)&&4096&n.flags&&Ao("noEmit",t,ha.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Mp(t),Mp(t))}(t,n),function(e,t){A<=8&&(jM(e,t,"WeakMap")||jM(e,t,"WeakSet"))&&io.push(e)}(t,n),function(e,t){t&&A>=2&&A<=8&&jM(e,t,"Reflect")&&oo.push(e)}(t,n),yu(t)?(WB(n,ha.Class_name_cannot_be_0),33554432&t.flags||function(t){A>=1&&"Object"===t.escapedText&&e.getEmitModuleFormatOfFile(Cd(t))<5&&Oo(t,ha.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,vi[L])}(n)):oN(t)&&WB(n,ha.Enum_name_cannot_be_0))}function UM(e){return e===wt?Dt:e===lr?cr:e}function WM(e){var t;if(yM(e),ZE(e)||$J(e.type),!e.name)return;if(167===e.name.kind&&(XA(e.name),M_(e)&&e.initializer&&aj(e.initializer)),ZE(e)){if(e.propertyName&&Xw(e.name)&&iy(e)&&Id(tm(e).body))return void ao.push(e);QE(e.parent)&&e.dotDotDotToken&&A1&&X(n.declarations,(t=>t!==e&&Mf(t)&&!KM(t,e)))&&Oo(e.name,ha.All_declarations_of_0_must_have_identical_modifiers,Mp(e.name))}else{const t=UM(Ml(e));Hc(r)||Hc(t)||kk(r,t)||67108864&n.flags||GM(n.valueDeclaration,r,e,t),M_(e)&&e.initializer&&Ok(aj(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!KM(e,n.valueDeclaration)&&Oo(e.name,ha.All_declarations_of_0_must_have_identical_modifiers,Mp(e.name))}var i;172!==e.kind&&171!==e.kind&&(Zj(e),260!==e.kind&&208!==e.kind||function(e){if(7&R$(e)||iy(e))return;const t=fs(e);if(1&t.flags){if(!Xw(e.name))return gn.fail();const n=ze(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&AI(n)){const t=Ph(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&uu(r.parent)||268===r.kind||267===r.kind||307===r.kind)){const t=nc(n);Oo(e,ha.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),qM(e,e.name))}function GM(e,t,n,r){const i=Ac(n),o=172===n.kind||171===n.kind?ha.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:ha.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Mp(i),s=Oo(i,o,a,ic(t),ic(r));e&&pT(s,Up(e,ha._0_was_also_declared_here,a))}function KM(e,t){return 169===e.kind&&260===t.kind||260===e.kind&&169===t.kind||Ig(e)===Ig(t)&&Uv(e,1358)===Uv(t,1358)}function XM(t){var n,r;null==(n=Yn)||n.push(Yn.Phase.Check,"checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){const n=R$(t),r=7&n;if(Fu(t.name))switch(r){case 6:return w$(t,ha._0_declarations_may_not_have_binding_patterns,"await using");case 4:return w$(t,ha._0_declarations_may_not_have_binding_patterns,"using")}if(249!==t.parent.parent.kind&&250!==t.parent.parent.kind)if(33554432&n)v$(t);else if(!t.initializer){if(Fu(t.name)&&!Fu(t.parent))return w$(t,ha.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return w$(t,ha._0_declarations_must_be_initialized,"await using");case 4:return w$(t,ha._0_declarations_must_be_initialized,"using");case 2:return w$(t,ha._0_declarations_must_be_initialized,"const")}}if(t.exclamationToken&&(243!==t.parent.parent.kind||!t.type||t.initializer||33554432&n)){const e=t.initializer?ha.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?ha.A_definite_assignment_assertion_is_not_permitted_in_this_context:ha.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return w$(t.exclamationToken,e)}e.getEmitModuleFormatOfFile(Cd(t))<4&&!(33554432&t.parent.parent.flags)&&Lv(t.parent.parent,32)&&b$(t.name),r&&x$(t.name)}(t),WM(t),null==(r=Yn)||r.pop()}function QM(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==Te(t))return w$(e,ha.A_rest_element_must_be_last_in_a_destructuring_pattern);if(r$(t,ha.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return w$(e.name,ha.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&D$(e,e.initializer.pos-1,1,ha.A_rest_element_cannot_have_an_initializer)}(e),WM(e)}function YM(e){const t=7&pc(e);(4===t||6===t)&&A=2,s=!a&&F.downlevelIteration,c=F.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=mB(t,e,a?r:void 0);if(i&&o){const t=8&e?ha.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?ha.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?ha.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?ha.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&Ik(n,o.nextType,r,t)}if(o||a)return c?aE(o&&o.yieldType):o&&o.yieldType}let l=t,u=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=P(e,(e=>!(402653316&e.flags)));n!==e&&(l=Ib(n,2))}else 402653316&l.flags&&(l=cn);if(u=l!==t,u&&131072&l.flags)return c?aE(qt):qt}if(!MC(l)){if(r){const n=!!(4&e)&&!u,[i,o]=function(n,r){var i;return r?n?[ha.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[ha.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:lB(e,0,t,void 0)?[ha.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[ha.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[ha.Type_0_is_not_an_array_type_or_a_string_type,!0]:[ha.Type_0_is_not_an_array_type,!0]}(n,s);Mo(r,o&&!!eM(l),i,ic(l))}return u?c?aE(qt):qt:void 0}const _=Sm(l,Ut);return u&&_?402653316&_.flags&&!F.noUncheckedIndexedAccess?qt:Ib(c?[_,qt,Lt]:[_,qt],2):128&e?aE(_):_}function lB(e,t,n,r){if(Wc(n))return;const i=mB(n,e,r);return i&&i[rJ(t)]}function _B(e=cn,t=cn,n=Ot){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=$h([e,t,n]);let i=di.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},di.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function dB(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==pi){if(i===fi)return fi;t=le(t,i.yieldType),n=le(n,i.returnType),r=le(r,i.nextType)}return t||n||r?_B(t&&Ib(t),n&&Ib(n),r&&zb(r)):pi}function pB(e,t){return e[t]}function fB(e,t,n){return e[t]=n}function mB(e,t,n){var r,i;if(Wc(e))return fi;if(!(1048576&e.flags)){const i=n?{errors:void 0,skipLogging:!0}:void 0,o=yB(e,t,n,i);if(o===pi){if(n){const r=kB(n,e,!!(2&t));(null==i?void 0:i.errors)&&pT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)_o.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=pB(e,o);if(a)return a===pi?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=yB(r,t,n,a);if(c===pi){if(n){const r=kB(n,e,!!(2&t));(null==a?void 0:a.errors)&&pT(r,...a.errors)}return void fB(e,o,pi)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)_o.add(e);s=le(s,c)}const c=s?dB(s):pi;return fB(e,o,c),c===pi?void 0:c}function hB(e,t){if(e===pi)return pi;if(e===fi)return fi;const{yieldType:n,returnType:r,nextType:i}=e;return t&&pv(!0),_B(cM(n,t)||Dt,cM(r,t)||Dt,i)}function yB(e,t,n,r){if(Wc(e))return fi;let i=!1;if(2&t){const r=vB(e,mi)||bB(e,mi);if(r){if(r!==pi||!n)return 8&t?hB(r,n):r;i=!0}}if(1&t){let r=vB(e,gi)||bB(e,gi);if(r)if(r===pi&&n)i=!0;else{if(!(2&t))return r;if(r!==pi)return r=hB(r,n),i?r:fB(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=SB(e,mi,n,r,i);if(t!==pi)return t}if(1&t){let o=SB(e,gi,n,r,i);if(o!==pi)return 2&t?(o=hB(o,n),i?o:fB(e,"iterationTypesOfAsyncIterable",o)):o}return pi}function vB(e,t){return pB(e,t.iterableCacheKey)}function bB(e,t){if(Pu(e,t.getGlobalIterableType(!1))||Pu(e,t.getGlobalIteratorObjectType(!1))||Pu(e,t.getGlobalIterableIteratorType(!1))||Pu(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=uy(e);return fB(e,t.iterableCacheKey,_B(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(Eu(e,t.getGlobalBuiltinIteratorTypes())){const[n]=uy(e),r=cv(),i=Ot;return fB(e,t.iterableCacheKey,_B(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function xB(e){const t=Yy(!1),n=t&&qc(Tu(t),xc(e));return n&&fC(n)?mC(n):`__@${e}`}function SB(e,t,n,r,i){const o=Uf(e,xB(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:Tu(o);if(Wc(a))return i?fi:fB(e,t.iterableCacheKey,fi);const s=a?Xf(a,0):void 0,c=P(s,(e=>0===eR(e)));if(!X(c))return n&&X(s)&&Ik(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?pi:fB(e,t.iterableCacheKey,pi);const l=TB(zb(O(c,jg)),t,n,r,i)??pi;return i?l:fB(e,t.iterableCacheKey,l)}function kB(e,t,n){const r=n?ha.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:ha.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Mo(e,!!eM(t)||!n&&qF(e.parent)&&e.parent.expression===e&&iv(!1)!==On&&Fk(t,vv(iv(!1),[Dt,Dt,Dt])),r,ic(t))}function TB(e,t,n,r,i){if(Wc(e))return fi;let o=function(e,t){return pB(e,t.iteratorCacheKey)}(e,t)||function(e,t){if(Pu(e,t.getGlobalIterableIteratorType(!1))||Pu(e,t.getGlobalIteratorType(!1))||Pu(e,t.getGlobalIteratorObjectType(!1))||Pu(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=uy(e);return fB(e,t.iteratorCacheKey,_B(n,r,i))}if(Eu(e,t.getGlobalBuiltinIteratorTypes())){const[n]=uy(e),r=cv(),i=Ot;return fB(e,t.iteratorCacheKey,_B(n,r,i))}}(e,t);return o===pi&&n&&(o=void 0,i=!0),o??(o=function(e,t,n,r,i){const o=dB([FB(e,t,"next",n,r),FB(e,t,"return",n,r),FB(e,t,"throw",n,r)]);return i?o:fB(e,t.iteratorCacheKey,o)}(e,t,n,r,i)),o===pi?void 0:o}function CB(e,t){const n=qc(e,"done")||Wt;return Fk(0===t?Wt:Kt,n)}function DB(e){return CB(e,0)}function wB(e){return CB(e,1)}function EB(e){if(Wc(e))return fi;const t=pB(e,"iterationTypesOfIteratorResult");if(t)return t;if(Pu(e,(n=!1,Cr||(Cr=Wy("IteratorYieldResult",1,n))||On)))return fB(e,"iterationTypesOfIteratorResult",_B(uy(e)[0],void 0,void 0));var n;if(Pu(e,function(e){return Dr||(Dr=Wy("IteratorReturnResult",1,e))||On}(!1)))return fB(e,"iterationTypesOfIteratorResult",_B(void 0,uy(e)[0],void 0));const r=yF(e,DB),i=r!==cn?qc(r,"value"):void 0,o=yF(e,wB),a=o!==cn?qc(o,"value"):void 0;return fB(e,"iterationTypesOfIteratorResult",i||a?_B(i,a||rn,void 0):pi)}function FB(e,t,n,r,i){var o,a,s,c;const l=Uf(e,n);if(!l&&"next"!==n)return;const _=!l||"next"===n&&16777216&l.flags?void 0:"next"===n?Tu(l):Zw(Tu(l),2097152);if(Wc(_))return fi;const d=_?Xf(_,0):u;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(Up(r,e,n))):Oo(r,e,n)}return"next"===n?pi:void 0}if((null==_?void 0:_.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(a=null==(o=e.symbol)?void 0:o.members)?void 0:a.get(n))===_.symbol,l=!i&&(null==(c=null==(s=r.symbol)?void 0:s.members)?void 0:c.get(n))===_.symbol;if(i||l){const t=i?e:r,{mapper:o}=_;return _B(JS(t.typeParameters[0],o),JS(t.typeParameters[1],o),"next"===n?JS(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&X(e.parameters)&&(p=le(p,KL(e,0))),f=le(f,jg(e));if("throw"!==n){const e=p?Ib(p):Ot;"next"===n?g=e:"return"===n&&(m=le(m,t.resolveIterationType(e,r)||Dt))}const y=f?zb(f):cn,v=EB(t.resolveIterationType(y,r)||Dt);return v===pi?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(Up(r,t.mustHaveAValueDiagnostic,n))):Oo(r,t.mustHaveAValueDiagnostic,n)),h=Dt,m=le(m,Dt)):(h=v.yieldType,m=le(m,v.returnType)),_B(h,Ib(m),g)}function NB(e,t,n){if(Wc(t))return;const r=PB(t,n);return r&&r[rJ(e)]}function PB(e,t){if(Wc(e))return fi;const n=t?mi:gi;return mB(e,t?2:1,void 0)||function(e,t,n,r){return TB(e,t,n,r,!1)}(e,n,void 0,void 0)}function AB(e){N$(e)||function(e){let t=e;for(;t;){if(_u(t))return w$(e,ha.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 256:if(e.label&&t.label.escapedText===e.label.escapedText)return!(251!==e.kind||Zu(t.statement,!0))&&w$(e,ha.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 255:if(252===e.kind&&!e.label)return!1;break;default:if(Zu(t,!1)&&!e.label)return!1}t=t.parent}if(e.label)return w$(e,252===e.kind?ha.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:ha.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);w$(e,252===e.kind?ha.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:ha.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function IB(e,t){const n=!!(2&t);if(1&t){const t=NB(1,e,n);return t?n?lM(oM(t)):t:Nt}return n?lM(e)||Nt:e}function LB(e,t){const n=IB(t,zh(e));return!(!n||!($R(n,16384)||32769&n.flags))}function BB(e){N$(e)||Xw(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=Cd(e);if(!T$(r)){const i=tf(r,e.pos);_o.add(rS(r,Rs(i),0,t,...n))}}(e,ha.Line_break_not_permitted_here),e.expression&&Ej(e.expression)}function JB(e,t,n){const r=bm(e);if(0===r.length)return;for(const t of Cp(e))n&&4194304&t.flags||qB(e,t,Xb(t,8576,!0),Cu(t));const i=t.valueDeclaration;if(i&&yu(i))for(const t of i.members)if(!Rv(t)&&!od(t)){const n=fs(t);qB(e,n,Cj(t.name.expression),Cu(n))}if(r.length>1)for(const t of r)VB(e,t)}function qB(e,t,n,r){const i=t.valueDeclaration,o=Ac(i);if(o&&Qw(o))return;const a=Cm(e,n),s=2&Tx(e)?Z_(e.symbol,264):void 0,c=i&&226===i.kind||o&&167===o.kind?i:void 0,l=gs(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&gs(fs(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!X(e_(e),(e=>!!Dp(e,t.escapedName)&&!!Sm(e,n.keyType)))?s:void 0);if(o&&!Fk(r,n.type)){const e=Io(o,ha.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,nc(t),ic(r),ic(n.keyType),ic(n.type));c&&o!==c&&pT(e,Up(c,ha._0_is_declared_here,nc(t))),_o.add(e)}}}function VB(e,t){const n=t.declaration,r=Cm(e,t.keyType),i=2&Tx(e)?Z_(e.symbol,264):void 0,o=n&&gs(fs(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&gs(fs(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!X(e_(e),(e=>!!xm(e,t.keyType)&&!!Sm(e,n.keyType)))?i:void 0);a&&!Fk(t.type,n.type)&&Oo(a,ha._0_index_type_1_is_not_assignable_to_2_index_type_3,ic(t.keyType),ic(t.type),ic(n.keyType),ic(n.type))}}function WB(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":Oo(e,t,e.escapedText)}}function eJ(e){let t=!1;if(e)for(let t=0;t{n.default?(t=!0,function(e,t,n){function r(e){if(183===e.kind){const r=Iy(e);if(262144&r.flags)for(let i=n;i263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!uJ(n,y_(e).localTypeParameters,hl)){const t=nc(e);for(const e of n)Oo(e.name,ha.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function uJ(e,t,n){const r=p(t),i=_g(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return C$(r.types[1],ha.Classes_can_only_extend_a_single_class);t=!0}else{if(gn.assert(119===r.token),n)return C$(r,ha.implements_clause_already_seen);n=!0}c$(r)}})(e)||i$(e.typeParameters,t)}(e),yM(e),qM(e,e.name),eJ(hl(e)),Zj(e);const t=fs(e),n=y_(t),r=md(n),i=Tu(t);lJ(t),Yj(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(176===o.kind)for(const e of o.parameters)ac(e,o)&&!Fu(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Rv(o),a=o.name;if(!a)continue;const s=Qw(a),c=s&&e?16:0,l=s?r:e?n:t,u=a&&O$(a);if(u)switch(o.kind){case 177:i(l,a,u,1|c);break;case 178:i(l,a,u,2|c);break;case 172:i(l,a,u,3|c);break;case 174:i(l,a,u,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))Oo(t,ha.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,np(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&Oo(t,ha.Duplicate_identifier_0,np(t)):i&r&-17?Oo(t,ha.Duplicate_identifier_0,np(t)):e.set(n,i|r)}else e.set(n,r)}}(e),33554432&e.flags||function(e){for(const t of e.members){const n=t.name;if(Rv(t)&&n){const t=O$(n);switch(t){case"name":case"length":case"caller":case"arguments":if(J)break;case"prototype":Oo(n,ha.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,Fc(fs(e)))}}}}(e);const o=Ch(e);if(o){f(o.typeArguments,$J),A{const t=s[0],a=Ku(n),c=Sf(a);if(function(e,t){const n=Xf(e,1);if(n.length){const r=n[0].declaration;r&&Ov(r,2)&&(rz(t,kx(e.symbol))||Oo(t,ha.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Wa(e.symbol)))}}(c,o),$J(o.expression),X(o.typeArguments)){f(o.typeArguments,$J);for(const e of Hu(c,o.typeArguments,o))if(!qj(o,e.typeParameters))break}const l=md(t,n.thisType);Ik(r,l,void 0)?Ik(i,Sk(c),e.name||e,ha.Class_static_side_0_incorrectly_extends_base_class_static_side_1):mJ(e,r,l,ha.Class_0_incorrectly_extends_base_class_1),8650752&a.flags&&(Mu(i)?Xf(a,1).some((e=>4&e.flags))&&!Lv(e,64)&&Oo(e.name||e,ha.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Oo(e.name||e,ha.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&a.flags||f(Gu(c,o.typeArguments,o),(e=>!bL(e.declaration)&&!kk(jg(e),t)))&&Oo(o.expression,ha.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o,a;const s=Ep(t),c=new Map;e:for(const l of s){const s=gJ(l);if(4194304&s.flags)continue;const u=Dp(e,s.escapedName);if(!u)continue;const _=gJ(u),d=dx(s);if(gn.assert(!!_,"derived should point to something, even if it is the base class' declaration."),_===s){const r=kx(e.symbol);if(64&d&&(!r||!Lv(r,64))){for(const n of e_(e)){if(n===t)continue;const e=Dp(n,s.escapedName),r=e&&gJ(e);if(r&&r!==s)continue e}const i=ic(t),o=ic(e),a=nc(l),u=le(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:u})}}else{const n=dx(_);if(2&d||2&n)continue;let c;const l=98308&s.flags,u=98308&_.flags;if(l&&u){if((6&_x(s)?null==(r=s.declarations)?void 0:r.some((e=>yJ(e,d))):null==(i=s.declarations)?void 0:i.every((e=>yJ(e,d))))||262144&_x(s)||_.valueDeclaration&&hF(_.valueDeclaration))continue;const c=4!==l&&4===u;if(c||4===l&&4!==u){const n=c?ha._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:ha._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Oo(Ac(_.valueDeclaration)||_.valueDeclaration,n,nc(s),ic(t),ic(e))}else if(J){const r=null==(o=_.declarations)?void 0:o.find((e=>172===e.kind&&!e.initializer));if(r&&!(33554432&_.flags)&&!(64&d)&&!(64&n)&&!(null==(a=_.declarations)?void 0:a.some((e=>!!(33554432&e.flags))))){const n=CC(kx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!Xw(i)||!U||!bJ(i,e,n)){const e=ha.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Oo(Ac(_.valueDeclaration)||_.valueDeclaration,e,nc(s),ic(t))}}}continue}if(II(s)){if(II(_)||4&_.flags)continue;gn.assert(!!(98304&_.flags)),c=ha.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?ha.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ha.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Oo(Ac(_.valueDeclaration)||_.valueDeclaration,c,ic(t),nc(s),ic(e))}}for(const[e,t]of c)if(1===p(t.missedProperties))SF(e)?Oo(e,ha.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,xe(t.missedProperties),t.baseTypeName):Oo(e,ha.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,t.typeName,xe(t.missedProperties),t.baseTypeName);else if(p(t.missedProperties)>5){const n=O(t.missedProperties.slice(0,4),(e=>`'${e}'`)).join(", "),r=p(t.missedProperties)-4;SF(e)?Oo(e,ha.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):Oo(e,ha.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,t.typeName,t.baseTypeName,n,r)}else{const n=O(t.missedProperties,(e=>`'${e}'`)).join(", ");SF(e)?Oo(e,ha.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):Oo(e,ha.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,t.typeName,t.baseTypeName,n)}}(n,t)}))}!function(e,t,n,r){const i=Ch(e),o=i&&e_(t),a=(null==o?void 0:o.length)?md(xe(o),t.thisType):void 0,s=Ku(t);for(const i of e.members)Jv(i)||(xE(i)&&f(i.parameters,(o=>{ac(o,i)&&pJ(e,r,s,a,t,n,o,!0)})),pJ(e,r,s,a,t,n,i,!1))}(e,n,r,i);const s=wh(e);if(s)for(const e of s)fb(e.expression)&&!Tl(e.expression)||Oo(e.expression,ha.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Vj(e),a(c(e));function c(t){return()=>{const i=wf(TS(t));if(!Hc(i))if(a_(i)){const t=i.symbol&&32&i.symbol.flags?ha.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:ha.Class_0_incorrectly_implements_interface_1,o=md(i,n.thisType);Ik(r,o,void 0)||mJ(e,r,o,t)}else Oo(t,ha.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a((()=>{JB(n,t),JB(i,t,!0),Lj(e),function(e){if(!U||!K||33554432&e.flags)return;const t=CC(e);for(const n of e.members)if(!(128&Hv(n))&&!Rv(n)&&vJ(n)){const e=n.name;if(Xw(e)||Qw(e)||dE(e)){const r=Tu(fs(n));3&r.flags||Xk(r)||t&&bJ(e,r,t)||Oo(n.name,ha.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Mp(e))}}}(e)}))}function pJ(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&lz(a.name)||lz(a);return l?fJ(e,t,n,r,i,o,Mv(a),Bv(a),Rv(a),s,l,c?a:void 0):0}function fJ(e,t,n,r,i,o,a,s,c,l,u,_){const d=jm(e),p=!!(33554432&e.flags);if(r&&(a||F.noImplicitOverride)){const e=c?n:r,i=Uf(c?t:o,u.escapedName),f=Uf(e,u.escapedName),m=ic(r);if(i&&!f&&a){if(_){const t=dO(Cc(u),e);t?Oo(_,d?ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ha.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,m,nc(t)):Oo(_,d?ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:ha.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,m)}return 2}if(i&&(null==f?void 0:f.declarations)&&F.noImplicitOverride&&!p){const e=X(f.declarations,Bv);if(a)return 0;if(!e)return _&&Oo(_,l?d?ha.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ha.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?ha.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ha.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,m),1;if(s&&e)return _&&Oo(_,ha.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,m),1}}else if(a){if(_){const e=ic(i);Oo(_,d?ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:ha.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function mJ(e,t,n,r){let i=!1;for(const r of e.members){if(Rv(r))continue;const e=r.name&&lz(r.name)||lz(r);if(e){const o=Uf(t,e.escapedName),a=Uf(n,e.escapedName);if(o&&a){const s=()=>sS(void 0,ha.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,nc(e),ic(t),ic(n));Ik(Tu(o),Tu(a),r.name||r,void 0,s)||(i=!0)}}}i||Ik(t,n,e.name||e,r)}function gJ(e){return 1&_x(e)?e.links.target:e}function yJ(e,t){return 64&t&&(!hE(e)||!e.initializer)||rN(e.parent)}function vJ(e){return 172===e.kind&&!Bv(e)&&!e.exclamationToken&&!e.initializer}function bJ(e,t,n){const r=dE(e)?oD.createElementAccessExpression(oD.createThis(),e.expression):oD.createPropertyAccessExpression(oD.createThis(),e);return LT(r.expression,r),LT(r,n),r.flowNode=n.returnFlowNode,!Xk(yN(r,t,mD(t)))}function xJ(e){t$(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return gn.assert(119===n.token),C$(n,ha.Interface_declaration_cannot_have_implements_clause);if(t)return C$(n,ha.extends_clause_already_seen);t=!0,c$(n)}}(e),k$(e.parent)||w$(e,ha._0_declarations_can_only_be_declared_inside_a_block,"interface"),eJ(e.typeParameters),a((()=>{WB(e.name,ha.Interface_name_cannot_be_0),Zj(e);const t=fs(e);lJ(t);const n=Z_(t,264);if(e===n){const n=y_(t),r=md(n);if(function(e,t){const n=e_(e);if(n.length<2)return!0;const r=new Map;f(A_(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=Ep(md(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===wC(n.prop,a,Tk)){i=!1;const r=ic(n.containingType),s=ic(o);let c=sS(void 0,ha.Named_property_0_of_types_1_and_2_are_not_identical,nc(a),r,s);c=sS(c,ha.Interface_0_cannot_simultaneously_extend_types_1_and_2,ic(e),r,s),_o.add(Hp(Cd(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of e_(n))Ik(r,md(t,n.thisType),e.name,ha.Interface_0_incorrectly_extends_interface_1);JB(n,t)}}Oj(e)})),f(Fh(e),(e=>{fb(e.expression)&&!Tl(e.expression)||Oo(e.expression,ha.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Vj(e)})),f(e.members,$J),a((()=>{Lj(e),xM(e)}))}function SJ(e){const t=ra(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=kJ(t,r,n);ra(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function kJ(e,t,n){if(Jp(e.name))Oo(e.name,ha.Computed_property_names_are_not_allowed_in_enums);else{const t=$p(e.name);HT(t)&&!qT(t)&&Oo(e.name,ha.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=cf(e.parent),n=e.initializer,r=ge(n,e);return void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?Oo(n,isNaN(r.value)?ha.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:ha.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):NS(F)&&"string"==typeof r.value&&!r.isSyntacticallyString&&Oo(n,ha._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${kc(e.parent.name)}.${$p(e.name)}`):t?Oo(n,ha.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?Oo(n,ha.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Ik(Ej(n),Ut,n,ha.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e);if(33554432&e.parent.flags&&!cf(e.parent))return SC(void 0);if(void 0===t)return Oo(e.name,ha.Enum_member_must_have_initializer),SC(void 0);if(NS(F)&&(null==n?void 0:n.initializer)){const t=Oz(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&Oo(e.name,ha.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return SC(t)}function TJ(e,t){const n=Ha(e,111551,!0);if(!n)return SC(void 0);if(80===e.kind){const t=e;if(qT(t.escapedText)&&n===Vy(t.escapedText,111551,void 0))return SC(+t.escapedText,!1)}if(8&n.flags)return t?CJ(e,n,t):Oz(n.valueDeclaration);if(zN(n)){const e=n.valueDeclaration;if(e&&ZF(e)&&!e.type&&e.initializer&&(!t||e!==t&&oa(e,t))){const n=ge(e.initializer,e);return t&&Cd(t)!==Cd(e)?SC(n.value,!1,!0,!0):SC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return SC(void 0)}function CJ(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return Oo(e,ha.Property_0_is_used_before_being_assigned,nc(t)),SC(void 0);if(!oa(r,n))return Oo(e,ha.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),SC(0);const i=Oz(r);return n.parent!==r.parent?SC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function DJ(e){a((()=>function(e){t$(e),qM(e,e.name),Zj(e),e.members.forEach(wJ),SJ(e);const t=fs(e),n=Z_(t,e.kind);if(e===n){if(t.declarations&&t.declarations.length>1){const n=cf(e);f(t.declarations,(e=>{oN(e)&&cf(e)!==n&&Oo(Ac(e),ha.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;f(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?Oo(r.name,ha.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}function wJ(e){Qw(e.name)&&Oo(e,ha.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&Ej(e.initializer)}function EJ(t){t.body&&($J(t.body),vp(t)||xM(t)),a((function(){var n,r;const i=vp(t),o=33554432&t.flags;i&&!o&&Oo(t.name,ha.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=fp(t),s=a?ha.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:ha.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(MJ(t,s))return;if(t$(t)||o||11!==t.name.kind||w$(t.name,ha.Only_ambient_modules_can_use_quoted_names),Xw(t.name)&&(qM(t,t.name),!(2080&t.flags))){const e=Cd(t),n=tf(e,Kd(t));po.add(rS(e,n.start,n.length,ha.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}Zj(t);const c=fs(t);if(512&c.flags&&!o&&ZB(t,jS(F))){if(NS(F)&&!Cd(t).externalModuleIndicator&&Oo(t.name,ha.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Le),(null==(n=c.declarations)?void 0:n.length)>1){const e=function(e){const t=e.declarations;if(t)for(const e of t)if((263===e.kind||262===e.kind&&Od(e.body))&&!(33554432&e.flags))return e}(c);e&&(Cd(t)!==Cd(e)?Oo(t.name,ha.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos95===e.kind));e&&Oo(e,ha.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(bp(t)){if((i||33554432&fs(t).flags)&&t.body)for(const e of t.body.statements)FJ(e,i)}else of(t.parent)?i?Oo(t.name,ha.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):As(Kh(t.name))&&Oo(t.name,ha.Ambient_module_declaration_cannot_specify_relative_module_name):Oo(t.name,i?ha.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:ha.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}function FJ(e,t){switch(e.kind){case 243:for(const n of e.declarationList.declarations)FJ(n,t);break;case 277:case 278:C$(e,ha.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(Om(e))break;case 272:C$(e,ha.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const n=e.name;if(Fu(n)){for(const e of n.elements)FJ(e,t);break}case 263:case 266:case 262:case 264:case 267:case 265:if(t)return}}function NJ(e){const t=Fg(e);if(!t||Id(t))return!1;if(!Iw(t))return Oo(t,ha.String_literal_expected),!1;const n=268===e.parent.kind&&fp(e.parent.parent);if(307!==e.parent.kind&&!n)return Oo(t,278===e.kind?ha.Export_declarations_are_not_permitted_in_a_namespace:ha.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&As(t.text)&&!vc(e))return Oo(e,ha.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!uN(e)&&e.attributes){const t=118===e.attributes.token?ha.Import_attribute_values_must_be_string_literal_expressions:ha.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)Iw(r.value)||(n=!0,Oo(r.value,t));return!n}return!0}function PJ(e,t=!0){void 0!==e&&11===e.kind&&(t?5!==L&&6!==L||w$(e,ha.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):w$(e,ha.Identifier_expected))}function AJ(t){var n,r,i,o;let a=fs(t);const s=Ja(a);if(s!==vt){if(a=ps(a.exportSymbol||a),jm(t)&&!(111551&s.flags)&&!Gl(t)){const e=Vl(t)?t.propertyName||t.name:Nc(t)?t.name:t;if(gn.assert(280!==t.kind),281===t.kind){const o=Oo(e,ha.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(n=Cd(t).symbol)?void 0:n.exports)?void 0:r.get(Zd(t.propertyName||t.name));if(a===s){const e=null==(i=a.declarations)?void 0:i.find(N_);e&&pT(o,Up(e,ha._0_is_automatically_exported_here,Sc(a.escapedName)))}}else{gn.assert(260!==t.kind);const n=yc(t,an(_N,uN)),r=(n&&(null==(o=Cg(n))?void 0:o.text))??"...",i=Sc(Xw(e)?e.escapedText:a.escapedName);Oo(e,ha._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const c=za(s);if(c&((1160127&a.flags?111551:0)|(788968&a.flags?788968:0)|(1920&a.flags?1920:0))?Oo(t,281===t.kind?ha.Export_declaration_conflicts_with_exported_declaration_of_0:ha.Import_declaration_conflicts_with_local_declaration_of_0,nc(a)):281!==t.kind&&F.isolatedModules&&!yc(t,Gl)&&1160127&a.flags&&Oo(t,ha.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,nc(a),Le),NS(F)&&!Gl(t)&&!(33554432&t.flags)){const n=Ua(a),r=!(111551&c);if(r||n)switch(t.kind){case 273:case 276:case 271:if(F.verbatimModuleSyntax){gn.assertIsDefined(t.name,"An ImportClause with a symbol should have a name");const e=F.verbatimModuleSyntax&&Om(t)?ha.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?ha._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ha._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=Yd(276===t.kind&&t.propertyName||t.name);la(Oo(t,e,i),r?void 0:n,i)}r&&271===t.kind&&Ov(t,32)&&Oo(t,ha.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Le);break;case 281:if(F.verbatimModuleSyntax||Cd(n)!==Cd(t)){const e=Yd(t.propertyName||t.name);la(r?Oo(t,ha.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Le):Oo(t,ha._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Le),r?void 0:n,e);break}}if(F.verbatimModuleSyntax&&271!==t.kind&&!jm(t)&&1===e.getEmitModuleFormatOfFile(Cd(t))?Oo(t,ha.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):200===L&&271!==t.kind&&260!==t.kind&&1===e.getEmitModuleFormatOfFile(Cd(t))&&Oo(t,ha.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),F.verbatimModuleSyntax&&!Gl(t)&&!(33554432&t.flags)&&128&c){const n=s.valueDeclaration,r=e.getRedirectReferenceForResolutionFromSourceOfProject(Cd(n).resolvedPath);!(33554432&n.flags)||r&&jS(r.commandLine.options)||Oo(t,ha.Cannot_access_ambient_const_enums_when_0_is_enabled,Le)}}if(xN(t)){const e=IJ(a,t);zo(e)&&e.declarations&&qo(t,e.declarations,e.escapedName)}}}function IJ(e,t){if(!(2097152&e.flags)||zo(e)||!ba(e))return e;const n=Ja(e);if(n===vt)return n;for(;2097152&e.flags;){const r=tI(e);if(!r)break;if(r===n)break;if(r.declarations&&p(r.declarations)){if(zo(r)){qo(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function OJ(t){qM(t,t.name),AJ(t),276===t.kind&&(PJ(t.propertyName),ep(t.propertyName||t.name)&&PS(F)&&e.getEmitModuleFormatOfFile(Cd(t))<4&&Zz(t,131072))}function LJ(e){var t;const n=e.attributes;if(n){const r=Qy(!0);r!==wn&&Ik(Bl(n),fD(r,32768),n);const i=aU(e),o=uU(n,i?w$:void 0),a=118===e.attributes.token;if(i&&o)return;if(99!==(199===L&&e.moduleSpecifier&&Da(e.moduleSpecifier))&&99!==L&&200!==L)return w$(n,a?199===L?ha.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ha.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:199===L?ha.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ha.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve);if(JP(e)||(_N(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return w$(n,a?ha.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:ha.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(o)return w$(n,ha.resolution_mode_can_only_be_set_for_type_only_imports)}}function RJ(t){if(!MJ(t,jm(t)?ha.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ha.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!t$(t)&&t.modifiers&&C$(t,ha.An_import_declaration_cannot_have_modifiers),NJ(t)){let n;const r=t.importClause;r&&!function(e){var t;return e.isTypeOnly&&e.name&&e.namedBindings?w$(e,ha.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!e.isTypeOnly||275!==(null==(t=e.namedBindings)?void 0:t.kind))&&A$(e.namedBindings)}(r)?(r.name&&OJ(r),r.namedBindings&&(274===r.namedBindings.kind?(OJ(r.namedBindings),e.getEmitModuleFormatOfFile(Cd(t))<4&&PS(F)&&Zz(t,65536)):(n=Xa(t,t.moduleSpecifier),n&&f(r.namedBindings.elements,OJ))),wa(t.moduleSpecifier,n)&&!function(e){return!!e.attributes&&e.attributes.elements.some((e=>{var t;return"type"===Kh(e.name)&&"json"===(null==(t=at(e.value,q_))?void 0:t.text)}))}(t)&&Oo(t.moduleSpecifier,ha.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,vi[L])):oe&&!r&&Xa(t,t.moduleSpecifier)}LJ(t)}}function jJ(t){if(!MJ(t,jm(t)?ha.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:ha.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!t$(t)&&Iv(t)&&C$(t,ha.An_export_declaration_cannot_have_modifiers),function(e){var t;if(e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind))A$(e.exportClause)}(t),!t.moduleSpecifier||NJ(t))if(t.exportClause&&!vN(t.exportClause)){f(t.exportClause.elements,BJ);const e=268===t.parent.kind&&fp(t.parent.parent),n=!e&&268===t.parent.kind&&!t.moduleSpecifier&&33554432&t.flags;307===t.parent.kind||e||n||Oo(t,ha.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=Xa(t,t.moduleSpecifier);n&&os(n)?Oo(t.moduleSpecifier,ha.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,nc(n)):t.exportClause&&(AJ(t.exportClause),PJ(t.exportClause.name)),e.getEmitModuleFormatOfFile(Cd(t))<4&&(t.exportClause?PS(F)&&Zz(t,65536):Zz(t,32768))}LJ(t)}}function MJ(e,t){const n=307===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return n||C$(e,t),!n}function BJ(t){AJ(t);const n=void 0!==t.parent.parent.moduleSpecifier;if(PJ(t.propertyName,n),PJ(t.name),RS(F)&&Ic(t.propertyName||t.name,!0),n)PS(F)&&e.getEmitModuleFormatOfFile(Cd(t))<4&&ep(t.propertyName||t.name)&&Zz(t,131072);else{const e=t.propertyName||t.name;if(11===e.kind)return;const n=ze(e,e.escapedText,2998271,void 0,!0);n&&(n===Ce||n===De||n.declarations&&of(zc(n.declarations[0])))?Oo(e,ha.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,kc(e)):aP(t,7)}}function JJ(e){const t=fs(e),n=na(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return ld(e.exports,((e,t)=>"export="!==t))}(t)){const t=ba(e)||e.valueDeclaration;!t||vc(t)||jm(t)||Oo(t,ha.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=us(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=N(e,on(HB,sn(rN)));if(!(524288&t&&r<=2)&&r>1&&!zJ(e))for(const t of e)tJ(t)&&_o.add(Up(t,ha.Cannot_redeclare_exported_variable_0,Sc(n)))})),n.exportsChecked=!0}}function zJ(e){return e&&e.length>1&&e.every((e=>jm(e)&&Px(e)&&(og(e.expression)||sg(e.expression))))}function $J(n){if(n){const i=r;r=n,h=0,function(n){if(8388608&Az(n))return;$g(n)&&f(n.jsDoc,(({comment:e,tags:t})=>{qJ(e),f(t,(e=>{qJ(e.comment),jm(n)&&$J(e)}))}));const r=n.kind;if(t)switch(r){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}switch(r>=243&&r<=259&&zg(n)&&n.flowNode&&!cN(n.flowNode)&&jo(!1===F.allowUnreachableCode,n,ha.Unreachable_code_detected),r){case 168:return Fj(n);case 169:return Nj(n);case 172:return Rj(n);case 171:return function(e){return Qw(e.name)&&Oo(e,ha.Private_identifiers_are_not_allowed_outside_class_bodies),Rj(e)}(n);case 185:case 184:case 179:case 180:case 181:return Aj(n);case 174:case 173:return function(e){h$(e)||u$(e.name),vE(e)&&e.asteriskToken&&Xw(e.name)&&"constructor"===kc(e.name)&&Oo(e.name,ha.Class_constructor_may_not_be_a_generator),bM(e),Lv(e,64)&&174===e.kind&&e.body&&Oo(e,ha.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Mp(e.name)),Qw(e.name)&&!rm(e)&&Oo(e,ha.Private_identifiers_are_not_allowed_outside_class_bodies),jj(e)}(n);case 175:return function(e){t$(e),qI(e,$J)}(n);case 176:return Mj(n);case 177:case 178:return Jj(n);case 183:return Vj(n);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void Oo(e,ha.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=mg(t),r=Pg(n);if(!r)return;$J(e.type);const{parameterName:i}=e;if(0!==r.kind&&2!==r.kind)if(r.parameterIndex>=0){if(iJ(n)&&r.parameterIndex===n.parameters.length-1)Oo(i,ha.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>sS(void 0,ha.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Ik(r.type,Tu(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(Fu(e)&&Pj(e,i,r.parameterName)){n=!0;break}n||Oo(e.parameterName,ha.Cannot_find_parameter_0,r.parameterName)}}(n);case 186:return function(e){Ly(e)}(n);case 187:return function(e){f(e.members,$J),a((function(){const t=Xx(e);JB(t,t.symbol),Lj(e),Oj(e)}))}(n);case 188:return function(e){$J(e.elementType)}(n);case 189:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=wv(r);if(8&e){const t=TS(r.type);if(!MC(t)){Oo(r,ha.A_rest_element_type_must_be_an_array_type);break}(IC(t)||nD(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){w$(r,ha.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){w$(r,ha.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){w$(r,ha.A_required_element_cannot_follow_an_optional_element);break}}f(e.elements,$J),TS(e)}(n);case 192:case 193:return function(e){f(e.types,$J),TS(e)}(n);case 196:case 190:case 191:return $J(n.type);case 197:return function(e){xS(e)}(n);case 198:return Kj(n);case 194:return function(e){qI(e,$J)}(n);case 195:return function(e){yc(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||w$(e,ha.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),$J(e.typeParameter);const t=fs(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=na(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=g_(t),r=ed(t,168);if(!uJ(r,[n],(e=>[e]))){const e=nc(t);for(const t of r)Oo(t.name,ha.All_declarations_of_0_must_have_identical_constraints,e)}}}xM(e)}(n);case 203:return function(e){for(const t of e.templateSpans)$J(t.type),Ik(TS(t.type),vn,t.type);TS(e)}(n);case 205:return function(e){$J(e.argument),e.attributes&&uU(e.attributes,w$),Wj(e)}(n);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&w$(e,ha.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&w$(e.type,ha.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&w$(e.type,ha.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),$J(e.type),TS(e)}(n);case 328:return function(e){const t=Xg(e);if(!t||!nN(t)&&!SF(t))return void Oo(t,ha.JSDoc_0_is_not_attached_to_a_class,kc(e.tagName));const n=dl(t).filter(gP);gn.assert(n.length>0),n.length>1&&Oo(n[1],ha.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=vM(e.class.expression),i=Dh(t);if(i){const t=vM(i.expression);t&&r.escapedText!==t.escapedText&&Oo(r,ha.JSDoc_0_1_does_not_match_the_extends_2_clause,kc(e.tagName),kc(r),kc(t))}}(n);case 329:return function(e){const t=Xg(e);t&&(nN(t)||SF(t))||Oo(t,ha.JSDoc_0_is_not_attached_to_a_class,kc(e.tagName))}(n);case 346:case 338:case 340:return function(e){e.typeExpression||Oo(e.name,ha.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&WB(e.name,ha.Type_alias_name_cannot_be_0),$J(e.typeExpression),eJ(hl(e))}(n);case 345:return function(e){$J(e.constraint);for(const t of e.typeParameters)$J(t)}(n);case 344:return function(e){$J(e.typeExpression)}(n);case 324:case 325:case 326:return function(e){e.name&&cz(e.name,!0)}(n);case 341:case 348:return function(e){$J(e.typeExpression)}(n);case 317:!function(e){a((function(){e.type||Og(e)||BD(e,Dt)})),Aj(e)}(n);case 315:case 314:case 312:case 313:case 322:return UJ(n),void qI(n,$J);case 318:return void function(e){UJ(e),$J(e.type);const{parent:t}=e;if(fE(t)&&uP(t.parent))return void(Te(t.parent.parameters)!==t&&Oo(e,ha.A_rest_parameter_must_be_last_in_a_parameter_list));ZN(t)||Oo(e,ha.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!FP(n))return void Oo(e,ha.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Wg(n);if(!r)return;const i=Kg(n);i&&Te(i.parameters).symbol===r||Oo(e,ha.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 309:return $J(n.type);case 333:case 335:case 334:return function(e){const t=Qg(e);t&&tu(t)&&Oo(e,ha.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 350:return function(e){$J(e.typeExpression);const t=Xg(e);if(t){const e=fl(t,MP);if(p(e)>1)for(let t=1;t{var i;297!==e.kind||n||(void 0===t?t=e:(w$(e,ha.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&a((i=e,()=>{const e=Ej(i.expression);ZR(r,e)||qk(e,r,i.expression,void 0)})),f(e.statements,$J),F.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&cN(e.fallthroughFlowNode)&&Oo(e,ha.Fallthrough_case_in_switch)})),e.caseBlock.locals&&xM(e.caseBlock)}(n);case 256:return function(e){N$(e)||yc(e.parent,(t=>uu(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(w$(e.label,ha.Duplicate_label_0,np(e.label)),!0))),$J(e.statement)}(n);case 257:return BB(n);case 258:return function(e){N$(e),RM(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;WM(e);const n=xv(e);if(n){const e=TS(n);!e||3&e.flags||C$(n,ha.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)C$(e.initializer,ha.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&ud(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&w$(n.valueDeclaration,ha.Cannot_redeclare_identifier_0_in_catch_clause,Sc(t))}))}}RM(t.block)}e.finallyBlock&&RM(e.finallyBlock)}(n);case 260:return XM(n);case 208:return QM(n);case 263:return function(e){const t=T(e.modifiers,mE);B&&t&&X(e.members,(e=>jv(e)&&tu(e)))&&w$(t,ha.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Lv(e,2048)||C$(e,ha.A_class_declaration_without_the_default_modifier_must_have_a_name),dJ(e),f(e.members,$J),xM(e)}(n);case 264:return xJ(n);case 265:return function(e){if(t$(e),WB(e.name,ha.Type_alias_name_cannot_be_0),k$(e.parent)||w$(e,ha._0_declarations_can_only_be_declared_inside_a_block,"type"),Zj(e),eJ(e.typeParameters),141===e.type.kind){const t=p(e.typeParameters);(0===t?"BuiltinIteratorReturn"===e.name.escapedText:1===t&&GB.has(e.name.escapedText))||Oo(e.type,ha.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else $J(e.type),xM(e)}(n);case 266:return DJ(n);case 267:return EJ(n);case 272:return RJ(n);case 271:return function(e){if(!MJ(e,jm(e)?ha.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ha.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(t$(e),Om(e)||NJ(e)))if(OJ(e),aP(e,6),283!==e.moduleReference.kind){const t=Ja(fs(e));if(t!==vt){const n=za(t);if(111551&n){const t=mb(e.moduleReference);1920&Ha(t,112575).flags||Oo(t,ha.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Mp(t))}788968&n&&WB(e.name,ha.Import_name_cannot_be_0)}e.isTypeOnly&&w$(e,ha.An_import_alias_cannot_use_import_type)}else!(5<=L&&L<=99)||e.isTypeOnly||33554432&e.flags||w$(e,ha.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 278:return jJ(n);case 277:return function(t){if(MJ(t,t.isExportEquals?ha.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:ha.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const n=307===t.parent.kind?t.parent:t.parent.parent;if(267===n.kind&&!fp(n))return void(t.isExportEquals?Oo(t,ha.An_export_assignment_cannot_be_used_in_a_namespace):Oo(t,ha.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!t$(t)&&Av(t)&&C$(t,ha.An_export_assignment_cannot_have_modifiers);const r=xv(t);r&&Ik(aj(t.expression),TS(r),t.expression);const i=!t.isExportEquals&&!(33554432&t.flags)&&F.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(Cd(t));if(80===t.expression.kind){const e=t.expression,n=Ts(Ha(e,-1,!0,!0,t));if(n){aP(t,3);const r=Ua(n,111551);if(111551&za(n)?(aj(e),i||33554432&t.flags||!F.verbatimModuleSyntax||!r||Oo(e,t.isExportEquals?ha.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ha.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,kc(e))):i||33554432&t.flags||!F.verbatimModuleSyntax||Oo(e,t.isExportEquals?ha.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ha.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,kc(e)),!i&&!(33554432&t.flags)&&NS(F)&&!(111551&n.flags)){const i=za(n,!1,!0);!(2097152&n.flags&&788968&i)||111551&i||r&&Cd(r)===Cd(t)?r&&Cd(r)!==Cd(t)&&la(Oo(e,t.isExportEquals?ha._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ha._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,kc(e),Le),r,kc(e)):Oo(e,t.isExportEquals?ha._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ha._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,kc(e),Le)}}else aj(e);RS(F)&&Ic(e,!0)}else aj(t.expression);i&&Oo(t,ha.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),JJ(n),33554432&t.flags&&!fb(t.expression)&&w$(t.expression,ha.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(L>=5&&200!==L&&(33554432&t.flags&&99===e.getImpliedNodeFormatForEmit(Cd(t))||!(33554432&t.flags)&&1!==e.getImpliedNodeFormatForEmit(Cd(t)))?w$(t,ha.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==L||33554432&t.flags||w$(t,ha.Export_assignment_is_not_supported_when_module_flag_is_system))}(n);case 242:case 259:return void N$(n);case 282:!function(e){yM(e)}(n)}}(n),r=i}}function qJ(e){nt(e)&&f(e,(e=>{U_(e)&&$J(e)}))}function UJ(e){if(!jm(e))if(cP(e)||sP(e)){const t=Ra(cP(e)?54:58),n=e.postfix?ha._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ha._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=TS(e.type);w$(e,n,t,ic(sP(e)&&r!==cn&&r!==rn?Ib(le([r,Lt],e.postfix?void 0:zt)):r))}else w$(e,ha.JSDoc_types_can_only_be_used_inside_documentation_comments)}function VJ(e){const t=ra(Cd(e));1&t.flags?gn.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function WJ(e){const t=ra(e);t.deferredNodes&&t.deferredNodes.forEach(HJ),t.deferredNodes=void 0}function HJ(e){var t,n;null==(t=Yn)||t.push(Yn.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const o=r;switch(r=e,h=0,e.kind){case 213:case 214:case 215:case 170:case 286:EO(e);break;case 218:case 219:case 174:case 173:!function(e){gn.assert(174!==e.kind||Wf(e));const t=zh(e),n=Mg(e);if(PR(e,n),e.body)if(kv(e)||jg(mg(e)),241===e.body.kind)$J(e.body);else{const r=Ej(e.body),i=n&&IB(n,t);if(i){const n=HO(e.body);Ok(2==(3&t)?nM(r,!1,n,ha.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,n,n)}}}(e);break;case 177:case 178:Jj(e);break;case 231:!function(e){f(e.members,$J),xM(e)}(e);break;case 168:!function(e){var t,n;if(rN(e.parent)||yu(e.parent)||iN(e.parent)){const r=g_(fs(e)),o=24576&jT(r);if(o){const a=fs(e.parent);if(!iN(e.parent)||48&Tx(y_(a))){if(8192===o||16384===o){null==(t=Yn)||t.push(Yn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:lb(y_(a)),id:lb(r)});const s=IT(a,r,16384===o?qn:$n),c=IT(a,r,16384===o?$n:qn),l=r;i=r,Ik(s,c,e,ha.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=Yn)||n.pop()}}else Oo(e,ha.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){EI(e)}(e);break;case 284:!function(e){EI(e.openingElement),oI(e.closingElement.tagName)?_I(e.closingElement):Ej(e.closingElement.tagName),cI(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=OL(e),n=cF(e)?t:e,r=ra(e);gn.assertIsDefined(r.assertionExpressionType);const i=ND(XC(r.assertionExpressionType)),o=TS(t);Hc(o)||a((()=>{const e=RD(i);Pk(o,e)||qk(i,o,n,ha.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e);break;case 222:Ej(e.expression);break;case 226:kb(e)&&EO(e)}r=o,null==(n=Yn)||n.pop()}function GJ(t,n){var r,i;null==(r=Yn)||r.push(Yn.Phase.Check,n?"checkSourceFileNodes":"checkSourceFile",{path:t.path},!0);const o=n?"beforeCheckNodes":"beforeCheck",s=n?"afterCheckNodes":"afterCheck";ar(o),n?function(t,n){const r=ra(t);if(!(1&r.flags)){if(hT(t,F,e))return;F$(t),I(no),I(ro),I(io),I(oo),I(ao),f(n,$J),WJ(t),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...no),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...ro),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...io),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(...oo),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...ao),r.flags|=8388608;for(const e of n)ra(e).flags|=8388608}}(t,n):function(t){const n=ra(t);if(!(1&n.flags)){if(hT(t,F,e))return;F$(t),I(no),I(ro),I(io),I(oo),I(ao),8388608&n.flags&&(no=n.potentialThisCollisions,ro=n.potentialNewTargetCollisions,io=n.potentialWeakMapSetCollisions,oo=n.potentialReflectCollisions,ao=n.potentialUnusedRenamedBindingElementsInTypes),f(t.statements,$J),$J(t.endOfFileToken),WJ(t),af(t)&&xM(t),a((()=>{t.isDeclarationFile||!F.noUnusedLocals&&!F.noUnusedParameters||SM(XJ(t),((e,t,n)=>{!Td(e)&&KJ(t,!!(33554432&e.flags))&&_o.add(n)})),t.isDeclarationFile||function(){var e;for(const t of ao)if(!(null==(e=fs(t))?void 0:e.isReferenced)){const e=lc(t);gn.assert(iy(e),"Only parameter declaration should be checked here");const n=Up(t.name,ha._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Mp(t.name),Mp(t.propertyName));e.type||pT(n,rS(Cd(e),e.end,0,ha.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Mp(t.propertyName))),_o.add(n)}}()})),af(t)&&JJ(t),no.length&&(f(no,MM),I(no)),ro.length&&(f(ro,BM),I(ro)),io.length&&(f(io,JM),I(io)),oo.length&&(f(oo,$M),I(oo)),n.flags|=1}}(t),ar(s),sr("Check",o,s),null==(i=Yn)||i.pop()}function KJ(e,t){if(t)return!1;switch(e){case 0:return!!F.noUnusedLocals;case 1:return!!F.noUnusedParameters;default:return gn.assertNever(e)}}function XJ(e){return bi.get(e.path)||u}function QJ(n,r,i){try{return t=r,function(t,n){if(t){YJ();const e=_o.getGlobalDiagnostics(),r=e.length;ez(t,n);const i=_o.getDiagnostics(t.fileName);if(n)return i;const o=_o.getGlobalDiagnostics();return o!==e?Y(ce(e,o,uS),i):0===r&&o.length>0?Y(o,i):i}return f(e.getSourceFiles(),(e=>ez(e))),_o.getDiagnostics()}(n,i)}finally{t=void 0}}function YJ(){for(const e of o)e();o=[]}function ez(e,t){YJ();const n=a;a=e=>e(),GJ(e,t),a=n}function tz(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function nz(e,t){let n,r=rm(e);for(;r&&!(n=t(r));)r=rm(r);return n}function rz(e,t){return!!nz(e,(e=>e===t))}function iz(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function oz(e){if(gh(e))return ms(e.parent);if(jm(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!Qw(e)&&!tP(e)&&!function(e){if(110===e.expression.kind){const t=sm(e,!1,!1);if(uu(t)){const e=HP(t);if(e){const t=QP(e,EA(e,void 0));return t&&!Wc(t)}}}}(e.parent)){const t=function(e){switch(cg(e.parent.parent)){case 1:case 3:return ms(e.parent);case 5:if(nF(e.parent)&&Ox(e.parent)===e)return;case 4:case 2:return fs(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&fb(e)){const t=Ha(e,2998271,!0);if(t&&t!==vt)return t}else if(su(e)&&iz(e)){const t=Ph(e,271);return gn.assert(void 0!==t),Va(e,!0)}if(su(e)){const t=function(e){let t=e.parent;for(;_E(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){TS(t);const n=ra(e).resolvedSymbol;return n===vt?void 0:n}}for(;Sb(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=Af(e)?788968:111551,pb(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=fb(e)?Ha(e,t,!0):void 0;if(n)return n}if(341===e.parent.kind)return Wg(e.parent);if(168===e.parent.kind&&345===e.parent.parent.kind){gn.assert(!jm(e));const t=Zg(e.parent);return t&&t.symbol}if(wm(e)){if(Id(e))return;const t=yc(e,an(U_,eP,tP)),n=t?901119:111551;if(80===e.kind){if(Dm(e)&&oI(e)){const t=_I(e.parent);return t===vt?void 0:t}const r=Ha(e,n,!0,!0,Kg(e));if(!r&&t){const t=yc(e,an(yu,rN));if(t)return cz(e,!0,fs(t))}if(r&&t){const t=Qg(e);if(t&&XN(t)&&t===r.valueDeclaration)return Ha(e,n,!0,!0,Cd(t))||r}return r}if(Qw(e))return eO(e);if(211===e.kind||166===e.kind){const n=ra(e);return n.resolvedSymbol?n.resolvedSymbol:(211===e.kind?(HI(e,0),n.resolvedSymbol||(n.resolvedSymbol=az(aj(e.expression),Kb(e.name)))):KI(e,0),!n.resolvedSymbol&&t&&_E(e)?cz(e):n.resolvedSymbol)}if(tP(e))return cz(e)}else if(su(e)&&tz(e)){const t=Ha(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==vt?t:yy(e)}return 182===e.parent.kind?Ha(e,1):void 0}function az(e,t){const n=Cm(e,t);if(n.length&&e.members){const t=Nh(Tp(e).members);if(n===bm(e))return t;if(t){const r=na(t),i=O(q(n,(e=>e.declaration)),QB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=Uo(131072,"__index");return t.declarations=q(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:lz(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function cz(e,t,n){if(su(e)){const r=901119;let i=Ha(e,r,t,!0,Kg(e));if(!i&&Xw(e)&&n&&(i=ps(ia(ls(n),e.escapedText,r))),i)return i}const r=Xw(e)?n:cz(e.left,t,n),i=Xw(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&Uf(Tu(r),"prototype");return Uf(e?Tu(e):y_(r),i)}}function lz(e,t){if(QN(e))return XI(e)?ps(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(nJ(e)){const t=fs(n);return Vl(e.parent)&&e.parent.propertyName===e?tI(t):t}if(yh(e))return fs(n.parent);if(80===e.kind){if(iz(e))return oz(e);if(208===n.kind&&206===r.kind&&e===n.propertyName){const t=Uf(uz(r),e.escapedText);if(t)return t}else if(EF(n)&&n.name===e)return 105===n.keywordToken&&"target"===kc(e)?zL(n).symbol:102===n.keywordToken&&"meta"===kc(e)?Ky().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!yv(e))return oz(e);case 110:const i=sm(e,!1,!1);if(uu(i)){const e=mg(i);if(e.thisParameter)return e.thisParameter}if(Em(e))return Ej(e).symbol;case 197:return xS(e).symbol;case 108:return Ej(e).symbol;case 137:const o=e.parent;return o&&176===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Pm(e.parent.parent)&&Am(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||jm(e)&&JP(e.parent)&&e.parent.moduleSpecifier===e||jm(e)&&$m(e.parent,!1)||gf(e.parent)||HE(e.parent)&&yf(e.parent.parent)&&e.parent.parent.argument===e.parent)return Xa(e,e,t);if(iF(n)&&lg(n)&&n.arguments[1]===e)return fs(n);case 9:const a=rF(n)?n.argumentExpression===e?Cj(n.expression):void 0:HE(n)&&VE(r)?TS(r.objectType):void 0;return a&&Uf(a,xc(e.text));case 90:case 100:case 39:case 86:return ms(e.parent);case 205:return yf(e)?lz(e.argument.literal,t):void 0;case 95:return SN(e.parent)?gn.checkDefined(e.parent.symbol):void 0;case 102:case 105:return EF(e.parent)?JL(e.parent).symbol:void 0;case 104:if(hF(e.parent)){const t=Cj(e.parent.right),n=HR(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 236:return Ej(e).symbol;case 295:if(Dm(e)&&oI(e)){const t=_I(e.parent);return t===vt?void 0:t}default:return}}}function uz(e){if(QN(e)&&!XI(e))return Nt;if(67108864&e.flags)return Nt;const t=ub(e),n=t&&s_(fs(t.class));if(Af(e)){const t=TS(e);return n?md(t,n.thisType):t}if(wm(e))return dz(e);if(n&&!t.isImplements){const e=ve(e_(n));return e?md(e,n.thisType):Nt}if(QT(e))return y_(fs(e));if(function(e){return 80===e.kind&&QT(e.parent)&&Ac(e.parent)===e}(e)){const t=lz(e);return t?y_(t):Nt}if(ZE(e))return pl(e,!0,0)||Nt;if(h_(e)){const t=fs(e);return t?Tu(t):Nt}if(nJ(e)){const t=lz(e);return t?Tu(t):Nt}if(Fu(e))return pl(e.parent,!0,0)||Nt;if(iz(e)){const t=lz(e);if(t){const e=y_(t);return Hc(e)?Tu(t):e}}return EF(e.parent)&&e.parent.keywordToken===e.kind?JL(e.parent):gN(e)?Qy(!1):Nt}function _z(e){if(gn.assert(210===e.kind||209===e.kind),250===e.parent.kind)return QR(e,aB(e.parent)||Nt);if(226===e.parent.kind)return QR(e,Cj(e.parent.right)||Nt);if(303===e.parent.kind){const t=st(e.parent.parent,tF);return KR(t,_z(t)||Nt,ip(t.properties,e.parent))}const t=st(e.parent,eF),n=_z(t)||Nt,r=sB(65,n,Lt,e.parent)||Nt;return XR(t,n,t.elements.indexOf(e),r)}function dz(e){return bb(e)&&(e=e.parent),fS(Cj(e))}function pz(e){const t=ms(e.parent);return Rv(e)?Tu(t):y_(t)}function fz(e){const t=e.name;switch(t.kind){case 80:return gS(kc(t));case 9:case 11:return gS(t.text);case 167:const e=XA(t);return qR(e,12288)?e:qt;default:return gn.fail("Unsupported property name.")}}function mz(e){const t=td(Ep(e=Sf(e))),n=Xf(e,0).length?Xn:Xf(e,1).length?Qn:void 0;return n&&f(Ep(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),Os(t)}function gz(e){return 0!==Xf(e,0).length||0!==Xf(e,1).length}function hz(e){if(Yl(e))return!1;const t=bc(e,Xw);if(!t)return!1;const n=t.parent;return!!n&&(!((nF(n)||HN(n))&&n.name===t)&&Uz(t)===Ie)}function yz(e,t){var n;const r=bc(e,Xw);if(r){let e=Uz(r,function(e){return d_(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=ps(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=gs(e);if(i){if(512&i.flags&&307===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==Cd(r)?void 0:e}return yc(r.parent,(e=>d_(e)&&fs(e)===i))}}}}function vz(e){const t=HD(e);if(t)return t;const n=bc(e,Xw);if(n){const e=function(e){const t=ra(e).resolvedSymbol;return t&&t!==vt?t:ze(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Ma(e,111551)&&!Ua(e,111551))return ba(e)}}function bz(e){if(418&e.flags&&e.valueDeclaration&&!QN(e.valueDeclaration)){const t=na(e);if(void 0===t.isDeclarationWithCollidingName){const n=Rp(e.valueDeclaration);if(Ed(n)||function(e){return e.valueDeclaration&&ZE(e.valueDeclaration)&&299===lc(e.valueDeclaration).parent.kind}(e))if(ze(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(Iz(e.valueDeclaration,16384)){const r=Iz(e.valueDeclaration,32768),i=Zu(n,!1),o=241===n.kind&&Zu(n.parent,!1);t.isDeclarationWithCollidingName=!(yp(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function xz(e){if(!Yl(e)){const t=bc(e,Xw);if(t){const e=Uz(t);if(e&&bz(e))return e.valueDeclaration}}}function Sz(e){const t=bc(e,h_);if(t){const e=fs(t);if(e)return bz(e)}return!1}function kz(e){switch(gn.assert(Re),e.kind){case 271:return Cz(fs(e));case 273:case 274:case 276:case 281:const t=fs(e);return!!t&&Cz(t,!0);case 278:const n=e.exportClause;return!!n&&(vN(n)||X(n.elements,kz));case 277:return!e.expression||80!==e.expression.kind||Cz(fs(e),!0)}return!1}function Tz(e){const t=bc(e,uN);return!(void 0===t||307!==t.parent.kind||!Om(t))&&(Cz(fs(t))&&t.moduleReference&&!Id(t.moduleReference))}function Cz(e,t){if(!e)return!1;const n=Cd(e.valueDeclaration);ts(n&&fs(n));const r=Ts(Ja(e));return r===vt?!t||!Ua(e):!!(111551&za(e,t,!0))&&(jS(F)||!Dz(r))}function Dz(e){return WR(e)||!!e.constEnumOnlyModule}function wz(e,t){if(gn.assert(Re),xa(e)){const t=fs(e),n=t&&na(t);if(null==n?void 0:n.referenced)return!0;const r=na(t).aliasTarget;if(r&&32&Hv(e)&&111551&za(r)&&(jS(F)||!Dz(r)))return!0}return!!t&&!!qI(e,(e=>wz(e,t)))}function Ez(e){if(Od(e.body)){if(O_(e)||I_(e))return!1;const t=kg(fs(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function Fz(e,t){return(function(e,t){return!(!U||ig(e)||FP(e)||!e.initializer)&&(!Lv(e,31)||!!t&&du(t))}(e,t)||function(e){return U&&ig(e)&&(FP(e)||!e.initializer)&&Lv(e,31)}(e))&&!function(e){const t=Qz(e);if(!t)return!1;const n=TS(t);return Hc(n)||Xk(n)}(e)}function Nz(e){const t=bc(e,(e=>tN(e)||ZF(e)));if(!t)return!1;let n;if(ZF(t)){if(t.type||!jm(t)&&!j$(t))return!1;const e=Ym(t);if(!e||!p_(e))return!1;n=fs(e)}else n=fs(t);return!!(n&&16&n.flags|3)&&!!ld(ls(n),(e=>111551&e.flags&&gC(e.valueDeclaration)))}function Pz(e){const t=bc(e,tN);if(!t)return u;const n=fs(t);return n&&Ep(Tu(n))||u}function Az(e){var t;const n=e.id||0;return n<0||n>=Hi.length?0:(null==(t=Hi[n])?void 0:t.flags)||0}function Iz(e,t){return function(e,t){if(!F.noCheck&&bT(Cd(e),F))return;const n=ra(e);if(!(n.calculatedFlags&t))switch(t){case 16:case 32:return a(e);case 128:case 256:case 2097152:return o(e);case 512:case 8192:case 65536:case 262144:return c(e);case 536870912:return u(e);case 4096:case 32768:case 16384:return d(e);default:return gn.assertNever(t,`Unhandled node check flag calculation: ${gn.formatNodeCheckFlags(t)}`)}function r(e,t){const n=t(e,e.parent);if("skip"!==n)return n||UI(e,t)}function i(e){const n=ra(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,a(e)}function o(e){r(e,i)}function a(e){ra(e).calculatedFlags|=48,108===e.kind&&WP(e)}function s(e){const n=ra(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,u(e)}function c(e){r(e,s)}function l(e){return wm(e)||GN(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}function u(e){const t=ra(e);if(t.calculatedFlags|=536870912,Xw(e)&&(t.calculatedFlags|=49152,l(e)&&(!nF(e.parent)||e.parent.name!==e))){const t=Ew(e);t&&t!==vt&&NP(e,t)}}function _(e){const n=ra(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,p(e)}function d(e){r(Rp(gh(e)?e.parent:e),_)}function p(e){u(e),dE(e)&&XA(e),Qw(e)&&hu(e.parent)&&jj(e.parent)}}(e,t),!!(Az(e)&t)}function Oz(e){return SJ(e.parent),ra(e).enumMemberValue??SC(void 0)}function Lz(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function Rz(e){if(306===e.kind)return Oz(e).value;ra(e).resolvedSymbol||aj(e);const t=ra(e).resolvedSymbol||(fb(e)?Ha(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(cf(e.parent))return Oz(e).value}}function jz(e){return!!(524288&e.flags)&&Xf(e,0).length>0}function Mz(e,t){var n;const r=bc(e,su);if(!r)return 0;if(t&&!(t=bc(t)))return 0;let i=!1;if(_E(r)){const e=Ha(mb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(Gl))}const o=Ha(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ja(o):o;i||(i=!(!o||!Ua(o,111551)));const s=Ha(r,788968,!0,!0,t),c=s&&2097152&s.flags?Ja(s):s;if(o||i||(i=!(!s||!Ua(s,788968))),a&&a===c){const e=nv(!1);if(e&&a===e)return 9;const t=Tu(a);if(t&&Uu(t))return i?10:1}if(!c)return i?11:0;const l=y_(c);return Hc(l)?i?11:0:3&l.flags?11:qR(l,245760)?2:qR(l,528)?6:qR(l,296)?3:qR(l,2112)?4:qR(l,402653316)?5:nD(l)?7:qR(l,12288)?8:jz(l)?10:IC(l)?7:11}function Bz(e,t,n,r,i){const o=bc(e,FC);if(!o)return oD.createToken(133);const a=fs(o);return _e.serializeTypeForDeclaration(o,a,t,1024|n,r,i)}function Jz(e){const t=178===(e=bc(e,bl)).kind?177:178,n=Z_(fs(e),t);return{firstAccessor:n&&n.pos{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}}function Hz(e){return!!(lf(e)||ZF(e)&&j$(e))&&mS(Tu(fs(e)))}function Gz(e,t){return function(e,t,n){const r=1056&e.flags?_e.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===Kt?oD.createTrue():e===Wt&&oD.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?oD.createBigIntLiteral(i):"string"==typeof i?oD.createStringLiteral(i):i<0?oD.createPrefixUnaryExpression(41,oD.createNumericLiteral(-i)):oD.createNumericLiteral(i)}(Tu(fs(e)),e,t)}function Kz(e){return e?(Co(e),Cd(e).localJsxFactory||oi):oi}function Xz(e){if(e){const t=Cd(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;const e=t.pragmas.get("jsxfrag"),n=nt(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=GI(n.arguments.factory,A),t.localJsxFragmentFactory}}if(F.jsxFragmentFactory)return GI(F.jsxFragmentFactory,A)}function Qz(e){const t=xv(e);if(t)return t;if(169===e.kind&&178===e.parent.kind){const t=Jz(e.parent).getAccessor;if(t)return kv(t)}}function Yz(e){const t=267===e.kind?at(e.name,Iw):Fg(e),n=Ya(t,t,void 0);if(n)return Z_(n,307)}function Zz(e,t){if(F.importHelpers){const n=Cd(e);if(kp(n,F)&&!(33554432&e.flags)){const r=function(e,t){const n=ra(e);return n.externalHelpersModule||(n.externalHelpersModule=Za(function(e){gn.assert(F.importHelpers,"Expected importHelpers to be enabled");const t=e.imports[0];return gn.assert(t&&sy(t)&&"tslib"===t.text,"Expected sourceFile.imports[0] to be the synthesized tslib import"),t}(e),X_,ha.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||vt),n.externalHelpersModule}(n,e);if(r!==vt){const n=na(r);if(n.requestedExternalEmitHelpers??(n.requestedExternalEmitHelpers=0),(n.requestedExternalEmitHelpers&t)!==t){const i=t&~n.requestedExternalEmitHelpers;for(let t=1;t<=16777216;t<<=1)if(i&t)for(const n of e$(t)){const i=Ba(ia(us(r),xc(n),111551));i?524288&t?X(kg(i),(e=>ZL(e)>3))||Oo(e,ha.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,X_,n,4):1048576&t?X(kg(i),(e=>ZL(e)>4))||Oo(e,ha.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,X_,n,5):1024&t&&(X(kg(i),(e=>ZL(e)>2))||Oo(e,ha.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,X_,n,3)):Oo(e,ha.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,X_,n)}}n.requestedExternalEmitHelpers|=t}}}}function e$(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return B?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return gn.fail("Unrecognized helper")}}function t$(t){var n;const r=function(e){const t=function(e){return RA(e)?T(e.modifiers,mE):void 0}(e);return t&&C$(t,ha.Decorators_are_not_valid_here)}(t)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return T(e.modifiers,au);default:if(268===e.parent.kind||307===e.parent.kind)return;switch(e.kind){case 262:return n$(e,134);case 263:case 185:return n$(e,128);case 231:case 264:case 265:return T(e.modifiers,au);case 243:return 4&e.declarationList.flags?n$(e,135):T(e.modifiers,au);case 266:return n$(e,87);default:gn.assertNever(e)}}}(e);return t&&C$(t,ha.Modifiers_cannot_appear_here)}(t);if(void 0!==r)return r;if(fE(t)&&mv(t))return C$(t,ha.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const i=LF(t)?7&t.declarationList.flags:0;let o,a,s,c,l,u=0,_=!1,d=!1;for(const r of t.modifiers)if(mE(r)){if(!vm(B,t,t.parent,t.parent.parent))return 174!==t.kind||Od(t.body)?C$(t,ha.Decorators_are_not_valid_here):C$(t,ha.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(B&&(177===t.kind||178===t.kind)){const e=Jz(t);if(qv(e.firstAccessor)&&t===e.secondAccessor)return C$(t,ha.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&u)return w$(r,ha.Decorators_are_not_valid_here);if(d&&98303&u)return gn.assertIsDefined(l),!T$(Cd(r))&&(pT(Oo(r,ha.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Up(l,ha.Decorator_used_before_export_here)),!0);u|=32768,98303&u?32&u&&(_=!0):d=!0,l??(l=r)}else{if(148!==r.kind){if(171===t.kind||173===t.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_type_member,Ra(r.kind));if(181===t.kind&&(126!==r.kind||!yu(t.parent)))return w$(r,ha._0_modifier_cannot_appear_on_an_index_signature,Ra(r.kind))}if(103!==r.kind&&147!==r.kind&&87!==r.kind&&168===t.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_type_parameter,Ra(r.kind));switch(r.kind){case 87:{if(266!==t.kind&&168!==t.kind)return w$(t,ha.A_class_member_cannot_have_the_0_keyword,Ra(87));const e=IP(t.parent)&&Xg(t.parent)||t.parent;if(168===t.kind&&!(du(e)||yu(e)||FE(e)||NE(e)||TE(e)||CE(e)||yE(e)))return w$(r,ha._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Ra(r.kind));break}case 164:if(16&u)return w$(r,ha._0_modifier_already_seen,"override");if(128&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"override","readonly");if(512&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"override","async");u|=16,c=r;break;case 125:case 124:case 123:const d=gc(tb(r.kind));if(7&u)return w$(r,ha.Accessibility_modifier_already_seen);if(16&u)return w$(r,ha._0_modifier_must_precede_1_modifier,d,"override");if(256&u)return w$(r,ha._0_modifier_must_precede_1_modifier,d,"static");if(512&u)return w$(r,ha._0_modifier_must_precede_1_modifier,d,"accessor");if(8&u)return w$(r,ha._0_modifier_must_precede_1_modifier,d,"readonly");if(1024&u)return w$(r,ha._0_modifier_must_precede_1_modifier,d,"async");if(268===t.parent.kind||307===t.parent.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(64&u)return 123===r.kind?w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):w$(r,ha._0_modifier_must_precede_1_modifier,d,"abstract");if(tu(t))return w$(r,ha.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);u|=tb(r.kind);break;case 126:if(256&u)return w$(r,ha._0_modifier_already_seen,"static");if(8&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"static","async");if(512&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"static","accessor");if(268===t.parent.kind||307===t.parent.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===t.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_parameter,"static");if(64&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"static","override");u|=256,o=r;break;case 129:if(512&u)return w$(r,ha._0_modifier_already_seen,"accessor");if(8&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==t.kind)return w$(r,ha.accessor_modifier_can_only_appear_on_a_property_declaration);u|=512;break;case 148:if(8&u)return w$(r,ha._0_modifier_already_seen,"readonly");if(172!==t.kind&&171!==t.kind&&181!==t.kind&&169!==t.kind)return w$(r,ha.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");u|=8;break;case 95:if(F.verbatimModuleSyntax&&!(33554432&t.flags)&&265!==t.kind&&264!==t.kind&&267!==t.kind&&307===t.parent.kind&&1===e.getEmitModuleFormatOfFile(Cd(t)))return w$(r,ha.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&u)return w$(r,ha._0_modifier_already_seen,"export");if(128&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"export","declare");if(64&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"export","async");if(yu(t.parent))return w$(r,ha._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===t.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_parameter,"export");if(4===i)return w$(r,ha._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===i)return w$(r,ha._0_modifier_cannot_appear_on_an_await_using_declaration,"export");u|=32;break;case 90:const p=307===t.parent.kind?t.parent:t.parent.parent;if(267===p.kind&&!fp(p))return w$(r,ha.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===i)return w$(r,ha._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===i)return w$(r,ha._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&u))return w$(r,ha._0_modifier_must_precede_1_modifier,"export","default");if(_)return w$(l,ha.Decorators_are_not_valid_here);u|=2048;break;case 138:if(128&u)return w$(r,ha._0_modifier_already_seen,"declare");if(1024&u)return w$(r,ha._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&u)return w$(r,ha._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(yu(t.parent)&&!hE(t))return w$(r,ha._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===t.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===i)return w$(r,ha._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===i)return w$(r,ha._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&t.parent.flags&&268===t.parent.kind)return w$(r,ha.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(tu(t))return w$(r,ha._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");u|=128,a=r;break;case 128:if(64&u)return w$(r,ha._0_modifier_already_seen,"abstract");if(263!==t.kind&&185!==t.kind){if(174!==t.kind&&172!==t.kind&&177!==t.kind&&178!==t.kind)return w$(r,ha.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==t.parent.kind||!Lv(t.parent,64))return w$(r,172===t.kind?ha.Abstract_properties_can_only_appear_within_an_abstract_class:ha.Abstract_methods_can_only_appear_within_an_abstract_class);if(256&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&u&&s)return w$(s,ha._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"abstract","override");if(512&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Nc(t)&&81===t.name.kind)return w$(r,ha._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");u|=64;break;case 134:if(1024&u)return w$(r,ha._0_modifier_already_seen,"async");if(128&u||33554432&t.parent.flags)return w$(r,ha._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===t.kind)return w$(r,ha._0_modifier_cannot_appear_on_a_parameter,"async");if(64&u)return w$(r,ha._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");u|=1024,s=r;break;case 103:case 147:{const e=103===r.kind?8192:16384,i=103===r.kind?"in":"out",o=IP(t.parent)&&(Xg(t.parent)||T(null==(n=Yg(t.parent))?void 0:n.tags,OP))||t.parent;if(168!==t.kind||o&&!(rN(o)||yu(o)||iN(o)||OP(o)))return w$(r,ha._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,i);if(u&e)return w$(r,ha._0_modifier_already_seen,i);if(8192&e&&16384&u)return w$(r,ha._0_modifier_must_precede_1_modifier,"in","out");u|=e;break}}}return 176===t.kind?256&u?w$(o,ha._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&u?w$(c,ha._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&u)&&w$(s,ha._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===t.kind||271===t.kind)&&128&u?w$(a,ha.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===t.kind&&31&u&&Fu(t.name)?w$(t,ha.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===t.kind&&31&u&&t.dotDotDotToken?w$(t,ha.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&u)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return w$(t,ha._0_modifier_cannot_be_used_here,"async")}(t,s)}function n$(e,t){const n=T(e.modifiers,au);return n&&n.kind!==t?n:void 0}function r$(e,t=ha.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&D$(e[0],e.end-1,1,t)}function i$(e,t){if(e&&0===e.length){const n=e.pos-1;return D$(t,n,is(t.text,e.end)+1-n,ha.Type_parameter_list_cannot_be_empty)}return!1}function o$(e){if(A>=3){const t=e.body&&OF(e.body)&&uA(e.body.statements);if(t){const n=P(e.parameters,(e=>!!e.initializer||Fu(e.name)||W_(e)));if(p(n)){f(n,(e=>{pT(Oo(e,ha.This_parameter_is_not_allowed_with_use_strict_directive),Up(t,ha.use_strict_directive_used_here))}));const e=n.map(((e,t)=>Up(e,0===t?ha.Non_simple_parameter_declared_here:ha.and_here)));return pT(Oo(t,ha.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function a$(e){const t=Cd(e);return t$(e)||i$(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&Po(t.fileName,[".mts",".cts"])&&w$(e.typeParameters[0],ha.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e,r=Ga(t,n.pos).line,i=Ga(t,n.end).line;return r!==i&&w$(n,ha.Line_terminator_not_permitted_before_arrow)}(e,t)||du(e)&&o$(e)}function s$(e,t){return r$(t)||function(e,t){if(t&&0===t.length){const n=Cd(e),r=t.pos-1;return D$(n,r,is(n.text,t.end)+1-r,ha.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function c$(e){const t=e.types;if(r$(t))return!0;if(t&&0===t.length){const n=Ra(e.token);return D$(e,t.pos,0,ha._0_list_cannot_be_empty,n)}return X(t,l$)}function l$(e){return TF(e)&&lE(e.expression)&&e.typeArguments?w$(e,ha.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):s$(e,e.typeArguments)}function u$(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&w$(t.expression,ha.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function _$(e){if(e.asteriskToken){if(gn.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return w$(e.asteriskToken,ha.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return w$(e.asteriskToken,ha.An_overload_signature_cannot_be_declared_as_a_generator)}}function d$(e,t){return!!e&&w$(e,t)}function p$(e,t){return!!e&&w$(e,t)}function f$(e){if(N$(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=Cd(e);if(lm(e)){if(!T$(t))switch(kp(t,F)||_o.add(Up(e.awaitModifier,ha.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),L){case 100:case 199:if(1===t.impliedNodeFormat){_o.add(Up(e.awaitModifier,ha.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(A>=4)break;default:_o.add(Up(e.awaitModifier,ha.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!T$(t)){const t=Up(e.awaitModifier,ha.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=tm(e);return n&&176!==n.kind&&(gn.assert(!(2&zh(n)),"Enclosing function should never be an async function."),pT(t,Up(n,ha.Did_you_mean_to_mark_this_function_as_async))),_o.add(t),!0}}if(qF(e)&&!(65536&e.flags)&&Xw(e.initializer)&&"async"===e.initializer.escapedText)return w$(e.initializer,ha.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!S$(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?ha.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:ha.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return C$(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?ha.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:ha.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return w$(r.name,t)}if(r.type)return w$(r,249===e.kind?ha.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:ha.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function m$(e){if(e.parameters.length===(177===e.kind?1:2))return fv(e)}function g$(e,t){if(function(e){return Wh(e)&&!B_(e)}(e))return w$(e,t)}function h$(e){if(a$(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==xe(e.modifiers).kind))return C$(e,ha.Modifiers_cannot_appear_here);if(d$(e.questionToken,ha.An_object_member_cannot_be_declared_optional))return!0;if(p$(e.exclamationToken,ha.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return D$(e,e.end-1,1,ha._0_expected,"{")}if(_$(e))return!0}if(yu(e.parent)){if(A<2&&Qw(e.name))return w$(e.name,ha.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return g$(e.name,ha.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(174===e.kind&&!e.body)return g$(e.name,ha.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(264===e.parent.kind)return g$(e.name,ha.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return g$(e.name,ha.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function y$(e){return qh(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function v$(e){const t=e.initializer;if(t){const r=!(y$(t)||function(e){if((nF(e)||rF(e)&&y$(e.argumentExpression))&&fb(e.expression))return!!(1056&aj(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));if(!(lf(e)||ZF(e)&&j$(e))||e.type)return w$(t,ha.Initializers_are_not_allowed_in_ambient_contexts);if(r)return w$(t,ha.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function b$(e){if(80===e.kind){if("__esModule"===kc(e))return function(e,t,n,...r){const i=Cd(t);return!T$(i)&&(Ao(e,t,n,...r),!0)}("noEmit",e,ha.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!kF(e))return b$(e.name)}return!1}function x$(e){if(80===e.kind){if("let"===e.escapedText)return w$(e,ha.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)kF(e)||x$(e.name)}return!1}function S$(e){const t=e.declarations;if(r$(e.declarations))return!0;if(!e.declarations.length)return D$(e,t.pos,t.end-t.pos,ha.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!$F(e.parent)?6===n&&BR(e):w$(e,4===n?ha.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:ha.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function k$(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return k$(e.parent)}return!0}function T$(e){return e.parseDiagnostics.length>0}function C$(e,t,...n){const r=Cd(e);if(!T$(r)){const i=tf(r,e.pos);return _o.add(rS(r,i.start,i.length,t,...n)),!0}return!1}function D$(e,t,n,r,...i){const o=Cd(e);return!T$(o)&&(_o.add(rS(o,t,n,r,...i)),!0)}function w$(e,t,...n){return!T$(Cd(e))&&(_o.add(Up(e,t,...n)),!0)}function E$(e){return 264!==e.kind&&265!==e.kind&&272!==e.kind&&271!==e.kind&&278!==e.kind&&277!==e.kind&&270!==e.kind&&!Lv(e,2208)&&C$(e,ha.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function F$(e){return!!(33554432&e.flags)&&function(e){for(const t of e.statements)if((h_(t)||243===t.kind)&&E$(t))return!0;return!1}(e)}function N$(e){if(33554432&e.flags){if(!ra(e).hasReportedStatementInAmbientContext&&(uu(e.parent)||vu(e.parent)))return ra(e).hasReportedStatementInAmbientContext=C$(e,ha.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||307===e.parent.kind){const t=ra(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=C$(e,ha.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function P$(e){const t=np(e).includes("."),n=16&e.numericLiteralFlags;t||n||+e.text<=2**53-1||Lo(!1,Up(e,ha.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function A$(e){return!!f(e.elements,(e=>{if(e.isTypeOnly)return C$(e,276===e.kind?ha.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:ha.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function I$(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=$w(t,e);if(r)return r;const i=Ep(e);if(i){const e=Bw(i,t);if(e){const r=vT(t,O(e,(e=>[()=>Tu(e),e.escapedName])),n);if(r!==t)return r}}}}function O$(e){const t=Hh(e);return t||(dE(e)?Lw(Cj(e.expression)):void 0)}function L$(e){return Ae===e?Je:(Ae=e,Je=_c(e))}function R$(e){return Ne===e?je:(Ne=e,je=pc(e))}function j$(e){const t=7&R$(e);return 2===t||4===t||6===t}}function tJ(e){return 262!==e.kind&&174!==e.kind||!!e.body}function nJ(e){switch(e.parent.kind){case 276:case 281:return Xw(e)||11===e.kind;default:return gh(e)}}function rJ(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function iJ(e){return!!(1&e.flags)}function oJ(e){return!!(2&e.flags)}(LB=OB||(OB={})).JSX="JSX",LB.IntrinsicElements="IntrinsicElements",LB.ElementClass="ElementClass",LB.ElementAttributesPropertyNameContainer="ElementAttributesProperty",LB.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",LB.Element="Element",LB.ElementType="ElementType",LB.IntrinsicAttributes="IntrinsicAttributes",LB.IntrinsicClassAttributes="IntrinsicClassAttributes",LB.LibraryManagedAttributes="LibraryManagedAttributes",(RB||(RB={})).Fragment="Fragment";var aJ=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((i=this.context).trackedSymbols??(i.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;(null==(t=this.inner)?void 0:t.reportInferenceFallback)&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var t,n;return null==(n=null==(t=this.inner)?void 0:t.pushErrorFallbackNode)?void 0:n.call(t,e)}popErrorFallbackNode(){var e,t;return null==(t=null==(e=this.inner)?void 0:e.popErrorFallbackNode)?void 0:t.call(e)}};function sJ(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=nt(i)?(r||vJ)(i):i,gn.assertNode(o,n),o):void 0}function cJ(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),uJ(e,t,n,r,i)}function uJ(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=rl,addSource:P,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){gn.assert(e>=S,"generatedLine cannot backtrack"),gn.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const u=EJ(n.mappings);for(const s of u){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(M())};function P(t){s();const n=pa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=_.get(n);return void 0===i&&(i=u.length,u.push(n),l.push(t),_.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length=S,"generatedLine cannot backtrack"),gn.assert(t>=0,"generatedCharacter cannot be negative"),gn.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),gn.assert(void 0===r||r>=0,"sourceLine cannot be negative"),gn.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!E||S!==e||k!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&D>n)}(n,r,i))&&(R(),S=e,k=t,F=!1,N=!1,E=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,D=i,F=!0,void 0!==o&&(w=o,N=!0)),c()}function L(e){p.push(e),p.length>=1024&&j()}function R(){if(E&&(!x||m!==S||g!==k||h!==T||y!==C||v!==D||b!==w)){if(s(),m0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function M(){return R(),j(),{version:3,file:t,sourceRoot:n,sources:u,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),L((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:gn.fail(`${t}: not a base64 value`))}while(e>0);var t}}var xJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,SJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,kJ=/^\s*(\/\/[@#] .*)?$/;function TJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function CJ(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=SJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(kJ))break}}function DJ(e){return"string"==typeof e||null===e}function wJ(e){try{const n=JSON.parse(e);if(null!==(t=n)&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&nt(t.sources)&&k(t.sources,it)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||nt(t.sourcesContent)&&k(t.sourcesContent,DJ))&&(void 0===t.names||null===t.names||nt(t.names)&&k(t.names,it)))return n}catch{}var t}function EJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return u(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=!!(32&a),i|=(31&a)<>=1,i=-i):i>>=1,i}}function FJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function NJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function PJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function AJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function IJ(e,t){return gn.assert(e.sourceIndex===t.sourceIndex),Tt(e.sourcePosition,t.sourcePosition)}function OJ(e,t){return Tt(e.generatedPosition,t.generatedPosition)}function LJ(e){return e.sourcePosition}function RJ(e){return e.generatedPosition}function jJ(e,t,n){const r=Ro(n),i=t.sourceRoot?Ho(t.sourceRoot,r):r,o=Ho(t.file,r),a=e.getSourceFileLike(o),s=t.sources.map((e=>Ho(e,i))),c=new Map(s.map(((t,n)=>[e.getCanonicalFileName(t),n])));let l,_,d;return{getSourcePosition:function(e){const t=function(){if(void 0===_){const e=[];for(const t of f())e.push(t);_=oe(e,OJ,AJ)}return _}();if(!X(t))return e;let n=Ne(t,e.pos,RJ,Tt);n<0&&(n=~n);const r=t[n];return void 0!==r&&PJ(r)?{fileName:s[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=c.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!PJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>oe(e,IJ,AJ)))}return d[e]}(n);if(!X(r))return t;let i=Ne(r,t.pos,LJ,Tt);i<0&&(i=~i);const a=r[i];return void 0===a||a.sourceIndex!==n?t:{fileName:o,pos:a.generatedPosition}}};function p(n){const r=void 0!==a?$a(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(NJ(n)){const r=e.getSourceFileLike(s[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?$a(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===l){const n=EJ(t.mappings),r=Be(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),l=u):l=r}return l}}var MJ={getSourcePosition:dt,getGeneratedPosition:dt};function BJ(e){return(e=hc(e))?QB(e):0}function JJ(e){return!!e&&!(!bN(e)&&!TN(e))&&X(e.elements,zJ)}function zJ(e){return ep(e.propertyName||e.name)}function $J(e,t){return function(n){return 307===n.kind?t(n):function(n){return e.factory.createBundle(O(n.sourceFiles,t))}(n)}}function qJ(e){return!!Ng(e)}function UJ(e){if(Ng(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!bN(t))return!1;let n=0;for(const e of t.elements)zJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Pg(e)}function VJ(e){return!UJ(e)&&(Pg(e)||!!e.importClause&&bN(e.importClause.namedBindings)&&JJ(e.importClause.namedBindings))}function WJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new XJ,a=[],s=new Map,c=new Set;let l,u,_=!1,d=!1,p=!1,f=!1;for(const n of t.statements)switch(n.kind){case 272:i.push(n),!p&&UJ(n)&&(p=!0),!f&&VJ(n)&&(f=!0);break;case 271:283===n.moduleReference.kind&&i.push(n);break;case 278:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),TN(n.exportClause))g(n),f||(f=JJ(n.exportClause));else{const e=n.exportClause.name,t=Yd(e);s.get(t)||(GJ(a,BJ(n),e),s.set(t,!0),l=le(l,e)),p=!0}else i.push(n),d=!0;else g(n);break;case 277:n.isExportEquals&&!u&&(u=n);break;case 243:if(Lv(n,32))for(const e of n.declarationList.declarations)l=HJ(e,s,l,a);break;case 262:Lv(n,32)&&h(n,void 0,Lv(n,2048));break;case 263:if(Lv(n,32))if(Lv(n,2048))_||(GJ(a,BJ(n),e.factory.getDeclarationName(n)),_=!0);else{const e=n.name;e&&!s.get(kc(e))&&(GJ(a,BJ(n),e),s.set(kc(e),!0),l=le(l,e))}}const m=SA(e.factory,e.getEmitHelperFactory(),t,r,d,p,f);return m&&i.unshift(m),{externalImports:i,exportSpecifiers:o,exportEquals:u,hasExportStarsToExportValues:d,exportedBindings:a,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:m};function g(e){for(const t of st(e.exportClause,TN).elements){const r=Yd(t.name);if(!s.get(r)){const i=t.propertyName||t.name;if(11!==i.kind){e.moduleSpecifier||o.add(i,t);const r=n.getReferencedImportDeclaration(i)||n.getReferencedValueDeclaration(i);if(r){if(262===r.kind){h(r,t.name,ep(t.name));continue}GJ(a,BJ(r),t.name)}}s.set(r,!0),l=le(l,t.name)}}}function h(t,n,r){if(c.add(hc(t,tN)),r)_||(GJ(a,BJ(t),n??e.factory.getDeclarationName(t)),_=!0);else{n??(n=t.name);const e=Yd(n);s.get(e)||(GJ(a,BJ(t),n),s.set(e,!0))}}}function HJ(e,t,n,r){if(Fu(e.name))for(const i of e.name.elements)kF(i)||(n=HJ(i,t,n,r));else if(!Yl(e.name)){const i=kc(e.name);t.get(i)||(t.set(i,!0),n=le(n,e.name),sA(e.name)&&GJ(r,BJ(e),e.name))}return n}function GJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var KJ=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(Zl(t)||Yl(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=rI(t),i=vl(r)&&r!==t?e.toKey(r):`(generated@${QB(r)})`;return aI(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return aI(!1,n.prefix,t,n.suffix,e.toKey)}}return Qw(t)?kc(t).slice(1):kc(t)}},XJ=class extends KJ{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(Kt(n,t),n.length||this.delete(e))}};function QJ(e){return q_(e)||9===e.kind||Ah(e.kind)||Xw(e)}function YJ(e){return!Xw(e)&&QJ(e)}function ZJ(e){return e>=65&&e<=79}function ez(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function tz(e){if(!jF(e))return;const t=ph(e.expression);return mf(t)?t:void 0}function nz(e,t,n){for(let r=t;rfunction(e,t,n){return hE(e)&&(!!e.initializer||!t)&&jv(e)===n}(e,t,n)))}function oz(e){return hE(t=e)&&jv(t)||bE(e);var t}function az(e){return P(e.members,oz)}function sz(e){return 172===e.kind&&void 0!==e.initializer}function cz(e){return!Rv(e)&&(Su(e)||bu(e))&&Qw(e.name)}function lz(e){let t;if(e){const n=e.parameters,r=n.length>0&&mv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;efz(e.privateEnv,t)))}function hz(e){return!e.initializer&&Xw(e.name)}function yz(e){return k(e,hz)}function vz(e,t){if(!e||!Iw(e)||!Eg(e.text,t))return e;const n=Zk(e.text,G$(e.text,t));return n!==e.text?sD(fI(oD.createStringLiteral(n,e.singleQuote),e),e):e}var bz=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(bz||{});function xz(e,t,n,r,i,o){let a,s,c=e;if(db(e))for(a=e.right;Db(e.left)||Cb(e.left);){if(!db(a))return gn.checkDefined(sJ(a,t,Qu));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:function(e,r,i,a){gn.assertNode(e,o?Xw:Qu);const s=o?o(e,r,i):fI(n.factory.createAssignment(gn.checkDefined(sJ(e,t,Qu)),r),i);s.original=a,u(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return gn.assertEachNode(t,Mu),e.createArrayLiteralExpression(O(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return gn.assertEachNode(t,Ru),e.createObjectLiteralExpression(O(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:Fz,visitor:t};if(a&&(a=sJ(a,t,Qu),gn.assert(a),Xw(a)&&Sz(e,a.escapedText)||kz(e)?a=Ez(l,a,!1,c):i?a=Ez(l,a,!0,c):sy(e)&&(c=a)),Cz(l,e,a,c,db(e)),a&&i){if(!X(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function u(e){s=le(s,e)}}function Sz(e,t){const n=wA(e);return Ou(n)?function(e,t){const n=AA(e);for(const e of n)if(Sz(e,t))return!0;return!1}(n,t):!!Xw(n)&&n.escapedText===t}function kz(e){const t=NA(e);if(t&&dE(t)&&!Jl(t.expression))return!0;const n=wA(e);return!!n&&Ou(n)&&function(e){return!!f(AA(e),kz)}(n)}function Tz(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],u={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=le(s,e)},emitBindingOrAssignment:_,createArrayBindingOrAssignmentPattern:e=>function(e,t){return gn.assertEachNode(t,Pu),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return gn.assertEachNode(t,ZE),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(ZF(e)){let t=DA(e);t&&(Xw(t)&&Sz(e,t.escapedText)||kz(e))&&(t=Ez(u,gn.checkDefined(sJ(t,u.visitor,Qu)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(Cz(u,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,_(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=Te(c);t.pendingExpressions=le(t.pendingExpressions,n.factory.createAssignment(e,t.value)),de(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(le(e,r)):r);a.original=o,fI(a,i),l.push(a)}return l;function _(e,t,r,i){gn.assertNode(e,lu),s&&(t=n.factory.inlineExpressions(le(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function Cz(e,t,n,r,i){const o=wA(t);if(!i){const i=sJ(DA(t),e.visitor,Qu);i?n?(n=function(e,t,n,r){return t=Ez(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!YJ(i)&&Ou(o)&&(n=Ez(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}Lu(o)?function(e,t,n,r,i){const o=AA(n),a=o.length;let s,c;1!==a&&(r=Ez(e,r,!Au(t)||0!==a,i));for(let t=0;t=1)||98304&l.transformFlags||98304&wA(l).transformFlags||dE(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=wz(e,r,t);dE(t)&&(c=le(c,o.argumentExpression)),Cz(e,l,o,l)}else s=le(s,sJ(l,e.visitor,Iu))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):ju(o)?function(e,t,n,r,i){const o=AA(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=Ez(e,fI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&EA(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||k(o,kF))&&(r=Ez(e,r,!Au(t)||0!==a,i));for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!Dz(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=le(c,[t,n]),s=le(s,e.createArrayBindingOrAssignmentElement(t))}else s=le(s,n);else{if(kF(n))continue;if(EA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);Cz(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);Cz(e,n,i,n)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[t,n]of c)Cz(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function Dz(e){const t=wA(e);if(!t||kF(t))return!0;const n=NA(e);if(n&&!Gh(n))return!1;const r=DA(e);return!(r&&!YJ(r))&&(Ou(t)?k(AA(t),Dz):Xw(t))}function wz(e,t,n){const{factory:r}=e.context;if(dE(n)){const r=Ez(e,gn.checkDefined(sJ(n.expression,e.visitor,Qu)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(qh(n)||Aw(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(kc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function Ez(e,t,n,r){if(Xw(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(fI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function Fz(e){return e}function Nz(e){var t;if(!bE(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return jF(n)&&_b(n.expression,!0)&&Xw(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function Pz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&X(e.members,Nz)}function Az(e,t,n,r){if(Pz(t))return t;const i=function(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return cD(a).classThis=t,a}(e,n,r);t.name&&gD(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);fI(o,t.members);const a=nN(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return cD(a).classThis=n,a}function Iz(e,t,n){const r=hc(hA(n));return(nN(r)||tN(r))&&!r.name&&Lv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Oz(e,t,n){const{factory:r}=e;if(void 0!==n)return{assignedName:r.createStringLiteral(n),name:t};if(Gh(t)||Qw(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(Gh(t.expression)&&!Xw(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function Lz(e){var t;if(!bE(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return jF(n)&&Nw(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function Rz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&X(e.members,Lz)}function jz(e){return!!e.name||Rz(e)}function Mz(e,t,n,r){if(Rz(t))return t;const{factory:i}=e,o=function(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return cD(s).assignedName=t,s}(e,n,r);t.name&&gD(o.body.statements[0],t.name);const a=D(t.members,Nz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return fI(l,t.members),cD(t=nN(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function Bz(e,t,n,r){if(r&&Iw(n)&&Cm(n))return t;const{factory:i}=e,o=hA(t),a=SF(o)?st(Mz(e,o,n),SF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Jz(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Oz(e,t.name,r),s=Bz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Iz(i,t.name,t.objectAssignmentInitializer),a=Bz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Iz(i,t.name,t.initializer),a=Bz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Iz(i,t.name,t.initializer),a=Bz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 208:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Iz(i,t.name,t.initializer),a=Bz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Oz(e,t.name,r),s=Bz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Iz(i,t.left,t.right),a=Bz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Bz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var zz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(zz||{});function $z(e,t,n,r,i,o){const a=sJ(t.tag,n,Qu);gn.assert(a);const s=[void 0],c=[],l=[],u=t.template;if(0===o&&!xy(u))return hJ(t,n,e);const{factory:_}=e;if(Rw(u))c.push(qz(_,u)),l.push(Uz(_,u,r));else{c.push(qz(_,u.head)),l.push(Uz(_,u.head,r));for(const e of u.templateSpans)c.push(qz(_,e.literal)),l.push(Uz(_,e.literal,r)),s.push(gn.checkDefined(sJ(e.expression,n,Qu)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(_.createArrayLiteralExpression(c),_.createArrayLiteralExpression(l));if(XI(r)){const e=_.createUniqueName("templateObject");i(e),s[0]=_.createLogicalOr(e,_.createAssignment(e,d))}else s[0]=d;return _.createCallExpression(a,void 0,s)}function qz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function Uz(e,t,n){let r=t.rawText;if(void 0===r){gn.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Xd(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),fI(e.createStringLiteral(r),t)}function Vz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=DS(c),u=wS(c),_=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Gz(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v;e.onEmitNode=function(e,t,n){const r=b,i=m;QN(t)&&(m=t),2&x&&function(e){return 267===hc(e).kind}(t)&&(b|=2),8&x&&function(e){return 266===hc(e).kind}(t)&&(b|=8),p(e,t,n),b=r,m=i},e.onSubstituteNode=function(e,n){return n=f(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return ke(e)||e}(e);case 211:case 212:return function(e){return Te(e)}(e)}return e}(n):GN(n)?function(e){if(2&x){const n=e.name,r=ke(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return fI(t.createPropertyAssignment(n,i),e)}return fI(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(211),e.enableSubstitution(212);let b,x=0;return function(e){return 308===e.kind?function(e){return t.createBundle(e.sourceFiles.map(S))}(e):S(e)};function S(t){if(t.isDeclarationFile)return t;m=t;const n=k(t,M);return ID(n,e.readEmitHelpers()),m=void 0,n}function k(e,t){const n=y,r=v;!function(e){switch(e.kind){case 307:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(Lv(e,128))break;e.name?re(e):gn.assert(263===e.kind||Lv(e,2048))}}(e);const i=t(e);return y!==n&&(v=r),y=n,i}function T(e){return k(e,C)}function C(e){return 1&e.transformFlags?j(e):e}function D(e){return k(e,w)}function w(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){if(function(e){const t=bc(e);if(t===e||SN(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 272:if(gn.assertNode(t,_N),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 271:if(gn.assertNode(t,uN),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(su(e.moduleReference)||su(t.moduleReference)))return!0;break;case 278:if(gn.assertNode(t,kN),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?hJ(n,T,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=sJ(e.importClause,ce,dN);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 271:return fe(n);case 277:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?hJ(t,T,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||vN(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const n=!!c.verbatimModuleSyntax,r=sJ(e.exportClause,(e=>function(e,n){return vN(e)?function(e){return t.updateNamespaceExport(e,gn.checkDefined(sJ(e.name,T,Xw)))}(e):function(e,n){const r=cJ(e.elements,pe,CN);return n||X(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Il);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:gn.fail("Unhandled ellided statement")}}(n);default:return C(n)}}function E(e){return k(e,F)}function F(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||Lv(e,32)?j(e):e}function N(n){return r=>k(r,(r=>function(n,r){switch(n.kind){case 176:return function(n){if(W(n))return t.updateConstructorDeclaration(n,void 0,dJ(n.parameters,T,e),function(n,r){const a=r&&P(r.parameters,(e=>ac(e,r)));if(!X(a))return fJ(n,T,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,T),l=rz(n.statements,c),u=q(a,G);l.length?H(s,n.statements,c,l,0,u):(de(s,u),de(s,cJ(n.statements,T,b_,c))),s=t.mergeLexicalEnvironment(s,o());const _=t.createBlock(fI(t.createNodeArray(s),n.statements),!0);return fI(_,n),sD(_,n),_}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||Lv(e,64);if(r&&(!_||!qv(e)))return;let i=yu(n)?cJ(e.modifiers,r?L:T,ku):cJ(e.modifiers,I,ku);return i=$(i,e,n),r?t.updatePropertyDeclaration(e,Y(i,t.createModifiersFromModifierFlags(128)),gn.checkDefined(sJ(e.name,T,cu)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,V(e),void 0,void 0,sJ(e.initializer,T,Qu))}(n,r);case 177:return Z(n,r);case 178:return ee(n,r);case 174:return K(n,r);case 175:return hJ(n,T,e);case 240:return n;case 181:return;default:return gn.failBadSyntaxKind(n)}}(r,n)))}function A(e){return t=>k(t,(t=>function(e,t){switch(e.kind){case 303:case 304:case 305:return T(e);case 177:return Z(e,t);case 178:return ee(e,t);case 174:return K(e,t);default:return gn.failBadSyntaxKind(e)}}(t,e)))}function I(e){return mE(e)?void 0:T(e)}function L(e){return au(e)?void 0:T(e)}function R(e){if(!mE(e)&&!(28895&tb(e.kind)||g&&95===e.kind))return e}function j(n){if(b_(n)&&Lv(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){const r=function(e){let t=0;X(iz(e,!0,!0))&&(t|=1);const n=Ch(e);return n&&106!==hA(n.expression).kind&&(t|=64),km(_,e)&&(t|=2),Sm(_,e)&&(t|=4),me(e)?t|=8:function(e){return ge(e)&&Lv(e,2048)}(e)?t|=32:he(e)&&(t|=16),t}(n),i=l<=1&&!!(7&r);if(!function(e){return qv(e)||X(e.typeParameters)||X(e.heritageClauses,B)||X(e.members,B)}(n)&&!km(_,n)&&!me(n))return t.updateClassDeclaration(n,cJ(n.modifiers,R,au),n.name,void 0,cJ(n.heritageClauses,T,VN),cJ(n.members,N(n),hu));i&&e.startLexicalEnvironment();const o=i||8&r;let a=cJ(n.modifiers,o?L:T,ku);2&r&&(a=z(a,n));const s=o&&!n.name||4&r||1&r,c=s?n.name??t.getGeneratedNameForNode(n):n.name,u=t.updateClassDeclaration(n,a,c,void 0,cJ(n.heritageClauses,T,VN),J(n));let d,p=op(n);if(1&r&&(p|=64),_D(u,p),i){const r=[u],i=Vb(is(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);PT(a,i.end),_D(a,3072);const s=t.createReturnStatement(a);NT(s,i.pos),_D(s,3840),r.push(s),Jd(r,e.endLexicalEnvironment());const c=t.createImmediatelyInvokedArrowFunction(r);pD(c,1);const l=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,c);sD(l,n);const _=t.createVariableStatement(void 0,t.createVariableDeclarationList([l],1));sD(_,n),SD(_,n),gD(_,qb(n)),vA(_),d=_}else d=u;if(o){if(8&r)return[d,ye(n)];if(32&r)return[d,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[d,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return d}(n);case 231:return function(e){let n=cJ(e.modifiers,L,ku);return km(_,e)&&(n=z(n,e)),t.updateClassExpression(e,n,e.name,void 0,cJ(e.heritageClauses,T,VN),J(e))}(n);case 298:return function(t){if(119!==t.token)return hJ(t,T,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,gn.checkDefined(sJ(e.expression,T,Vu)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,cJ(e.properties,A(e),Du))}(n);case 176:case 172:case 174:case 177:case 178:case 175:return gn.fail("Class and object literal elements must be visited with their respective visitors");case 262:return function(n){if(!W(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,cJ(n.modifiers,R,au),n.asteriskToken,n.name,void 0,dJ(n.parameters,T,e),void 0,fJ(n.body,T,e)||t.createBlock([]));if(me(n)){const e=[r];return function(e,t){e.push(ye(t))}(e,n),e}return r}(n);case 218:return function(n){if(!W(n))return t.createOmittedExpression();const r=t.updateFunctionExpression(n,cJ(n.modifiers,R,au),n.asteriskToken,n.name,void 0,dJ(n.parameters,T,e),void 0,fJ(n.body,T,e)||t.createBlock([]));return r}(n);case 219:return function(n){const r=t.updateArrowFunction(n,cJ(n.modifiers,R,au),void 0,dJ(n.parameters,T,e),void 0,n.equalsGreaterThanToken,fJ(n.body,T,e));return r}(n);case 169:return function(e){if(mv(e))return;const n=t.updateParameterDeclaration(e,cJ(e.modifiers,(e=>mE(e)?T(e):void 0),ku),e.dotDotDotToken,gn.checkDefined(sJ(e.name,T,lu)),void 0,void 0,sJ(e.initializer,T,Qu));return n!==e&&(SD(n,e),fI(n,Ub(e)),gD(n,Ub(e)),_D(n.name,64)),n}(n);case 217:return function(n){const r=hA(n.expression,-23);if(Yu(r)||DF(r)){const e=sJ(n.expression,T,Qu);return gn.assert(e),t.createPartiallyEmittedExpression(e,n)}return hJ(n,T,e)}(n);case 216:case 234:return function(e){const n=sJ(e.expression,T,Qu);return gn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=sJ(e.expression,T,Qu);return gn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,gn.checkDefined(sJ(e.expression,T,Qu)),void 0,cJ(e.arguments,T,Qu))}(n);case 214:return function(e){return t.updateNewExpression(e,gn.checkDefined(sJ(e.expression,T,Qu)),void 0,cJ(e.arguments,T,Qu))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,gn.checkDefined(sJ(e.tag,T,Qu)),void 0,gn.checkDefined(sJ(e.template,T,Uu)))}(n);case 235:return function(e){const n=sJ(e.expression,T,Vu);return gn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!cf(e)||jS(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=oe(n,e);a&&(4===u&&y===m||(i|=1024));const s=xe(e),l=Se(e),_=me(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(_,t.createAssignment(_,t.createObjectLiteralExpression()));if(me(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=O(e.members,ne);return Jd(a,o()),de(a,s),h=i,t.createBlock(fI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));return sD(p,e),a&&(TD(p,void 0),wD(p,void 0)),fI(p,e),dD(p,i),n.push(p),n}(n);case 243:return function(n){if(me(n)){const e=sx(n.declarationList);if(0===e.length)return;return fI(t.createExpressionStatement(t.inlineExpressions(O(e,te))),n)}return hJ(n,T,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,gn.checkDefined(sJ(e.name,T,lu)),void 0,void 0,sJ(e.initializer,T,Qu));return e.type&&JD(n.name,e.type),n}(n);case 267:return ae(n);case 271:return fe(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,gn.checkDefined(sJ(e.tagName,T,k_)),void 0,gn.checkDefined(sJ(e.attributes,T,BN)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,gn.checkDefined(sJ(e.tagName,T,k_)),void 0,gn.checkDefined(sJ(e.attributes,T,BN)))}(n);default:return hJ(n,T,e)}}function M(n){const r=HS(c,"alwaysStrict")&&!(XI(n)&&u>=5)&&!sf(n);return t.updateSourceFile(n,_J(n.statements,D,e,0,r))}function B(e){return!!(8192&e.transformFlags)}function J(e){const n=cJ(e.members,N(e),hu);let r;const i=_v(e),o=i&&P(i.parameters,(e=>ac(e,i)));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);sD(n,e),r=le(r,n)}return r?(r=de(r,n),fI(t.createNodeArray(r),e.members)):n}function z(e,n){const r=U(n,n);if(X(r)){const n=[];de(n,pn(e,tI)),de(n,P(e,mE)),de(n,r),de(n,P(fn(e,tI),au)),e=fI(t.createNodeArray(n),e)}return e}function $(e,n,r){if(yu(r)&&Tm(_,n,r)){const i=U(n,r);if(X(i)){const n=[];de(n,P(e,mE)),de(n,i),de(n,P(e,au)),e=fI(t.createNodeArray(n),e)}}return e}function U(e,r){if(_)return function(e,r){if(d){let i;if(function(e){const t=e.kind;return 174===t||177===t||178===t||172===t}(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=le(i,t.createDecorator(o))}if(function(e){switch(e.kind){case 263:case 231:return void 0!==_v(e);case 174:case 177:case 178:return!0}return!1}(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=le(i,t.createDecorator(o))}if(function(e){return 174===e.kind}(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=le(i,t.createDecorator(o))}return i}}(e,r)}function V(e){const n=e.name;if(_&&dE(n)&&qv(e)){const e=sJ(n.expression,T,Qu);if(gn.assert(e),!YJ(Nl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return gn.checkDefined(sJ(n,T,cu))}function W(e){return!Id(e.body)}function H(e,n,r,i,o,a){const s=i[o],c=n[s];if(de(e,cJ(n,T,b_,r,s-r)),QF(c)){const n=[];H(n,c.tryBlock.statements,0,i,o+1,a),fI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),sJ(c.catchClause,T,WN),sJ(c.finallyBlock,T,OF)))}else de(e,cJ(n,T,b_,s,1)),de(e,a);de(e,cJ(n,T,b_,s+1))}function G(e){const n=e.name;if(!Xw(n))return;const r=LT(fI(t.cloneNode(n),n),n.parent);_D(r,3168);const i=LT(fI(t.cloneNode(n),n),n.parent);return _D(i,3072),vA(uD(fI(sD(t.createExpressionStatement(t.createAssignment(fI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),$b(e,-1))))}function K(n,r){if(!(1&n.transformFlags))return n;if(!W(n))return;let i=yu(r)?cJ(n.modifiers,T,ku):cJ(n.modifiers,I,ku);return i=$(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,V(n),void 0,void 0,dJ(n.parameters,T,e),void 0,fJ(n.body,T,e))}function Q(e){return!(Id(e.body)&&Lv(e,64))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=yu(r)?cJ(n.modifiers,T,ku):cJ(n.modifiers,I,ku);return i=$(i,n,r),t.updateGetAccessorDeclaration(n,i,V(n),dJ(n.parameters,T,e),void 0,fJ(n.body,T,e)||t.createBlock([]))}function ee(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=yu(r)?cJ(n.modifiers,T,ku):cJ(n.modifiers,I,ku);return i=$(i,n,r),t.updateSetAccessorDeclaration(n,i,V(n),dJ(n.parameters,T,e),fJ(n.body,T,e)||t.createBlock([]))}function te(n){const r=n.name;return Fu(r)?xz(n,T,e,0,!1,ve):fI(t.createAssignment(be(r),gn.checkDefined(sJ(n.initializer,T,Qu))),n)}function ne(n){const r=function(e){const n=e.name;return Qw(n)?t.createIdentifier(""):dE(n)?n.expression:Xw(n)?t.createStringLiteral(kc(n)):t.cloneNode(n)}(n),i=s.getEnumMemberValue(n),o=function(n,r){return void 0!==r?"string"==typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(8&x||(x|=8,e.enableSubstitution(80)),n.initializer?gn.checkDefined(sJ(n.initializer,T,Qu)):t.createVoidZero())}(n,null==i?void 0:i.value),a=t.createAssignment(t.createElementAccessExpression(h,r),o),c="string"==typeof(null==i?void 0:i.value)||(null==i?void 0:i.isSyntacticallyString)?a:t.createAssignment(t.createElementAccessExpression(h,a),r);return fI(t.createExpressionStatement(fI(c,n)),n)}function re(e){v||(v=new Map);const t=ie(e);v.has(t)||v.set(t,e)}function ie(e){return gn.assertNode(e.name,Xw),e.name.escapedText}function oe(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=307===y.kind?0:1,o=t.createVariableStatement(cJ(n.modifiers,R,au),t.createVariableDeclarationList([r],i));return sD(r,n),TD(r,void 0),wD(r,void 0),sD(o,n),re(n),!!function(e){if(v){const t=ie(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?gD(o.declarationList,n):gD(o,n),SD(o,n),dD(o,2048),e.push(o),!0)}function ae(n){if(!function(e){const t=bc(e,aN);return!t||ZB(t,jS(c))}(n))return t.createNotEmittedStatement(n);gn.assertNode(n.name,Xw,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));const i=[];let a=4;const s=oe(i,n);s&&(4===u&&y===m||(a|=1024));const l=xe(n),_=Se(n),d=me(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(me(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,u;if(r(),e.body)if(268===e.body.kind)k(e.body,(e=>de(c,cJ(e.statements,E,b_)))),l=e.body.statements,u=e.body;else{const t=ae(e.body);t&&(nt(t)?de(c,t):c.push(t)),l=$b(se(e).body.statements,-1)}Jd(c,o()),h=i,g=a,v=s;const _=t.createBlock(fI(t.createNodeArray(c),l),!0);return fI(_,u),e.body&&268===e.body.kind||_D(_,3072|op(_)),_}(n,_)),void 0,[p]));return sD(f,n),s&&(TD(f,void 0),wD(f,void 0)),fI(f,n),dD(f,a),i.push(f),i}function se(e){if(267===e.body.kind)return se(e.body)||e.body}function ce(e){gn.assert(!e.isTypeOnly);const n=Ce(e)?e.name:void 0,r=sJ(e.namedBindings,ue,__);return n||r?t.updateImportClause(e,!1,n,r):void 0}function ue(e){if(274===e.kind)return Ce(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=cJ(e.elements,_e,xN);return n||X(r)?t.updateNamedImports(e,r):void 0}}function _e(e){return!e.isTypeOnly&&Ce(e)?e:void 0}function pe(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function fe(n){if(n.isTypeOnly)return;if(Pm(n)){if(!Ce(n))return;return hJ(n,T,e)}if(!function(e){return Ce(e)||!XI(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=nA(t,n.moduleReference);return _D(r,7168),he(n)||!me(n)?sD(fI(t.createVariableStatement(cJ(n.modifiers,R,au),t.createVariableDeclarationList([sD(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):sD((i=n.name,o=r,a=n,fI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function me(e){return void 0!==g&&Lv(e,32)}function ge(e){return void 0===g&&Lv(e,32)}function he(e){return ge(e)&&!Lv(e,2048)}function ye(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));gD(n,Jb(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return gD(r,Jb(-1,e.end)),r}function ve(e,n,r){return fI(t.createAssignment(be(e),n),r)}function be(e){return t.getNamespaceMemberName(h,e,!1,!0)}function xe(e){const n=t.getGeneratedNameForNode(e);return gD(n,e.name),n}function Se(e){return t.getGeneratedNameForNode(e)}function ke(e){if(x&b&&!Yl(e)&&!sA(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&307!==n.kind&&(2&b&&267===n.kind||8&b&&266===n.kind))return fI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function Te(e){const n=function(e){if(!NS(c))return nF(e)||rF(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){PD(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!c.removeComments){const t=hc(e,Px);ED(i,3,` ${r=np(t),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}function Ce(e){return c.verbatimModuleSyntax||jm(e)||s.isReferencedAliasDeclaration(e)}}function Wz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),u=DS(l),_=zS(l),d=!!l.experimentalDecorators,p=!_,f=_&&u<9,m=p||f,g=u<9,h=u<99?-1:_?0:3,y=u<9,v=y&&u>=2,b=m||g||-1===h,x=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=x(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&F&&c.hasNodeCheckFlag(e,536870912)){const n=c.getReferencedValueDeclaration(e);if(n){const r=k[n.id];if(r){const n=t.cloneNode(r);return gD(n,e),SD(n,e),n}}}}(e)||e}(e);case 110:return function(e){if(2&F&&(null==w?void 0:w.data)&&!A.has(e)){const{facts:n,classConstructor:r,classThis:i}=w.data,o=R?i??r:r;if(o)return fI(sD(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n):n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=hc(t),i=N.get(r);if(i){const o=w,a=j;return w=i,j=R,R=!(bE(r)&&32&ap(r)),S(e,t,n),R=j,j=a,void(w=o)}switch(t.kind){case 218:if(uF(r)||524288&op(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{const r=w,i=j;return w=void 0,j=R,R=!1,S(e,t,n),R=j,j=i,void(w=r)}case 167:{const r=w,i=R;return w=null==w?void 0:w.previous,R=j,S(e,t,n),R=i,void(w=r)}}S(e,t,n)};let k,C,D,w,E=!1,F=0;const N=new Map,A=new Set;let I,L,R=!1,j=!1;return $J(e,(function(t){if(t.isDeclarationFile)return t;if(w=void 0,E=!!(32&ap(t)),!b&&!E)return t;const n=hJ(t,B,e);return ID(n,e.readEmitHelpers()),n}));function M(e){return 129===e.kind?ne()?void 0:e:at(e,au)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 263:return function(e){return ye(e,ve)}(n);case 231:return function(e){return ye(e,be)}(n);case 175:case 172:return gn.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){return ny(t,pe)&&(t=Jz(e,t)),hJ(t,B,e)}(n);case 243:return function(t){const n=D;D=[];const r=hJ(t,B,e),i=X(D)?[r,...D]:r;return D=n,i}(n);case 277:return function(t){return ny(t,pe)&&(t=Jz(e,t,!0,t.isExportEquals?"":"default")),hJ(t,B,e)}(n);case 81:return function(e){return g?b_(e.parent)?e:sD(t.createIdentifier(""),e):e}(n);case 211:return function(n){if(Qw(n.name)){const e=Me(n.name);if(e)return fI(sD(oe(e,n.expression),n),n)}if(v&&L&&pm(n)&&Xw(n.name)&&Hz(L)&&(null==w?void 0:w.data)){const{classConstructor:e,superClassReference:r,facts:i}=w.data;if(1&i)return Fe(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return sD(i,n.expression),fI(i,n.expression),i}}return hJ(n,B,e)}(n);case 212:return function(n){if(v&&L&&pm(n)&&Hz(L)&&(null==w?void 0:w.data)){const{classConstructor:e,superClassReference:r,facts:i}=w.data;if(1&i)return Fe(n);if(e&&r){const i=t.createReflectGetCall(r,sJ(n.argumentExpression,B,Qu),e);return sD(i,n.expression),fI(i,n.expression),i}}return hJ(n,B,e)}(n);case 224:case 225:return ce(n,!1);case 226:return fe(n,!1);case 217:return me(n,!1);case 213:return function(n){var i;if(nu(n.expression)&&Me(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,u);return kl(n)?t.updateCallChain(n,t.createPropertyAccessChain(sJ(i,B,Qu),n.questionDotToken,"call"),void 0,void 0,[sJ(e,B,Qu),...cJ(n.arguments,B,Qu)]):t.updateCallExpression(n,t.createPropertyAccessExpression(sJ(i,B,Qu),"call"),void 0,[sJ(e,B,Qu),...cJ(n.arguments,B,Qu)])}if(v&&L&&pm(n.expression)&&Hz(L)&&(null==(i=null==w?void 0:w.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(sJ(n.expression,B,Qu),w.data.classConstructor,cJ(n.arguments,B,Qu));return sD(e,n),fI(e,n),e}return hJ(n,B,e)}(n);case 244:return function(e){return t.updateExpressionStatement(e,sJ(e.expression,z,Qu))}(n);case 215:return function(n){var i;if(nu(n.tag)&&Me(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,u);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(sJ(i,B,Qu),"bind"),void 0,[sJ(e,B,Qu)]),void 0,sJ(n.template,B,Uu))}if(v&&L&&pm(n.tag)&&Hz(L)&&(null==(i=null==w?void 0:w.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(sJ(n.tag,B,Qu),w.data.classConstructor,[]);return sD(e,n),fI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,sJ(n.template,B,Uu))}return hJ(n,B,e)}(n);case 248:return function(n){return t.updateForStatement(n,sJ(n.initializer,z,s_),sJ(n.condition,B,Qu),sJ(n.incrementor,z,Qu),mJ(n.statement,B,e))}(n);case 110:return function(e){if(y&&L&&bE(L)&&(null==w?void 0:w.data)){const{classThis:t,classConstructor:n}=w.data;return t??n??e}return e}(n);case 262:case 218:return Y(void 0,J,n);case 176:case 174:case 177:case 178:return Y(n,J,n);default:return J(n)}}function J(t){return hJ(t,B,e)}function z(e){switch(e.kind){case 224:case 225:return ce(e,!0);case 226:return fe(e,!0);case 356:return function(e){const n=gJ(e.elements,z);return t.updateCommaListExpression(e,n)}(e);case 217:return me(e,!0);default:return B(e)}}function $(n){switch(n.kind){case 298:return hJ(n,$,e);case 233:return function(n){var i;if(4&((null==(i=null==w?void 0:w.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return Ne().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,sJ(n.expression,B,Qu)),void 0)}return hJ(n,B,e)}(n);default:return B(n)}}function q(e){switch(e.kind){case 210:case 209:return qe(e);default:return B(e)}}function U(e){switch(e.kind){case 176:return Y(e,G,e);case 177:case 178:case 174:return Y(e,Q,e);case 172:return Y(e,re,e);case 175:return Y(e,xe,e);case 167:return H(e);case 240:return e;default:return ku(e)?M(e):B(e)}}function V(e){return 167===e.kind?H(e):B(e)}function W(e){switch(e.kind){case 172:return te(e);case 177:case 178:return U(e);default:gn.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function H(e){const n=sJ(e.expression,B,Qu);return t.updateComputedPropertyName(e,function(e){return X(C)&&(cF(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}(n))}function G(e){return I?ke(e,I):J(e)}function K(e){return!!g||!!(jv(e)&&32&ap(e))}function Q(n){if(gn.assert(!qv(n)),!tu(n)||!K(n))return hJ(n,U,e);const r=Me(n.name);if(gn.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){gn.assert(Qw(e.name));const t=Me(e.name);if(gn.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(O_(e))return t.getterName;if(I_(e))return t.setterName}}(n);i&&Ae().push(t.createAssignment(i,t.createFunctionExpression(P(n.modifiers,(e=>au(e)&&!iE(e)&&!sE(e))),n.asteriskToken,i,void 0,dJ(n.parameters,B,e),void 0,fJ(n.body,B,e))))}function Y(e,t,n){if(e!==L){const r=L;L=e;const i=t(n);return L=r,i}return t(n)}function Z(e){const n=xD(e),i=mD(e),o=e.name;let a=o,s=o;if(dE(o)&&!YJ(o.expression)){const e=uI(o);if(e)a=t.updateComputedPropertyName(o,sJ(o.expression,B,Qu)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);gD(e,o.expression);const n=sJ(o.expression,B,Qu),i=t.createAssignment(e,n);gD(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=cJ(e.modifiers,M,au),l=sI(t,e,c,e.initializer);sD(l,e),_D(l,3072),gD(l,i);const u=Rv(e)?function(){const e=Ne();return e.classThis??e.classConstructor??(null==I?void 0:I.name)}()??t.createThis():t.createThis(),_=cI(t,e,c,a,u);sD(_,e),SD(_,n),gD(_,i);const d=t.createModifiersFromModifierFlags(eb(c)),p=lI(t,e,d,s,u);return sD(p,e),_D(p,3072),gD(p,i),lJ([l,_,p],W,hu)}function ee(e){if(!m||bu(e))return t.updatePropertyDeclaration(e,cJ(e.modifiers,M,au),sJ(e.name,V,cu),void 0,void 0,sJ(e.initializer,B,Qu));{const n=function(e,n){if(dE(e)){const i=uI(e),o=sJ(e.expression,B,Qu),a=Nl(o),l=YJ(a);if(!(i||_b(a)&&Yl(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||Xw(a)?void 0:o}}(e.name,!!e.initializer||_);if(n&&Ae().push(...dI(n)),Rv(e)&&!g){const n=De(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return sD(r,e),SD(r,e),SD(n,{pos:-1,end:-1}),TD(n,void 0),wD(n,void 0),r}}}}function te(n){return gn.assert(!qv(n),"Decorators should already have been transformed and elided."),tu(n)?function(n){if(!K(n))return p&&!Rv(n)&&(null==w?void 0:w.data)&&16&w.data.facts?t.updatePropertyDeclaration(n,cJ(n.modifiers,B,ku),n.name,void 0,void 0,void 0):(ny(n,pe)&&(n=Jz(e,n)),t.updatePropertyDeclaration(n,cJ(n.modifiers,M,au),sJ(n.name,V,cu),void 0,void 0,sJ(n.initializer,B,Qu)));{const e=Me(n.name);if(gn.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=De(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):ee(n)}function ne(){return-1===h||3===h&&!!(null==w?void 0:w.data)&&!!(16&w.data.facts)}function re(e){return bu(e)&&(ne()||jv(e)&&32&ap(e))?Z(e):te(e)}function ie(e){if(L&&jv(L)&&vu(L)&&bu(hc(L))){const t=hA(e);110===t.kind&&A.add(t)}}function oe(e,t){return ie(t=sJ(t,B,Qu)),ae(e,t)}function ae(e,t){switch(SD(t,$b(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return gn.fail("Access helpers should not be created for untransformed private elements");default:gn.assertNever(e,"Unknown private element type")}}function ce(n,i){if(46===n.operator||47===n.operator){const e=ph(n.operand);if(nu(e)){let o;if(o=Me(e.name)){const a=sJ(e.expression,B,Qu);ie(a);const{readExpression:s,initializeExpression:c}=ue(a);let l=oe(o,s);const u=mF(n)||i?void 0:t.createTempVariable(r);return l=oA(t,n,l,r,u),l=ge(o,c||s,l,64),sD(l,n),fI(l,n),u&&(l=t.createComma(l,u),fI(l,n)),l}}else if(v&&L&&pm(e)&&Hz(L)&&(null==w?void 0:w.data)){const{classConstructor:o,superClassReference:a,facts:s}=w.data;if(1&s){const r=Fe(e);return mF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(nF(e)?Xw(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):YJ(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,sJ(e.argumentExpression,B,Qu))),s&&c){let l=t.createReflectGetCall(a,c,o);fI(l,e);const u=i?void 0:t.createTempVariable(r);return l=oA(t,n,l,r,u),l=t.createReflectSetCall(a,s,l,o),sD(l,n),fI(l,n),u&&(l=t.createComma(l,u),fI(l,n)),l}}}}return hJ(n,B,e)}function ue(e){const n=sy(e)?e:t.cloneNode(e);if(110===e.kind&&A.has(e)&&A.add(n),YJ(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function _e(e){if(w&&N.set(hc(e),w),g){if(Nz(e)){const t=sJ(e.body.statements[0].expression,B,Qu);if(_b(t,!0)&&t.left===t.right)return;return t}if(Lz(e))return sJ(e.body.statements[0].expression,B,Qu);o();let n=Y(e,(e=>cJ(e,B,b_)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return sD(ph(r.expression),e),dD(ph(r.expression),4),sD(r,e),fI(r,e),r}}function pe(e){if(SF(e)&&!e.name){const t=az(e);return!X(t,Lz)&&((g||!!ap(e))&&X(t,(e=>bE(e)||tu(e)||m&&sz(e))))}return!1}function fe(i,o){if(db(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,sJ(i.left,q,Qu),i.operatorToken,sJ(i.right,B,Qu));const n=X(C)?t.inlineExpressions(se([...C,i])):i;return C=e,n}if(_b(i)){ny(i,pe)&&(i=Jz(e,i),gn.assertNode(i,_b));const n=hA(i.left,9);if(nu(n)){const e=Me(n.name);if(e)return fI(sD(ge(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&L&&pm(i.left)&&Hz(L)&&(null==w?void 0:w.data)){const{classConstructor:e,superClassReference:n,facts:a}=w.data;if(1&a)return t.updateBinaryExpression(i,Fe(i.left),i.operatorToken,sJ(i.right,B,Qu));if(e&&n){let a=rF(i.left)?sJ(i.left.argumentExpression,B,Qu):Xw(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=sJ(i.right,B,Qu);if(ZJ(i.operatorToken.kind)){let o=a;YJ(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);sD(c,i.left),fI(c,i.left),s=t.createBinaryExpression(c,ez(i.operatorToken.kind),s),fI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),fI(c,i)),s=t.createReflectSetCall(n,a,s,e),sD(s,i),fI(s,i),c&&(s=t.createComma(s,c),fI(s,i)),s}}}}return function(e){return Qw(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=Me(t.left);if(r){const e=sJ(t.right,B,Qu);return sD(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return hJ(t,B,e)}(i):hJ(i,B,e)}function me(e,n){const r=n?z:B,i=sJ(e.expression,r,Qu);return t.updateParenthesizedExpression(e,i)}function ge(e,r,i,o){if(r=sJ(r,B,Qu),i=sJ(i,B,Qu),ie(r),ZJ(o)){const{readExpression:n,initializeExpression:a}=ue(r);r=a||n,i=t.createBinaryExpression(ae(e,n),ez(o),i)}switch(SD(r,$b(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return gn.fail("Access helpers should not be created for untransformed private elements");default:gn.assertNever(e,"Unknown private element type")}}function he(e){return P(e.members,cz)}function ye(n,r){var i;const o=I,a=C,s=w;I=n,C=void 0,w={previous:w,data:void 0};const l=32&ap(n);if(g||l){const e=Ac(n);if(e&&Xw(e))Pe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&Iw(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&Xw(n.emitNode.assignedName.textSourceNode))Pe().data.className=n.emitNode.assignedName.textSourceNode;else if(Ss(n.emitNode.assignedName.text,u)){const e=t.createIdentifier(n.emitNode.assignedName.text);Pe().data.className=e}}if(g){const e=he(n);X(e)&&(Pe().data.weakSetName=Re("instances",e[0].name))}const _=function(e){var t;let n=0;const r=hc(e);yu(r)&&km(d,r)&&(n|=1),g&&(Pz(e)||Rz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)Rv(r)?(r.name&&(Qw(r.name)||bu(r))&&g?n|=2:!bu(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(hE(r)||bE(r))&&(y&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&r.transformFlags&&(1&n||(n|=6)))):Bv(hc(r))||(bu(r)?(s=!0,a||(a=tu(r))):tu(r)?(a=!0,c.hasNodeCheckFlag(r,262144)&&(n|=2)):hE(r)&&(i=!0,o||(o=!!r.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);_&&(Ne().facts=_),8&_&&(2&F||(F|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167)));const m=r(n,_);return w=null==w?void 0:w.previous,gn.assert(w===s),I=o,C=a,m}function ve(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))Ne().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);Ne().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(Ne().classThis=e.emitNode.classThis);const s=c.hasNodeCheckFlag(e,262144),l=Lv(e,32),u=Lv(e,2048);let _=cJ(e.modifiers,M,au);const d=cJ(e.heritageClauses,$,VN),{members:f,prologue:m}=Se(e),h=[];if(a&&Ae().unshift(a),X(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&ap(e)){const n=az(e);X(n)&&Ce(h,n,t.getInternalName(e))}h.length>0&&l&&u&&(_=cJ(_,(e=>tI(e)?void 0:e),au),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=Ne().classConstructor;s&&y&&(Ee(),k[BJ(e)]=y);const v=t.updateClassDeclaration(e,_,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function be(e,n){var i,o,a;const l=!!(1&n),u=az(e),_=c.hasNodeCheckFlag(e,262144),d=c.hasNodeCheckFlag(e,32768);let p;function f(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return Ne().classConstructor=e.emitNode.classThis;const i=t.createTempVariable(d?s:r,!0);return Ne().classConstructor=t.cloneNode(i),i}(null==(i=e.emitNode)?void 0:i.classThis)&&(Ne().classThis=e.emitNode.classThis),2&n&&(p??(p=f()));const h=cJ(e.modifiers,M,au),y=cJ(e.heritageClauses,$,VN),{members:v,prologue:b}=Se(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),S=[];if(b&&S.push(b),(g||32&ap(e))&&X(u,(e=>bE(e)||tu(e)||m&&sz(e)))||X(C))if(l)gn.assertIsDefined(D,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),X(C)&&de(D,O(C,t.createExpressionStatement)),X(u)&&Ce(D,u,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),p?S.push(t.createAssignment(p,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?S.push(t.createAssignment(e.emitNode.classThis,x)):S.push(x);else{if(p??(p=f()),_){Ee();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,k[BJ(e)]=n}S.push(t.createAssignment(p,x)),de(S,C),de(S,function(e,t){const n=[];for(const r of e){const e=bE(r)?Y(r,_e,r):Y(r,(()=>we(r,t)),void 0);e&&(vA(e),sD(e,r),dD(e,3072&op(r)),gD(e,Ub(r)),SD(e,r),n.push(e))}return n}(u,p)),S.push(t.cloneNode(p))}else S.push(x);return S.length>1&&(dD(x,131072),S.forEach(vA)),t.inlineExpressions(S)}function xe(t){if(!g)return hJ(t,B,e)}function Se(e){const n=!!(32&ap(e));if(g||E){for(const t of e.members)tu(t)&&(K(t)?Le(t,t.name,Ie):mz(Pe(),t.name,{kind:"untransformed"}));if(g&&X(he(e))&&function(){const{weakSetName:e}=Pe().data;gn.assert(e,"weakSetName should be set in private identifier environment"),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ne())for(const r of e.members)if(bu(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&jv(r)?Le(r,e,Oe):mz(Pe(),e,{kind:"untransformed"})}}let i,o,a,s=cJ(e.members,U,hu);if(X(s,xE)||(i=ke(void 0,e)),!g&&X(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=T(s,Nz),o=T(s,Lz);n=le(n,r),n=le(n,o),n=le(n,i),n=le(n,a),n=de(n,r||o?P(s,(e=>e!==r&&e!==o)):s),s=fI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function ke(n,r){if(n=sJ(n,B,xE),!((null==w?void 0:w.data)&&16&w.data.facts))return n;const o=Ch(r),s=!(!o||106===hA(o.expression).kind),c=dJ(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=iz(n,!1,!1);let l=c;_||(l=P(l,(e=>!!e.initializer||Qw(e.name)||zv(e))));const u=he(n),d=X(l)||X(u);if(!r&&!d)return fJ(void 0,B,e);a();const p=!r&&o;let f=0,m=[];const h=[],y=t.createThis();if(function(e,n,r){if(!g||!X(n))return;const{weakSetName:i}=Pe().data;gn.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(h,u,y),r){const e=P(c,(e=>ac(hc(e),r))),t=P(l,(e=>!ac(hc(e),r)));Ce(h,e,y),Ce(h,t,y)}else Ce(h,l,y);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,B);const e=rz(r.body.statements,f);if(e.length)Te(m,r.body.statements,f,e,0,h,r);else{for(;f=m.length?r.body.multiLine??m.length>0:m.length>0;return fI(t.createBlock(fI(t.createNodeArray(m),(null==(s=null==r?void 0:r.body)?void 0:s.statements)??n.members),v),null==r?void 0:r.body)}(r,n,s);return l?n?(gn.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):vA(sD(fI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function Te(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(de(e,cJ(n,B,b_,r,c-r)),r=c+1,QF(l)){const n=[];Te(n,l.tryBlock.statements,0,i,o+1,a,s),fI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),sJ(l.catchClause,B,WN),sJ(l.finallyBlock,B,OF)))}else{for(de(e,cJ(n,B,b_,c,1));rl(e,p,t),serializeTypeOfNode:(e,t,n)=>l(e,u,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,_,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function u(e,n){switch(e.kind){case 172:case 169:return p(e.type);case 178:case 177:return p(function(e,t){const n=bv(t.members,e);return n.setAccessor&&pv(n.setAccessor)||n.getAccessor&&kv(n.getAccessor)}(e,n));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function _(e,n){const r=yu(e)?_v(e):uu(e)&&Od(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=bv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;re.parent&&JE(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return gn.assertNever(i)}}(e);case 193:return m(e.types,!0);case 192:return m(e.types,!1);case 194:return m([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return p(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return p(e.type);default:return gn.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return gn.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return gn.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=dh(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(HE(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(Xw(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return Yl(e)?Yl(t):Xw(e)?Xw(t)&&e.escapedText===t.escapedText:nF(e)?nF(t)&&g(e.expression,t.expression)&&g(e.name,t.name):pF(e)?pF(t)&&Pw(e.expression)&&"0"===e.expression.text&&Pw(t.expression)&&"0"===t.expression.text:Iw(e)?Iw(t)&&e.text===t.text:dF(e)?dF(t)&&g(e.expression,t.expression):cF(e)?cF(t)&&g(e.expression,t.expression):yF(e)?yF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!hF(e)&&hF(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right)}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=LT(fI(yI.cloneNode(e),e),e.parent);return n.original=void 0,LT(n,bc(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return otI(e)||mE(e)?void 0:e),ku),f=Ub(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!Yl(n.name)?kc(n.name):"default");return c[BJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=cJ(o.heritageClauses,u,VN);let v=cJ(o.members,u,hu),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&X(v,(e=>hE(e)&&Lv(e,256)||bE(e)));x&&(v=fI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const S=t.createClassExpression(d,s&&Yl(s)?void 0:s,void 0,y,v);sD(S,o),fI(S,f);const k=m&&!x?t.createAssignment(m,S):S,T=t.createVariableDeclaration(h,void 0,void 0,k);sD(T,o);const C=t.createVariableDeclarationList([T],1),D=t.createVariableStatement(void 0,C);sD(D,o),fI(D,f),SD(D,o);const w=[D];if(de(w,b),function(e,r){const i=function(e){const r=uz(e,!0),i=g(r);if(!i)return;const o=c&&c[BJ(e)],s=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),l=n().createDecorateHelper(i,s),u=t.createAssignment(s,o?t.createAssignment(o,l):l);return _D(u,3072),gD(u,Ub(e)),u}(r);i&&e.push(sD(t.createExpressionStatement(i),r))}(w,o),l)if(_){const e=t.createExportDefault(h);w.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));w.push(e)}return w}(o,o.name):function(e,n){const r=cJ(e.modifiers,l,au),i=cJ(e.heritageClauses,u,VN);let o=cJ(e.members,u,hu),a=[];({members:o,decorationStatements:a}=p(e,o));const s=t.updateClassDeclaration(e,r,n,void 0,i,o);return de([s],a)}(o,o.name);return we(s)}(o);case 231:return function(e){return t.updateClassExpression(e,cJ(e.modifiers,l,au),e.name,void 0,cJ(e.heritageClauses,u,VN),cJ(e.members,u,hu))}(o);case 176:return function(e){return t.updateConstructorDeclaration(e,cJ(e.modifiers,l,au),cJ(e.parameters,u,fE),sJ(e.body,u,OF))}(o);case 174:return function(e){return f(t.updateMethodDeclaration(e,cJ(e.modifiers,l,au),e.asteriskToken,gn.checkDefined(sJ(e.name,u,cu)),void 0,void 0,cJ(e.parameters,u,fE),void 0,sJ(e.body,u,OF)),e)}(o);case 178:return function(e){return f(t.updateSetAccessorDeclaration(e,cJ(e.modifiers,l,au),gn.checkDefined(sJ(e.name,u,cu)),cJ(e.parameters,u,fE),sJ(e.body,u,OF)),e)}(o);case 177:return function(e){return f(t.updateGetAccessorDeclaration(e,cJ(e.modifiers,l,au),gn.checkDefined(sJ(e.name,u,cu)),cJ(e.parameters,u,fE),void 0,sJ(e.body,u,OF)),e)}(o);case 172:return function(e){if(!(33554432&e.flags||Lv(e,128)))return f(t.updatePropertyDeclaration(e,cJ(e.modifiers,l,au),gn.checkDefined(sJ(e.name,u,cu)),void 0,void 0,sJ(e.initializer,u,Qu)),e)}(o);case 169:return function(e){const n=t.updateParameterDeclaration(e,nI(t,e.modifiers),e.dotDotDotToken,gn.checkDefined(sJ(e.name,u,lu)),void 0,void 0,sJ(e.initializer,u,Qu));return n!==e&&(SD(n,e),fI(n,Ub(e)),gD(n,Ub(e)),_D(n.name,64)),n}(o);default:return hJ(o,u,e)}}function _(e){return!!(536870912&e.transformFlags)}function d(e){return X(e,_)}function p(e,n){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const t of e.members){if(!gI(t))continue;const n=_z(t,e,!0);if(X(null==n?void 0:n.decorators,_))return!0;if(X(null==n?void 0:n.parameters,d))return!0}return!1}(e)&&(n=fI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(SD(e,t),gD(e,Ub(t))),e}function m(e){return Nw(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=We(e.decorators,m),r=[];return de(r,O(t,v)),de(r,M(e.parameters,b)),de(r,O(n,v)),r}function h(e,n,r){de(e,O(function(e,t){const n=function(e,t){return P(e.members,(n=>{return i=t,xm(!0,r=n,e)&&i===Rv(r);var r,i}))}(e,t);let r;for(const t of n)r=le(r,y(e,t));return r}(n,r),(e=>t.createExpressionStatement(e))))}function y(e,r){const i=g(_z(r,e,!0));if(!i)return;const o=function(e,n){return Rv(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,n){const r=e.name;return Qw(r)?t.createIdentifier(""):dE(r)?n&&!YJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:Xw(r)?t.createStringLiteral(kc(r)):t.cloneNode(r)}(r,!Lv(r,128)),s=hE(r)&&!zv(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return _D(c,3072),gD(c,Ub(r)),c}function v(e){return gn.checkDefined(sJ(e.expression,u,Qu))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);fI(e,i.expression),_D(e,3072),r.push(e)}}return r}}function Xz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=DS(e.getCompilerOptions());let s,c,l,u,_,d;return $J(e,(function(t){s=void 0,d=!1;const n=hJ(t,b,e);return ID(n,e.readEmitHelpers()),d&&(fD(n,32),d=!1),n}));function p(){switch(c=void 0,l=void 0,u=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,u=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,u=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:_},_=void 0,p()}function m(){gn.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),_=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;gn.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(bE(e)||hE(e)&&jv(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;gn.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),gn.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,p()}function y(){gn.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},p()}function v(){gn.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!u&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 170:return gn.fail("Use `modifierVisitor` instead.");case 263:return function(n){if(E(n)){const r=[],i=hc(n,yu)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=Lv(n,32),s=Lv(n,2048);if(n.name||(n=Mz(e,n,o)),a&&s){const e=w(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);sD(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));sD(s,n),SD(s,xD(n)),gD(s,qb(n)),r.push(s)}else{const i=t.createExportDefault(e);sD(i,n),SD(i,xD(n)),gD(i,qb(n)),r.push(i)}}else{gn.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=w(n),i=a?e=>Yw(e)?void 0:S(e):S,o=cJ(n.modifiers,i,au),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);sD(c,n);const l=t.createVariableDeclarationList([c],1),u=t.createVariableStatement(o,l);if(sD(u,n),SD(u,xD(n)),r.push(u),a){const e=t.createExternalModuleExport(s);sD(e,n),r.push(e)}}return we(r)}{const e=cJ(n.modifiers,S,au),r=cJ(n.heritageClauses,b,VN);f(void 0);const i=cJ(n.members,k,hu);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 231:return function(e){if(E(e)){const t=w(e);return sD(t,e),t}{const n=cJ(e.modifiers,S,au),r=cJ(e.heritageClauses,b,VN);f(void 0);const i=cJ(e.members,k,hu);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 176:case 172:case 175:return gn.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){ny(n,I)&&(n=Jz(e,n,L(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,sJ(n.name,b,lu),void 0,void 0,sJ(n.initializer,b,Qu));return r!==n&&(SD(r,n),fI(r,Ub(n)),gD(r,Ub(n)),_D(r.name,64)),r}(n);case 226:return R(n,!1);case 303:case 260:case 208:return function(t){return ny(t,I)&&(t=Jz(e,t,L(t.initializer))),hJ(t,b,e)}(n);case 277:return function(t){return ny(t,I)&&(t=Jz(e,t,L(t.expression))),hJ(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 248:return function(n){return t.updateForStatement(n,sJ(n.initializer,T,s_),sJ(n.condition,b,Qu),sJ(n.incrementor,T,Qu),mJ(n.statement,b,e))}(n);case 244:return function(t){return hJ(t,T,e)}(n);case 356:return M(n,!1);case 217:return W(n,!1);case 355:return function(e){const n=b,r=sJ(e.expression,n,Qu);return t.updatePartiallyEmittedExpression(e,r)}(n);case 213:return function(n){if(pm(n.expression)&&l){const e=sJ(n.expression,b,Qu),r=cJ(n.arguments,b,Qu),i=t.createFunctionCallCall(e,l,r);return sD(i,n),fI(i,n),i}return hJ(n,b,e)}(n);case 215:return function(n){if(pm(n.tag)&&l){const e=sJ(n.tag,b,Qu),r=t.createFunctionBindCall(e,l,[]);sD(r,n),fI(r,n);const i=sJ(n.template,b,Uu);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return hJ(n,b,e)}(n);case 224:case 225:return j(n,!1);case 211:return function(n){if(pm(n)&&Xw(n.name)&&l&&u){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(u,e,l);return sD(r,n.expression),fI(r,n.expression),r}return hJ(n,b,e)}(n);case 212:return function(n){if(pm(n)&&l&&u){const e=sJ(n.argumentExpression,b,Qu),r=t.createReflectGetCall(u,e,l);return sD(r,n.expression),fI(r,n.expression),r}return hJ(n,b,e)}(n);case 167:return J(n);case 174:case 178:case 177:case 218:case 262:{"other"===(null==s?void 0:s.kind)?(gn.assert(!_),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:_},_=void 0,p());const t=hJ(n,x,e);return gn.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(gn.assert(!_),s.depth--):(_=s.savedPendingExpressions,s=s.next,p()),t}default:return hJ(n,x,e)}}function x(e){if(170!==e.kind)return b(e)}function S(e){if(170!==e.kind)return e}function k(a){switch(a.kind){case 176:return function(e){g(e);const n=cJ(e.modifiers,S,au),r=cJ(e.parameters,b,fE);let i;if(e.body&&c){const n=F(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=rz(e.body.statements,o);a.length>0?N(r,e.body.statements,o,a,0,n):(de(r,n),de(r,cJ(e.body.statements,b,b_))),i=t.createBlock(r,!0),sD(i,e.body),fI(i,e.body)}}return i??(i=sJ(e.body,b,OF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 174:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,ee);if(i)return h(),P(function(e,n,r){return e=cJ(e,(e=>iE(e)?e:void 0),au),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=cJ(e.parameters,b,fE),o=sJ(e.body,b,OF);return h(),P(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 177:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,te);if(i)return h(),P(ie(n,r,i),e);{const i=cJ(e.parameters,b,fE),o=sJ(e.body,b,OF);return h(),P(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,ne);if(i)return h(),P(oe(n,r,i),e);{const i=cJ(e.parameters,b,fE),o=sJ(e.body,b,OF);return h(),P(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 172:return function(a){ny(a,I)&&(a=Jz(e,a,L(a.initializer))),g(a),gn.assert(!Cp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:u,extraInitializersName:_,descriptorName:d,thisArg:p}=A(a,c,zv(a)?re:void 0);r();let f=sJ(a.initializer,b,Qu);u&&(f=n().createRunInitializersHelper(p??t.createThis(),u,f??t.createVoidZero())),Rv(a)&&c&&f&&(c.hasStaticInitializers=!0);const m=i();if(X(m)&&(f=t.createImmediatelyInvokedArrowFunction([...m,t.createReturnStatement(f)])),c&&(Rv(a)?(f=K(c,!0,f),_&&(c.pendingStaticInitializers??(c.pendingStaticInitializers=[]),c.pendingStaticInitializers.push(n().createRunInitializersHelper(c.classThis??t.createThis(),_)))):(f=K(c,!1,f),_&&(c.pendingInstanceInitializers??(c.pendingInstanceInitializers=[]),c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),_))))),h(),zv(a)&&d){const e=xD(a),n=mD(a),r=a.name;let i=r,c=r;if(dE(r)&&!YJ(r.expression)){const e=uI(r);if(e)i=t.updateComputedPropertyName(r,sJ(r.expression,b,Qu)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);gD(e,r.expression);const n=sJ(r.expression,b,Qu),a=t.createAssignment(e,n);gD(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=cJ(s,(e=>129!==e.kind?e:void 0),au),u=sI(t,a,l,f);sD(u,a),_D(u,3072),gD(u,n),gD(u.name,a.name);const _=ie(l,i,d);sD(_,a),SD(_,e),gD(_,n);const p=oe(l,c,d);return sD(p,a),_D(p,3072),gD(p,n),[u,_,p]}return P(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 175:return function(n){let r;if(g(n),Lz(n))r=hJ(n,b,e);else if(Nz(n)){const t=l;l=void 0,r=hJ(n,b,e),l=t}else if(r=n=hJ(n,b,e),c&&(c.hasStaticInitializers=!0,X(c.pendingStaticInitializers))){const e=[];for(const n of c.pendingStaticInitializers){const r=t.createExpressionStatement(n);gD(r,mD(n)),e.push(r)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return h(),r}(a);default:return b(a)}}function T(e){switch(e.kind){case 224:case 225:return j(e,!0);case 226:return R(e,!0);case 356:return M(e,!0);case 217:return W(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&Xw(e.name)&&!Yl(e.name)?kc(e.name):e.name&&Qw(e.name)&&!Yl(e.name)?kc(e.name).slice(1):e.name&&Iw(e.name)&&Ss(e.name.text,99)?e.name.text:yu(e)?"class":"member";return O_(e)&&(t=`get_${t}`),I_(e)&&(t=`set_${t}`),e.name&&Qw(e.name)&&(t=`private_${t}`),Rv(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function D(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function w(o){r(),!jz(o)&&km(!1,o)&&(o=Mz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const r=t.createUniqueName("_metadata",48);let i,o,a,s,c,l=!1,u=!1,_=!1;if(bm(!1,e)){const n=X(e.members,(e=>(tu(e)||bu(e))&&jv(e)));a=t.createUniqueName("_classThis",n?24:48)}for(const r of e.members){if(Su(r)&&xm(!1,r,e))if(jv(r)){if(!o){o=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),o);gD(r,e.name??qb(e)),s??(s=[]),s.push(r)}}else{if(!i){i=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),i);gD(r,e.name??qb(e)),c??(c=[]),c.push(r)}i??(i=t.createUniqueName("_instanceExtraInitializers",48))}if(bE(r)?Lz(r)||(l=!0):hE(r)&&(jv(r)?l||(l=!!r.initializer||qv(r)):u||(u=!Cp(r))),(tu(r)||bu(r))&&jv(r)&&(_=!0),o&&i&&l&&u&&_)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:i,staticMethodExtraInitializersName:o,hasStaticInitializers:l,hasNonAmbientInstanceFields:u,hasStaticPrivateClassElements:_,pendingStaticInitializers:s,pendingInstanceInitializers:c}}(o),c=[];let l,u,p,g,h=!1;const y=Q(uz(o,!1));y&&(s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),gn.assertIsDefined(s.classThis),c.push(D(s.classDecoratorsName,t.createArrayLiteralExpression(y)),D(s.classDescriptorName),D(s.classExtraInitializersName,t.createArrayLiteralExpression()),D(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0));const v=Nh(o.heritageClauses,96),x=v&&ve(v.types),S=x&&sJ(x.expression,b,Qu);if(S){s.classSuper=t.createUniqueName("_classSuper",48);const e=hA(S),n=SF(e)&&!e.name||lF(e)&&!e.name||uF(e)?t.createComma(t.createNumericLiteral(0),S):S;c.push(D(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();f(s),l=le(l,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ae(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=o.members;if(C=cJ(C,(e=>xE(e)?e:k(e)),hu),C=cJ(C,(e=>xE(e)?k(e):e),hu),_){let n;for(let r of _)r=sJ(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(D(n,t.createThis()))),n):hJ(i,r,e):i}),Qu),l=le(l,t.createExpressionStatement(r));_=void 0}if(m(),X(s.pendingInstanceInitializers)&&!_v(o)){const e=F(0,s);if(e){const n=Ch(o),r=[];if(n&&106!==hA(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}de(r,e);const i=t.createBlock(r,!0);p=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticMethodExtraInitializersName&&c.push(D(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&c.push(D(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&ld(s.memberInfos,((e,n)=>{Rv(n)&&(c.push(D(e.memberDecoratorsName)),e.memberInitializersName&&c.push(D(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(D(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(D(e.memberDescriptorName)))})),s.memberInfos&&ld(s.memberInfos,((e,n)=>{Rv(n)||(c.push(D(e.memberDecoratorsName)),e.memberInitializersName&&c.push(D(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(D(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(D(e.memberDescriptorName)))})),l=de(l,s.staticNonFieldDecorationStatements),l=de(l,s.nonStaticNonFieldDecorationStatements),l=de(l,s.staticFieldDecorationStatements),l=de(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),u=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),_=t.createExpressionStatement(u);gD(_,qb(o)),l.push(_);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),p=t.createAssignment(s.classThis,d),f=t.createAssignment(a,p);l.push(t.createExpressionStatement(f))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return _D(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),X(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);gD(n,mD(e)),u=le(u,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);gD(r,o.name??qb(o)),u=le(u,r)}l&&u&&!s.hasStaticInitializers&&(de(l,u),u=void 0);const w=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));w&&h&&pD(w,32);const E=u&&t.createClassStaticBlockDeclaration(t.createBlock(u,!0));if(w||p||E){const e=[],n=C.findIndex(Lz);w?(de(e,C,0,n+1),e.push(w),de(e,C,n+1)):de(e,C),p&&e.push(p),E&&e.push(E),C=fI(t.createNodeArray(e),C)}const N=i();let P;if(y){P=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(P=Az(t,P,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,P),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else P=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(P));if(h){fD(P,32);for(const e of P.members)(tu(e)||bu(e))&&jv(e)&&fD(e,32)}return sD(P,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,N))}function E(e){return km(!1,e)||Sm(!1,e)}function F(e,n){if(X(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function N(e,n,r,i,o,a){const s=i[o],c=n[s];if(de(e,cJ(n,b,b_,r,s-r)),QF(c)){const n=[];N(n,c.tryBlock.statements,0,i,o+1,a),fI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),sJ(c.catchClause,b,WN),sJ(c.finallyBlock,b,OF)))}else de(e,cJ(n,b,b_,s,1)),de(e,a);de(e,cJ(n,b,b_,s+1))}function P(e,t){return e!==t&&(SD(e,t),gD(e,qb(t))),e}function A(e,r,i){let a,s,c,l,u,d;if(!r){const t=cJ(e.modifiers,S,au);return y(),s=B(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:d,thisArg:u}}const p=Q(_z(e,r.class,!1)),f=cJ(e.modifiers,S,au);if(p){const m=C(e,"decorators"),g=t.createArrayLiteralExpression(p),h=t.createAssignment(m,g),x={memberDecoratorsName:m};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,x),_??(_=[]),_.push(h);const S=Su(e)||bu(e)?Rv(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):hE(e)&&!bu(e)?Rv(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):gn.fail(),k=SE(e)?"getter":kE(e)?"setter":vE(e)?"method":bu(e)?"accessor":hE(e)?"field":gn.fail();let T;if(Xw(e.name)||Qw(e.name))T={computed:!1,name:e.name};else if(Gh(e.name))T={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;Gh(r)&&!Xw(r)?T={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(Gh(e)||Qw(e))return{referencedName:t.createStringLiteralFromNode(e),name:sJ(e,b,cu)};if(Gh(e.expression)&&!Xw(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:sJ(e,b,cu)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(sJ(e.expression,b,Qu)),a=t.createAssignment(r,i),s=t.updateComputedPropertyName(e,G(a));return{referencedName:r,name:s}}(e.name)),T={computed:!0,name:a},v())}const D={kind:k,name:T,static:Rv(e),private:Qw(e.name),access:{get:hE(e)||SE(e)||vE(e),set:hE(e)||kE(e)},metadata:r.metadataReference};if(Su(e)){const o=Rv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;gn.assertIsDefined(o),tu(e)&&i&&(a=i(e,cJ(f,(e=>at(e,eE)),au)),x.memberDescriptorName=d=C(e,"descriptor"),a=t.createAssignment(d,a));const s=n().createESDecorateHelper(t.createThis(),a??t.createNull(),m,D,t.createNull(),o),c=t.createExpressionStatement(s);gD(c,qb(e)),S.push(c)}else if(hE(e)){let o;c=x.memberInitializersName??(x.memberInitializersName=C(e,"initializers")),l=x.memberExtraInitializersName??(x.memberExtraInitializersName=C(e,"extraInitializers")),Rv(e)&&(u=r.classThis),tu(e)&&zv(e)&&i&&(o=i(e,void 0),x.memberDescriptorName=d=C(e,"descriptor"),o=t.createAssignment(d,o));const a=n().createESDecorateHelper(bu(e)?t.createThis():t.createNull(),o??t.createNull(),m,D,c,l),s=t.createExpressionStatement(a);gD(s,qb(e)),S.push(s)}}return void 0===s&&(y(),s=B(e.name),v()),X(f)||!vE(e)&&!hE(e)||_D(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,extraInitializersName:l,descriptorName:d,thisArg:u}}function I(e){return SF(e)&&!e.name&&E(e)}function L(e){const t=hA(e);return SF(t)&&!t.name&&!km(!1,t)}function R(n,r){if(db(n)){const e=V(n.left),r=sJ(n.right,b,Qu);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(_b(n)){if(ny(n,I))return hJ(n=Jz(e,n,L(n.right)),b,e);if(pm(n.left)&&l&&u){let e=rF(n.left)?sJ(n.left.argumentExpression,b,Qu):Xw(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=sJ(n.right,b,Qu);if(ZJ(n.operatorToken.kind)){let r=e;YJ(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(u,r,l);sD(a,n.left),fI(a,n.left),i=t.createBinaryExpression(a,ez(n.operatorToken.kind),i),fI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),fI(a,n)),i=t.createReflectSetCall(u,e,i,l),sD(i,n),fI(i,n),a&&(i=t.createComma(i,a),fI(i,n)),i}}}if(28===n.operatorToken.kind){const e=sJ(n.left,T,Qu),i=sJ(n.right,r?T:b,Qu);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return hJ(n,b,e)}function j(n,r){if(46===n.operator||47===n.operator){const e=ph(n.operand);if(pm(e)&&l&&u){let i=rF(e)?sJ(e.argumentExpression,b,Qu):Xw(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;YJ(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(u,e,l);sD(a,n),fI(a,n);const s=r?void 0:t.createTempVariable(o);return a=oA(t,n,a,o,s),a=t.createReflectSetCall(u,i,a,l),sD(a,n),fI(a,n),s&&(a=t.createComma(a,s),fI(a,n)),a}}}return hJ(n,b,e)}function M(e,n){const r=n?gJ(e.elements,T):gJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return dE(e)?J(e):sJ(e,b,cu)}function J(e){let n=sJ(e.expression,b,Qu);return YJ(n)||(n=G(n)),t.updateComputedPropertyName(e,n)}function z(n){if(tF(n)||eF(n))return V(n);if(pm(n)&&l&&u){const e=rF(n)?sJ(n.argumentExpression,b,Qu):Xw(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(u,e,r,l));return sD(i,n),fI(i,n),i}}return hJ(n,b,e)}function $(n){if(_b(n,!0)){ny(n,I)&&(n=Jz(e,n,L(n.right)));const r=z(n.left),i=sJ(n.right,b,Qu);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function q(n){return gn.assertNode(n,Mu),xF(n)?function(n){if(Vu(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return hJ(n,b,e)}(n):kF(n)?hJ(n,b,e):$(n)}function U(n){return gn.assertNode(n,Ru),KN(n)?function(n){if(Vu(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return hJ(n,b,e)}(n):GN(n)?function(t){return ny(t,I)&&(t=Jz(e,t,L(t.objectAssignmentInitializer))),hJ(t,b,e)}(n):HN(n)?function(n){const r=sJ(n.name,b,cu);if(_b(n.initializer,!0)){const e=$(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(Vu(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return hJ(n,b,e)}(n):hJ(n,b,e)}function V(e){if(eF(e)){const n=cJ(e.elements,q,Qu);return t.updateArrayLiteralExpression(e,n)}{const n=cJ(e.properties,U,Du);return t.updateObjectLiteralExpression(e,n)}}function W(e,n){const r=n?T:b,i=sJ(e.expression,r,Qu);return t.updateParenthesizedExpression(e,i)}function H(e,n){return X(e)&&(n?cF(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function G(e){const t=H(_,e);return gn.assertIsDefined(t),t!==e&&(_=void 0),t}function K(e,t,n){const r=H(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function Q(e){if(!e)return;const t=[];return de(t,O(e.decorators,Y)),t}function Y(e){const n=sJ(e.expression,b,Qu);if(_D(n,3072),Px(hA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Z(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));sD(l,e),gD(l,qb(e)),_D(l,3072);const u="get"===a||"set"===a?a:void 0,_=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,_,u),p=t.createPropertyAssignment(t.createIdentifier(a),d);return sD(p,e),gD(p,qb(e)),_D(p,3072),p}function ee(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,e.asteriskToken,"value",cJ(e.parameters,b,fE),sJ(e.body,b,OF))])}function te(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],sJ(e.body,b,OF))])}function ne(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"set",cJ(e.parameters,b,fE),sJ(e.body,b,OF))])}function re(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Z(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function ie(e,n,r){return e=cJ(e,(e=>iE(e)?e:void 0),au),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function oe(e,n,r){return e=cJ(e,(e=>iE(e)?e:void 0),au),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ae(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function Qz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=DS(s);let l,u,_,d,p=0,m=0;const g=[];let h=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&p&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==m){const i=m;return m=r,y(e,t,n),void(m=i)}}else if(p&&g[QB(t)]){const r=m;return m=0,y(e,t,n),void(m=r)}y(e,t,n)},e.onSubstituteNode=function(e,n){return n=v(e,n),1===e&&m?function(e){switch(e.kind){case 211:return W(e);case 212:return H(e);case 213:return function(e){const n=e.expression;if(pm(n)){const r=nF(n)?W(n):H(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},$J(e,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!Tp(t,s));const n=hJ(t,C,e);return ID(n,e.readEmitHelpers()),n}));function b(e,t){h=t?h|e:h&~e}function x(e){return!!(h&e)}function S(e,t,n){const r=e&~h;if(r){b(r,!0);const e=t(n);return b(r,!1),e}return t(n)}function k(t){return hJ(t,C,e)}function T(t){switch(t.kind){case 218:case 262:case 174:case 177:case 178:case 176:return t;case 169:case 208:case 260:break;case 80:if(d&&a.isArgumentsLocalBinding(t))return d}return hJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return d?T(n):n;switch(n.kind){case 134:return;case 223:return function(n){return x(1)?sD(fI(t.createYieldExpression(void 0,sJ(n.expression,C,Qu)),n),n):hJ(n,C,e)}(n);case 174:return S(3,E,n);case 262:return S(3,P,n);case 218:return S(3,A,n);case 219:return S(1,I,n);case 211:return u&&nF(n)&&108===n.expression.kind&&u.add(n.name.escapedText),hJ(n,C,e);case 212:return u&&108===n.expression.kind&&(_=!0),hJ(n,C,e);case 177:return S(3,F,n);case 178:return S(3,N,n);case 176:return S(3,w,n);case 263:case 231:return S(3,k,n);default:return hJ(n,C,e)}}function D(n){if(ah(n))switch(n.kind){case 243:return function(n){if(R(n.declarationList)){const e=j(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return hJ(n,C,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,R(r)?j(r,!1):sJ(n.initializer,C,s_),sJ(n.condition,C,Qu),sJ(n.incrementor,C,Qu),mJ(n.statement,D,e))}(n);case 249:return function(n){return t.updateForInStatement(n,R(n.initializer)?j(n.initializer,!0):gn.checkDefined(sJ(n.initializer,C,s_)),gn.checkDefined(sJ(n.expression,C,Qu)),mJ(n.statement,D,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,sJ(n.awaitModifier,C,nE),R(n.initializer)?j(n.initializer,!0):gn.checkDefined(sJ(n.initializer,C,s_)),gn.checkDefined(sJ(n.expression,C,Qu)),mJ(n.statement,D,e))}(n);case 299:return function(t){const n=new Set;let r;if(L(t.variableDeclaration,n),n.forEach(((e,t)=>{l.has(t)&&(r||(r=new Set(l)),r.delete(t))})),r){const n=l;l=r;const i=hJ(t,D,e);return l=n,i}return hJ(t,D,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return hJ(n,D,e);default:return gn.assertNever(n,"Unhandled node.")}return C(n)}function w(n){const r=d;d=void 0;const i=t.updateConstructorDeclaration(n,cJ(n.modifiers,C,au),dJ(n.parameters,C,e),z(n));return d=r,i}function E(n){let r;const i=zh(n),o=d;d=void 0;const a=t.updateMethodDeclaration(n,cJ(n.modifiers,C,ku),n.asteriskToken,n.name,void 0,void 0,r=2&i?q(n):dJ(n.parameters,C,e),void 0,2&i?U(n,r):z(n));return d=o,a}function F(n){const r=d;d=void 0;const i=t.updateGetAccessorDeclaration(n,cJ(n.modifiers,C,ku),n.name,dJ(n.parameters,C,e),void 0,z(n));return d=r,i}function N(n){const r=d;d=void 0;const i=t.updateSetAccessorDeclaration(n,cJ(n.modifiers,C,ku),n.name,dJ(n.parameters,C,e),z(n));return d=r,i}function P(n){let r;const i=d;d=void 0;const o=zh(n),a=t.updateFunctionDeclaration(n,cJ(n.modifiers,C,ku),n.asteriskToken,n.name,void 0,r=2&o?q(n):dJ(n.parameters,C,e),void 0,2&o?U(n,r):fJ(n.body,C,e));return d=i,a}function A(n){let r;const i=d;d=void 0;const o=zh(n),a=t.updateFunctionExpression(n,cJ(n.modifiers,C,au),n.asteriskToken,n.name,void 0,r=2&o?q(n):dJ(n.parameters,C,e),void 0,2&o?U(n,r):fJ(n.body,C,e));return d=i,a}function I(n){let r;const i=zh(n);return t.updateArrowFunction(n,cJ(n.modifiers,C,au),void 0,r=2&i?q(n):dJ(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?U(n,r):fJ(n.body,C,e))}function L({name:e},t){if(Xw(e))t.add(e.escapedText);else for(const n of e.elements)kF(n)||L(n,t)}function R(e){return!!e&&eN(e)&&!(7&e.flags)&&e.declarations.some(J)}function j(e,n){!function(e){f(e.declarations,M)}(e);const r=sx(e);return 0===r.length?n?sJ(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,Qu):void 0:t.inlineExpressions(O(r,B))}function M({name:e}){if(Xw(e))o(e);else for(const t of e.elements)kF(t)||M(t)}function B(e){const n=gD(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return gn.checkDefined(sJ(n,C,Qu))}function J({name:e}){if(Xw(e))return l.has(e.escapedText);for(const t of e.elements)if(!kF(t)&&J(t))return!0;return!1}function z(n){gn.assertIsDefined(n.body);const r=u,i=_;u=new Set,_=!1;let o=fJ(n.body,C,e);const s=hc(n,du);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&3&~zh(s)){if(V(),u.size){const e=Yz(t,a,n,u);g[QB(e)]=!0;const r=o.statements.slice();Jd(r,[e]),o=t.updateBlock(o,r)}_&&(a.hasNodeCheckFlag(n,256)?AD(o,Fw):a.hasNodeCheckFlag(n,128)&&AD(o,Ew))}return u=r,_=i,o}function $(){gn.assert(d);const e=t.createVariableDeclaration(d,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return vA(n),dD(n,2097152),n}function q(n){if(yz(n.parameters))return dJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(219===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}const i=t.createNodeArray(r);return fI(i,n.parameters),i}function U(o,s){const p=yz(o.parameters)?void 0:dJ(o.parameters,C,e);r();const f=hc(o,uu).type,m=c<2?function(e){const t=e&&hm(e);if(t&&su(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(f):void 0,h=219===o.kind,y=d,v=a.hasNodeCheckFlag(o,512)&&!d;let b;if(v&&(d=t.createUniqueName("arguments")),p)if(h){const e=[];gn.assert(s.length<=o.parameters.length);for(let n=0;n=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(V(),u.size)){const n=Yz(t,a,o,u);g[QB(n)]=!0,Jd(e,[n])}v&&Jd(e,[$()]);const i=t.createBlock(e,!0);fI(i,o.body),r&&_&&(a.hasNodeCheckFlag(o,256)?AD(i,Fw):a.hasNodeCheckFlag(o,128)&&AD(i,Ew)),P=i}return l=S,h||(u=k,_=T,d=y),P}function V(){1&p||(p|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function W(e){return 108===e.expression.kind?fI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,fI(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function Yz(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach(((t,n)=>{const r=Sc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,_D(e.createPropertyAccessExpression(_D(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(_D(e.createPropertyAccessExpression(_D(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function Zz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=DS(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&y&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(y&&x[QB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const u=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=u(e,n),1===e&&v?function(e){switch(e.kind){case 211:return K(e);case 212:return Q(e);case 213:return function(e){const n=e.expression;if(pm(n)){const r=nF(n)?K(n):Q(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let _,d,p,f,m,g,h=!1,y=0,v=0,b=0;const x=[];return $J(e,(function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=S(2,Tp(n,s)?0:1);h=!1;const i=hJ(n,C,e),o=Y(i.statements,f&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(f))]),a=t.updateSourceFile(i,fI(t.createNodeArray(o),n.statements));return k(r),a}(n);return ID(r,e.readEmitHelpers()),p=void 0,f=void 0,r}));function S(e,t){const n=b;return b=3&(b&~e|t),n}function k(e){b=e}function T(e){f=le(f,t.createVariableDeclaration(e))}function C(e){return N(e,!1)}function D(e){return N(e,!0)}function w(e){if(134!==e.kind)return e}function E(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=S(n,r),o=e(t);return k(i),o}return e(t)}function F(t){return hJ(t,C,e)}function N(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){return 2&_&&1&_?sD(fI(t.createYieldExpression(void 0,n().createAwaitHelper(sJ(r.expression,C,Qu))),r),r):hJ(r,C,e)}(r);case 229:return function(r){if(2&_&&1&_){if(r.asteriskToken){const e=sJ(gn.checkDefined(r.expression),C,Qu);return sD(fI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,fI(n().createAsyncDelegatorHelper(fI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return sD(fI(t.createYieldExpression(void 0,O(r.expression?sJ(r.expression,C,Qu):t.createVoidZero())),r),r)}return hJ(r,C,e)}(r);case 253:return function(n){return 2&_&&1&_?t.updateReturnStatement(n,O(n.expression?sJ(n.expression,C,Qu):t.createVoidZero())):hJ(n,C,e)}(r);case 256:return function(n){if(2&_){const e=Uf(n);return 250===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(sJ(e,C,b_,t.liftToBlock),n)}return hJ(n,C,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(305===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(sJ(e,C,Qu))}else n=le(n,303===i.kind?t.createPropertyAssignment(i.name,sJ(i.initializer,C,Qu)):sJ(i,C,Du));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(f){1&y||(y|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=Yz(t,a,o,m);x[QB(n)]=!0,Jd(_,[n])}_.push(p);const h=t.updateBlock(o.body,_);return f&&g&&(a.hasNodeCheckFlag(o,256)?AD(h,Fw):a.hasNodeCheckFlag(o,128)&&AD(h,Ew)),m=l,g=u,h}function H(e){r();let n=0;const o=[],a=sJ(e.body,C,o_)??t.createBlock([]);OF(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),de(o,G(void 0,e));const s=i();if(n>0||X(o)||X(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Jd(o,s),de(o,e.statements.slice(n)),t.updateBlock(e,fI(t.createNodeArray(o),e.statements))}return a}function G(n,r){let i=!1;for(const o of r.parameters)if(i){if(Fu(o.name)){if(o.name.elements.length>0){const r=Tz(o,C,e,0,t.getGeneratedNameForNode(o));if(X(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);_D(i,2097152),n=le(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=sJ(o.initializer,C,Qu),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);_D(a,2097152),n=le(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);fI(e,o.name),_D(e,96);const r=sJ(o.initializer,C,Qu);dD(r,3168);const i=t.createAssignment(e,r);fI(i,o),_D(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);fI(a,o),_D(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);vA(c),fI(c,o),_D(c,2101056),n=le(n,c)}}else if(65536&o.transformFlags){i=!0;const r=Tz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if(X(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);_D(i,2097152),n=le(n,i)}}return n}function K(e){return 108===e.expression.kind?fI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Q(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,fI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}function e$(e){const t=e.factory;return $J(e,(function(t){return t.isDeclarationFile?t:hJ(t,n,e)}));function n(r){return 64&r.transformFlags?299===r.kind?function(r){return r.variableDeclaration?hJ(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),sJ(r.block,n,OF))}(r):hJ(r,n,e):r}}function t$(e){const{factory:t,hoistVariableDeclaration:n}=e;return $J(e,(function(t){return t.isDeclarationFile?t:hJ(t,r,e)}));function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 213:{const e=o(i,!1);return gn.assertNotNode(e,FN),e}case 211:case 212:if(Tl(i)){const e=s(i,!1,!1);return gn.assertNotNode(e,FN),e}return hJ(i,r,e);case 226:return 61===i.operatorToken.kind?function(e){let i=sJ(e.left,r,Qu),o=i;return QJ(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),fI(t.createConditionalExpression(c(i,o),void 0,o,void 0,sJ(e.right,r,Qu)),e)}(i):hJ(i,r,e);case 220:return function(e){return Tl(ph(e.expression))?sD(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,sJ(e.expression,r,Qu))}(i);default:return hJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return FN(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(Tl(n))return s(n,o,!1);if(cF(n.expression)&&Tl(ph(n.expression))){const e=i(n.expression,!0,!1),o=cJ(n.arguments,r,Qu);return FN(e)?fI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return hJ(n,r,e)}function a(e,a,c){switch(e.kind){case 217:return i(e,a,c);case 211:case 212:return function(e,i,o){if(Tl(e))return s(e,i,o);let a,c=sJ(e.expression,r,Qu);return gn.assertNotNode(c,FN),i&&(QJ(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=211===e.kind?t.updatePropertyAccessExpression(e,c,sJ(e.name,r,Xw)):t.updateElementAccessExpression(e,c,sJ(e.argumentExpression,r,Qu)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 213:return o(e,a);default:return sJ(e,r,Qu)}}function s(e,i,o){const{expression:s,chain:l}=function(e){gn.assertNotNode(e,Pl);const t=[e];for(;!e.questionDotToken&&!aF(e);)e=st(Nl(e.expression),Tl),gn.assertNotNode(e,Pl),t.unshift(e);return{expression:e.expression,chain:t}}(e),u=a(Nl(s),kl(l[0]),!1);let _=FN(u)?u.thisArg:void 0,d=FN(u)?u.expression:u,p=t.restoreOuterExpressions(s,d,8);QJ(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;ee&&de(c,cJ(n.statements,u,b_,e,d-e));break}d++}gn.assert(dt&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,sJ(n.expression,u,Qu),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){return 0!==c$(n.statements)?qN(n)?t.updateCaseClause(n,sJ(n.expression,u,Qu),_(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,_(n.statements,0,n.statements.length,r,void 0)):hJ(n,u,e)}(n,i)))))],i,2===r)}return hJ(n,u,e)}(n);default:return hJ(n,u,e)}}function _(i,o,a,s,_){const m=[];for(let r=o;rt&&(t=e)}return t}function l$(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return $J(e,(function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=tk(r,n);let a=hJ(n,l,e);ID(a,e.readEmitHelpers());let s=a.statements;if(o.filenameDeclaration&&(s=qd(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports)for(const[e,r]of Be(o.utilizedImplicitRuntimeImports.entries()))if(XI(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Be(r.values()))),t.createStringLiteral(e),void 0);RT(n,!1),s=qd(s.slice(),n)}else if(af(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Be(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));RT(n,!1),s=qd(s.slice(),n)}return s!==a.statements&&(a=t.updateSourceFile(a,s)),o=void 0,a}));function a(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function s(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return c(t)}function c(e){var n,i;const a="createElement"===e?o.importSpecifier:nk(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),u=t.createImportSpecifier(!1,t.createIdentifier(e),l);return WD(l,u),c.set(e,u),l}function l(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return m(t,!1);case 285:return g(t,!1);case 288:return h(t,!1);case 294:return A(t);default:return hJ(t,l,e)}}(t):t}function _(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;iHN(e)&&(Xw(e.name)&&"__proto__"===kc(e.name)||Iw(e.name)&&"__proto__"===e.name.text)))}function f(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!JN(n)||tF(n.expression)&&!n.expression.properties.some(KN)){if(t&&MN(n)&&Xw(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function m(e,t){return(f(e.openingElement)?x:v)(e.openingElement,e.children,t,e)}function g(e,t){return(f(e)?x:v)(e,void 0,t,e)}function h(e,t){return(void 0===o.importSpecifier?k:S)(e.openingFragment,e.children,t,e)}function y(e){const n=gy(e);if(1===p(n)&&!n[0].dotDotDotToken){const e=_(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=q(e,_);return p(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function v(e,n,r,i){const o=N(e),a=n&&n.length?y(n):void 0,s=T(e.attributes.properties,(e=>!!e.name&&Xw(e.name)&&"key"===e.name.escapedText)),c=s?P(e.attributes.properties,(e=>e!==s)):e.attributes.properties;return b(o,p(c)?C(c,a):t.createObjectLiteralExpression(a?[a]:u),s,n||u,r,i)}function b(e,n,o,c,l,u){var _;const d=gy(c),f=p(d)>1||!!(null==(_=d[0])?void 0:_.dotDotDotToken),m=[e,n];if(o&&m.push(w(o.initializer)),5===r.jsx){const e=hc(i);if(e&&QN(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=Ga(e,u.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",a()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const g=fI(t.createCallExpression(s(f),void 0,m),u);return l&&vA(g),g}function x(n,a,s,l){const u=N(n),d=n.attributes.properties,f=p(d)?C(d):t.createNull(),m=void 0===o.importSpecifier?YP(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):c("createElement"),g=ZP(t,m,u,f,q(a,_),l);return s&&vA(g),g}function S(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=y(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return b(c("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function k(n,o,a,s){const c=eA(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,q(o,_),n,s);return a&&vA(c),c}function C(e,i){const o=DS(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=j(G(e,JN,((e,n)=>j(O(e,(e=>n?function(e){return tF(e.expression)&&!d(e.expression)?R(e.expression.properties,(e=>gn.checkDefined(sJ(e,l,Du)))):t.createSpreadAssignment(gn.checkDefined(sJ(e.expression,l,Qu)))}(e):D(e)))))));return n&&r.push(n),r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(JN(t)){if(tF(t.expression)&&!d(t.expression)){for(const e of t.expression.properties)KN(e)?(a(),i.push(gn.checkDefined(sJ(e.expression,l,Qu)))):o.push(gn.checkDefined(sJ(e,l)));continue}a(),i.push(gn.checkDefined(sJ(t.expression,l,Qu)))}else o.push(D(t));return r&&o.push(r),a(),i.length&&!tF(i[0])&&i.unshift(t.createObjectLiteralExpression()),Ce(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function D(e){const n=function(e){const n=e.name;if(Xw(n)){const e=kc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(kc(n.namespace)+":"+kc(n.name))}(e),r=w(e.initializer);return t.createPropertyAssignment(n,r)}function w(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!Km(e,i);return fI(t.createStringLiteral(function(e){const t=F(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():gn.checkDefined(sJ(e.expression,l,Qu)):PN(e)?m(e,!1):AN(e)?g(e,!1):LN(e)?h(e,!1):gn.failBadSyntaxKind(e)}function E(e,t){const n=F(t);return void 0===e?n:e+" "+n}function F(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return ws(parseInt(i,10));if(o)return ws(parseInt(o,16));{const t=u$.get(a);return t?ws(t):e}}))}function N(e){if(284===e.kind)return N(e.openingElement);{const n=e.tagName;return Xw(n)&&jy(n.escapedText)?t.createStringLiteral(kc(n)):$N(n)?t.createStringLiteral(kc(n.namespace)+":"+kc(n.name)):nA(t,n)}}function A(e){const n=sJ(e.expression,l,Qu);return e.dotDotDotToken?t.createSpreadElement(n):n}}var u$=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function _$(e){const{factory:t,hoistVariableDeclaration:n}=e;return $J(e,(function(t){return t.isDeclarationFile?t:hJ(t,r,e)}));function r(i){return 512&i.transformFlags?226===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=sJ(e.left,r,Qu),s=sJ(e.right,r,Qu);if(rF(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=fI(t.createElementAccessExpression(fI(t.createAssignment(e,a.expression),a.expression),fI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=fI(t.createElementAccessExpression(e,r),a)}else if(nF(a)){const e=t.createTempVariable(n);i=fI(t.createPropertyAccessExpression(fI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=fI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return fI(t.createAssignment(i,fI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=sJ(e.left,r,Qu),i=sJ(e.right,r,Qu);return fI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return hJ(i,r,e)}}(i):hJ(i,r,e):i}}function d$(e,t){return{kind:e,expression:t}}function p$(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,u=e.onEmitNode;let _,d,p,f,m;function g(e){f=le(f,t.createVariableDeclaration(e))}e.onEmitNode=function(e,t,n){if(1&h&&uu(t)){const r=y(32670,16&op(t)?81:65);return u(e,t,n),void v(r,0,0)}u(e,t,n)},e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){if(2&h&&!aA(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!yu(n)||!function(e,t){let n=bc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Rp(e);for(;n;){if(n===r||n===e)return!1;if(hu(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return fI(t.getGeneratedNameForNode(Ac(n)),e)}return e}(e);case 110:return function(e){return 1&h&&16&p?fI(F(),e):e}(e)}return e}(n):Xw(n)?function(e){if(2&h&&!aA(e)){const n=bc(e,Xw);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return fI(t.getGeneratedNameForNode(n),e)}return e}(n):n};let h=0;return $J(e,(function(n){if(n.isDeclarationFile)return n;_=n,d=n.text;const i=function(e){const n=y(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,S);return de(a,cJ(e.statements,S,b_,s)),f&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(f))),t.mergeLexicalEnvironment(i,o()),oe(i,e),v(n,0,0),t.updateSourceFile(e,fI(t.createNodeArray(Y(i,a)),e.statements))}(n);return ID(i,e.readEmitHelpers()),_=void 0,d=void 0,f=void 0,p=0,i}));function y(e,t){const n=p;return p=32767&(p&~e|t),n}function v(e,t,n){p=-32768&(p&~t|n)|e}function b(e){return!!(8192&p)&&253===e.kind&&!e.expression}function x(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(WF(e)||MF(e)||HF(e)||GF(e)||cN(e)||qN(e)||UN(e)||QF(e)||WN(e)||KF(e)||Zu(e,!1)||OF(e))}(e)||Zu(e,!1)&&$e(e)||!!(1&ap(e))}function S(e){return x(e)?w(e,!1):e}function T(e){return x(e)?w(e,!0):e}function C(e){if(x(e)){const t=hc(e);if(hE(t)&&jv(t)){const t=y(32670,16449),n=w(e,!1);return v(t,229376,0),n}return w(e,!1)}return e}function D(e){return 108===e.kind?lt(e,!0):S(e)}function w(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,A(e));sD(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(sD(i,e),fI(i,e),vA(i),r.push(i),Lv(e,32)){const n=Lv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));sD(n,i),r.push(n)}return we(r)}(n);case 231:return function(e){return A(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:Fu(e.name)?sD(fI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?sD(fI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262:return function(n){const r=m;m=void 0;const i=y(32670,65),o=dJ(n.parameters,S,e),a=ge(n),s=32768&p?t.getLocalName(n):n.name;return v(i,229376,0),m=r,t.updateFunctionDeclaration(n,cJ(n.modifiers,S,au),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 219:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=131072);const r=m;m=void 0;const i=y(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,dJ(n.parameters,S,e),void 0,ge(n));return fI(o,n),sD(o,n),_D(o,16),v(i,0,0),m=r,o}(n);case 218:return function(n){const r=524288&op(n)?y(32662,69):y(32670,65),i=m;m=void 0;const o=dJ(n.parameters,S,e),a=ge(n),s=32768&p?t.getLocalName(n):n.name;return v(r,229376,0),m=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 260:return Se(n);case 80:return N(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&ut();const e=cJ(n.declarations,1&n.flags?be:Se,ZF),r=t.createVariableDeclarationList(e);return sD(r,n),fI(r,n),SD(r,n),524288&n.transformFlags&&(Fu(n.declarations[0].name)||Fu(Te(n.declarations).name))&&gD(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return Jb(t,n)}(e)),r}return hJ(n,S,e)}(n);case 255:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=hJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return hJ(t,S,e)}(n);case 269:return function(t){const n=y(7104,0),r=hJ(t,S,e);return v(n,0,0),r}(n);case 241:return function(t){const n=256&p?y(7104,512):y(6976,128),r=hJ(t,S,e);return v(n,0,0),r}(n);case 252:case 251:return function(n){if(m){const e=252===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(kc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Ke(m,!0,kc(r),e)):(e=`continue-${r.escapedText}`,Ke(m,!1,kc(r),e)):252===n.kind?(m.nonLocalJumps|=2,e="break"):(m.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(m.loopOutParameters.length){const e=m.loopOutParameters;let n;for(let r=0;rLF(e)&&!!xe(e.declarationList.declarations).initializer,i=m;m=void 0;const o=cJ(n.statements,C,b_);m=i;const a=P(o,r),s=P(o,(e=>!r(e))),c=st(xe(a),LF).declarationList.declarations[0],l=hA(c.initializer);let u=at(l,_b);!u&&hF(l)&&28===l.operatorToken.kind&&(u=at(l.left,_b));const _=st(u?hA(u.right):l,iF),d=st(hA(_.expression),lF),p=d.body.statements;let f=0,g=-1;const h=[];if(u){const e=at(p[f],jF);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(u.left,st(c.name,Xw))))}for(;!WF(ye(p,g));)g--;de(h,p,f,g),g<-1&&de(h,p,g+1);const y=at(ye(p,g),WF);for(const e of s)WF(e)&&(null==y?void 0:y.expression)&&!Xw(y.expression)?h.push(y):h.push(e);return de(h,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(u&&u.right,t.updateCallExpression(_,t.restoreOuterExpressions(_.expression,t.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,t.updateBlock(d.body,h))),void 0,_.arguments))))}(n);const r=hA(n.expression);return 108===r.kind||pm(r)||X(n.arguments,xF)?function(n){if(32768&n.transformFlags||108===n.expression.kind||pm(hA(n.expression))){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a);let i;if(108===n.expression.kind&&_D(r,8),i=32768&n.transformFlags?t.createFunctionApplyCall(gn.checkDefined(sJ(e,D,Qu)),108===n.expression.kind?r:gn.checkDefined(sJ(r,S,Qu)),tt(n.arguments,!0,!1,!1)):fI(t.createFunctionCallCall(gn.checkDefined(sJ(e,D,Qu)),108===n.expression.kind?r:gn.checkDefined(sJ(r,S,Qu)),cJ(n.arguments,S,Qu)),n),108===n.expression.kind){const e=t.createLogicalOr(i,Z());i=t.createAssignment(F(),e)}return sD(i,n)}return mf(n)&&(p|=131072),hJ(n,S,e)}(n):t.updateCallExpression(n,gn.checkDefined(sJ(n.expression,D,Qu)),void 0,cJ(n.arguments,S,Qu))}(n);case 214:return function(n){if(X(n.arguments,xF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(gn.checkDefined(sJ(e,S,Qu)),r,tt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return hJ(n,S,e)}(n);case 217:return function(t,n){return hJ(t,n?T:S,e)}(n,r);case 226:return he(n,r);case 356:return function(n,r){if(r)return hJ(n,T,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return fI(n,e)}(n);case 230:return function(e){return sJ(e.expression,S,Qu)}(n);case 108:return lt(n,!1);case 110:return function(e){return p|=65536,2&p&&!(16384&p)&&(p|=131072),m?2&p?(m.containsLexicalThis=!0,e):m.thisName||(m.thisName=t.createUniqueName("this")):e}(n);case 236:return function(e){return 105===e.keywordToken&&"target"===e.name.escapedText?(p|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 174:return function(e){gn.assert(!dE(e.name));const n=me(e,$b(e,-1),void 0,void 0);return _D(n,1024|op(n)),fI(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){gn.assert(!dE(n.name));const r=m;m=void 0;const i=y(32670,65);let o;const a=dJ(n.parameters,S,e),s=ge(n);return o=177===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),v(i,229376,0),m=r,o}(n);case 243:return function(n){const r=y(0,Lv(n,32)?32:0);let i;if(!m||7&n.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&ap(e.declarationList.declarations[0].initializer))}(n))i=hJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if(Ue(m,i),i.initializer){let n;Fu(i.name)?n=xz(i,S,e,0):(n=t.createBinaryExpression(i.name,64,gn.checkDefined(sJ(i.initializer,S,Qu))),fI(n,i)),r=le(r,n)}i=r?fI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return v(r,0,0),i}(n);case 253:return function(n){return m?(m.nonLocalJumps|=8,b(n)&&(n=E(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?gn.checkDefined(sJ(n.expression,S,Qu)):t.createVoidZero())]))):b(n)?E(n):hJ(n,S,e)}(n);default:return hJ(n,S,e)}}function E(e){return sD(t.createReturnStatement(F()),e)}function F(){return t.createUniqueName("_this",48)}function N(e){return m&&c.isArgumentsLocalBinding(e)?m.argumentsName||(m.argumentsName=t.createUniqueName("arguments")):256&e.flags?sD(fI(t.createIdentifier(Sc(e.escapedText)),e),e):e}function A(a){a.name&&ut();const s=Dh(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,ct())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),u=Mh(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(fI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=m;m=void 0;const l=y(32662,73),u=_v(r),_=function(e,t){if(!e||!t)return!1;if(X(e.parameters))return!1;const n=ve(e.body.statements);if(!n||!sy(n)||244!==n.kind)return!1;const r=n.expression;if(!sy(r)||213!==r.kind)return!1;const i=r.expression;if(!sy(i)||108!==i.kind)return!1;const o=Ce(r.arguments);if(!o||!sy(o)||230!==o.kind)return!1;const a=o.expression;return Xw(a)&&"arguments"===a.escapedText}(u,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return dJ(t&&!n?t.parameters:void 0,S,e)||[]}(u,_),void 0,function(e,n,r,a){const s=!!r&&106!==hA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),t.createFunctionApplyCall(ct(),Z(),t.createIdentifier("arguments"))),Z())));const a=t.createNodeArray(r);fI(a,e.members);const s=t.createBlock(a,!0);return fI(s,e),_D(s,3072),s}(n,s);const c=[],l=[];i();const u=t.copyStandardPrologue(e.body.statements,c,0);(a||L(e.body))&&(p|=8192),de(l,cJ(e.body.statements,S,b_,u));const _=s||8192&p;te(c,e),ie(c,e,a),ce(c,e),_?se(c,e,Z()):oe(c,e),t.mergeLexicalEnvironment(c,o()),_&&!Q(e.body)&&l.push(t.createReturnStatement(F()));const d=t.createBlock(fI(t.createNodeArray([...c,...l]),e.body.statements),!0);return fI(d,e.body),function(e,n,r){const i=e;return e=function(e){for(let n=0;n0;n--){const i=e.statements[n];if(WF(i)&&i.expression&&R(i.expression)){const i=e.statements[n-1];let o;if(jF(i)&&V(hA(i.expression)))o=i.expression;else if(r&&B(i)){const e=i.declarationList.declarations[0];W(hA(e.initializer))&&(o=t.createAssignment(F(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);sD(a,i),fI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return fI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&p||131072&p)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!tz(t))return e;return t.updateBlock(e,cJ(e.statements,H,b_))}(e,n)),r&&(e=function(e){return t.updateBlock(e,cJ(e.statements,K,b_))}(e)),e}(d,e.body,a)}(u,r,s,_));fI(d,u||r),s&&_D(d,16),n.push(d),v(l,229376,0),m=c}(c,a,u,s),function(e,t){for(const n of t.members)switch(n.kind){case 240:e.push(ue(n));break;case 174:e.push(_e(_t(t,n),n,t));break;case 177:case 178:const r=bv(t.members,n);n===r.firstAccessor&&e.push(pe(_t(t,n),r,t));break;case 176:case 175:break;default:gn.failBadSyntaxKind(n,_&&_.fileName)}}(c,a);const f=Vb(is(d,a.members.end),20),g=t.createPartiallyEmittedExpression(u);PT(g,f.end),_D(g,3072);const h=t.createReturnStatement(g);NT(h,f.pos),_D(h,3840),c.push(h),Jd(c,o());const b=t.createBlock(fI(t.createNodeArray(c),a.members),!0);return _D(b,3072),b}(a,s));_D(c,131072&op(a)|1048576);const l=t.createPartiallyEmittedExpression(c);PT(l,a.end),_D(l,3072);const u=t.createPartiallyEmittedExpression(l);PT(u,is(d,a.pos)),_D(u,3072);const f=t.createParenthesizedExpression(t.createCallExpression(u,void 0,s?[gn.checkDefined(sJ(s.expression,S,Qu))]:[]));return CD(f,3,"* @class "),f}function I(e){return LF(e)&&k(e.declarationList.declarations,(e=>Xw(e.name)&&!e.initializer))}function L(e){if(mf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const t=e;return!!dE(t.name)&&!!qI(t.name,L)}}return!!qI(e,L)}function R(e){return Yl(e)&&"_this"===kc(e)}function M(e){return Yl(e)&&"_super"===kc(e)}function B(e){return LF(e)&&1===e.declarationList.declarations.length&&function(e){return ZF(e)&&R(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function J(e){return _b(e,!0)&&R(e.left)}function z(e){return iF(e)&&nF(e.expression)&&M(e.expression.expression)&&Xw(e.expression.name)&&("call"===kc(e.expression.name)||"apply"===kc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function $(e){return hF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function q(e){return hF(e)&&56===e.operatorToken.kind&&hF(e.left)&&38===e.left.operatorToken.kind&&M(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===kc(e.right.expression.name)}function U(e){return hF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&q(e.left)}function V(e){return J(e)&&$(e.right)}function W(e){return z(e)||$(e)||V(e)||q(e)||U(e)||function(e){return J(e)&&U(e.right)}(e)}function H(e){if(B(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(J(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return dE(n.name)?t.replacePropertyName(n,hJ(n.name,H,void 0)):e}}return hJ(e,H,void 0)}function K(e){if(z(e)&&2===e.arguments.length&&Xw(e.arguments[1])&&"arguments"===kc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return dE(n.name)?t.replacePropertyName(n,hJ(n.name,K,void 0)):e}}return hJ(e,K,void 0)}function Q(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return Q(t.thenStatement)&&Q(t.elseStatement)}else if(241===e.kind){const t=ke(e.statements);if(t&&Q(t))return!0}return!1}function Z(){return _D(t.createThis(),8)}function ee(e){return void 0!==e.initializer||Fu(e.name)}function te(e,t){if(!X(t.parameters,ee))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(Fu(t)?n=ne(e,r,t,i)||n:i&&(re(e,r,t,i),n=!0))}return n}function ne(n,r,i,o){return i.elements.length>0?(qd(n,_D(t.createVariableStatement(void 0,t.createVariableDeclarationList(Tz(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(qd(n,_D(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),gn.checkDefined(sJ(o,S,Qu)))),2097152)),!0)}function re(e,n,r,i){i=gn.checkDefined(sJ(i,S,Qu));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),_D(fI(t.createBlock([t.createExpressionStatement(_D(fI(t.createAssignment(_D(LT(fI(t.cloneNode(r),r),r.parent),96),_D(i,3168|op(i))),n),3072))]),n),3905));vA(o),fI(o,n),_D(o,2101056),qd(e,o)}function ie(n,r,i){const o=[],a=ke(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?LT(fI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);_D(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,u=t.createLoopVariable();o.push(_D(fI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const _=t.createForStatement(fI(t.createVariableDeclarationList([t.createVariableDeclaration(u,void 0,void 0,t.createNumericLiteral(l))]),a),fI(t.createLessThan(u,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),fI(t.createPostfixIncrement(u),a),t.createBlock([vA(fI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?u:t.createSubtract(u,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),u))),a))]));return _D(_,2097152),vA(_),o.push(_),80!==a.name.kind&&o.push(_D(fI(t.createVariableStatement(void 0,t.createVariableDeclarationList(Tz(a,S,e,0,c))),a),2097152)),zd(n,o),!0}function oe(e,n){return!!(131072&p&&219!==n.kind)&&(se(e,n,t.createThis()),!0)}function se(n,r,i){1&h||(h|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(F(),void 0,void 0,i)]));_D(o,2100224),gD(o,r),qd(n,o)}function ce(e,n){if(32768&p){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(_D(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(_D(t.createThis(),8),t.createBinaryExpression(_D(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(_D(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return gn.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));_D(i,2100224),qd(e,i)}return e}function ue(e){return fI(t.createEmptyStatement(),e)}function _e(n,r,i){const o=xD(r),a=mD(r),s=me(r,r,void 0,i),c=sJ(r.name,S,cu);let l;if(gn.assert(c),!Qw(c)&&zS(e.getCompilerOptions())){const e=dE(c)?c.expression:Xw(c)?t.createStringLiteral(Sc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=KP(t,n,c,r.name);l=t.createAssignment(e,s)}_D(s,3072),gD(s,a);const u=fI(t.createExpressionStatement(l),r);return sD(u,r),SD(u,o),_D(u,96),u}function pe(e,n,r){const i=t.createExpressionStatement(fe(e,n,r,!1));return _D(i,3072),gD(i,mD(n.firstAccessor)),i}function fe(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=LT(fI(t.cloneNode(e),e),e.parent);_D(s,3136),gD(s,n.name);const c=sJ(n.name,S,cu);if(gn.assert(c),Qw(c))return gn.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=rA(t,c);_D(l,3104),gD(l,n.name);const u=[];if(r){const e=me(r,void 0,void 0,o);gD(e,mD(r)),_D(e,1024);const n=t.createPropertyAssignment("get",e);SD(n,xD(r)),u.push(n)}if(i){const e=me(i,void 0,void 0,o);gD(e,mD(i)),_D(e,1024);const n=t.createPropertyAssignment("set",e);SD(n,xD(i)),u.push(n)}u.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const _=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(u,!0)]);return a&&vA(_),_}function me(n,r,i,o){const a=m;m=void 0;const s=o&&yu(o)&&!Rv(n)?y(32670,73):y(32670,65),c=dJ(n.parameters,S,e),l=ge(n);return 32768&p&&!i&&(262===n.kind||218===n.kind)&&(i=t.getGeneratedNameForNode(n)),v(s,229376,0),m=a,sD(fI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function ge(e){let n,r,a=!1,s=!1;const c=[],l=[],u=e.body;let d;if(i(),OF(u)&&(d=t.copyStandardPrologue(u.statements,c,0,!1),d=t.copyCustomPrologue(u.statements,l,d,S,xf),d=t.copyCustomPrologue(u.statements,l,d,S,kf)),a=te(l,e)||a,a=ie(l,e,!1)||a,OF(u))d=t.copyCustomPrologue(u.statements,l,d,S),n=u.statements,de(l,cJ(u.statements,S,b_,d)),!a&&u.multiLine&&(a=!0);else{gn.assert(219===e.kind),n=zb(u,-1);const i=e.equalsGreaterThanToken;sy(i)||sy(u)||(Xb(i,u,_)?s=!0:a=!0);const o=sJ(u,S,Qu),c=t.createReturnStatement(o);fI(c,u),FD(c,u),_D(c,2880),l.push(c),r=u}if(t.mergeLexicalEnvironment(c,o()),ce(c,e),oe(c,e),X(c)&&(a=!0),l.unshift(...c),OF(u)&&ae(l,u.statements))return u;const p=t.createBlock(fI(t.createNodeArray(l),n),a);return fI(p,e.body),!a&&s&&_D(p,1),r&&yD(p,20,r),sD(p,e.body),p}function he(n,r){return db(n)?xz(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,gn.checkDefined(sJ(n.left,T,Qu)),n.operatorToken,gn.checkDefined(sJ(n.right,r?T:S,Qu))):hJ(n,S,e)}function be(n){return Fu(n.name)?Se(n):!n.initializer&&function(e){const t=c.hasNodeCheckFlag(e,16384),n=c.hasNodeCheckFlag(e,32768);return!(64&p||t&&n&&512&p)&&!(4096&p)&&(!c.isDeclarationWithCollidingName(e)||n&&!t&&!(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):hJ(n,S,e)}function Se(t){const n=y(32,0);let r;return r=Fu(t.name)?Tz(t,S,e,0,void 0,!!(32&n)):hJ(t,S,e),v(n,0,0),r}function De(e){m.labels.set(kc(e.label),!0)}function Ee(e){m.labels.set(kc(e.label),!1)}function Fe(n,i,a,s,c){const l=y(n,i),u=function(n,i,a,s){if(!$e(n)){let r;m&&(r=m.allowedNonLabeledJumps,m.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(zF(n)?function(e){return t.updateForStatement(e,sJ(e.initializer,T,s_),sJ(e.condition,S,Qu),sJ(e.incrementor,T,Qu),gn.checkDefined(sJ(e.statement,S,b_,t.liftToBlock)))}(n):hJ(n,S,e),i,m&&Ee);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&pc(t)){const i=Be(e)||Je(e)||ze(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return m&&(m.argumentsName&&(i.argumentsName=m.argumentsName),m.thisName&&(i.thisName=m.thisName),m.hoistedLocalVariables&&(i.hoistedLocalVariables=m.hoistedLocalVariables)),i}(n),l=[],u=m;m=c;const _=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=!!(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ge(n.loopOutParameters,2,1,a);const s=t.createVariableStatement(void 0,_D(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,_D(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,gn.checkDefined(sJ(t.createBlock(a,!0),S,OF))),o))]),4194304)),c=t.createVariableDeclarationList(O(n.loopOutParameters,We));return{functionName:r,containsYield:i,functionDeclaration:s,part:c}}(n,c):void 0,d=qe(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=sJ(e.statement,S,b_,t.liftToBlock),c=o(),l=[];(Je(e)||ze(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(gn.checkDefined(sJ(e.incrementor,S,Qu))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,gn.checkDefined(sJ(e.condition,S,Qu))),gn.checkDefined(sJ(t.createBreakStatement(),S,b_))))),gn.assert(s),OF(s)?de(l,s.statements):l.push(s),Ge(n.loopOutParameters,1,1,l),Jd(l,c);const u=t.createBlock(l,!0);OF(s)&&sD(u,s);const _=!!(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),_&&4&p&&(d|=524288);const f=t.createVariableStatement(void 0,_D(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,_D(t.createFunctionExpression(void 0,_?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,u),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,O(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),_D(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ge(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ge(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,_);return{functionName:a,containsYield:_,functionDeclaration:f,part:m}}(n,c,u):void 0;let f;if(m=u,_&&l.push(_.functionDeclaration),d&&l.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(l,c,u),_&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),_D(r,8388608)):r;return t.createExpressionStatement(i)}(_.functionName,_.containsYield)),d)if(s)f=s(n,i,d.part,a);else{const e=Ve(n,_,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,m&&Ee)}else{const e=Ve(n,_,gn.checkDefined(sJ(n.statement,S,b_,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&Ee)}return l.push(f),l}(a,s,l,c);return v(l,0,0),u}function Ne(e,t){return Fe(0,1280,e,t)}function Pe(e,t){return Fe(5056,3328,e,t)}function Ae(e,t){return Fe(3008,5376,e,t)}function Ie(e,t){return Fe(3008,5376,e,t,s.downlevelIteration?je:Re)}function Oe(n,r,i){const o=[],a=n.initializer;if(eN(a)){7&n.initializer.flags&&ut();const i=ve(a.declarations);if(i&&Fu(i.name)){const a=Tz(i,S,e,0,r),s=fI(t.createVariableDeclarationList(a),n.initializer);sD(s,n.initializer),gD(s,Jb(a[0].pos,Te(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(fI(t.createVariableStatement(void 0,sD(fI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),$b(a,-1)),a)),zb(a,-1)))}else{const e=t.createAssignment(a,r);db(e)?o.push(t.createExpressionStatement(he(e,!0))):(PT(e,a.end),o.push(fI(t.createExpressionStatement(gn.checkDefined(sJ(e,S,Qu))),zb(a,-1))))}if(i)return Le(de(o,i));{const e=sJ(n.statement,S,b_,t.liftToBlock);return gn.assert(e),OF(e)?t.updateBlock(e,fI(t.createNodeArray(Y(o,e.statements)),e.statements)):(o.push(e),Le(o))}}function Le(e){return _D(t.createBlock(t.createNodeArray(e),!0),864)}function Re(e,n,r){const i=sJ(e.expression,S,Qu);gn.assert(i);const o=t.createLoopVariable(),a=Xw(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);_D(i,96|op(i));const s=fI(t.createForStatement(_D(fI(t.createVariableDeclarationList([fI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),$b(e.expression,-1)),fI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),fI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),fI(t.createPostfixIncrement(o),e.expression),Oe(e,t.createElementAccessExpression(a,o),r)),e);return _D(s,512),fI(s,e),t.restoreEnclosingLabel(s,n,m&&Ee)}function je(e,r,i,o){const s=sJ(e.expression,S,Qu);gn.assert(s);const c=Xw(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=Xw(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),u=t.createUniqueName("e"),_=t.getGeneratedNameForNode(u),d=t.createTempVariable(void 0),p=fI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(u),a(d);const g=1024&o?t.inlineExpressions([t.createAssignment(u,t.createVoidZero()),p]):p,h=_D(fI(t.createForStatement(_D(fI(t.createVariableDeclarationList([fI(t.createVariableDeclaration(c,void 0,void 0,g),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),Oe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,m&&Ee)]),t.createCatchClause(t.createVariableDeclaration(_),_D(t.createBlock([t.createExpressionStatement(t.createAssignment(u,t.createObjectLiteralExpression([t.createPropertyAssignment("error",_)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([_D(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,_D(t.createBlock([_D(t.createIfStatement(u,t.createThrowStatement(t.createPropertyAccessExpression(u,"error"))),1)]),1))]))}function Me(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return zF(e)&&!!e.initializer&&Me(e.initializer)}function Je(e){return zF(e)&&!!e.condition&&Me(e.condition)}function ze(e){return zF(e)&&!!e.incrementor&&Me(e.incrementor)}function $e(e){return qe(e)||Be(e)}function qe(e){return c.hasNodeCheckFlag(e,4096)}function Ue(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)kF(e)||t(e.name)}(t.name)}function Ve(e,n,r){switch(e.kind){case 248:return function(e,n,r){const i=e.condition&&Me(e.condition),o=i||e.incrementor&&Me(e.incrementor);return t.updateForStatement(e,sJ(n?n.part:e.initializer,T,s_),sJ(i?void 0:e.condition,S,Qu),sJ(o?void 0:e.incrementor,T,Qu),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,gn.checkDefined(sJ(e.initializer,S,s_)),gn.checkDefined(sJ(e.expression,S,Qu)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,gn.checkDefined(sJ(e.initializer,S,s_)),gn.checkDefined(sJ(e.expression,S,Qu)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,gn.checkDefined(sJ(e.expression,S,Qu)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,gn.checkDefined(sJ(e.expression,S,Qu)),n)}(e,r);default:return gn.failBadSyntaxKind(e,"IterationStatement expected")}}function We(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function He(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ge(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(He(o,r)))}function Ke(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ke(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Qe(e,n,r,i,o){const a=n.name;if(Fu(a))for(const t of a.elements)kF(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.hasNodeCheckFlag(n,65536);if(s||o){const r=t.createUniqueName("out_"+kc(a));let o=0;s&&(o|=1),zF(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(KP(t,n,gn.checkDefined(sJ(e.name,S,cu))),gn.checkDefined(sJ(e.initializer,S,Qu)));return fI(i,e),r&&vA(i),i}function Ze(e,n,r){const i=t.createAssignment(KP(t,n,gn.checkDefined(sJ(e.name,S,cu))),t.cloneNode(e.name));return fI(i,e),r&&vA(i),i}function et(e,n,r,i){const o=t.createAssignment(KP(t,n,gn.checkDefined(sJ(e.name,S,cu))),me(e,e,void 0,r));return fI(o,e),i&&vA(o),o}function tt(e,r,i,o){const a=e.length,c=j(G(e,nt,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||MT(e.expression)||Nw(e.expression,"___spreadArray"))return e.expression}const l=n(),u=0!==c[0].kind;let _=u?t.createArrayLiteralExpression():c[0].expression;for(let e=u?0:1;e0?t.inlineExpressions(O(i,K)):void 0,sJ(n.condition,M,Qu),sJ(n.incrementor,M,Qu),mJ(n.statement,M,e))}else n=hJ(n,M,e);return m&&ce(),n}(r);case 249:return function(n){m&&ae();const r=n.initializer;if(eN(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,gn.checkDefined(sJ(n.expression,M,Qu)),gn.checkDefined(sJ(n.statement,M,b_,t.liftToBlock)))}else n=hJ(n,M,e);return m&&ce(),n}(r);case 252:return function(t){if(m){const e=me(t.label&&kc(t.label));if(e>0)return ve(e,t)}return hJ(t,M,e)}(r);case 251:return function(t){if(m){const e=ge(t.label&&kc(t.label));if(e>0)return ve(e,t)}return hJ(t,M,e)}(r);case 253:return function(e){return n=sJ(e.expression,M,Qu),r=e,fI(t.createReturnStatement(t.createArrayLiteralExpression(n?[ye(2),n]:[ye(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 226:return function(n){const r=ly(n);switch(r){case 0:return function(n){return X(n.right)?rb(n.operatorToken.kind)?function(e){const t=ee(),n=Z();return Se(n,gn.checkDefined(sJ(e.left,M,Qu)),e.left),56===e.operatorToken.kind?De(t,n,e.left):Ce(t,n,e.left),Se(n,gn.checkDefined(sJ(e.right,M,Qu)),e.right),te(t),n}(n):28===n.operatorToken.kind?q(n):t.updateBinaryExpression(n,Y(gn.checkDefined(sJ(n.left,M,Qu))),n.operatorToken,gn.checkDefined(sJ(n.right,M,Qu))):hJ(n,M,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Y(gn.checkDefined(sJ(r.expression,M,Vu))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Y(gn.checkDefined(sJ(r.expression,M,Vu))),Y(gn.checkDefined(sJ(r.argumentExpression,M,Qu))));break;default:e=gn.checkDefined(sJ(r,M,Qu))}const o=n.operatorToken.kind;return ZJ(o)?fI(t.createAssignment(e,fI(t.createBinaryExpression(Y(e),ez(o),gn.checkDefined(sJ(i,M,Qu))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,gn.checkDefined(sJ(i,M,Qu)))}return hJ(n,M,e)}(n);default:return gn.assertNever(r)}}(r);case 356:return function(e){let n=[];for(const r of e.elements)hF(r)&&28===r.operatorToken.kind?n.push(q(r)):(X(r)&&n.length>0&&(we(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(gn.checkDefined(sJ(r,M,Qu))));return t.inlineExpressions(n)}(r);case 227:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return De(e,gn.checkDefined(sJ(t.condition,M,Qu)),t.condition),Se(r,gn.checkDefined(sJ(t.whenTrue,M,Qu)),t.whenTrue),Te(n),te(e),Se(r,gn.checkDefined(sJ(t.whenFalse,M,Qu)),t.whenFalse),te(n),r}return hJ(t,M,e)}(r);case 229:return function(e){const r=ee(),i=sJ(e.expression,M,Qu);return e.asteriskToken?function(e,t){we(7,[e],t)}(8388608&op(e.expression)?i:fI(n().createValuesHelper(i),e),e):function(e,t){we(6,[e],t)}(i,e),te(r),o=e,fI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),o);var o}(r);case 209:return function(e){return U(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(cJ(n,M,Du,0,i),r));const a=Pe(n,s,[],i);return a.push(r?vA(LT(fI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a);function s(n,i){X(i)&&n.length>0&&(xe(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=sJ(iA(t,e,i,o),M,Qu);return a&&(r&&vA(a),n.push(a)),n}}(r);case 212:return function(n){return X(n.argumentExpression)?t.updateElementAccessExpression(n,Y(gn.checkDefined(sJ(n.expression,M,Vu))),gn.checkDefined(sJ(n.argumentExpression,M,Qu))):hJ(n,M,e)}(r);case 213:return function(n){if(!gf(n)&&f(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return sD(fI(t.createFunctionApplyCall(Y(gn.checkDefined(sJ(e,M,Vu))),r,U(n.arguments)),n),n)}return hJ(n,M,e)}(r);case 214:return function(n){if(f(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return sD(fI(t.createNewExpression(t.createFunctionApplyCall(Y(gn.checkDefined(sJ(e,M,Qu))),r,U(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return hJ(n,M,e)}(r);default:return hJ(r,M,e)}}(r):4196352&r.transformFlags?hJ(r,M,e):r}}function J(n){if(n.asteriskToken)n=sD(fI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,dJ(n.parameters,M,e),void 0,$(n.body)),n),n);else{const t=p,r=m;p=!1,m=!1,n=hJ(n,M,e),p=t,m=r}return p?void o(n):n}function z(n){if(n.asteriskToken)n=sD(fI(t.createFunctionExpression(void 0,void 0,n.name,void 0,dJ(n.parameters,M,e),void 0,$(n.body)),n),n);else{const t=p,r=m;p=!1,m=!1,n=hJ(n,M,e),p=t,m=r}return n}function $(e){const o=[],a=p,s=m,c=g,l=h,u=y,_=v,d=b,f=x,O=L,B=S,J=k,z=T,$=C;p=!0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,L=1,S=void 0,k=void 0,T=void 0,C=t.createTempVariable(void 0),r();const q=t.copyPrologue(e.statements,o,!1,M);V(e.statements,q);const U=function(){R=0,j=0,D=void 0,w=!1,E=!1,F=void 0,N=void 0,P=void 0,A=void 0,I=void 0;const e=function(){if(S){for(let e=0;e0)),1048576))}();return Jd(o,i()),o.push(t.createReturnStatement(U)),p=a,m=s,g=c,h=l,y=u,v=_,b=d,x=f,L=O,S=B,k=J,T=z,C=$,fI(t.createBlock(o,e.multiLine),e)}function q(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){hF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(we(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(gn.checkDefined(sJ(e,M,Qu))))}}function U(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=cJ(e,M,Qu,0,o);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=Pe(e,(function(e,r){if(X(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(gn.checkDefined(sJ(r,M,Qu))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):fI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function V(e,t=0){const n=e.length;for(let r=t;r0?Te(t,e):xe(e)}(n);case 252:return function(e){const t=me(e.label?kc(e.label):void 0);t>0?Te(t,e):xe(e)}(n);case 253:return function(e){we(8,[sJ(e.expression,M,Qu)],e)}(n);case 254:return function(e){X(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(gn.checkDefined(sJ(e.expression,M,Qu)))),W(e.statement),gn.assert(1===oe()),te(re().endLabel)):xe(sJ(e,M,b_))}(n);case 255:return function(e){if(X(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(gn.checkDefined(sJ(e.expression,M,Qu))),a=[];let s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(gn.checkDefined(sJ(r.expression,M,Qu)),[ve(a[i],r.expression)]))}else e++}l.length&&(xe(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Te(s>=0?a[s]:i);for(let e=0;e0)break;o.push(K(t))}o.length&&(xe(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function K(e){return gD(t.createAssignment(gD(t.cloneNode(e.name),e.name),gn.checkDefined(sJ(e.initializer,M,Qu))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n=0;n--){const t=v[n];if(!de(t))break;if(t.labelText===e)return!0}return!1}function me(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(de(n)&&n.labelText===e)return n.breakLabel;if(_e(n)&&fe(e,t-1))return n.breakLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(_e(t))return t.breakLabel}return 0}function ge(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(pe(n)&&fe(e,t-1))return n.continueLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(pe(t))return t.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===x&&(x=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===x[e]?x[e]=[n]:x[e].push(n),n}return t.createOmittedExpression()}function ye(e){const n=t.createNumericLiteral(e);return ED(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function ve(e,n){return gn.assertLessThan(0,e,"Invalid label"),fI(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),he(e)])),n)}function be(){we(0)}function xe(e){e?we(1,[e]):be()}function Se(e,t,n){we(2,[e,t],n)}function Te(e,t){we(3,[e],t)}function Ce(e,t,n){we(4,[e,t],n)}function De(e,t,n){we(5,[e,t],n)}function we(e,t,n){void 0===S&&(S=[],k=[],T=[]),void 0===b&&te(ee());const r=S.length;S[r]=e,k[r]=t,T[r]=n}function Ee(e){(function(e){if(!E)return!0;if(!b||!x)return!1;for(let t=0;t=0;e--){const n=I[e];N=[t.createWithStatement(n.expression,t.createBlock(N))]}if(A){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=A;N.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(C,"trys"),"push"),void 0,[t.createArrayLiteralExpression([he(e),he(n),he(r),he(i)])]))),A=void 0}e&&N.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(C,"label"),t.createNumericLiteral(j+1))))}F.push(t.createCaseClause(t.createNumericLiteral(j),N||[])),N=void 0}function Ne(e){if(b)for(let t=0;t{q_(e.arguments[0])&&!Eg(e.arguments[0].text,a)||(y=le(y,e))}));const n=function(e){switch(e){case 2:return k;case 3:return T;default:return S}}(_)(t);return g=void 0,h=void 0,b=!1,n}));function x(){return!(zk(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator)||h.exportEquals||!XI(g))}function S(n){r();const o=[],s=HS(a,"alwaysStrict")||XI(g),c=t.copyPrologue(n.statements,o,s&&!sf(n),F);if(x()&&le(o,G()),X(h.exportedNames)){const e=50;for(let n=0;n11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(kc(n))),e)),t.createVoidZero())))}for(const e of h.exportedFunctions)V(o,e);le(o,sJ(h.externalHelpersImportDeclaration,F,b_)),de(o,cJ(n.statements,F,b_,c)),E(o,!1),Jd(o,i());const l=t.updateSourceFile(n,fI(t.createNodeArray(o),n.statements));return ID(l,e.readEmitHelpers()),l}function k(n){const r=t.createIdentifier("define"),i=CA(t,n,c,a),o=sf(n)&&n,{aliasedModuleNames:s,unaliasedModuleNames:l,importAliasNames:_}=C(n,!0),d=t.updateSourceFile(n,fI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?u:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...s,...l]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),..._],void 0,w(n))]))]),n.statements));return ID(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),s=CA(t,n,c,a),l=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,fI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),_D(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...s?[s]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),u=t.updateSourceFile(n,fI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(l,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,w(n))]))]),n.statements));return ID(u,e.readEmitHelpers()),u}function C(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of h.externalImports){const l=TA(t,e,g,c,s,a),u=kA(t,e,g);l&&(n&&u?(_D(u,8),r.push(l),o.push(t.createParameterDeclaration(void 0,void 0,u))):i.push(l))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function D(e){if(uN(e)||kN(e)||!TA(t,e,g,c,s,a))return;const n=kA(t,e,g),r=M(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function w(e){r();const n=[],o=t.copyPrologue(e.statements,n,!0,F);x()&&le(n,G()),X(h.exportedNames)&&le(n,t.createExpressionStatement(Pe(h.exportedNames,((e,n)=>11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(kc(n))),e)),t.createVoidZero())));for(const e of h.exportedFunctions)V(n,e);le(n,sJ(h.externalHelpersImportDeclaration,F,b_)),2===_&&de(n,q(h.externalImports,D)),de(n,cJ(e.statements,F,b_,o)),E(n,!0),Jd(n,i());const a=t.createBlock(n,!0);return b&&AD(a,g$),a}function E(e,n){if(h.exportEquals){const r=sJ(h.exportEquals.expression,A,Qu);if(r)if(n){const n=t.createReturnStatement(r);fI(n,h.exportEquals),_D(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));fI(n,h.exportEquals),_D(n,3072),e.push(n)}}}function F(e){switch(e.kind){case 272:return function(e){let n;const r=Ng(e);if(2!==_){if(!e.importClause)return sD(fI(t.createExpressionStatement(B(e)),e),e);{const i=[];r&&!Pg(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,M(e,B(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,M(e,B(e)))),r&&Pg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=le(n,sD(fI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,l>=2?2:0)),e),e))}}else r&&Pg(e)&&(n=le(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([sD(fI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],l>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new KJ;n.name&&(e=W(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 274:e=W(e,r,i);break;case 275:for(const t of i.elements)e=W(e,r,t,!0)}return e}(n,e),we(n)}(e);case 271:return function(e){let n;return gn.assert(Pm(e),"import= for internal module references should be handled in an earlier transformer."),2!==_?n=Lv(e,32)?le(n,sD(fI(t.createExpressionStatement(Q(e.name,B(e))),e),e)):le(n,sD(fI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,B(e))],l>=2?2:0)),e),e)):Lv(e,32)&&(n=le(n,sD(fI(t.createExpressionStatement(Q(t.getExportName(e),t.getLocalName(e))),e),e))),n=function(e,t){return h.exportEquals?e:W(e,new KJ,t)}(n,e),we(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&TN(e.exportClause)){const i=[];2!==_&&i.push(sD(fI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,B(e))])),e),e));for(const o of e.exportClause.elements){const s=o.propertyName||o.name,c=!PS(a)||2&ap(e)||!ep(s)?r:n().createImportDefaultHelper(r),l=11===s.kind?t.createElementAccessExpression(c,s):t.createPropertyAccessExpression(c,s);i.push(sD(fI(t.createExpressionStatement(Q(11===o.name.kind?t.cloneNode(o.name):t.getExportName(o),l,void 0,!0)),o),o))}return we(i)}if(e.exportClause){const i=[];return i.push(sD(fI(t.createExpressionStatement(Q(t.cloneNode(e.exportClause.name),function(e,t){return!PS(a)||2&ap(e)?t:qJ(e)?n().createImportStarHelper(t):t}(e,2!==_?B(e):Qd(e)||11===e.exportClause.name.kind?r:t.createIdentifier(kc(e.exportClause.name))))),e),e)),we(i)}return sD(fI(t.createExpressionStatement(n().createExportStarHelper(2!==_?B(e):r)),e),e)}(e);case 277:return function(e){if(!e.isExportEquals)return K(t.createIdentifier("default"),sJ(e.expression,A,Qu),e,!0)}(e);default:return N(e)}}function N(n){switch(n.kind){case 243:return function(n){let r,i,o;if(Lv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(Xw(r.name)&&sA(r.name))e||(e=cJ(n.modifiers,Y,au)),i=r.initializer?le(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,Q(r.name,sJ(r.initializer,A,Qu)))):le(i,r);else if(r.initializer)if(!Fu(r.name)&&(uF(r.initializer)||lF(r.initializer)||SF(r.initializer))){const e=t.createAssignment(fI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(Kh(r.name)));i=le(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,sJ(r.initializer,A,Qu))),o=le(o,e),a=!0}else o=le(o,z(r));if(i&&(r=le(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=sD(fI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&uD(e),r=le(r,e)}}else r=le(r,hJ(n,A,e));return r=function(e,t){return $(e,t.declarationList,!1)}(r,n),we(r)}(n);case 262:return function(n){let r;return r=Lv(n,32)?le(r,sD(fI(t.createFunctionDeclaration(cJ(n.modifiers,Y,au),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,cJ(n.parameters,A,fE),void 0,hJ(n.body,A,e)),n),n)):le(r,hJ(n,A,e)),we(r)}(n);case 263:return function(n){let r;return r=Lv(n,32)?le(r,sD(fI(t.createClassDeclaration(cJ(n.modifiers,Y,ku),t.getDeclarationName(n,!0,!0),void 0,cJ(n.heritageClauses,A,VN),cJ(n.members,A,hu)),n),n)):le(r,hJ(n,A,e)),r=V(r,n),we(r)}(n);case 248:return L(n,!0);case 249:return function(n){if(eN(n.initializer)&&!(7&n.initializer.flags)){const r=$(void 0,n.initializer,!0);if(X(r)){const i=sJ(n.initializer,I,s_),o=sJ(n.expression,A,Qu),a=mJ(n.statement,N,e),s=OF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,sJ(n.initializer,I,s_),sJ(n.expression,A,Qu),mJ(n.statement,N,e))}(n);case 250:return function(n){if(eN(n.initializer)&&!(7&n.initializer.flags)){const r=$(void 0,n.initializer,!0),i=sJ(n.initializer,I,s_),o=sJ(n.expression,A,Qu);let a=mJ(n.statement,N,e);return X(r)&&(a=OF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,sJ(n.initializer,I,s_),sJ(n.expression,A,Qu),mJ(n.statement,N,e))}(n);case 246:return function(n){return t.updateDoStatement(n,mJ(n.statement,N,e),sJ(n.expression,A,Qu))}(n);case 247:return function(n){return t.updateWhileStatement(n,sJ(n.expression,A,Qu),mJ(n.statement,N,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,sJ(e.statement,N,b_,t.liftToBlock)??fI(t.createEmptyStatement(),e.statement))}(n);case 254:return function(e){return t.updateWithStatement(e,sJ(e.expression,A,Qu),gn.checkDefined(sJ(e.statement,N,b_,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,sJ(e.expression,A,Qu),sJ(e.thenStatement,N,b_,t.liftToBlock)??t.createBlock([]),sJ(e.elseStatement,N,b_,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,sJ(e.expression,A,Qu),gn.checkDefined(sJ(e.caseBlock,N,cN)))}(n);case 269:return function(e){return t.updateCaseBlock(e,cJ(e.clauses,N,F_))}(n);case 296:return function(e){return t.updateCaseClause(e,sJ(e.expression,A,Qu),cJ(e.statements,N,b_))}(n);case 297:case 258:return function(t){return hJ(t,N,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,gn.checkDefined(sJ(e.block,N,OF)))}(n);case 241:return function(t){return t=hJ(t,N,e)}(n);default:return A(n)}}function P(r,i){if(!(276828160&r.transformFlags||(null==y?void 0:y.length)))return r;switch(r.kind){case 248:return L(r,!1);case 244:return function(e){return t.updateExpressionStatement(e,sJ(e.expression,I,Qu))}(r);case 217:return function(e,n){return t.updateParenthesizedExpression(e,sJ(e.expression,n?I:A,Qu))}(r,i);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,sJ(e.expression,n?I:A,Qu))}(r,i);case 213:const u=r===ve(y);if(u&&y.shift(),gf(r)&&c.shouldTransformImportCall(g))return function(r,i){if(0===_&&l>=7)return hJ(r,A,e);const u=TA(t,r,g,c,s,a),d=sJ(ve(r.arguments),A,Qu),p=!u||d&&Iw(d)&&d.text===u.text?d&&i?Iw(d)?vz(d,a):n().createRewriteRelativeImportExtensionsHelper(d):d:u,f=!!(16384&r.transformFlags);switch(a.module){case 2:return R(p,f);case 3:return function(e,n){if(b=!0,QJ(e)){const r=Yl(e)?e:Iw(e)?t.createStringLiteralFromNode(e):_D(fI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,j(e),void 0,R(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,j(r,!0),void 0,R(r,n)))}}(p??t.createVoidZero(),f);default:return j(p)}}(r,u);if(u)return function(e){return t.updateCallExpression(e,e.expression,void 0,cJ(e.arguments,(t=>t===e.arguments[0]?q_(t)?vz(t,a):n().createRewriteRelativeImportExtensionsHelper(t):A(t)),Qu))}(r);break;case 226:if(db(r))return function(t,n){return O(t.left)?xz(t,A,e,0,!n,J):hJ(t,A,e)}(r,i);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&Xw(n.operand)&&!Yl(n.operand)&&!sA(n.operand)&&!ax(n.operand)){const e=ee(n.operand);if(e){let i,a=sJ(n.operand,A,Qu);mF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),fI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),fI(a,n));for(const t of e)v[QB(a)]=!0,a=Q(t,a),fI(a,n);return i&&(v[QB(a)]=!0,a=t.createComma(a,i),fI(a,n)),a}}return hJ(n,A,e)}(r,i)}return hJ(r,A,e)}function A(e){return P(e,!1)}function I(e){return P(e,!0)}function O(e){if(tF(e))for(const t of e.properties)switch(t.kind){case 303:if(O(t.initializer))return!0;break;case 304:if(O(t.name))return!0;break;case 305:if(O(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:gn.assertNever(t,"Unhandled object member kind")}else if(eF(e)){for(const t of e.elements)if(xF(t)){if(O(t.expression))return!0}else if(O(t))return!0}else if(Xw(e))return p(ee(e))>(cA(e)?1:0);return!1}function L(n,r){if(r&&n.initializer&&eN(n.initializer)&&!(7&n.initializer.flags)){const i=$(void 0,n.initializer,!1);if(i){const o=[],a=sJ(n.initializer,I,eN),s=t.createVariableStatement(void 0,a);o.push(s),de(o,i);const c=sJ(n.condition,A,Qu),l=sJ(n.incrementor,I,Qu),u=mJ(n.statement,r?N:A,e);return o.push(t.updateForStatement(n,void 0,c,l,u)),o}}return t.updateForStatement(n,sJ(n.initializer,I,s_),sJ(n.condition,A,Qu),sJ(n.incrementor,I,Qu),mJ(n.statement,r?N:A,e))}function R(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),s=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let u;l>=2?u=t.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(u=t.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&_D(u,16));const _=t.createNewExpression(t.createIdentifier("Promise"),void 0,[u]);return PS(a)?t.createCallExpression(t.createPropertyAccessExpression(_,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):_}function j(e,r){const i=e&&!YJ(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?l>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);PS(a)&&(s=n().createImportStarHelper(s));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let u;return u=l>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,s):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(s)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[u])}function M(e,t){return!PS(a)||2&ap(e)?t:UJ(e)?n().createImportStarHelper(t):VJ(e)?n().createImportDefaultHelper(t):t}function B(e){const n=TA(t,e,g,c,s,a),r=[];return n&&r.push(vz(n,a)),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function J(e,n,r){const i=ee(e);if(i){let o=cA(e)?n:t.createAssignment(e,n);for(const e of i)_D(o,8),o=Q(e,o,r);return o}return t.createAssignment(e,n)}function z(n){return Fu(n.name)?xz(sJ(n,A,cx),A,e,0,!1,J):t.createAssignment(fI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?sJ(n.initializer,A,Qu):t.createVoidZero())}function $(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=U(e,r,n);return e}function U(e,t,n){if(h.exportEquals)return e;if(Fu(t.name))for(const r of t.name.elements)kF(r)||(e=U(e,r,n));else Yl(t.name)||ZF(t)&&!t.initializer&&!n||(e=W(e,new KJ,t));return e}function V(e,n){if(h.exportEquals)return e;const r=new KJ;return Lv(n,32)&&(e=H(e,r,Lv(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=W(e,r,n)),e}function W(e,n,r,i){const o=t.getDeclarationName(r),a=h.exportSpecifiers.get(o);if(a)for(const t of a)e=H(e,n,t.name,o,t.name,void 0,i);return e}function H(e,t,n,r,i,o,a){if(11!==n.kind){if(t.has(n))return e;t.set(n,!0)}return e=le(e,K(n,r,i,o,a))}function G(){const e=t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])]));return _D(e,2097152),e}function K(e,n,r,i,o){const a=fI(t.createExpressionStatement(Q(e,n,void 0,o)),r);return vA(a),i||_D(a,3072),a}function Q(e,n,r,i){return fI(i?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(11===e.kind?t.createElementAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)):t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function Y(e){switch(e.kind){case 95:case 90:return}return e}function Z(e){var n,r;if(8192&op(e)){const n=bA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!Yl(e)||64&e.emitNode.autoGenerate.flags)&&!sA(e)){const i=s.getReferencedExportContainer(e,cA(e));if(i&&307===i.kind)return fI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=s.getReferencedImportDeclaration(e);if(o){if(dN(o))return fI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(xN(o)){const i=o.propertyName||o.name,a=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return fI(11===i.kind?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i)),e)}}}return e}function ee(e){if(Yl(e)){if(eu(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=s.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[BJ(t)];const n=new Set,r=s.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[BJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Be(n)}}}}var g$={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function h$(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return x&&e.id&&x[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&op(e)){const n=bA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!Yl(e)&&!sA(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(dN(i))return fI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(xN(i)){const o=i.propertyName||i.name,a=t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i);return fI(11===o.kind?t.createElementAccessExpression(a,t.cloneNode(o)):t.createPropertyAccessExpression(a,t.cloneNode(o)),e)}}}return e}(e);case 226:return function(e){if(cb(e.operatorToken.kind)&&Xw(e.left)&&(!Yl(e.left)||eu(e.left))&&!sA(e.left)){const t=H(e.left);if(t){let n=e;for(const e of t)n=M(e,G(n));return n}}return e}(e);case 236:return function(e){return hf(e)?t.createPropertyAccessExpression(y,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 304===e.kind?function(e){var n,r;const i=e.name;if(!Yl(i)&&!sA(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(dN(o))return fI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(xN(o)){const a=o.propertyName||o.name,s=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return fI(t.createPropertyAssignment(t.cloneNode(i),11===a.kind?t.createElementAccessExpression(s,t.cloneNode(a)):t.createPropertyAccessExpression(s,t.cloneNode(a))),e)}}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(307===t.kind){const r=BJ(t);m=t,g=u[r],h=_[r],x=d[r],y=p[r],x&&delete d[r],l(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);const u=[],_=[],d=[],p=[];let m,g,h,y,v,b,x;return $J(e,(function(i){if(i.isDeclarationFile||!(kp(i,o)||8388608&i.transformFlags))return i;const c=BJ(i);m=i,b=i,g=u[c]=WJ(e,i),h=t.createUniqueName("exports"),_[c]=h,y=p[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=TA(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),f=function(e,i){const a=[];n();const s=HS(o,"alwaysStrict")||XI(m),c=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),sJ(g.externalHelpersImportDeclaration,T,b_);const l=cJ(e.statements,T,b_,c);de(a,v),Jd(a,r());const u=function(e){if(!g.hasExportStarsToExportValues)return;if(!X(g.exportedNames)&&0===g.exportedFunctions.size&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(278===e.kind&&e.exportClause){t=!0;break}if(!t){const t=S(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const e of g.exportedNames)ep(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(const e of g.exportedFunctions)Lv(e,2048)||(gn.assert(!!e.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e.name),t.createTrue())));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=S(r);return e.push(i),i.name}(a),_=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",k(u,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(_,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,f),D=CA(t,i,s,o),w=t.createArrayLiteralExpression(O(l,(e=>e.name))),E=_D(t.updateSourceFile(i,fI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,D?[D,w,C]:[w,C]))]),i.statements)),2048);return o.outFile||RD(E,f,(e=>!e.scoped)),x&&(d[c]=x,x=void 0),m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,E}));function S(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([_D(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function k(e,n){const r=[];for(const i of n){const n=f(i.externalImports,(e=>kA(t,e,m))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=kA(t,n,m);switch(n.kind){case 272:if(!n.importClause)break;case 271:gn.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),Lv(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(kc(r)),o])));break;case 278:if(gn.assert(void 0!==r),n.exportClause)if(TN(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Yd(r.name)),t.createElementAccessExpression(o,t.createStringLiteral(Yd(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(Yd(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 272:return function(e){let n;return e.importClause&&i(kA(t,e,m)),we(function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=L(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 274:e=L(e,r);break;case 275:for(const t of r.elements)e=L(e,t)}return e}(n,e))}(e);case 271:return function(e){let n;return gn.assert(Pm(e),"import= for internal module references should be handled in an earlier transformer."),i(kA(t,e,m)),we(function(e,t){return g.exportEquals?e:L(e,t)}(n,e))}(e);case 278:return function(e){gn.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=sJ(e.expression,q,Qu);return j(t.createIdentifier("default"),n,!0)}(e);default:return B(e)}}function C(e){if(!w(e.declarationList))return sJ(e,q,b_);let n;if(_f(e.declarationList)||uf(e.declarationList)){const r=cJ(e.modifiers,W,ku),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,E(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=le(n,t.updateVariableStatement(e,r,o))}else{let r;const i=Lv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=le(r,E(t,i)):D(t);r&&(n=le(n,fI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)(r.initializer||n)&&(e=A(e,r));return e}(n,e,!1),we(n)}function D(e){if(Fu(e.name))for(const t of e.name.elements)kF(t)||D(t);else i(t.cloneNode(e.name))}function w(e){return!(4194304&op(e)||307!==b.kind&&7&hc(e).flags)}function E(t,n){const r=n?F:N;return Fu(t.name)?xz(t,q,e,0,!1,r):t.initializer?r(t.name,sJ(t.initializer,q,Qu)):t.name}function F(e,t,n){return P(e,t,n,!0)}function N(e,t,n){return P(e,t,n,!1)}function P(e,n,r,o){return i(t.cloneNode(e)),o?M(e,G(fI(t.createAssignment(e,n),r))):G(fI(t.createAssignment(e,n),r))}function A(e,t,n){if(g.exportEquals)return e;if(Fu(t.name))for(const n of t.name.elements)kF(n)||(e=A(e,n));else if(!Yl(t.name)){let n;e=L(e,t,n)}return e}function I(e,n){if(g.exportEquals)return e;let r;if(Lv(n,32)){const i=Lv(n,2048)?t.createStringLiteral("default"):n.name;e=R(e,i,t.getLocalName(n)),r=Kh(i)}return n.name&&(e=L(e,n,r)),e}function L(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(i);if(o)for(const t of o)Yd(t.name)!==r&&(e=R(e,t.name,i));return e}function R(e,t,n,r){return e=le(e,j(t,n,r))}function j(e,n,r){const i=t.createExpressionStatement(M(e,n));return vA(i),r||_D(i,3072),i}function M(e,n){const r=Xw(e)?t.createStringLiteralFromNode(e):e;return _D(n,3072|op(n)),SD(t.createCallExpression(h,void 0,[r,n]),n)}function B(n){switch(n.kind){case 243:return C(n);case 262:return function(n){v=Lv(n,32)?le(v,t.updateFunctionDeclaration(n,cJ(n.modifiers,W,ku),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,cJ(n.parameters,q,fE),void 0,sJ(n.body,q,OF))):le(v,hJ(n,q,e)),v=I(v,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return i(r),n=le(n,fI(t.createExpressionStatement(t.createAssignment(r,fI(t.createClassExpression(cJ(e.modifiers,W,ku),e.name,void 0,cJ(e.heritageClauses,q,VN),cJ(e.members,q,hu)),e))),e)),n=I(n,e),we(n)}(n);case 248:return J(n,!0);case 249:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,z(n.initializer),sJ(n.expression,q,Qu),mJ(n.statement,B,e)),b=r,n}(n);case 250:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,z(n.initializer),sJ(n.expression,q,Qu),mJ(n.statement,B,e)),b=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,mJ(n.statement,B,e),sJ(n.expression,q,Qu))}(n);case 247:return function(n){return t.updateWhileStatement(n,sJ(n.expression,q,Qu),mJ(n.statement,B,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,sJ(e.statement,B,b_,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}(n);case 254:return function(e){return t.updateWithStatement(e,sJ(e.expression,q,Qu),gn.checkDefined(sJ(e.statement,B,b_,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,sJ(e.expression,q,Qu),sJ(e.thenStatement,B,b_,t.liftToBlock)??t.createBlock([]),sJ(e.elseStatement,B,b_,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,sJ(e.expression,q,Qu),gn.checkDefined(sJ(e.caseBlock,B,cN)))}(n);case 269:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,cJ(e.clauses,B,F_)),b=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,sJ(e.expression,q,Qu),cJ(e.statements,B,b_))}(n);case 297:case 258:return function(t){return hJ(t,B,e)}(n);case 299:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,gn.checkDefined(sJ(e.block,B,OF))),b=n,e}(n);case 241:return function(t){const n=b;return b=t,t=hJ(t,B,e),b=n,t}(n);default:return q(n)}}function J(n,r){const i=b;return b=n,n=t.updateForStatement(n,sJ(n.initializer,r?z:U,s_),sJ(n.condition,q,Qu),sJ(n.incrementor,U,Qu),mJ(n.statement,r?B:q,e)),b=i,n}function z(e){if(function(e){return eN(e)&&w(e)}(e)){let n;for(const t of e.declarations)n=le(n,E(t,!1)),t.initializer||D(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return sJ(e,U,s_)}function $(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return J(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,sJ(e.expression,U,Qu))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,sJ(e.expression,n?U:q,Qu))}(n,r);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,sJ(e.expression,n?U:q,Qu))}(n,r);case 226:if(db(n))return function(t,n){return V(t.left)?xz(t,q,e,0,!n):hJ(t,q,e)}(n,r);break;case 213:if(gf(n))return function(e){const n=TA(t,e,m,s,a,o),r=sJ(ve(e.arguments),q,Qu),i=!n||r&&Iw(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&Xw(n.operand)&&!Yl(n.operand)&&!sA(n.operand)&&!ax(n.operand)){const e=H(n.operand);if(e){let o,a=sJ(n.operand,q,Qu);mF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),fI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),fI(a,n));for(const t of e)a=M(t,G(a));return o&&(a=t.createComma(a,o),fI(a,n)),a}}return hJ(n,q,e)}(n,r)}return hJ(n,q,e)}function q(e){return $(e,!1)}function U(e){return $(e,!0)}function V(e){if(_b(e,!0))return V(e.left);if(xF(e))return V(e.expression);if(tF(e))return X(e.properties,V);if(eF(e))return X(e.elements,V);if(GN(e))return V(e.name);if(HN(e))return V(e.initializer);if(Xw(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&307===t.kind}return!1}function W(e){switch(e.kind){case 95:case 90:return}return e}function H(e){let n;const r=function(e){if(!Yl(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[BJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[BJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&307===i.kind&&(n=le(n,t.getDeclarationName(r))),n=de(n,null==g?void 0:g.exportedBindings[BJ(r)])}else if(Yl(e)&&eu(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function G(e){return void 0===x&&(x=[]),x[QB(e)]=!0,e}}function y$(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=DS(o),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=function(e,t,n){QN(t)?((XI(t)||NS(o))&&o.importHelpers&&(_=new Map),d=t,s(e,t,n),d=void 0,_=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return(n=c(e,n)).id&&l.has(n.id)?n:Xw(n)&&8192&op(n)?function(e){const n=d&&bA(d);if(n)return l.add(QB(e)),t.createPropertyAccessExpression(n,e);if(_){const n=kc(e);let r=_.get(n);return r||_.set(n,r=t.createUniqueName(n,48)),r}return e}(n):n},e.enableEmitNotification(307),e.enableSubstitution(80);const l=new Set;let u,_,d,p;return $J(e,(function(r){if(r.isDeclarationFile)return r;if(XI(r)||NS(o)){d=r,p=void 0,o.rewriteRelativeImportExtensions&&(4194304&d.flags||jm(r))&&LC(r,!1,!1,(e=>{q_(e.arguments[0])&&!Eg(e.arguments[0].text,o)||(u=le(u,e))}));let i=function(r){const i=SA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return de(e,lJ([i],f,b_)),de(e,cJ(r.statements,f,b_,n)),t.updateSourceFile(r,fI(t.createNodeArray(e),r.statements))}return hJ(r,f,e)}(r);return ID(i,e.readEmitHelpers()),d=void 0,p&&(i=t.updateSourceFile(i,fI(t.createNodeArray(zd(i.statements.slice(),p)),i.statements))),!XI(r)||200===wS(o)||X(i.statements,r_)?i:t.updateSourceFile(i,fI(t.createNodeArray([...i.statements,GP(t)]),i.statements))}return r}));function f(r){switch(r.kind){case 271:return wS(o)>=100?function(e){let n;return gn.assert(Pm(e),"import= for internal module references should be handled in an earlier transformer."),n=le(n,sD(fI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,m(e))],a>=2?2:0)),e),e)),n=function(e,n){return Lv(n,32)&&(e=le(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,kc(n.name))])))),e}(n,e),we(n)}(r):void 0;case 277:return function(e){return e.isExportEquals?200===wS(o)?sD(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e):void 0:e}(r);case 278:return function(e){const n=vz(e.moduleSpecifier,o);if(void 0!==o.module&&o.module>5||!e.exportClause||!vN(e.exportClause)||!e.moduleSpecifier)return e.moduleSpecifier&&n!==e.moduleSpecifier?t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,n,e.attributes):e;const r=e.exportClause.name,i=t.getGeneratedNameForNode(r),a=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(i)),n,e.attributes);sD(a,e.exportClause);const s=Qd(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return sD(s,e),[a,s]}(r);case 272:return function(e){if(!o.rewriteRelativeImportExtensions)return e;const n=vz(e.moduleSpecifier,o);return n===e.moduleSpecifier?e:t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}(r);case 213:if(r===(null==u?void 0:u[0]))return function(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[q_(e.arguments[0])?vz(e.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(u.shift());break;default:if((null==u?void 0:u.length)&&ix(r,u[0]))return hJ(r,f,e)}return r}function m(e){const n=TA(t,e,gn.checkDefined(d),r,i,o),s=[];if(n&&s.push(vz(n,o)),200===wS(o))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!p){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));p=[n,i]}const c=p[1].declarationList.declarations[0].name;return gn.assertNode(c,Xw),t.createCallExpression(t.cloneNode(c),void 0,s)}}function v$(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=y$(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=m$(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);let u;return e.onSubstituteNode=function(e,n){return QN(n)?(u=n,t(e,n)):u?l(u)>=5?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return QN(t)&&(u=t),u?l(u)>=5?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(307),e.enableEmitNotification(307),function(t){return 307===t.kind?_(t):function(t){return e.factory.createBundle(O(t.sourceFiles,_))}(t)};function _(e){if(e.isDeclarationFile)return e;u=e;const t=(l(e)>=5?r:a)(e);return u=void 0,gn.assert(QN(t)),t}}function b$(e){return ZF(e)||hE(e)||gE(e)||ZE(e)||I_(e)||O_(e)||CE(e)||TE(e)||vE(e)||yE(e)||tN(e)||fE(e)||pE(e)||TF(e)||uN(e)||iN(e)||xE(e)||DE(e)||nF(e)||rF(e)||hF(e)||Lg(e)}function x$(e){return I_(e)||O_(e)?function(t){const n=function(t){return Rv(e)?t.errorModuleName?2===t.accessibility?ha.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?ha.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ha.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ha.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:yE(e)||vE(e)?function(t){const n=function(t){return Rv(e)?t.errorModuleName?2===t.accessibility?ha.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?ha.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ha.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ha.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:S$(e)}function S$(e){return ZF(e)||hE(e)||gE(e)||nF(e)||rF(e)||hF(e)||ZE(e)||xE(e)?t:I_(e)||O_(e)?function(t){let n;return n=178===e.kind?Rv(e)?t.errorModuleName?ha.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ha.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Rv(e)?t.errorModuleName?2===t.accessibility?ha.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?ha.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:CE(e)||TE(e)||vE(e)||yE(e)||tN(e)||DE(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?ha.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ha.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?ha.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ha.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?ha.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ha.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=Rv(e)?t.errorModuleName?2===t.accessibility?ha.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ha.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ha.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?ha.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ha.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ha.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?ha.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ha.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?ha.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ha.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ha.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return gn.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:fE(e)?ac(e,e.parent)&&Lv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?ha.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?ha.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?ha.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?ha.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Rv(e.parent)?t.errorModuleName?2===t.accessibility?ha.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?ha.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ha.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?ha.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?ha.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:ha.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return gn.fail(`Unknown parent for parameter: ${gn.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:pE(e)?function(){let t;switch(e.parent.kind){case 263:t=ha.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=ha.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=ha.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=ha.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=ha.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=Rv(e.parent)?ha.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?ha.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ha.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=ha.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=ha.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=ha.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return gn.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:TF(e)?function(){let t;return t=nN(e.parent.parent)?VN(e.parent)&&119===e.parent.token?ha.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?ha.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ha.extends_clause_of_exported_class_has_or_is_using_private_name_0:ha.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:Ac(e.parent.parent)}}:uN(e)?function(){return{diagnosticMessage:ha.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:iN(e)||Lg(e)?function(t){return{diagnosticMessage:t.errorModuleName?ha.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:ha.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Lg(e)?gn.checkDefined(e.typeExpression):e.type,typeName:Lg(e)?Ac(e):e.name}}:gn.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${gn.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?ha.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ha.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&Lv(e.parent,2)?Rv(e)?t.errorModuleName?2===t.accessibility?ha.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?ha.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ha.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ha.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ha.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ha.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}function k$(e){const t={219:ha.Add_a_return_type_to_the_function_expression,218:ha.Add_a_return_type_to_the_function_expression,174:ha.Add_a_return_type_to_the_method,177:ha.Add_a_return_type_to_the_get_accessor_declaration,178:ha.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:ha.Add_a_return_type_to_the_function_declaration,180:ha.Add_a_return_type_to_the_function_declaration,169:ha.Add_a_type_annotation_to_the_parameter_0,260:ha.Add_a_type_annotation_to_the_variable_0,172:ha.Add_a_type_annotation_to_the_property_0,171:ha.Add_a_type_annotation_to_the_property_0,277:ha.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:ha.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:ha.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:ha.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:ha.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:ha.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:ha.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,178:ha.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,169:ha.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:ha.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:ha.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:ha.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:ha.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:ha.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:ha.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:ha.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:ha.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:ha.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){const s=yc(r,VN);if(s)return Up(r,ha.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Af(r)||PE(r.parent))&&(su(r)||fb(r)))return function(e){const t=Up(e,ha.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,np(e,!1));return o(e,t),t}(r);switch(gn.type(r),r.kind){case 177:case 178:return i(r);case 167:case 304:case 305:return function(e){const t=Up(e,n[e.kind]);return o(e,t),t}(r);case 209:case 230:return function(e){const t=Up(e,n[e.kind]);return o(e,t),t}(r);case 174:case 180:case 218:case 219:case 262:return function(e){const r=Up(e,n[e.kind]);return o(e,r),pT(r,Up(e,t[e.kind])),r}(r);case 208:return function(e){return Up(e,ha.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 172:case 260:return function(e){const r=Up(e,n[e.kind]),i=np(e.name,!1);return pT(r,Up(e,t[e.kind],i)),r}(r);case 169:return function(r){if(I_(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r,void 0);if(!o&&r.initializer)return a(r.initializer);const s=o?ha.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind],c=Up(r,s),l=np(r.name,!1);return pT(c,Up(r,t[r.kind],l)),c}(r);case 303:return a(r.initializer);case 231:return function(e){return a(e,ha.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=yc(e,(e=>SN(e)||b_(e)||ZF(e)||hE(e)||fE(e)));if(t)return SN(t)?t:WF(t)?yc(t,(e=>du(e)&&!xE(e))):b_(t)?void 0:t}function i(e){const{getAccessor:r,setAccessor:i}=bv(e.symbol.declarations,e),o=Up((I_(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&pT(o,Up(i,t[i.kind])),r&&pT(o,Up(r,t[r.kind])),o}function o(e,n){const i=r(e);if(i){const e=SN(i)||!i.name?"":np(i.name,!1);pT(n,Up(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=SN(o)||!o.name?"":np(o.name,!1);o===yc(e.parent,(e=>SN(e)||(b_(e)?"quit":!cF(e)&&!sF(e)&&!CF(e))))?(a=Up(e,i??n[o.kind]),pT(a,Up(o,t[o.kind],r))):(a=Up(e,i??ha.Expression_type_can_t_be_inferred_with_isolatedDeclarations),pT(a,Up(o,t[o.kind],r)),pT(a,Up(e,ha.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=Up(e,i??ha.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function T$(e,t,n){const r=e.getCompilerOptions();return E(P(nv(e,n),Bm),n)?B$(t,e,oD,r,[n],[w$],!1).diagnostics:void 0}var C$=531469,D$=8;function w$(e){const t=()=>gn.fail("Diagnostic emitted without context");let n,r,i,o,a=t,s=!0,c=!1,l=!1,_=!1,d=!1;const{factory:m}=e,g=e.getEmitHost();let h=()=>{};const y={trackSymbol:function(e,t,n){return!(262144&e.flags)&&L(C.isSymbolAccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(Up(v||b,ha.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(Up(v||b,ha.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(Up(v||b,ha.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,R()))},reportPrivateInBaseOfClassExpression:function(t){(v||b)&&e.addDiagnostic(pT(Up(v||b,ha.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...ZF((v||b).parent)?[Up(v||b,ha.Add_a_type_annotation_to_the_variable_0,R())]:[]))},reportLikelyUnsafeImportRequiredError:function(t){(v||b)&&e.addDiagnostic(Up(v||b,ha.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,R(),t))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(Up(v||b,ha.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>Cd(e)===t)),a=P(r.declarations,(e=>Cd(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(pT(Up(t,ha.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Up(o,ha.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(Up(v||b,ha.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportInferenceFallback:I,pushErrorFallbackNode(e){const t=b,n=h;h=()=>{h=n,b=t},b=e},popErrorFallbackNode(){h()}};let v,b,x,S,k,T;const C=e.getEmitResolver(),D=e.getCompilerOptions(),w=k$(C),{stripInternal:F,isolatedDeclarations:N}=D;return function(u){if(307===u.kind&&u.isDeclarationFile)return u;if(308===u.kind){c=!0,S=[],k=[],T=[];let p=!1;const f=m.createBundle(O(u.sourceFiles,(c=>{if(c.isDeclarationFile)return;if(p=p||c.hasNoDefaultLib,x=c,n=c,r=void 0,o=!1,i=new Map,a=t,_=!1,d=!1,h(c),af(c)||sf(c)){l=!1,s=!1;const t=Rm(c)?m.createNodeArray(B(c)):cJ(c.statements,ae,b_);return m.updateSourceFile(c,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(Vy(e.getEmitHost(),c)),m.createModuleBlock(fI(m.createNodeArray(ie(t)),c.statements)))],!0,[],[],!1,[])}s=!0;const u=Rm(c)?m.createNodeArray(B(c)):cJ(c.statements,ae,b_);return m.updateSourceFile(c,ie(u),!0,[],[],!1,[])}))),y=Ro($o(W$(u,g,!0).declarationFilePath));return f.syntheticFileReferences=C(y),f.syntheticTypeReferences=v(),f.syntheticLibReferences=b(),f.hasNoDefaultLib=p,f}let p;if(s=!0,_=!1,d=!1,n=u,x=u,a=t,c=!1,l=!1,o=!1,r=void 0,i=new Map,S=[],k=[],T=[],h(x),Rm(x))p=m.createNodeArray(B(u));else{const e=cJ(u.statements,ae,b_);p=fI(m.createNodeArray(ie(e)),u.statements),XI(u)&&(!l||_&&!d)&&(p=fI(m.createNodeArray([...p,GP(m)]),p))}const f=Ro($o(W$(u,g,!0).declarationFilePath));return m.updateSourceFile(u,p,!0,C(f),v(),u.hasNoDefaultLib,b());function h(e){S=Y(S,O(e.referencedFiles,(t=>[e,t]))),k=Y(k,e.typeReferenceDirectives),T=Y(T,e.libReferenceDirectives)}function y(e){const t={...e};return t.pos=-1,t.end=-1,t}function v(){return q(k,(e=>{if(e.preserve)return y(e)}))}function b(){return q(T,(e=>{if(e.preserve)return y(e)}))}function C(e){return q(S,(([t,n])=>{if(!n.preserve)return;const r=g.getSourceFileFromReference(t,n);if(!r)return;let i;if(r.isDeclarationFile)i=r.fileName;else{if(c&&E(u.sourceFiles,r))return;const e=W$(r,g,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=pa(e,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1),a=y(n);return a.fileName=o,a}))}};function A(t){C.getPropertiesOfContainerFunction(t).forEach((t=>{if(gC(t.valueDeclaration)){const n=hF(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(Up(n,ha.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}}))}function I(t){N&&!Rm(x)&&Cd(t)===x&&(ZF(t)&&C.isExpandoFunctionDeclaration(t)?A(t):e.addDiagnostic(w(t)))}function L(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(r)for(const e of t.aliasesToMakeVisible)pe(r,e);else r=t.aliasesToMakeVisible}else if(3!==t.accessibility){const n=a(t);if(n)return n.typeName?e.addDiagnostic(Up(t.errorNode||n.errorNode,n.diagnosticMessage,np(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(Up(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function R(){return v?Mp(v):b&&Ac(b)?Mp(Ac(b)):b&&SN(b)?b.isExportEquals?"export=":"default":"(Missing)"}function B(e){const t=a;a=t=>t.errorNode&&b$(t.errorNode)?S$(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?ha.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ha.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=C.getDeclarationStatementsForSourceFile(e,C$,D$,y);return a=t,n}function J(e){return 80===e.kind?e:207===e.kind?m.updateArrayBindingPattern(e,cJ(e.elements,t,Pu)):m.updateObjectBindingPattern(e,cJ(e.elements,t,ZE));function t(e){return 232===e.kind?e:(e.propertyName&&dE(e.propertyName)&&fb(e.propertyName.expression)&&ee(e.propertyName.expression,n),m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,J(e.name),void 0))}}function z(e,t){let n;o||(n=a,a=S$(e));const r=m.updateParameterDeclaration(e,function(e,t,n,r){return e.createModifiersFromModifierFlags(E$(t,n,r))}(m,e,t),e.dotDotDotToken,J(e.name),C.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,V(e,!0),U(e));return o||(a=n),r}function $(e){return F$(e)&&!!e.initializer&&C.isLiteralConstDeclaration(bc(e))}function U(e){if($(e))return wC(EC(e.initializer))||I(e),C.createLiteralConstValue(bc(e,F$),y)}function V(e,t){if(!t&&Ov(e,2))return;if($(e))return;if(!SN(e)&&!ZE(e)&&e.type&&(!fE(e)||!C.requiresAddingImplicitUndefined(e,n)))return sJ(e.type,oe,wu);const r=v;let i,s;return v=e.name,o||(i=a,b$(e)&&(a=S$(e))),FC(e)?s=C.createTypeOfDeclaration(e,n,C$,D$,y):uu(e)?s=C.createReturnTypeOfSignatureDeclaration(e,n,C$,D$,y):gn.assertNever(e),v=r,o||(a=i),s??m.createKeywordTypeNode(133)}function W(e){switch((e=bc(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!C.isDeclarationVisible(e);case 260:return!H(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function H(e){return!kF(e)&&(Fu(e.name)?X(e.name.elements,H):C.isDeclarationVisible(e))}function G(e,t,n){if(Ov(e,2))return m.createNodeArray();const r=O(t,(e=>z(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function K(e,t){let n;if(!t){const t=fv(e);t&&(n=[z(t)])}if(kE(e)){let r;if(!t){const t=dv(e);t&&(r=z(t))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=le(n,r)}return m.createNodeArray(n||u)}function Q(e,t){return Ov(e,2)?void 0:cJ(t,oe,pE)}function Z(e){return QN(e)||iN(e)||aN(e)||nN(e)||rN(e)||uu(e)||DE(e)||WE(e)}function ee(e,t){L(C.isEntityNameVisible(e,t))}function te(e,t){return L_(e)&&L_(t)&&(e.jsDoc=t.jsDoc),SD(e,xD(t))}function ne(t,n){if(n){if(l=l||267!==t.kind&&205!==t.kind,q_(n)&&c){const n=Hy(e.getEmitHost(),C,t);if(n)return m.createStringLiteral(n)}return n}}function re(e){const t=uU(e);return e&&void 0!==t?e:void 0}function ie(e){for(;p(r);){const e=r.shift();if(!Ap(e))return gn.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${gn.formatSyntaxKind(e.kind)}`);const t=s;s=e.parent&&QN(e.parent)&&!(XI(e.parent)&&c);const n=_e(e);s=t,i.set(BJ(e),n)}return cJ(e,(function(e){if(Ap(e)){const t=BJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((nt(n)?X(n,n_):n_(n))&&(_=!0),QN(e.parent)&&(nt(n)?X(n,r_):r_(n))&&(l=!0)),n}}return e}),b_)}function oe(t){if(fe(t))return;if(h_(t)){if(W(t))return;if(Vh(t))if(N){if(!C.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(nN(t.parent)||tF(t.parent))return void e.addDiagnostic(Up(t,ha.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((rN(t.parent)||AE(t.parent))&&!fb(t.name.expression))return void e.addDiagnostic(Up(t,ha.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!C.isLateBound(bc(t))||!fb(t.name.expression))return}if(uu(t)&&C.isImplementationOfOverload(t))return;if(IF(t))return;let r;Z(t)&&(r=n,n=t);const i=a,s=b$(t),c=o;let l=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((vE(t)||yE(t))&&Ov(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(ge(t),t.name,void 0,void 0,void 0))}if(s&&!o&&(a=S$(t)),PE(t)&&ee(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(su(t.expression)||fb(t.expression))&&ee(t.expression,n);const r=hJ(t,oe,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{ee(t.typeName,n);const r=hJ(t,oe,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return u(m.updateConstructSignature(t,Q(t,t.typeParameters),G(t,t.parameters),V(t)));case 176:return u(m.createConstructorDeclaration(ge(t),G(t,t.parameters,0),void 0));case 174:return Qw(t.name)?u(void 0):u(m.createMethodDeclaration(ge(t),void 0,t.name,t.questionToken,Q(t,t.typeParameters),G(t,t.parameters),V(t),void 0));case 177:return Qw(t.name)?u(void 0):u(m.updateGetAccessorDeclaration(t,ge(t),t.name,K(t,Ov(t,2)),V(t),void 0));case 178:return Qw(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ge(t),t.name,K(t,Ov(t,2)),void 0));case 172:return Qw(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ge(t),t.name,t.questionToken,V(t),U(t)));case 171:return Qw(t.name)?u(void 0):u(m.updatePropertySignature(t,ge(t),t.name,t.questionToken,V(t)));case 173:return Qw(t.name)?u(void 0):u(m.updateMethodSignature(t,ge(t),t.name,t.questionToken,Q(t,t.typeParameters),G(t,t.parameters),V(t)));case 179:return u(m.updateCallSignature(t,Q(t,t.typeParameters),G(t,t.parameters),V(t)));case 181:return u(m.updateIndexSignature(t,ge(t),G(t,t.parameters),sJ(t.type,oe,wu)||m.createKeywordTypeNode(133)));case 260:return Fu(t.name)?de(t.name):(l=!0,o=!0,u(m.updateVariableDeclaration(t,t.name,void 0,V(t),U(t))));case 168:return function(e){return 174===e.parent.kind&&Ov(e.parent,2)}(t)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(hJ(t,oe,e));case 194:{const e=sJ(t.checkType,oe,wu),r=sJ(t.extendsType,oe,wu),i=n;n=t.trueType;const o=sJ(t.trueType,oe,wu);n=i;const a=sJ(t.falseType,oe,wu);return gn.assert(e),gn.assert(r),gn.assert(o),gn.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 184:return u(m.updateFunctionTypeNode(t,cJ(t.typeParameters,oe,pE),G(t,t.parameters),gn.checkDefined(sJ(t.type,oe,wu))));case 185:return u(m.updateConstructorTypeNode(t,ge(t),cJ(t.typeParameters,oe,pE),G(t,t.parameters),gn.checkDefined(sJ(t.type,oe,wu))));case 205:return yf(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,ne(t,t.argument.literal)),t.attributes,t.qualifier,cJ(t.typeArguments,oe,wu),t.isTypeOf)):u(t);default:gn.assertNever(t,`Attempted to process unhandled node kind: ${gn.formatSyntaxKind(t.kind)}`)}return OE(t)&&Ga(x,t.pos).line===Ga(x,t.end).line&&_D(t,1),u(hJ(t,oe,e));function u(e){return e&&s&&Vh(t)&&function(e){let t;o||(t=a,a=x$(e)),v=e.name,gn.assert(Vh(e));const r=e;ee(r.name.expression,n),o||(a=t),v=void 0}(t),Z(t)&&(n=r),s&&!o&&(a=i),l&&(o=c),e===t?e:e&&sD(te(e,t),t)}}function ae(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 278:return QN(e.parent)&&(l=!0),d=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,ne(e,e.moduleSpecifier),re(e.attributes));case 277:if(QN(e.parent)&&(l=!0),d=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);a=()=>({diagnosticMessage:ha.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const n=V(e),r=m.createVariableDeclaration(t,void 0,n,void 0);b=void 0;const i=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([r],2));return te(i,e),uD(e),[i,m.updateExportAssignment(e,e.modifiers,t)]}}const t=_e(e);return i.set(BJ(e),t),e}function ce(e){if(uN(e)||Ov(e,2048)||!mI(e))return e;const t=m.createModifiersFromModifierFlags(131039&Hv(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(fp(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return sD(o,i),fI(o,i),o}function _e(t){if(r)for(;Wt(r,t););if(fe(t))return;switch(t.kind){case 271:return function(e){if(C.isDeclarationVisible(e)){if(283===e.moduleReference.kind){const t=Am(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,ne(e,t)))}{const t=a;return a=S$(e),ee(e.moduleReference,n),a=t,e}}}(t);case 272:return function(t){if(!t.importClause)return m.updateImportDeclaration(t,t.modifiers,t.importClause,ne(t,t.moduleSpecifier),re(t.attributes));const n=t.importClause&&t.importClause.name&&C.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return n&&m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,void 0),ne(t,t.moduleSpecifier),re(t.attributes));if(274===t.importClause.namedBindings.kind){const e=C.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return n||e?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,e),ne(t,t.moduleSpecifier),re(t.attributes)):void 0}const r=q(t.importClause.namedBindings.elements,(e=>C.isDeclarationVisible(e)?e:void 0));return r.length||n?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,r.length?m.updateNamedImports(t.importClause.namedBindings,r):void 0),ne(t,t.moduleSpecifier),re(t.attributes)):C.isImportRequiredByAugmentation(t)?(N&&e.addDiagnostic(Up(t,ha.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),m.updateImportDeclaration(t,t.modifiers,void 0,ne(t,t.moduleSpecifier),re(t.attributes))):void 0}(t)}if(h_(t)&&W(t))return;if(JP(t))return;if(uu(t)&&C.isImplementationOfOverload(t))return;let o;Z(t)&&(o=n,n=t);const c=b$(t),u=a;c&&(a=S$(t));const g=s;switch(t.kind){case 265:{s=!1;const e=h(m.updateTypeAliasDeclaration(t,ge(t),t.name,cJ(t.typeParameters,oe,pE),gn.checkDefined(sJ(t.type,oe,wu))));return s=g,e}case 264:return h(m.updateInterfaceDeclaration(t,ge(t),t.name,Q(t,t.typeParameters),he(t.heritageClauses),cJ(t.members,oe,Tu)));case 262:{const e=h(m.updateFunctionDeclaration(t,ge(t),void 0,t.name,Q(t,t.typeParameters),G(t,t.parameters),V(t),void 0));if(e&&C.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>tN(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(t)){const r=C.getPropertiesOfContainerFunction(t);N&&A(t);const i=yI.createModuleDeclaration(void 0,e.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);LT(i,n),i.locals=td(r),i.symbol=r[0].parent;const o=[];let s=q(r,(e=>{if(!gC(e.valueDeclaration))return;const t=Sc(e.escapedName);if(!Ss(t,99))return;a=S$(e.valueDeclaration);const n=C.createTypeOfDeclaration(e.valueDeclaration,i,C$,2|D$,y);a=u;const r=jh(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))}));o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(O(o,(([e,t])=>m.createExportSpecifier(!1,e,t)))))):s=q(s,(e=>m.replaceModifiers(e,0)));const c=m.createModuleDeclaration(ge(t),t.name,m.createModuleBlock(s),32);if(!Ov(e,2048))return[e,c];const _=m.createModifiersFromModifierFlags(-2081&Hv(e)|128),p=m.updateFunctionDeclaration(e,_,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),f=m.updateModuleDeclaration(c,_,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return QN(t.parent)&&(l=!0),d=!0,[p,f,g]}return e}case 267:{s=!1;const e=t.body;if(e&&268===e.kind){const n=_,r=d;d=!1,_=!1;let i=ie(cJ(e.statements,ae,b_));33554432&t.flags&&(_=!1),vp(t)||function(e){return X(e,me)}(i)||d||(i=_?m.createNodeArray([...i,GP(m)]):cJ(i,ce,b_));const o=m.updateModuleBlock(e,i);s=g,_=n,d=r;const a=ge(t);return h(ue(t,a,bp(t)?ne(t,t.name):t.name,o))}{s=g;const n=ge(t);s=!1,sJ(e,ae);const r=BJ(e),o=i.get(r);return i.delete(r),h(ue(t,n,t.name,o))}}case 263:{v=t.name,b=t;const e=m.createNodeArray(ge(t)),r=Q(t,t.typeParameters),i=_v(t);let o;if(i){const e=a;o=se(M(i.parameters,(e=>{if(Lv(e,31)&&!fe(e))return a=S$(e),80===e.name.kind?te(m.createPropertyDeclaration(ge(e),e.name,e.questionToken,V(e),U(e)),e):function t(n){let r;for(const i of n.elements)kF(i)||(Fu(i.name)&&(r=Y(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(ge(e),i.name,void 0,V(i),void 0)));return r}(e.name)}))),a=e}const c=Y(Y(Y(X(t.members,(e=>!!e.name&&Qw(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,C.createLateBoundIndexSignatures(t,n,C$,D$,y)),o),cJ(t.members,oe,hu)),l=m.createNodeArray(c),u=Ch(t);if(u&&!fb(u.expression)&&106!==u.expression.kind){const n=t.name?Sc(t.name.escapedText):"default",i=m.createUniqueName(`${n}_base`,16);a=()=>({diagnosticMessage:ha.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:u,typeName:t.name});const o=m.createVariableDeclaration(i,void 0,C.createTypeOfExpression(u.expression,t,C$,D$,y),void 0),c=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),_=m.createNodeArray(O(t.heritageClauses,(e=>{if(96===e.token){const t=a;a=S$(e.types[0]);const n=m.updateHeritageClause(e,O(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,cJ(e.typeArguments,oe,wu)))));return a=t,n}return m.updateHeritageClause(e,cJ(m.createNodeArray(P(e.types,(e=>fb(e.expression)||106===e.expression.kind))),oe,TF))})));return[c,h(m.updateClassDeclaration(t,e,t.name,r,_,l))]}{const n=he(t.heritageClauses);return h(m.updateClassDeclaration(t,e,t.name,r,n,l))}}case 243:return h(function(e){if(!f(e.declarationList.declarations,H))return;const t=cJ(e.declarationList.declarations,oe,ZF);if(!p(t))return;const n=m.createNodeArray(ge(e));let r;return _f(e.declarationList)||uf(e.declarationList)?(r=m.createVariableDeclarationList(t,2),sD(r,e.declarationList),fI(r,e.declarationList),SD(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t),m.updateVariableStatement(e,n,r)}(t));case 266:return h(m.updateEnumDeclaration(t,m.createNodeArray(ge(t)),t.name,m.createNodeArray(q(t.members,(t=>{if(fe(t))return;const n=C.getEnumMemberValue(t),r=null==n?void 0:n.value;N&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!dE(t.name)&&e.addDiagnostic(Up(t,ha.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const i=void 0===r?void 0:"string"==typeof r?m.createStringLiteral(r):r<0?m.createPrefixUnaryExpression(41,m.createNumericLiteral(-r)):m.createNumericLiteral(r);return te(m.updateEnumMember(t,t.name,i),t)})))))}return gn.assertNever(t,`Unhandled top-level node in declaration emit: ${gn.formatSyntaxKind(t.kind)}`);function h(e){return Z(t)&&(n=o),c&&(a=u),267===t.kind&&(s=g),e===t?e:(b=void 0,v=void 0,e&&sD(te(e,t),t))}}function de(e){return j(q(e.elements,(e=>function(e){if(232!==e.kind&&e.name){if(!H(e))return;return Fu(e.name)?de(e.name):m.createVariableDeclaration(e.name,void 0,V(e),void 0)}}(e))))}function fe(e){return!!F&&!!e&&G_(e,x)}function me(e){return SN(e)||kN(e)}function ge(e){const t=Hv(e),n=function(e){let t=130030,n=s&&!function(e){return 264===e.kind}(e)?128:0;const r=307===e.parent.kind;return(!r||c&&r&&XI(e.parent))&&(t^=128,n=0),E$(e,t,n)}(e);return t===n?lJ(e.modifiers,(e=>at(e,au)),au):m.createModifiersFromModifierFlags(n)}function he(e){return m.createNodeArray(P(O(e,(e=>m.updateHeritageClause(e,cJ(m.createNodeArray(P(e.types,(t=>fb(t.expression)||96===e.token&&106===t.expression.kind))),oe,TF)))),(e=>e.types&&!!e.types.length)))}}function E$(e,t=131070,n=0){let r=Hv(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function F$(e){switch(e.kind){case 172:case 171:return!Ov(e,2);case 169:case 260:return!0}return!1}var N$={scriptTransformers:u,declarationTransformers:u};function P$(e,t,n){return{scriptTransformers:A$(e,t,n),declarationTransformers:I$(t)}}function A$(e,t,n){if(n)return u;const r=DS(e),i=wS(e),o=zS(e),a=[];return de(a,t&&O(t.before,L$)),a.push(Vz),e.experimentalDecorators&&a.push(Kz),ek(e)&&a.push(l$),r<99&&a.push(r$),e.experimentalDecorators||!(r<99)&&o||a.push(Xz),a.push(Wz),r<8&&a.push(n$),r<7&&a.push(t$),r<6&&a.push(e$),r<5&&a.push(Zz),r<4&&a.push(Qz),r<3&&a.push(_$),r<2&&(a.push(p$),a.push(f$)),a.push(function(e){switch(e){case 200:return y$;case 99:case 7:case 6:case 5:case 100:case 199:case 1:return v$;case 4:return h$;default:return m$}}(i)),de(a,t&&O(t.after,L$)),a}function I$(e){const t=[];return t.push(w$),de(t,e&&O(e.afterDeclarations,R$)),t}function O$(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>YN(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function L$(e){return O$(e,$J)}function R$(e){return O$(e,((e,t)=>t))}function j$(e,t){return t}function M$(e,t,n){n(e,t)}function B$(e,t,n,r,i,o,a){var s,c;const l=new Array(358);let u,_,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,S=[],k=0,T=j$,C=M$,D=0;const w=[],E={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:ht((()=>KD(E))),startLexicalEnvironment:function(){gn.assert(D>0,"Cannot modify the lexical environment during initialization."),gn.assert(D<2,"Cannot modify the lexical environment after transformation has completed."),gn.assert(!x,"Lexical environment is suspended."),g[b]=u,h[b]=_,y[b]=d,v[b]=m,b++,u=void 0,_=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){gn.assert(D>0,"Cannot modify the lexical environment during initialization."),gn.assert(D<2,"Cannot modify the lexical environment after transformation has completed."),gn.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){gn.assert(D>0,"Cannot modify the lexical environment during initialization."),gn.assert(D<2,"Cannot modify the lexical environment after transformation has completed."),gn.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(gn.assert(D>0,"Cannot modify the lexical environment during initialization."),gn.assert(D<2,"Cannot modify the lexical environment after transformation has completed."),gn.assert(!x,"Lexical environment is suspended."),u||_||d){if(_&&(e=[..._]),u){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(u));_D(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,u=g[b],_=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){gn.assert(D>0,"Cannot modify the lexical environment during initialization."),gn.assert(D<2,"Cannot modify the lexical environment after transformation has completed.");const t=_D(n.createVariableDeclaration(e),128);u?u.push(t):u=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){gn.assert(D>0,"Cannot modify the lexical environment during initialization."),gn.assert(D<2,"Cannot modify the lexical environment after transformation has completed."),_D(e,2097152),_?_.push(e):_=[e]},addInitializationStatement:function(e){gn.assert(D>0,"Cannot modify the lexical environment during initialization."),gn.assert(D<2,"Cannot modify the lexical environment after transformation has completed."),_D(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){gn.assert(D>0,"Cannot start a block scope during initialization."),gn.assert(D<2,"Cannot start a block scope after transformation has completed."),S[k]=p,k++,p=void 0},endBlockScope:function(){gn.assert(D>0,"Cannot end a block scope during initialization."),gn.assert(D<2,"Cannot end a block scope after transformation has completed.");const e=X(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return k--,p=S[k],0===k&&(S=[]),e},addBlockScopedVariable:function(e){gn.assert(k>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(gn.assert(D>0,"Cannot modify the transformation context during initialization."),gn.assert(D<2,"Cannot modify the transformation context after transformation has completed."),gn.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=le(f,t)},readEmitHelpers:function(){gn.assert(D>0,"Cannot modify the transformation context during initialization."),gn.assert(D<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){gn.assert(D<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){gn.assert(D<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){gn.assert(D<1,"Cannot modify transformation hooks after initialization has completed."),gn.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){gn.assert(D<1,"Cannot modify transformation hooks after initialization has completed."),gn.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){w.push(e)}};for(const e of i)lD(Cd(bc(e)));ar("beforeTransform");const F=o.map((e=>e(E))),N=e=>{for(const t of F)e=t(e);return e};D=1;const P=[];for(const e of i)null==(s=Yn)||s.push(Yn.Phase.Emit,"transformNodes",307===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),P.push((a?N:A)(e)),null==(c=Yn)||c.pop();return D=2,ar("afterTransform"),sr("transformTime","beforeTransform","afterTransform"),{transformed:P,substituteNode:function(e,t){return gn.assert(D<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){gn.assert(D<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(D<3){for(const e of i)lD(Cd(bc(e)));u=void 0,g=void 0,_=void 0,h=void 0,T=void 0,C=void 0,f=void 0,D=3}},diagnostics:w};function A(e){return!e||QN(e)&&e.isDeclarationFile?e:N(e)}function I(e){return!(!(1&l[e.kind])||8&op(e))}function O(e){return!!(2&l[e.kind])||!!(4&op(e))}}var J$={factory:oD,getCompilerOptions:()=>({}),getEmitResolver:gt,getEmitHost:gt,getEmitHelperFactory:gt,startLexicalEnvironment:ct,resumeLexicalEnvironment:ct,suspendLexicalEnvironment:ct,endLexicalEnvironment:_t,setLexicalEnvironmentFlags:ct,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:ct,hoistFunctionDeclaration:ct,addInitializationStatement:ct,startBlockScope:ct,endBlockScope:_t,addBlockScopedVariable:ct,requestEmitHelper:ct,readEmitHelpers:gt,enableSubstitution:ct,enableEmitNotification:ct,isSubstitutionEnabled:gt,isEmitNotificationEnabled:gt,onSubstituteNode:j$,onEmitNode:M$,addDiagnostic:ct},z$=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function $$(e){return No(e,".tsbuildinfo")}function q$(e,t,n,r=!1,i,o){const a=nt(n)?n:nv(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(a.length){const n=oD.createBundle(a),i=t(W$(n,e,r),n);if(i)return i}}else for(const n of a){const i=t(W$(n,e,r),n);if(i)return i}if(o){const e=U$(s);if(e)return t({buildInfoPath:e},void 0)}}function U$(e){const t=e.configFilePath;if(!function(e){return MS(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=Xk(n);else{if(!t)return;const n=Xk(t);r=e.outDir?e.rootDir?Vo(e.outDir,ua(e.rootDir,n,!0)):Uo(e.outDir,jo(n)):n}return r+".tsbuildinfo"}function V$(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&H$(r,e),o=t||RS(e)?Xk(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&BS(e)?o+".map":void 0}}function W$(e,t,n){const r=t.getCompilerOptions();if(308===e.kind)return V$(r,n);{const i=Ky(e.fileName,t,G$(e.fileName,r)),o=sf(e),a=o&&0===aa(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||sf(e)?void 0:H$(s,r),l=n||RS(r)&&!o?Xy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&BS(r)?l+".map":void 0}}}function H$(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function G$(e,t){return No(e,".json")?".json":1===t.jsx&&Po(e,[".jsx",".tsx"])?".jsx":Po(e,[".mts",".mjs"])?".mjs":Po(e,[".cts",".cjs"])?".cjs":".js"}function K$(e,t,n,r){return n?Vo(n,ua(r(),e,t)):e}function X$(e,t,n,r=()=>iq(t,n)){return Q$(e,t.options,n,r)}function Q$(e,t,n,r){return Zk(K$(e,n,t.declarationDir||t.outDir,r),Yy(e))}function Y$(e,t,n,r=()=>iq(t,n)){if(t.options.emitDeclarationOnly)return;const i=No(e,".json"),o=Z$(e,t.options,n,r);return i&&0===aa(e,o,gn.checkDefined(t.options.configFilePath),n)?void 0:o}function Z$(e,t,n,r){return Zk(K$(e,n,t.outDir,r),G$(e,t))}function eq(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||u}}}function tq(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o}=V$(e.options,!1);t(n),t(r),t(i),t(o)}function nq(e,t,n,r,i){if(iO(t))return;const o=Y$(t,e,n,i);if(r(o),!No(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),RS(e.options))){const o=X$(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function rq(e,t,n,r,i){let o;return e.rootDir?(o=Ho(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Ro($o(e.configFilePath)),null==i||i(o)):o=Rq(t(),n,r),o&&o[o.length-1]!==yo&&(o+=yo),o}function iq({options:e,fileNames:t},n){return rq(e,(()=>P(t,(t=>!(e.noEmitForJsFiles&&Po(t,Ik)||iO(t))))),Ro($o(gn.checkDefined(e.configFilePath))),Xt(!n))}function oq(e,t){const{addOutput:n,getOutputs:r}=eq();if(e.options.outFile)tq(e,n);else{const r=ht((()=>iq(e,t)));for(const i of e.fileNames)nq(e,i,t,n,r)}return n(U$(e.options)),r()}function aq(e,t,n){t=Go(t),gn.assert(E(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=eq();return e.options.outFile?tq(e,r):nq(e,t,n,r),i()}function sq(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=V$(e.options,!1);return gn.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=ht((()=>iq(e,t)));for(const r of e.fileNames){if(iO(r))continue;const i=Y$(r,e,t,n);if(i)return i;if(!No(r,".json")&&RS(e.options))return X$(r,e,t,n)}const r=U$(e.options);return r||gn.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function cq(e,t){return!!t&&!!e}function lq(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,s,l){var u=t.getCompilerOptions(),_=u.sourceMap||u.inlineSourceMap||BS(u)?[]:void 0,d=u.listEmittedFiles?[]:void 0,f=hy(),m=Bb(u),g=zy(m),{enter:h,exit:y}=Qn("printTime","beforePrint","afterPrint"),v=!1;return h(),q$(t,(function({jsFilePath:a,sourceMapFilePath:l,declarationFilePath:_,declarationMapPath:m,buildInfoPath:g},h){var y,S,k,T,C,D;null==(y=Yn)||y.push(Yn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a){if(!n||o||!i)return;if(t.isEmitBlocked(i)||u.noEmit)return void(v=!0);(QN(n)?[n]:P(n.sourceFiles,Bm)).forEach((t=>{var n;!u.noCheck&&bT(t,u)||(Rm(n=t)||UI(n,(t=>!uN(t)||32&Kv(t)?_N(t)?"skip":void e.markLinkedReferences(t):"skip")))}));const s=B$(e,t,oD,u,[n],r,!1),c=hq({removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:u.noEmitHelpers,module:wS(u),moduleResolution:ES(u),target:DS(u),sourceMap:u.sourceMap,inlineSourceMap:u.inlineSourceMap,inlineSources:u.inlineSources,extendedDiagnostics:u.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});gn.assert(1===s.transformed.length,"Should only see one output from the transform"),x(i,a,s,c,u),s.dispose(),d&&(d.push(i),a&&d.push(a))}(h,a,l),null==(S=Yn)||S.pop(),null==(k=Yn)||k.push(Yn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:_}),function(n,r,a){if(!n||0===o)return;if(!r)return void((o||u.emitDeclarationOnly)&&(v=!0));const c=QN(n)?[n]:n.sourceFiles,l=s?c:P(c,Bm),_=u.outFile?[oD.createBundle(l)]:l;l.forEach((e=>{(o&&!RS(u)||u.noCheck||cq(o,s)||!bT(e,u))&&b(e)}));const m=B$(e,t,oD,u,_,i,!1);if(p(m.diagnostics))for(const e of m.diagnostics)f.add(e);const g=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!u.noEmit;if(v=v||g,!g||s){gn.assert(1===m.transformed.length,"Should only see one output from the decl transform");const t={removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target,sourceMap:2!==o&&u.declarationMap,inlineSourceMap:u.inlineSourceMap,extendedDiagnostics:u.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},n=x(r,a,m,hq(t,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:u.sourceRoot,mapRoot:u.mapRoot,extendedDiagnostics:u.extendedDiagnostics});d&&(n&&d.push(r),a&&d.push(a))}m.dispose()}(h,_,m),null==(T=Yn)||T.pop(),null==(C=Yn)||C.push(Yn.Phase.Emit,"emitBuildInfo",{buildInfoPath:g}),function(e){if(!e||n)return;if(t.isEmitBlocked(e))return void(v=!0);const r=t.getBuildInfo()||{version:c};av(t,f,e,uq(r),!1,void 0,{buildInfo:r}),null==d||d.push(e)}(g),null==(D=Yn)||D.pop()}),nv(t,n,s),s,a,!n&&!l),y(),{emitSkipped:v,diagnostics:f.getDiagnostics(),emittedFiles:d,sourceMaps:_};function b(t){SN(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):CN(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):qI(t,b)}function x(e,n,r,i,o){const a=r.transformed[0],s=308===a.kind?a:void 0,c=307===a.kind?a:void 0,l=s?s.sourceFiles:[c];let d,p;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(307!==t.kind||!No(t.fileName,".json"))}(o,a)&&(d=bJ(t,jo($o(e)),function(e){const t=$o(e.sourceRoot||"");return t?Yo(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=$o(e.mapRoot);return r&&(n=Ro(iv(r.fileName,t,n))),0===Lo(n)&&(n=Uo(t.getCommonSourceDirectory(),n)),n}return Ro(Go(n))}(o,e,c),o)),s?i.writeBundle(s,g,d):i.writeFile(c,g,d),d){_&&_.push({inputSourceFileNames:d.getSources(),sourceMap:d.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${Pb(go,e)}`}const a=jo($o(gn.checkDefined(i)));if(e.mapRoot){let n=$o(e.mapRoot);return o&&(n=Ro(iv(o.fileName,t,n))),0===Lo(n)?(n=Uo(t.getCommonSourceDirectory(),n),encodeURI(pa(Ro(Go(r)),Uo(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Uo(n,a))}return encodeURI(a)}(o,d,e,n,c);if(r&&(g.isAtStartOfLine()||g.rawWrite(m),p=g.getTextPos(),g.writeComment(`//# sourceMappingURL=${r}`)),n){const e=d.toString();av(t,f,n,e,!1,l)}}else g.writeLine();const h=g.getText(),y={sourceMapUrlPos:p,diagnostics:r.diagnostics};return av(t,f,e,h,!!u.emitBOM,l,y),g.clear(),!y.skippedDtsWrite}}function uq(e){return JSON.stringify(e)}function _q(e,t){return Ib(e,t)}var dq={hasGlobalName:gt,getReferencedExportContainer:gt,getReferencedImportDeclaration:gt,getReferencedDeclarationWithCollidingName:gt,isDeclarationWithCollidingName:gt,isValueAliasDeclaration:gt,isReferencedAliasDeclaration:gt,isTopLevelValueImportEqualsWithEntityName:gt,hasNodeCheckFlag:gt,isDeclarationVisible:gt,isLateBound:e=>!1,collectLinkedAliases:gt,markLinkedReferences:gt,isImplementationOfOverload:gt,requiresAddingImplicitUndefined:gt,isExpandoFunctionDeclaration:gt,getPropertiesOfContainerFunction:gt,createTypeOfDeclaration:gt,createReturnTypeOfSignatureDeclaration:gt,createTypeOfExpression:gt,createLiteralConstValue:gt,isSymbolAccessible:gt,isEntityNameVisible:gt,getConstantValue:gt,getEnumMemberValue:gt,getReferencedValueDeclaration:gt,getReferencedValueDeclarations:gt,getTypeReferenceSerializationKind:gt,isOptionalParameter:gt,isArgumentsLocalBinding:gt,getExternalModuleFileFromDeclaration:gt,isLiteralConstDeclaration:gt,getJsxFactoryEntity:gt,getJsxFragmentFactoryEntity:gt,isBindingCapturedByNode:gt,getDeclarationStatementsForSourceFile:gt,isImportRequiredByAugmentation:gt,isDefinitelyReferenceToGlobalSymbolObject:gt,createLateBoundIndexSignatures:gt},pq=ht((()=>hq({}))),fq=ht((()=>hq({removeComments:!0}))),mq=ht((()=>hq({removeComments:!0,neverAsciiEscape:!0}))),gq=ht((()=>hq({removeComments:!0,omitTrailingSemicolon:!0})));function hq(e={},t={}){var n,r,i,o,a,s,c,l,u,_,d,p,m,g,h,y,v,b,x,S,T,C,w,E,F,N,{hasGlobalName:P,onEmitNode:A=M$,isEmitNotificationEnabled:I,substituteNode:O=j$,onBeforeEmitNode:L,onAfterEmitNode:R,onBeforeEmitNodeArray:j,onAfterEmitNodeArray:M,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,$=!!e.omitBraceSourceMapPositions,q=Bb(e),U=wS(e),V=new Map,W=e.preserveSourceNewlines,H=function(e){v.write(e)},G=!0,K=-1,Q=-1,Y=-1,Z=-1,ee=-1,te=!1,ne=!!e.removeComments,{enter:re,exit:ie}=Xn(z,"commentTime","beforeComment","afterComment"),oe=oD.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return eI((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=W,t.containerPosStack[t.stackIndex]=Y,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ie(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Oe(e);null==L||L(e),n&&Kn(e),r&&yr(e),Ne(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,i=Cn(n,n.left,e),o=Cn(n,e,n.right);mn(i,r),cr(e.pos),_n(e,103===e.kind?Zt:en),ur(e.end,!0),mn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){const n=Cn(e,e.left,e.operatorToken),r=Cn(e,e.operatorToken,e.right);if(hn(n,r),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(n),s&&vr(e),a&&Qn(e,r,i,o),null==R||R(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Le(0,1,e);if(i===Je&&(gn.assertIsDefined(F),i=Re(1,1,e=r(st(F,Qu))),F=void 0),(i===Gn||i===hr||i===Me)&&hF(e))return e;N=r,i(1,e)}}();return xe(),{printNode:function(e,t,n){switch(e){case 0:gn.assert(QN(t),"Expected a SourceFile node.");break;case 2:gn.assert(Xw(t),"Expected an Identifier node.");break;case 1:gn.assert(Qu(t),"Expected an Expression node.")}switch(t.kind){case 307:return le(t);case 308:return ce(t)}return ue(e,t,n,fe()),ge()},printList:function(e,t,n){return _e(e,t,n,fe()),ge()},printFile:le,printBundle:ce,writeNode:ue,writeList:_e,writeFile:pe,writeBundle:de};function ce(e){return de(e,fe(),void 0),ge()}function le(e){return pe(e,fe(),void 0),ge()}function ue(e,t,n,r){const i=v;be(r,void 0),he(e,t,n),xe(),v=i}function _e(e,t,n,r){const i=v;be(r,void 0),n&&ye(n),Vt(void 0,t,e),xe(),v=i}function de(e,t,n){x=!1;const r=v;be(t,n),Pt(e),Nt(e),ze(e),function(e){wt(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[])}(e);for(const t of e.sourceFiles)he(0,t,t);xe(),v=r}function pe(e,t,n){x=!0;const r=v;be(t,n),Pt(e),Nt(e),he(0,e,e),xe(),v=r}function fe(){return b||(b=zy(q))}function ge(){const e=b.getText();return b.clear(),e}function he(e,t,n){n&&ye(n),Ae(e,t,void 0)}function ye(e){n=e,w=void 0,E=void 0,e&&kr(e)}function be(t,n){t&&e.omitTrailingSemicolon&&(t=$y(t)),S=n,G=!(v=t)||!S}function xe(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],u=0,_=[],d=0,p=[],m=void 0,g=[],h=void 0,n=void 0,w=void 0,E=void 0,be(void 0,void 0)}function Se(){return w||(w=Ua(gn.checkDefined(n)))}function De(e,t){void 0!==e&&Ae(4,e,t)}function we(e){void 0!==e&&Ae(2,e,void 0)}function Ee(e,t){void 0!==e&&Ae(1,e,t)}function Fe(e){Ae(Iw(e)?6:4,e)}function Ne(e){W&&4&ap(e)&&(W=!1)}function Pe(e){W=e}function Ae(e,t,n){N=n,Le(0,e,t)(e,t),N=void 0}function Ie(e){return!ne&&!QN(e)}function Oe(e){return!G&&!QN(e)&&!Mm(e)}function Le(e,t,n){switch(e){case 0:if(A!==M$&&(!I||I(n)))return je;case 1:if(O!==j$&&(F=O(t,n)||n)!==n)return N&&(F=N(F)),Je;case 2:if(Ie(n))return Gn;case 3:if(Oe(n))return hr;case 4:return Me;default:return gn.assertNever(e)}}function Re(e,t,n){return Le(e+1,t,n)}function je(e,t){const n=Re(0,e,t);A(e,t,n)}function Me(e,t){if(null==L||L(t),W){const n=W;Ne(t),Be(e,t),Pe(n)}else Be(e,t);null==R||R(t),N=void 0}function Be(e,t,r=!0){if(r){const n=jD(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){an(`\${${n.order}:`),Be(e,t,!1),an("}")}(e,t,n);break;case 0:!function(e,t,n){gn.assert(242===t.kind,`A tab stop cannot be attached to a node of kind ${gn.formatSyntaxKind(t.kind)}.`),gn.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),an(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return Dt(st(t,QN));if(2===e)return Ue(st(t,Xw));if(6===e)return qe(st(t,Iw),!0);if(3===e)return function(e){De(e.name),rn(),Zt("in"),rn(),De(e.constraint)}(st(t,pE));if(7===e)return function(e){Qt("{"),rn(),Zt(132===e.token?"assert":"with"),Qt(":"),rn();const t=e.elements;Vt(e,t,526226),rn(),Qt("}")}(st(t,gN));if(5===e)return gn.assertNode(t,RF),Ye(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return qe(t,!1);case 80:return Ue(t);case 81:return Ve(t);case 166:return function(e){(function(e){80===e.kind?Ee(e):De(e)})(e.left),Qt("."),De(e.right)}(t);case 167:return function(e){Qt("["),Ee(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Qt("]")}(t);case 168:return function(e){Ot(e,e.modifiers),De(e.name),e.constraint&&(rn(),Zt("extends"),rn(),De(e.constraint)),e.default&&(rn(),en("="),rn(),De(e.default))}(t);case 169:return function(e){It(e,e.modifiers,!0),De(e.dotDotDotToken),At(e.name,tn),De(e.questionToken),e.parent&&317===e.parent.kind&&!e.name?De(e.type):Lt(e.type),Rt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 170:return a=t,Qt("@"),void Ee(a.expression,oe.parenthesizeLeftSideOfAccess);case 171:return function(e){Ot(e,e.modifiers),At(e.name,on),De(e.questionToken),Lt(e.type),Yt()}(t);case 172:return function(e){It(e,e.modifiers,!0),De(e.name),De(e.questionToken),De(e.exclamationToken),Lt(e.type),Rt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Yt()}(t);case 173:return function(e){Ot(e,e.modifiers),De(e.name),De(e.questionToken),lt(e,dt,_t)}(t);case 174:return function(e){It(e,e.modifiers,!0),De(e.asteriskToken),De(e.name),De(e.questionToken),lt(e,dt,ut)}(t);case 175:return function(e){Zt("static"),Nn(e),pt(e.body),Pn(e)}(t);case 176:return function(e){It(e,e.modifiers,!1),Zt("constructor"),lt(e,dt,ut)}(t);case 177:case 178:return function(e){const t=It(e,e.modifiers,!0),n=177===e.kind?139:153;tt(n,t,Zt,e),rn(),De(e.name),lt(e,dt,ut)}(t);case 179:return function(e){lt(e,dt,_t)}(t);case 180:return function(e){Zt("new"),rn(),lt(e,dt,_t)}(t);case 181:return function(e){var t,n;It(e,e.modifiers,!1),t=e,n=e.parameters,Vt(t,n,8848),Lt(e.type),Yt()}(t);case 182:return function(e){e.assertsModifier&&(De(e.assertsModifier),rn()),De(e.parameterName),e.type&&(rn(),Zt("is"),rn(),De(e.type))}(t);case 183:return function(e){De(e.typeName),Jt(e,e.typeArguments)}(t);case 184:return function(e){lt(e,We,He)}(t);case 185:return function(e){Ot(e,e.modifiers),Zt("new"),rn(),lt(e,We,He)}(t);case 186:return function(e){Zt("typeof"),rn(),De(e.exprName),Jt(e,e.typeArguments)}(t);case 187:return function(e){Nn(e),f(e.members,Ln),Qt("{");const t=1&op(e)?768:32897;Vt(e,e.members,524288|t),Qt("}"),Pn(e)}(t);case 188:return function(e){De(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),Qt("]")}(t);case 189:return function(e){tt(23,e.pos,Qt,e);const t=1&op(e)?528:657;Vt(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),tt(24,e.elements.end,Qt,e)}(t);case 190:return function(e){De(e.type,oe.parenthesizeTypeOfOptionalType),Qt("?")}(t);case 192:return function(e){Vt(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Vt(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194:return function(e){De(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),rn(),Zt("extends"),rn(),De(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),rn(),Qt("?"),rn(),De(e.trueType),rn(),Qt(":"),rn(),De(e.falseType)}(t);case 195:return function(e){Zt("infer"),rn(),De(e.typeParameter)}(t);case 196:return function(e){Qt("("),De(e.type),Qt(")")}(t);case 233:return Xe(t);case 197:return void Zt("this");case 198:return function(e){dn(e.operator,Zt),rn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;De(e.type,t)}(t);case 199:return function(e){De(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),De(e.indexType),Qt("]")}(t);case 200:return function(e){const t=op(e);Qt("{"),1&t?rn():(sn(),cn()),e.readonlyToken&&(De(e.readonlyToken),148!==e.readonlyToken.kind&&Zt("readonly"),rn()),Qt("["),Ae(3,e.typeParameter),e.nameType&&(rn(),Zt("as"),rn(),De(e.nameType)),Qt("]"),e.questionToken&&(De(e.questionToken),58!==e.questionToken.kind&&Qt("?")),Qt(":"),rn(),De(e.type),Yt(),1&t?rn():(sn(),ln()),Vt(e,e.members,2),Qt("}")}(t);case 201:return function(e){Ee(e.literal)}(t);case 202:return function(e){De(e.dotDotDotToken),De(e.name),De(e.questionToken),tt(59,e.name.end,Qt,e),rn(),De(e.type)}(t);case 203:return function(e){De(e.head),Vt(e,e.templateSpans,262144)}(t);case 204:return function(e){De(e.type),De(e.literal)}(t);case 205:return function(e){e.isTypeOf&&(Zt("typeof"),rn()),Zt("import"),Qt("("),De(e.argument),e.attributes&&(Qt(","),rn(),Ae(7,e.attributes)),Qt(")"),e.qualifier&&(Qt("."),De(e.qualifier)),Jt(e,e.typeArguments)}(t);case 206:return function(e){Qt("{"),Vt(e,e.elements,525136),Qt("}")}(t);case 207:return function(e){Qt("["),Vt(e,e.elements,524880),Qt("]")}(t);case 208:return function(e){De(e.dotDotDotToken),e.propertyName&&(De(e.propertyName),Qt(":"),rn()),De(e.name),Rt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 239:return function(e){Ee(e.expression),De(e.literal)}(t);case 240:return void Yt();case 241:return function(e){Qe(e,!e.multiLine&&Dn(e))}(t);case 243:return function(e){It(e,e.modifiers,!1),De(e.declarationList),Yt()}(t);case 242:return Ye(!1);case 244:return function(e){Ee(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&sf(n)&&!sy(e.expression)||Yt()}(t);case 245:return function(e){const t=tt(101,e.pos,Zt,e);rn(),tt(21,t,Qt,e),Ee(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.thenStatement),e.elseStatement&&(pn(e,e.thenStatement,e.elseStatement),tt(93,e.thenStatement.end,Zt,e),245===e.elseStatement.kind?(rn(),De(e.elseStatement)):Bt(e,e.elseStatement))}(t);case 246:return function(e){tt(92,e.pos,Zt,e),Bt(e,e.statement),OF(e.statement)&&!W?rn():pn(e,e.statement,e.expression),Ze(e,e.statement.end),Yt()}(t);case 247:return function(e){Ze(e,e.pos),Bt(e,e.statement)}(t);case 248:return function(e){const t=tt(99,e.pos,Zt,e);rn();let n=tt(21,t,Qt,e);et(e.initializer),n=tt(27,e.initializer?e.initializer.end:n,Qt,e),Mt(e.condition),n=tt(27,e.condition?e.condition.end:n,Qt,e),Mt(e.incrementor),tt(22,e.incrementor?e.incrementor.end:n,Qt,e),Bt(e,e.statement)}(t);case 249:return function(e){const t=tt(99,e.pos,Zt,e);rn(),tt(21,t,Qt,e),et(e.initializer),rn(),tt(103,e.initializer.end,Zt,e),rn(),Ee(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 250:return function(e){const t=tt(99,e.pos,Zt,e);rn(),function(e){e&&(De(e),rn())}(e.awaitModifier),tt(21,t,Qt,e),et(e.initializer),rn(),tt(165,e.initializer.end,Zt,e),rn(),Ee(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 251:return function(e){tt(88,e.pos,Zt,e),jt(e.label),Yt()}(t);case 252:return function(e){tt(83,e.pos,Zt,e),jt(e.label),Yt()}(t);case 253:return function(e){tt(107,e.pos,Zt,e),Mt(e.expression&&it(e.expression),it),Yt()}(t);case 254:return function(e){const t=tt(118,e.pos,Zt,e);rn(),tt(21,t,Qt,e),Ee(e.expression),tt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 255:return function(e){const t=tt(109,e.pos,Zt,e);rn(),tt(21,t,Qt,e),Ee(e.expression),tt(22,e.expression.end,Qt,e),rn(),De(e.caseBlock)}(t);case 256:return function(e){De(e.label),tt(59,e.label.end,Qt,e),rn(),De(e.statement)}(t);case 257:return function(e){tt(111,e.pos,Zt,e),Mt(it(e.expression),it),Yt()}(t);case 258:return function(e){tt(113,e.pos,Zt,e),rn(),De(e.tryBlock),e.catchClause&&(pn(e,e.tryBlock,e.catchClause),De(e.catchClause)),e.finallyBlock&&(pn(e,e.catchClause||e.tryBlock,e.finallyBlock),tt(98,(e.catchClause||e.tryBlock).end,Zt,e),rn(),De(e.finallyBlock))}(t);case 259:return function(e){un(89,e.pos,Zt),Yt()}(t);case 260:return function(e){var t,n,r;De(e.name),De(e.exclamationToken),Lt(e.type),Rt(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 261:return function(e){uf(e)?(Zt("await"),rn(),Zt("using")):Zt(ff(e)?"let":df(e)?"const":_f(e)?"using":"var"),rn(),Vt(e,e.declarations,528)}(t);case 262:return function(e){ct(e)}(t);case 263:return function(e){gt(e)}(t);case 264:return function(e){It(e,e.modifiers,!1),Zt("interface"),rn(),De(e.name),zt(e,e.typeParameters),Vt(e,e.heritageClauses,512),rn(),Qt("{"),Nn(e),f(e.members,Ln),Vt(e,e.members,129),Pn(e),Qt("}")}(t);case 265:return function(e){It(e,e.modifiers,!1),Zt("type"),rn(),De(e.name),zt(e,e.typeParameters),rn(),Qt("="),rn(),De(e.type),Yt()}(t);case 266:return function(e){It(e,e.modifiers,!1),Zt("enum"),rn(),De(e.name),rn(),Qt("{"),Vt(e,e.members,145),Qt("}")}(t);case 267:return function(e){It(e,e.modifiers,!1),2048&~e.flags&&(Zt(32&e.flags?"namespace":"module"),rn()),De(e.name);let t=e.body;if(!t)return Yt();for(;t&&aN(t);)Qt("."),De(t.name),t=t.body;rn(),De(t)}(t);case 268:return function(e){Nn(e),f(e.statements,On),Qe(e,Dn(e)),Pn(e)}(t);case 269:return function(e){tt(19,e.pos,Qt,e),Vt(e,e.clauses,129),tt(20,e.clauses.end,Qt,e,!0)}(t);case 270:return function(e){let t=tt(95,e.pos,Zt,e);rn(),t=tt(130,t,Zt,e),rn(),t=tt(145,t,Zt,e),rn(),De(e.name),Yt()}(t);case 271:return function(e){It(e,e.modifiers,!1),tt(102,e.modifiers?e.modifiers.end:e.pos,Zt,e),rn(),e.isTypeOnly&&(tt(156,e.pos,Zt,e),rn()),De(e.name),rn(),tt(64,e.name.end,Qt,e),rn(),function(e){80===e.kind?Ee(e):De(e)}(e.moduleReference),Yt()}(t);case 272:return function(e){It(e,e.modifiers,!1),tt(102,e.modifiers?e.modifiers.end:e.pos,Zt,e),rn(),e.importClause&&(De(e.importClause),rn(),tt(161,e.importClause.end,Zt,e),rn()),Ee(e.moduleSpecifier),e.attributes&&jt(e.attributes),Yt()}(t);case 273:return function(e){e.isTypeOnly&&(tt(156,e.pos,Zt,e),rn()),De(e.name),e.name&&e.namedBindings&&(tt(28,e.name.end,Qt,e),rn()),De(e.namedBindings)}(t);case 274:return function(e){const t=tt(42,e.pos,Qt,e);rn(),tt(130,t,Zt,e),rn(),De(e.name)}(t);case 280:return function(e){const t=tt(42,e.pos,Qt,e);rn(),tt(130,t,Zt,e),rn(),De(e.name)}(t);case 275:case 279:return function(e){ht(e)}(t);case 276:case 281:return function(e){yt(e)}(t);case 277:return function(e){const t=tt(95,e.pos,Zt,e);rn(),e.isExportEquals?tt(64,t,en,e):tt(90,t,Zt,e),rn(),Ee(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Yt()}(t);case 278:return function(e){It(e,e.modifiers,!1);let t=tt(95,e.pos,Zt,e);rn(),e.isTypeOnly&&(t=tt(156,t,Zt,e),rn()),e.exportClause?De(e.exportClause):t=tt(42,t,Qt,e),e.moduleSpecifier&&(rn(),tt(161,e.exportClause?e.exportClause.end:t,Zt,e),rn(),Ee(e.moduleSpecifier)),e.attributes&&jt(e.attributes),Yt()}(t);case 300:return function(e){tt(e.token,e.pos,Zt,e),rn();const t=e.elements;Vt(e,t,526226)}(t);case 301:return function(e){De(e.name),Qt(":"),rn();const t=e.value;1024&op(t)||ur(xD(t).pos),De(t)}(t);case 282:case 319:case 330:case 331:case 333:case 334:case 335:case 336:case 353:case 354:return;case 283:return function(e){Zt("require"),Qt("("),Ee(e.expression),Qt(")")}(t);case 12:return function(e){v.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(Qt("<"),IN(e)){const t=Sn(e.tagName,e);vt(e.tagName),Jt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&rn(),De(e.attributes),kn(e.attributes,e),hn(t)}Qt(">")}(t);case 287:case 290:return function(e){Qt("")}(t);case 291:return function(e){De(e.name),function(e,t,n,r){n&&(t(e),r(n))}("=",Qt,e.initializer,Fe)}(t);case 292:return function(e){Vt(e,e.properties,262656)}(t);case 293:return function(e){Qt("{..."),Ee(e.expression),Qt("}")}(t);case 294:return function(e){var t,r;if(e.expression||!ne&&!sy(e)&&(function(e){let t=!1;return ps((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r=e.pos)||function(e){let t=!1;return ds((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!sy(e)&&Ga(n,e.pos).line!==Ga(n,e.end).line;r&&v.increaseIndent();const i=tt(19,e.pos,Qt,e);De(e.dotDotDotToken),Ee(e.expression),tt(20,(null==(t=e.expression)?void 0:t.end)||i,Qt,e),r&&v.decreaseIndent()}}(t);case 295:return function(e){we(e.namespace),Qt(":"),we(e.name)}(t);case 296:return function(e){tt(84,e.pos,Zt,e),rn(),Ee(e.expression,oe.parenthesizeExpressionForDisallowedComma),bt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=tt(90,e.pos,Zt,e);bt(e,e.statements,t)}(t);case 298:return function(e){rn(),dn(e.token,Zt),rn(),Vt(e,e.types,528)}(t);case 299:return function(e){const t=tt(85,e.pos,Zt,e);rn(),e.variableDeclaration&&(tt(21,t,Qt,e),De(e.variableDeclaration),tt(22,e.variableDeclaration.end,Qt,e),rn()),De(e.block)}(t);case 303:return function(e){De(e.name),Qt(":"),rn();const t=e.initializer;1024&op(t)||ur(xD(t).pos),Ee(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){De(e.name),e.objectAssignmentInitializer&&(rn(),Qt("="),rn(),Ee(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(tt(26,e.pos,Qt,e),Ee(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){De(e.name),Rt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 307:return Dt(t);case 308:return gn.fail("Bundles should be printed using printBundle");case 309:return Ct(t);case 310:return function(e){rn(),Qt("{"),De(e.name),Qt("}")}(t);case 312:return Qt("*");case 313:return Qt("?");case 314:return function(e){Qt("?"),De(e.type)}(t);case 315:return function(e){Qt("!"),De(e.type)}(t);case 316:return function(e){De(e.type),Qt("=")}(t);case 317:return function(e){Zt("function"),$t(e,e.parameters),Qt(":"),De(e.type)}(t);case 191:case 318:return function(e){Qt("..."),De(e.type)}(t);case 320:return function(e){if(H("/**"),e.comment){const t=gl(e.comment);if(t){const e=t.split(/\r\n?|\n/);for(const t of e)sn(),rn(),Qt("*"),rn(),H(t)}}e.tags&&(1!==e.tags.length||344!==e.tags[0].kind||e.comment?Vt(e,e.tags,33):(rn(),De(e.tags[0]))),rn(),H("*/")}(t);case 322:return xt(t);case 323:return St(t);case 327:case 332:case 337:return kt((o=t).tagName),void Tt(o.comment);case 328:case 329:return function(e){kt(e.tagName),rn(),Qt("{"),De(e.class),Qt("}"),Tt(e.comment)}(t);case 338:return function(e){kt(e.tagName),e.name&&(rn(),De(e.name)),Tt(e.comment),St(e.typeExpression)}(t);case 339:return function(e){Tt(e.comment),St(e.typeExpression)}(t);case 341:case 348:return kt((i=t).tagName),Ct(i.typeExpression),rn(),i.isBracketed&&Qt("["),De(i.name),i.isBracketed&&Qt("]"),void Tt(i.comment);case 340:case 342:case 343:case 344:case 349:case 350:return function(e){kt(e.tagName),Ct(e.typeExpression),Tt(e.comment)}(t);case 345:return function(e){kt(e.tagName),Ct(e.constraint),rn(),Vt(e,e.typeParameters,528),Tt(e.comment)}(t);case 346:return function(e){kt(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?Ct(e.typeExpression):(rn(),Qt("{"),H("Object"),e.typeExpression.isArrayType&&(Qt("["),Qt("]")),Qt("}"))),e.fullName&&(rn(),De(e.fullName)),Tt(e.comment),e.typeExpression&&322===e.typeExpression.kind&&xt(e.typeExpression)}(t);case 347:return function(e){kt(e.tagName),De(e.name),Tt(e.comment)}(t);case 351:return function(e){kt(e.tagName),rn(),e.importClause&&(De(e.importClause),rn(),tt(161,e.importClause.end,Zt,e),rn()),Ee(e.moduleSpecifier),e.attributes&&jt(e.attributes),Tt(e.comment)}(t)}if(Qu(t)&&(e=1,O!==j$)){const n=O(e,t)||t;n!==t&&(t=n,N&&(t=N(t)))}}var i,o,a;if(1===e)switch(t.kind){case 9:case 10:return function(e){qe(e,!1)}(t);case 11:case 14:case 15:return qe(t,!1);case 80:return Ue(t);case 81:return Ve(t);case 209:return function(e){const t=e.elements,n=e.multiLine?65536:0;Wt(e,t,8914|n,oe.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){Nn(e),f(e.properties,Ln);const t=131072&op(e);t&&cn();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!sf(n)?64:0;Vt(e,e.properties,526226|i|r),t&&ln(),Pn(e)}(t);case 211:return function(e){Ee(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||AT(oD.createToken(25),e.expression.end,e.name.pos),n=Cn(e,e.expression,t),r=Cn(e,t,e.name);mn(n,!1);const i=29!==t.kind&&function(e){if(Pw(e=Nl(e))){const t=Fn(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Ra(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(Px(e)){const t=ND(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!v.hasTrailingComment()&&!v.hasTrailingWhitespace();i&&Qt("."),e.questionDotToken?De(t):tt(t.kind,e.expression.end,Qt,e),mn(r,!1),De(e.name),hn(n,r)}(t);case 212:return function(e){Ee(e.expression,oe.parenthesizeLeftSideOfAccess),De(e.questionDotToken),tt(23,e.expression.end,Qt,e),Ee(e.argumentExpression),tt(24,e.argumentExpression.end,Qt,e)}(t);case 213:return function(e){const t=16&ap(e);t&&(Qt("("),Kt("0"),Qt(","),rn()),Ee(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Qt(")"),De(e.questionDotToken),Jt(e,e.typeArguments),Wt(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){tt(105,e.pos,Zt,e),rn(),Ee(e.expression,oe.parenthesizeExpressionOfNew),Jt(e,e.typeArguments),Wt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&ap(e);t&&(Qt("("),Kt("0"),Qt(","),rn()),Ee(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Qt(")"),Jt(e,e.typeArguments),rn(),Ee(e.template)}(t);case 216:return function(e){Qt("<"),De(e.type),Qt(">"),Ee(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=tt(21,e.pos,Qt,e),n=Sn(e.expression,e);Ee(e.expression,void 0),kn(e.expression,e),hn(n),tt(22,e.expression?e.expression.end:t,Qt,e)}(t);case 218:return function(e){Rn(e.name),ct(e)}(t);case 219:return function(e){Ot(e,e.modifiers),lt(e,Ge,Ke)}(t);case 220:return function(e){tt(91,e.pos,Zt,e),rn(),Ee(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){tt(114,e.pos,Zt,e),rn(),Ee(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){tt(116,e.pos,Zt,e),rn(),Ee(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){tt(135,e.pos,Zt,e),rn(),Ee(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){dn(e.operator,en),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&rn(),Ee(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){Ee(e.operand,oe.parenthesizeOperandOfPostfixUnary),dn(e.operator,en)}(t);case 226:return se(t);case 227:return function(e){const t=Cn(e,e.condition,e.questionToken),n=Cn(e,e.questionToken,e.whenTrue),r=Cn(e,e.whenTrue,e.colonToken),i=Cn(e,e.colonToken,e.whenFalse);Ee(e.condition,oe.parenthesizeConditionOfConditionalExpression),mn(t,!0),De(e.questionToken),mn(n,!0),Ee(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),hn(t,n),mn(r,!0),De(e.colonToken),mn(i,!0),Ee(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),hn(r,i)}(t);case 228:return function(e){De(e.head),Vt(e,e.templateSpans,262144)}(t);case 229:return function(e){tt(127,e.pos,Zt,e),De(e.asteriskToken),Mt(e.expression&&it(e.expression),ot)}(t);case 230:return function(e){tt(26,e.pos,Qt,e),Ee(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){Rn(e.name),gt(e)}(t);case 232:case 282:case 353:return;case 234:return function(e){Ee(e.expression,void 0),e.type&&(rn(),Zt("as"),rn(),De(e.type))}(t);case 235:return function(e){Ee(e.expression,oe.parenthesizeLeftSideOfAccess),en("!")}(t);case 233:return Xe(t);case 238:return function(e){Ee(e.expression,void 0),e.type&&(rn(),Zt("satisfies"),rn(),De(e.type))}(t);case 236:return function(e){un(e.keywordToken,e.pos,Qt),Qt("."),De(e.name)}(t);case 237:return gn.fail("SyntheticExpression should never be printed.");case 284:return function(e){De(e.openingElement),Vt(e,e.children,262144),De(e.closingElement)}(t);case 285:return function(e){Qt("<"),vt(e.tagName),Jt(e,e.typeArguments),rn(),De(e.attributes),Qt("/>")}(t);case 288:return function(e){De(e.openingFragment),Vt(e,e.children,262144),De(e.closingFragment)}(t);case 352:return gn.fail("SyntaxList should not be printed");case 355:return function(e){const t=op(e);1024&t||e.pos===e.expression.pos||ur(e.expression.pos),Ee(e.expression),2048&t||e.end===e.expression.end||cr(e.expression.end)}(t);case 356:return function(e){Wt(e,e.elements,528,void 0)}(t);case 357:return gn.fail("SyntheticReferenceExpression should not be printed")}return Ah(t.kind)?_n(t,Zt):Rl(t.kind)?_n(t,Qt):void gn.fail(`Unhandled SyntaxKind: ${gn.formatSyntaxKind(t.kind)}.`)}function Je(e,t){const n=Re(1,e,t);gn.assertIsDefined(F),t=F,F=void 0,n(e,t)}function ze(t){let r=!1;const i=308===t.kind?t:void 0;if(i&&0===U)return;const o=i?i.sourceFiles.length:1;for(let a=0;a")}function He(e){rn(),De(e.type)}function Ge(e){zt(e,e.typeParameters),qt(e,e.parameters),Lt(e.type),rn(),De(e.equalsGreaterThanToken)}function Ke(e){OF(e.body)?pt(e.body):(rn(),Ee(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){Ee(e.expression,oe.parenthesizeLeftSideOfAccess),Jt(e,e.typeArguments)}function Qe(e,t){tt(19,e.pos,Qt,e);const n=t||1&op(e)?768:129;Vt(e,e.statements,n),tt(20,e.statements.end,Qt,e,!!(1&n))}function Ye(e){e?Qt(";"):Yt()}function Ze(e,t){const n=tt(117,t,Zt,e);rn(),tt(21,n,Qt,e),Ee(e.expression),tt(22,e.expression.end,Qt,e)}function et(e){void 0!==e&&(261===e.kind?De(e):Ee(e))}function tt(e,t,r,i,o){const a=bc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=is(n.text,t)),s&&i.pos!==c){const e=o&&n&&!ex(c,t,n);e&&cn(),cr(c),e&&ln()}if(t=$||19!==e&&20!==e?dn(e,r,t):un(e,t,r,i),s&&i.end!==t){const e=294===i.kind;ur(t,!e,e)}return t}function nt(e){return 2===e.kind||!!e.hasTrailingNewLine}function rt(e){if(!n)return!1;const t=hs(n.text,e.pos);if(t){const t=bc(e);if(t&&cF(t.parent))return!0}return!!X(t,nt)||!!X(kD(e),nt)||!!NF(e)&&(!(e.pos===e.expression.pos||!X(ys(n.text,e.expression.pos),nt))||rt(e.expression))}function it(e){if(!ne)switch(e.kind){case 355:if(rt(e)){const t=bc(e);if(t&&cF(t)){const n=oD.createParenthesizedExpression(e.expression);return sD(n,e),fI(n,t),n}return oD.createParenthesizedExpression(e)}return oD.updatePartiallyEmittedExpression(e,it(e.expression));case 211:return oD.updatePropertyAccessExpression(e,it(e.expression),e.name);case 212:return oD.updateElementAccessExpression(e,it(e.expression),e.argumentExpression);case 213:return oD.updateCallExpression(e,it(e.expression),e.typeArguments,e.arguments);case 215:return oD.updateTaggedTemplateExpression(e,it(e.tag),e.typeArguments,e.template);case 225:return oD.updatePostfixUnaryExpression(e,it(e.operand));case 226:return oD.updateBinaryExpression(e,it(e.left),e.operatorToken,e.right);case 227:return oD.updateConditionalExpression(e,it(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 234:return oD.updateAsExpression(e,it(e.expression),e.type);case 238:return oD.updateSatisfiesExpression(e,it(e.expression),e.type);case 235:return oD.updateNonNullExpression(e,it(e.expression))}return e}function ot(e){return it(oe.parenthesizeExpressionForDisallowedComma(e))}function ct(e){It(e,e.modifiers,!1),Zt("function"),De(e.asteriskToken),rn(),we(e.name),lt(e,dt,ut)}function lt(e,t,n){const r=131072&op(e);r&&cn(),Nn(e),f(e.parameters,On),t(e),n(e),Pn(e),r&&ln()}function ut(e){const t=e.body;t?pt(t):Yt()}function _t(e){Yt()}function dt(e){zt(e,e.typeParameters),$t(e,e.parameters),Lt(e.type)}function pt(e){On(e),null==L||L(e),rn(),Qt("{"),cn();const t=function(e){if(1&op(e))return!0;if(e.multiLine)return!1;if(!sy(e)&&n&&!Wb(e,n))return!1;if(yn(e,ve(e.statements),2)||bn(e,ke(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(vn(t,n,2)>0)return!1;t=n}return!0}(e)?ft:mt;nr(e,e.statements,t),ln(),un(20,e.statements.end,Qt,e),null==R||R(e)}function ft(e){mt(e,!0)}function mt(e,t){const n=Ft(e.statements),r=v.getTextPos();ze(e),0===n&&r===v.getTextPos()&&t?(ln(),Vt(e,e.statements,768),cn()):Vt(e,e.statements,1,void 0,n)}function gt(e){It(e,e.modifiers,!0),tt(86,Ub(e).pos,Zt,e),e.name&&(rn(),we(e.name));const t=131072&op(e);t&&cn(),zt(e,e.typeParameters),Vt(e,e.heritageClauses,0),rn(),Qt("{"),Nn(e),f(e.members,Ln),Vt(e,e.members,129),Pn(e),Qt("}"),t&&ln()}function ht(e){Qt("{"),Vt(e,e.elements,525136),Qt("}")}function yt(e){e.isTypeOnly&&(Zt("type"),rn()),e.propertyName&&(De(e.propertyName),rn(),tt(130,e.propertyName.end,Zt,e),rn()),De(e.name)}function vt(e){80===e.kind?Ee(e):De(e)}function bt(e,t,r){let i=163969;1===t.length&&(!n||sy(e)||sy(t[0])||Hb(e,t[0],n))?(un(59,r,Qt,e),rn(),i&=-130):tt(59,r,Qt,e),Vt(e,t,i)}function xt(e){Vt(e,oD.createNodeArray(e.jsDocPropertyTags),33)}function St(e){e.typeParameters&&Vt(e,oD.createNodeArray(e.typeParameters),33),e.parameters&&Vt(e,oD.createNodeArray(e.parameters),33),e.type&&(sn(),rn(),Qt("*"),rn(),De(e.type))}function kt(e){Qt("@"),De(e)}function Tt(e){const t=gl(e);t&&(rn(),H(t))}function Ct(e){e&&(rn(),Qt("{"),De(e.type),Qt("}"))}function Dt(e){sn();const t=e.statements;0===t.length||!vf(t[0])||sy(t[0])?nr(e,t,Et):Et(e)}function wt(e,t,r,i){if(e&&(nn('/// '),sn()),n&&n.moduleName&&(nn(`/// `),sn()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?nn(`/// `):nn(`/// `),sn();function o(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";nn(`/// `),sn()}}o("path",t),o("types",r),o("lib",i)}function Et(e){const t=e.statements;Nn(e),f(e.statements,On),ze(e);const n=D(t,(e=>!vf(e)));!function(e){e.isDeclarationFile&&wt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Vt(e,t,1,void 0,-1===n?t.length:n),Pn(e)}function Ft(e,t,n){let r=!!t;for(let i=0;i=r.length||0===s;if(c&&32768&i)return null==j||j(r),void(null==M||M(r));15360&i&&(Qt(function(e){return z$[15360&e][0]}(i)),c&&r&&ur(r.pos,!0)),null==j||j(r),c?!(1&i)||W&&(!t||n&&Wb(t,n))?256&i&&!(524288&i)&&rn():sn():Gt(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==M||M(r),15360&i&&(c&&r&&cr(r.end),Qt(function(e){return z$[15360&e][1]}(i)))}function Gt(e,t,n,r,i,o,a,s,c){const l=!(262144&r);let u=l;const _=yn(t,n[o],r);_?(sn(_),u=!1):256&r&&rn(),128&r&&cn();const d=function(e,t){return 1===e.length?yq:"object"==typeof t?vq:bq}(e,i);let p,f=!1;for(let s=0;s0?(131&r||(cn(),f=!0),u&&60&r&&!rT(a.pos)&&ur(xD(a).pos,!!(512&r),!0),sn(e),u=!1):p&&512&r&&rn()}u?ur(xD(a).pos):u=l,y=a.pos,d(a,e,i,s),f&&(ln(),f=!1),p=a}const m=p?op(p):0,g=ne||!!(2048&m),h=s&&64&r&&16&r;h&&(p&&!g?tt(28,p.end,Qt,p):Qt(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!g&&cr(h&&(null==c?void 0:c.end)?c.end:p.end),128&r&&ln();const v=bn(t,n[o+a-1],r,c);v?sn(v):2097408&r&&rn()}function Kt(e){v.writeLiteral(e)}function Xt(e,t){v.writeSymbol(e,t)}function Qt(e){v.writePunctuation(e)}function Yt(){v.writeTrailingSemicolon(";")}function Zt(e){v.writeKeyword(e)}function en(e){v.writeOperator(e)}function tn(e){v.writeParameter(e)}function nn(e){v.writeComment(e)}function rn(){v.writeSpace(" ")}function on(e){v.writeProperty(e)}function an(e){v.nonEscapingWrite?v.nonEscapingWrite(e):v.write(e)}function sn(e=1){for(let t=0;t0)}function cn(){v.increaseIndent()}function ln(){v.decreaseIndent()}function un(e,t,n,r){return G?dn(e,n,t):function(e,t,n,r,i){if(G||e&&Mm(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||T;return r=br(c,s?s.pos:r),!(256&a)&&r>=0&&Sr(c,r),r=i(t,n,r),s&&(r=s.end),!(512&a)&&r>=0&&Sr(c,r),r}(r,e,n,t,dn)}function _n(e,t){B&&B(e),t(Ra(e.kind)),J&&J(e)}function dn(e,t,n){const r=Ra(e);return t(r),n<0?n:n+r.length}function pn(e,t,n){if(1&op(e))rn();else if(W){const r=Cn(e,t,n);r?sn(r):rn()}else sn()}function fn(e){const t=e.split(/\r\n?|\n/),n=$_(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(sn(),H(t))}}function mn(e,t){e?(cn(),sn(e)):t&&rn()}function hn(e,t){e&&ln(),t&&ln()}function yn(e,t,r){if(2&r||W){if(65536&r)return 1;if(void 0===t)return!e||n&&Wb(e,n)?0:1;if(t.pos===y)return 0;if(12===t.kind)return 0;if(n&&e&&!rT(e.pos)&&!sy(t)&&(!t.parent||hc(t.parent)===hc(e)))return W?xn((r=>nx(t.pos,e.pos,n,r))):Hb(e,t,n)?0:1;if(Tn(t,r))return 1}return 1&r?1:0}function vn(e,t,r){if(2&r||W){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!sy(e)&&!sy(t))return W&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?xn((r=>Qb(e,t,n,r))):!W&&(o=t,(i=hc(i=e)).parent&&i.parent===hc(o).parent)?Xb(e,t,n)?0:1:65536&r?1:0;if(Tn(e,r)||Tn(t,r))return 1}else if(vD(t))return 1;var i,o;return 1&r?1:0}function bn(e,t,r,i){if(2&r||W){if(65536&r)return 1;if(void 0===t)return!e||n&&Wb(e,n)?0:1;if(n&&e&&!rT(e.pos)&&!sy(t)&&(!t.parent||t.parent===e)){if(W){const r=i&&!rT(i.end)?i.end:t.end;return xn((t=>rx(r,e.end,n,t)))}return Gb(e,t,n)?0:1}if(Tn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function xn(e){gn.assert(!!W);const t=e(!0);return 0===t?e(!1):t}function Sn(e,t){const n=W&&yn(t,e,0);return n&&mn(n,!1),!!n}function kn(e,t){const n=W&&bn(t,e,0,void 0);n&&sn(n)}function Tn(e,t){if(sy(e)){const n=vD(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Cn(e,t,r){return 262144&op(e)?0:(e=wn(e),t=wn(t),vD(r=wn(r))?1:!n||sy(e)||sy(t)||sy(r)?0:W?xn((e=>Qb(t,r,n,e))):Xb(t,r,n)?0:1)}function Dn(e){return 0===e.statements.length&&(!n||Xb(e,e,n))}function wn(e){for(;217===e.kind&&sy(e);)e=e.expression;return e}function En(e,t){if(Yl(e)||Zl(e))return jn(e);if(Iw(e)&&e.textSourceNode)return En(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!sy(e);if(vl(e)){if(!i||Cd(e)!==hc(r))return kc(e)}else if($N(e)){if(!i||Cd(e)!==hc(r))return dC(e)}else if(gn.assertNode(e,Jl),!i)return e.text;return Xd(r,e,t)}function Fn(t,r=n,i,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(Xw(e)||Qw(e)||Pw(e)||$N(e)){const n=Pw(e)?e.text:En(e);return o?`"${Ly(n)}"`:i||16777216&op(t)?`"${Ey(n)}"`:`"${Ny(n)}"`}return Fn(e,Cd(e),i,o)}return lp(t,r,(i?1:0)|(o?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function Nn(e){l.push(u),u=0,g.push(h),e&&1048576&op(e)||(_.push(d),d=0,s.push(c),c=void 0,p.push(m))}function Pn(e){u=l.pop(),h=g.pop(),e&&1048576&op(e)||(d=_.pop(),c=s.pop(),m=p.pop())}function An(e){m&&m!==ke(p)||(m=new Set),m.add(e)}function In(e){h&&h!==ke(g)||(h=new Set),h.add(e)}function On(e){if(e)switch(e.kind){case 241:case 296:case 297:f(e.statements,On);break;case 256:case 254:case 246:case 247:On(e.statement);break;case 245:On(e.thenStatement),On(e.elseStatement);break;case 248:case 250:case 249:On(e.initializer),On(e.statement);break;case 255:On(e.caseBlock);break;case 269:f(e.clauses,On);break;case 258:On(e.tryBlock),On(e.catchClause),On(e.finallyBlock);break;case 299:On(e.variableDeclaration),On(e.block);break;case 243:On(e.declarationList);break;case 261:f(e.declarations,On);break;case 260:case 169:case 208:case 263:case 274:case 280:Rn(e.name);break;case 262:Rn(e.name),1048576&op(e)&&(f(e.parameters,On),On(e.body));break;case 206:case 207:case 275:f(e.elements,On);break;case 272:On(e.importClause);break;case 273:Rn(e.name),On(e.namedBindings);break;case 276:Rn(e.propertyName||e.name)}}function Ln(e){if(e)switch(e.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:Rn(e.name)}}function Rn(e){e&&(Yl(e)||Zl(e)?jn(e):Fu(e)&&On(e))}function jn(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return Mn(rI(e),Qw(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=iI(t.prefix,jn),r=iI(t.suffix);switch(7&t.flags){case 1:return $n(0,!!(8&t.flags),Qw(e),n,r);case 2:return gn.assertNode(e,Xw),$n(268435456,!!(8&t.flags),!1,n,r);case 3:return qn(kc(e),32&t.flags?Jn:Bn,!!(16&t.flags),!!(8&t.flags),Qw(e),n,r)}return gn.fail(`Unsupported GeneratedIdentifierKind: ${gn.formatEnum(7&t.flags,Cr,!0)}.`)}(e))}}function Mn(e,t,n,o,a){const s=QB(e),c=t?i:r;return c[s]||(c[s]=Hn(e,t,n??0,iI(o,jn),iI(a)))}function Bn(e,t){return Jn(e)&&!function(e,t){let n,r;if(t?(n=h,r=g):(n=m,r=p),null==n?void 0:n.has(e))return!0;for(let t=r.length-1;t>=0;t--)if(n!==r[t]&&(n=r[t],null==n?void 0:n.has(e)))return!0;return!1}(e,t)&&!a.has(e)}function Jn(e,t){return!n||Ad(n,e,P)}function zn(e,t){switch(e){case"":d=t;break;case"#":u=t;break;default:c??(c=new Map),c.set(e,t)}}function $n(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=aI(n,r,"",i);let a=function(e){switch(e){case"":return d;case"#":return u;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=aI(n,r,268435456===e?"_i":"_n",i);if(Bn(s,n))return a|=e,n?In(s):t&&An(s),zn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=aI(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Bn(s,n))return n?In(s):t&&An(s),zn(o,a),s}}}function qn(e,t=Bn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=aI(i,o,e,s);if(t(n,i))return i?In(n):r?An(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=aI(i,o,e+c,s);if(t(n,i))return i?In(n):r?An(n):a.add(n),n;c++}}function Un(e){return qn(e,Jn,!0,!1,!1,"","")}function Vn(e){const t=En(e.name);return function(e,t){for(let n=t;n&&mh(n,t);n=n.nextContainer)if(f_(n)&&n.locals){const t=n.locals.get(xc(e));if(t&&3257279&t.flags)return!1}return!0}(t,at(e,f_))?t:qn(t,Bn,!1,!1,!1,"","")}function Wn(){return qn("default",Bn,!1,!1,!1,"","")}function Hn(e,t,n,r,i){switch(e.kind){case 80:case 81:return qn(En(e),Bn,!!(16&n),!!(8&n),t,r,i);case 267:case 266:return gn.assert(!r&&!i&&!t),Vn(e);case 272:case 278:return gn.assert(!r&&!i&&!t),function(e){const t=Fg(e);return qn(Iw(t)?_p(t.text):"module",Bn,!1,!1,!1,"","")}(e);case 262:case 263:{gn.assert(!r&&!i&&!t);const o=e.name;return o&&!Yl(o)?Hn(o,!1,n,r,i):Wn()}case 277:return gn.assert(!r&&!i&&!t),Wn();case 231:return gn.assert(!r&&!i&&!t),qn("class",Bn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return Xw(e.name)?Mn(e.name,t):$n(0,!1,t,n,r)}(e,t,r,i);case 167:return $n(0,!0,t,r,i);default:return $n(0,!1,t,r,i)}}function Gn(e,t){const n=Re(2,e,t),r=Y,i=Z,o=ee;Kn(t),n(e,t),Qn(t,r,i,o)}function Kn(e){const t=op(e),n=xD(e);!function(e,t,n,r){re(),te=!1;const i=n<0||!!(1024&t)||12===e.kind,o=r<0||!!(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||rr(n,353!==e.kind),(!i||n>=0&&1024&t)&&(Y=n),(!o||r>=0&&2048&t)&&(Z=r,261===e.kind&&(ee=r))),f(kD(e),Zn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Qn(e,t,n,r){const i=op(e),o=xD(e);4096&i&&(ne=!1),Yn(e,i,o.pos,o.end,t,n,r);const a=zD(e);a&&Yn(e,i,a.pos,a.end,t,n,r)}function Yn(e,t,n,r,i,o,a){re();const s=r<0||!!(2048&t)||12===e.kind;f(DD(e),er),(n>0||r>0)&&n!==r&&(Y=i,Z=o,ee=a,s||353===e.kind||function(e){fr(e,lr)}(r)),ie()}function Zn(e){(e.hasLeadingNewline||2===e.kind)&&v.writeLine(),tr(e),e.hasTrailingNewLine||2===e.kind?v.writeLine():v.writeSpace(" ")}function er(e){v.isAtStartOfLine()||v.writeSpace(" "),tr(e),e.hasTrailingNewLine&&v.writeLine()}function tr(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);Fv(t,3===e.kind?za(t):void 0,v,0,t.length,q)}function nr(e,t,r){re();const{pos:i,end:o}=t,a=op(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&Ev(n.text,Se(),v,mr,e,q,ne);t&&(E?E.push(t):E=[t])}(t),ie(),4096&a&&!ne?(ne=!0,r(e),ne=!1):r(e),re(),s||(rr(t.end,!0),te&&!v.isAtStartOfLine()&&v.writeLine()),ie()}function rr(e,t){te=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?pr(e,or):pr(e,sr):0===e&&pr(e,ir)}function ir(e,t,n,r,i){gr(e,t)&&sr(e,t,n,r,i)}function or(e,t,n,r,i){gr(e,t)||sr(e,t,n,r,i)}function ar(t,n){return!e.onlyPrintJsDocStyle||xI(t,n)||Vd(t,n)}function sr(e,t,r,i,o){n&&ar(n.text,e)&&(te||(wv(Se(),v,o,e),te=!0),xr(e),Fv(n.text,Se(),v,e,t,q),xr(t),i?v.writeLine():3===r&&v.writeSpace(" "))}function cr(e){ne||-1===e||rr(e,!0)}function lr(e,t,r,i){n&&ar(n.text,e)&&(v.isAtStartOfLine()||v.writeSpace(" "),xr(e),Fv(n.text,Se(),v,e,t,q),xr(t),i&&v.writeLine())}function ur(e,t,n){ne||(re(),fr(e,t?lr:n?_r:dr),ie())}function _r(e,t,r){n&&(xr(e),Fv(n.text,Se(),v,e,t,q),xr(t),2===r&&v.writeLine())}function dr(e,t,r,i){n&&(xr(e),Fv(n.text,Se(),v,e,t,q),xr(t),i?v.writeLine():v.writeSpace(" "))}function pr(e,t){!n||-1!==Y&&e===Y||(function(e){return void 0!==E&&Te(E).nodePos===e}(e)?function(e){if(!n)return;const t=Te(E).detachedCommentEndPos;E.length-1?E.pop():E=void 0,ds(n.text,t,e,t)}(t):ds(n.text,e,t,e))}function fr(e,t){n&&(-1===Z||e!==Z&&e!==ee)&&ps(n.text,e,t)}function mr(e,t,r,i,o,a){n&&ar(n.text,i)&&(xr(i),Fv(e,t,r,i,o,a),xr(o))}function gr(e,t){return!!n&&Ud(n.text,e,t)}function hr(e,t){const n=Re(3,e,t);yr(t),n(e,t),vr(t)}function yr(e){const t=op(e),n=mD(e),r=n.source||T;353!==e.kind&&!(32&t)&&n.pos>=0&&Sr(n.source||T,br(r,n.pos)),128&t&&(G=!0)}function vr(e){const t=op(e),n=mD(e);128&t&&(G=!1),353!==e.kind&&!(64&t)&&n.end>=0&&Sr(n.source||T,n.end)}function br(e,t){return e.skipTrivia?e.skipTrivia(t):is(e.text,t)}function xr(e){if(G||rT(e)||Tr(T))return;const{line:t,character:n}=Ga(T,e);S.addMapping(v.getLine(),v.getColumn(),K,t,n,void 0)}function Sr(e,t){if(e!==T){const n=T,r=K;kr(e),xr(t),function(e,t){T=e,K=t}(n,r)}else xr(t)}function kr(t){G||(T=t,t!==C?Tr(t)||(K=S.addSource(t.fileName),e.inlineSources&&S.setSourceContent(K,t.text),C=t,Q=K):K=Q)}function Tr(e){return No(e.fileName,".json")}}function yq(e,t,n,r){t(e)}function vq(e,t,n,r){t(e,n.select(r))}function bq(e,t,n,r){t(e,n)}function xq(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=Xt(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=o(t),r=s(n);return r&&_(r.sortedAndCanonicalizedFiles,i(c(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has(Yo(n))||e.directoryExists(t)},getDirectories:function(t){const n=o(t),r=l(t,n);return r?r.directories.slice():e.getDirectories(t)},readDirectory:function(r,i,a,s,_){const p=o(r),f=l(r,p);let m;return void 0!==f?Tk(r,i,a,s,n,t,_,(function(e){const t=o(e);if(t===p)return f||g(e,t);const n=l(e,t);return void 0!==n?n||g(e,t):uT}),d):e.readDirectory(r,i,a,s,_);function g(t,n){if(m&&n===p)return m;const r={files:O(e.readDirectory(t,void 0,void 0,["*.*"]),c)||u,directories:e.getDirectories(t)||u};return n===p&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=o(t),r=s(n);if(r){const e=c(t),n=i(e);ie(r.sortedAndCanonicalizedDirectories,n,Nt)&&r.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=o(t),a=s(i);return a&&f(a,c(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==a(n))return void m();const r=s(n);if(!r)return void p(n);if(!e.directoryExists)return void m();const o=c(t),l={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};return l.directoryExists||_(r.sortedAndCanonicalizedDirectories,i(o))?m():f(r,o,l.fileExists),l},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=s(t);r?f(r,c(e),0===n):p(t)},clearCache:m,realpath:e.realpath&&d};function o(e){return Xo(e,t,i)}function a(e){return r.get(Yo(e))}function s(e){const t=a(Ro(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function c(e){return jo(Go(e))}function l(t,n){const i=a(n=Yo(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||Yo(o(e.realpath(t)))===n){const i={files:O(e.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:e.getDirectories(t)||[]};return r.set(Yo(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch{return void gn.assert(!r.has(Yo(n)))}}function _(e,t){return Fe(e,t,dt,Nt)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e){fa(Ro(e),(e=>!!r.delete(Yo(e))||void 0))}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)ie(r,o,Nt)&&e.files.push(t);else{const t=Fe(r,o,dt,Nt);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>i(e)===o));e.files.splice(n,1)}}}function m(){r.clear()}}var Sq=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Sq||{});function kq(e,t,n,r,i){var o;const a=$e((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||u,i);n.forEach(((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())})),a.forEach(((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})}))}function Tq(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function Cq(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&Cq(e,i,n)}))}function Dq(e,t,n){xx(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:ux})}function wq(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?xx(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:Iq,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}}):vx(e,Iq)}function Eq({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:u,getScriptKind:_}){const d=zV(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(Fo(n)&&!Wk(t,i,a)&&!function(){if(!_)return!1;switch(_(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return JS(i);case 6:return LS(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(AR(t,i.configFile.configFileSpecs,Ho(Ro(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(i.outFile||i.outDir)return!1;if(iO(n)){if(i.declarationDir)return!1}else if(!Po(n,Ik))return!1;const p=Xk(n),f=nt(o)?void 0:gW(o)?o.getProgramOrUndefined():o,m=f||nt(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx")||(l(`Project: ${r} Detected output file: ${t}`),0));function g(e){return f?!!f.getSourceFileByPath(e):m?m.state.fileInfos.has(e):!!T(o,(t=>u(t)===e))}}function Fq(e,t){return!!e&&e.isEmittedFile(t)}var Nq=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Nq||{});function Pq(e,t,n,r){co(2===t?n:ct);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,!!(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${u(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${u(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${u(e,i,a,s,c,r)}`;n(l);const _=Gn(),d=o.watchDirectory(e,t,i,a,s,c),p=Gn()-_;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${u(e,i,a,s,c,r)}`;n(t);const o=Gn();d.close();const l=Gn()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${u(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${u(e,t,i,o,a,r)}`)}}:DW;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var u;return OR(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(u=e.getCurrentDirectory)?void 0:u.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,((...i)=>{const _=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${u(t,a,s,c,l,r)}`;n(_);const d=Gn();o.call(void 0,...i);const p=Gn()-d;n(`Elapsed:: ${p}ms ${_}`)}),a,s,c,l)}function u(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function Aq(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function Iq(e){e.watcher.close()}function Oq(e,t,n="tsconfig.json"){return fa(e,(e=>{const r=Uo(e,n);return t(r)?r:void 0}))}function Lq(e,t){const n=Ro(t);return Go(To(e)?e:Uo(n,e))}function Rq(e,t,n){let r;return f(e,(e=>{const i=Wo(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let o;try{ar("beforeIORead"),o=e(n),ar("afterIORead"),sr("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?HI(n,o,r,t):void 0}}function Bq(e,t,n){return(r,i,o,a)=>{try{ar("beforeIOWrite"),cv(r,i,o,e,t,n),ar("afterIOWrite"),sr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function Jq(e,t,n=go){const r=new Map,i=Xt(n.useCaseSensitiveFileNames);function o(){return Ro(Go(n.getExecutingFilePath()))}const a=Bb(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:Mq((e=>c.readFile(e)),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>Uo(o(),Ls(e)),writeFile:Bq(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:ht((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:Xe(n,n.createHash)};return c}function zq(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,u=new Map,_=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:No(n,".json")||$$(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=_.get(s),l=null==c?void 0:c.get(a);if(l)return l;const u=n(e,r,i,o);return u&&(iO(e)||No(e,".json"))&&_.set(s,(c||new Map).set(a,u)),u}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),_.forEach((e=>e.delete(o)))):p&&_.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)})),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=u.get(r);if(void 0!==i)return i;const a=o.call(e,n);return u.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);u.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function $q(e,t,n){let r;return r=de(r,e.getConfigFileParsingDiagnostics()),r=de(r,e.getOptionsDiagnostics(n)),r=de(r,e.getSyntacticDiagnostics(t,n)),r=de(r,e.getGlobalDiagnostics(n)),r=de(r,e.getSemanticDiagnostics(t,n)),RS(e.getCompilerOptions())&&(r=de(r,e.getDeclarationDiagnostics(t,n))),Is(r||u)}function qq(e,t){let n="";for(const r of e)n+=Uq(r,t);return n}function Uq(e,t){const n=`${pi(e)} TS${e.code}: ${rU(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=Ga(e.file,e.start);return`${_a(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}var Vq=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(Vq||{}),Wq="",Hq=" ",Gq="",Kq="...",Xq=" ",Qq=" ";function Yq(e){switch(e){case 1:return"";case 0:return"";case 2:return gn.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function Zq(e,t){return t+e+Gq}function eU(e,t,n,r,i,o){const{line:a,character:s}=Ga(e,t),{line:c,character:l}=Ga(e,t+n),u=Ga(e,e.text.length).line,_=c-a>=4;let d=(c+1+"").length;_&&(d=Math.max(Kq.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),_&&a+1n.getCanonicalFileName(e))):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function nU(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=tU(e,i,t),n+=" - "}if(n+=Zq(pi(r),Yq(r.category)),n+=Zq(` TS${r.code}: `,""),n+=rU(r.messageText,t.getNewLine()),r.file&&r.code!==ha.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=eU(r.file,r.start,r.length,"",Yq(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=Xq+tU(e,i,t),n+=eU(e,i,o,Qq,"",t)),n+=t.getNewLine(),n+=Qq+rU(a,t.getNewLine())}n+=t.getNewLine()}return n}function rU(e,t,n=0){if(it(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;esU(t,e,n)};function fU(e,t,n,r,i){return{nameAndMode:pU,resolve:(o,a)=>Oj(o,e,n,r,i,t,a)}}function mU(e){return it(e)?e:e.fileName}var gU={getName:mU,getMode:(e,t,n)=>iU(e,t&&MU(t,n))};function hU(e,t,n,r,i){return{nameAndMode:gU,resolve:(o,a)=>dj(o,e,n,r,t,i,a)}}function yU(e,t,n,r,i,o,a,s){if(0===e.length)return u;const c=[],l=new Map,_=s(t,n,r,o,a);for(const t of e){const e=_.nameAndMode.getName(t),o=_.nameAndMode.getMode(t,i,(null==n?void 0:n.commandLine.options)||r),a=kj(e,o);let s=l.get(a);s||l.set(a,s=_.resolve(e,o)),c.push(s)}return c}function vU(e,t){return bU(void 0,e,((e,n)=>e&&t(e,n)))}function bU(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}let s;return f(o,((e,t)=>{if(e&&(null==i?void 0:i.has(e.sourceFile.path)))return void(s??(s=new Set)).add(e);const r=n(e,a,t);if(r||!e)return r;(i||(i=new Set)).add(e.sourceFile.path)}))||f(o,(t=>t&&!(null==s?void 0:s.has(t))?e(t.commandLine.projectReferences,t.references,t):void 0))}(e,t,void 0)}var xU="__inferred type names__.ts";function SU(e,t,n){return Uo(e.configFilePath?Ro(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function kU(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function TU(e){return mt(e.fileName)}function CU(e){const t=TU(e);return xO.get(t)}function DU(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function wU(e){return void 0!==e.pos}function EU(e,t){var n,r,i,o;const a=gn.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,u,_;switch(s){case 3:const t=WU(a,c);if(_=null==(r=null==(n=e.getResolvedModuleFromModuleSpecifier(t,a))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:_,text:t.text};l=is(a.text,t.pos),u=t.end;break;case 4:({pos:l,end:u}=a.referencedFiles[c]);break;case 5:({pos:l,end:u}=a.typeReferenceDirectives[c]),_=null==(o=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[c],a))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:u}=a.libReferenceDirectives[c]);break;default:return gn.assertNever(s)}return{file:a,pos:l,end:u,packageId:_}}function FU(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!ae(e.getRootFileNames(),t))return!1;let u;if(!ae(e.getProjectReferences(),l,(function(t,n,r){return fd(t,n)&&p(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;const _=e.getMissingFilePaths();if(_&&ld(_,i))return!1;const d=e.getCompilerOptions();return!(!yx(d,n)||e.resolvedLibReferences&&ld(e.resolvedLibReferences,((e,t)=>a(t)))||d.configFile&&n.configFile&&d.configFile.text!==n.configFile.text);function p(e,t){if(e){if(E(u,e))return!0;const n=qU(t),r=c(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!ae(e.commandLine.fileNames,r.fileNames)&&((u||(u=[])).push(e),!f(e.references,((t,n)=>!p(t,e.commandLine.projectReferences[n]))))}const n=qU(t);return!c(n)}}function NU(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function PU(e,t,n,r){const i=AU(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function AU(e,t,n,r){const i=ES(r),o=3<=i&&i<=99||Hj(e);return Po(e,[".d.mts",".mts",".mjs"])?99:Po(e,[".d.cts",".cts",".cjs"])?1:o&&Po(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=aM(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=sM(Ro(e),i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0}var IU=new Set([ha.Cannot_redeclare_block_scoped_variable_0.code,ha.A_module_cannot_have_multiple_default_exports.code,ha.Another_export_default_is_here.code,ha.The_first_export_default_is_here.code,ha.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,ha.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,ha.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,ha.constructor_is_a_reserved_word.code,ha.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,ha.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,ha.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,ha.Invalid_use_of_0_in_strict_mode.code,ha.A_label_is_not_allowed_here.code,ha.with_statements_are_not_allowed_in_strict_mode.code,ha.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,ha.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,ha.A_class_declaration_without_the_default_modifier_must_have_a_name.code,ha.A_class_member_cannot_have_the_0_keyword.code,ha.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,ha.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,ha.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,ha.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,ha.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,ha.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,ha.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,ha.A_destructuring_declaration_must_have_an_initializer.code,ha.A_get_accessor_cannot_have_parameters.code,ha.A_rest_element_cannot_contain_a_binding_pattern.code,ha.A_rest_element_cannot_have_a_property_name.code,ha.A_rest_element_cannot_have_an_initializer.code,ha.A_rest_element_must_be_last_in_a_destructuring_pattern.code,ha.A_rest_parameter_cannot_have_an_initializer.code,ha.A_rest_parameter_must_be_last_in_a_parameter_list.code,ha.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,ha.A_return_statement_cannot_be_used_inside_a_class_static_block.code,ha.A_set_accessor_cannot_have_rest_parameter.code,ha.A_set_accessor_must_have_exactly_one_parameter.code,ha.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,ha.An_export_declaration_cannot_have_modifiers.code,ha.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,ha.An_import_declaration_cannot_have_modifiers.code,ha.An_object_member_cannot_be_declared_optional.code,ha.Argument_of_dynamic_import_cannot_be_spread_element.code,ha.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,ha.Cannot_redeclare_identifier_0_in_catch_clause.code,ha.Catch_clause_variable_cannot_have_an_initializer.code,ha.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,ha.Classes_can_only_extend_a_single_class.code,ha.Classes_may_not_have_a_field_named_constructor.code,ha.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,ha.Duplicate_label_0.code,ha.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,ha.for_await_loops_cannot_be_used_inside_a_class_static_block.code,ha.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,ha.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,ha.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,ha.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,ha.Jump_target_cannot_cross_function_boundary.code,ha.Line_terminator_not_permitted_before_arrow.code,ha.Modifiers_cannot_appear_here.code,ha.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,ha.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,ha.Private_identifiers_are_not_allowed_outside_class_bodies.code,ha.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,ha.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,ha.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,ha.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,ha.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,ha.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,ha.Trailing_comma_not_allowed.code,ha.Variable_declaration_list_cannot_be_empty.code,ha._0_and_1_operations_cannot_be_mixed_without_parentheses.code,ha._0_expected.code,ha._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,ha._0_list_cannot_be_empty.code,ha._0_modifier_already_seen.code,ha._0_modifier_cannot_appear_on_a_constructor_declaration.code,ha._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,ha._0_modifier_cannot_appear_on_a_parameter.code,ha._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,ha._0_modifier_cannot_be_used_here.code,ha._0_modifier_must_precede_1_modifier.code,ha._0_declarations_can_only_be_declared_inside_a_block.code,ha._0_declarations_must_be_initialized.code,ha.extends_clause_already_seen.code,ha.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,ha.Class_constructor_may_not_be_a_generator.code,ha.Class_constructor_may_not_be_an_accessor.code,ha.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ha.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ha.Private_field_0_must_be_declared_in_an_enclosing_class.code,ha.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function OU(e,t,n,r,o){var a,s,c,l,_,d,p,m,g,y,v,b,x,S,k,C;const w=nt(e)?function(e,t,n,r,i,o){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:o}}(e,t,n,r,o):e,{rootNames:F,options:N,configFileParsingDiagnostics:A,projectReferences:I,typeScriptVersion:O}=w;let{oldProgram:L}=w;for(const e of jO)if(Ie(N,e.name)&&"string"==typeof N[e.name])throw new Error(`${e.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const R=ht((()=>Hn("ignoreDeprecations",ha.Invalid_value_for_ignoreDeprecations)));let B,J,z,$,U,V,W,H,G,K,Q,Z,ee,te,ne,re,ie,oe,se,ce,ue,_e,de=Qe();const pe="number"==typeof N.maxNodeModuleJsDepth?N.maxNodeModuleJsDepth:0;let fe=0;const ge=new Map,he=new Map;null==(a=Yn)||a.push(Yn.Phase.Program,"createProgram",{configFilePath:N.configFilePath,rootDir:N.rootDir},!0),ar("beforeProgram");const ye=w.host||jq(N),ve=$U(ye);let be=N.noLib;const xe=ht((()=>ye.getDefaultLibFileName(N))),Se=ye.getDefaultLibLocation?ye.getDefaultLibLocation():Ro(xe()),ke=hy();let Te=[];const Ce=ye.getCurrentDirectory(),De=Bk(N),we=Jk(N,De),Ee=new Map;let Fe,Ne,Pe,Ae;const Oe=ye.hasInvalidatedResolutions||lt;let Le;if(ye.resolveModuleNameLiterals?(Ae=ye.resolveModuleNameLiterals.bind(ye),Pe=null==(s=ye.getModuleResolutionCache)?void 0:s.call(ye)):ye.resolveModuleNames?(Ae=(e,t,n,r,i,o)=>ye.resolveModuleNames(e.map(dU),t,null==o?void 0:o.map(dU),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:aT(e.resolvedFileName)}}:_U)),Pe=null==(c=ye.getModuleResolutionCache)?void 0:c.call(ye)):(Pe=Fj(Ce,On,N),Ae=(e,t,n,r,i)=>yU(e,t,n,r,i,ye,Pe,fU)),ye.resolveTypeReferenceDirectiveReferences)Le=ye.resolveTypeReferenceDirectiveReferences.bind(ye);else if(ye.resolveTypeReferenceDirectives)Le=(e,t,n,r,i)=>ye.resolveTypeReferenceDirectives(e.map(mU),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=Nj(Ce,On,void 0,null==Pe?void 0:Pe.getPackageJsonInfoCache(),null==Pe?void 0:Pe.optionsToRedirectsKey);Le=(t,n,r,i,o)=>yU(t,n,r,i,o,ye,e,hU)}const Re=ye.hasInvalidatedLibResolutions||lt;let je;if(ye.resolveLibrary)je=ye.resolveLibrary.bind(ye);else{const e=Fj(Ce,On,N,null==Pe?void 0:Pe.getPackageJsonInfoCache());je=(t,n,r)=>Aj(t,n,r,ye,e)}const Me=new Map;let Be,Je=new Map,ze=Qe();const $e=new Map;let qe=new Map;const Ue=ye.useCaseSensitiveFileNames()?new Map:void 0;let Ve,We,He,Ge;const Ke=!!(null==(l=ye.useSourceOfProjectReferenceRedirect)?void 0:l.call(ye))&&!N.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ye,fileExists:Ze,directoryExists:et}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:ct,fileExists:c};let a;return e.compilerHost.fileExists=c,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(_(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=n.commandLine.options.outFile;if(r)t.add(Ro(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),d(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:s,fileExists:c,directoryExists:a};function s(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i}function c(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!iO(t)&&d(t,!0)}function l(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!it(r)||n.call(e.compilerHost,r):void 0}function u(n){const r=e.toPath(n),i=`${r}${yo}`;return ud(t,(e=>r===e||en(e,i)||en(r,`${e}/`)))}function _(t){var n;if(!e.getResolvedProjectReferences()||JT(t))return;if(!o||!t.includes(Wj))return;const r=e.getSymlinkCache(),i=Yo(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=Go(o.call(e.compilerHost,t));let s;a!==t&&(s=Yo(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:Yo(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}function d(t,n){var r;const i=n?e=>l(e):e=>u(e),o=i(t);if(void 0!==o)return o;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const c=e.toPath(t);return!!c.includes(Wj)&&(!(!n||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(c)))||h(s.entries(),(([r,o])=>{if(!o||!en(c,r))return;const s=i(c.replace(r,o.realPath));if(n&&s){const n=Ho(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(c,`${o.real}${n.replace(new RegExp(r,"i"),"")}`)}return s}))||!1)}}({compilerHost:ye,getSymlinkCache:rr,useSourceOfProjectReferenceRedirect:Ke,toPath:Nt,getResolvedProjectReferences:jt,getSourceOfProjectReferenceRedirect:kn,forEachResolvedProjectReference:Sn}),tt=ye.readFile.bind(ye);null==(_=Yn)||_.push(Yn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!L});const rt=function(e,t){return!!e&&sd(e.getCompilerOptions(),t,AO)}(L,N);let ot;if(null==(d=Yn)||d.pop(),null==(p=Yn)||p.push(Yn.Phase.Program,"tryReuseStructureFromOldProgram",{}),ot=function(){var e;if(!L)return 0;const t=L.getCompilerOptions();if(od(t,N))return 0;if(!ae(L.getRootFileNames(),F))return 0;if(bU(L.getProjectReferences(),L.getResolvedProjectReferences(),((e,t,n)=>{const r=Rn((t?t.commandLine.projectReferences:I)[n]);return e?!r||r.sourceFile!==e.sourceFile||!ae(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!ae(e,t?Dn(t.sourceFile.path).commandLine.projectReferences:I,fd))))return 0;I&&(Ve=I.map(Rn));const n=[],r=[];if(ot=2,ld(L.getMissingFilePaths(),(e=>ye.fileExists(e))))return 0;const i=L.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const t of i){const i=pn(t.fileName,Pe,ye,N);let o,a=ye.getSourceFileByPath?ye.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,rt):ye.getSourceFile(t.fileName,i,void 0,rt);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,gn.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(L.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=L.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?ot=1:ae(t.libReferenceDirectives,a.libReferenceDirectives,rn)?t.hasNoDefaultLib!==a.hasNoDefaultLib?ot=1:ae(t.referencedFiles,a.referencedFiles,rn)?(sn(a),ae(t.imports,a.imports,on)&&ae(t.moduleAugmentations,a.moduleAugmentations,on)?(12582912&t.flags)!=(12582912&a.flags)?ot=1:ae(t.typeReferenceDirectives,a.typeReferenceDirectives,rn)||(ot=1):ot=1):ot=1:ot=1,r.push(a)):Oe(t.path)&&(ot=1,r.push(a)),n.push(a)}if(2!==ot)return ot;for(const e of r){const t=VU(e),n=At(t,e);(se??(se=new Map)).set(e.path,n);const r=Fn(e),i=kd(t,n,(t=>L.getResolvedModule(e,t.text,cU(e,t,r))),md);i&&(ot=1);const o=e.typeReferenceDirectives,a=It(o,e);(ue??(ue=new Map)).set(e.path,a);const s=kd(o,a,(t=>L.getResolvedTypeReferenceDirective(e,mU(t),_r(t,e))),Sd);s&&(ot=1)}if(2!==ot)return ot;if(ad(t,N))return 1;if(L.resolvedLibReferences&&ld(L.resolvedLibReferences,((e,t)=>An(t).actual!==e.actual)))return 1;if(ye.hasChangedAutomaticTypeDirectiveNames){if(ye.hasChangedAutomaticTypeDirectiveNames())return 1}else if(te=gj(N,ye),!ae(L.getAutomaticTypeDirectiveNames(),te))return 1;qe=L.getMissingFilePaths(),gn.assert(n.length===L.getSourceFiles().length);for(const e of n)$e.set(e.path,e);return L.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?$e.set(t,$e.get(e.path)):L.isSourceFileFromExternalLibrary(e)&&he.set(e.path,!0):$e.set(t,e)})),z=n,de=L.getFileIncludeReasons(),ee=L.getFileProcessingDiagnostics(),te=L.getAutomaticTypeDirectiveNames(),ne=L.getAutomaticTypeDirectiveResolutions(),Je=L.sourceFileToPackageName,ze=L.redirectTargetsMap,Be=L.usesUriStyleNodeCoreModules,oe=L.resolvedModules,ce=L.resolvedTypeReferenceDirectiveNames,re=L.resolvedLibReferences,_e=L.getCurrentPackagesMap(),2}(),null==(m=Yn)||m.pop(),2!==ot){if(B=[],J=[],I&&(Ve||(Ve=I.map(Rn)),F.length&&(null==Ve||Ve.forEach(((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(Ke){if(n||0===wS(e.commandLine.options))for(const n of e.commandLine.fileNames)un(n,{kind:1,index:t})}else if(n)un(Zk(n,".d.ts"),{kind:2,index:t});else if(0===wS(e.commandLine.options)){const n=ht((()=>iq(e.commandLine,!ye.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)iO(r)||No(r,".json")||un(X$(r,e.commandLine,!ye.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(g=Yn)||g.push(Yn.Phase.Program,"processRootFiles",{count:F.length}),f(F,((e,t)=>nn(e,!1,!1,{kind:0,index:t}))),null==(y=Yn)||y.pop(),te??(te=F.length?gj(N,ye):u),ne=Tj(),te.length){null==(v=Yn)||v.push(Yn.Phase.Program,"processTypeReferences",{count:te.length});const e=Uo(N.configFilePath?Ro(N.configFilePath):Ce,xU),t=It(te,e);for(let e=0;e{nn(Pn(e),!0,!1,{kind:6,index:t})}))}z=me(B,(function(e,t){return Tt(Ft(e),Ft(t))})).concat(J),B=void 0,J=void 0,H=void 0}if(L&&ye.onReleaseOldSourceFile){const e=L.getSourceFiles();for(const t of e){const e=Ut(t.resolvedPath);(rt||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&ye.onReleaseOldSourceFile(t,L.getCompilerOptions(),!!Ut(t.path),e)}ye.getParsedCommandLine||L.forEachResolvedProjectReference((e=>{Dn(e.sourceFile.path)||ye.onReleaseOldSourceFile(e.sourceFile,L.getCompilerOptions(),!1,void 0)}))}L&&ye.onReleaseParsedCommandLine&&bU(L.getProjectReferences(),L.getResolvedProjectReferences(),((e,t,n)=>{const r=qU((null==t?void 0:t.commandLine.projectReferences[n])||L.getProjectReferences()[n]);(null==We?void 0:We.has(Nt(r)))||ye.onReleaseParsedCommandLine(r,e,L.getCompilerOptions())})),L=void 0,ie=void 0,se=void 0,ue=void 0;const st={getRootFileNames:()=>F,getSourceFile:$t,getSourceFileByPath:Ut,getSourceFiles:()=>z,getMissingFilePaths:()=>qe,getModuleResolutionCache:()=>Pe,getFilesByNameMap:()=>$e,getCompilerOptions:()=>N,getSyntacticDiagnostics:function(e,t){return Vt(e,Ht,t)},getOptionsDiagnostics:function(){return Is(Y(ut().getGlobalDiagnostics(),function(){if(!N.configFile)return u;let e=ut().getDiagnostics(N.configFile.fileName);return Sn((t=>{e=Y(e,ut().getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return F.length?Is(Bt().getGlobalDiagnostics().slice()):u},getSemanticDiagnostics:function(e,t,n){return Vt(e,((e,t)=>function(e,t,n){return Y(zU(Kt(e,t,n),N),Wt(e))}(e,t,n)),t)},getCachedSemanticDiagnostics:function(e){return null==Q?void 0:Q.get(e.path)},getSuggestionDiagnostics:function(e,t){return Gt((()=>Bt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){return Vt(e,Zt,t)},getBindAndCheckDiagnostics:function(e,t){return Kt(e,t,void 0)},getProgramDiagnostics:Wt,getTypeChecker:Bt,getClassifiableNames:function(){var e;if(!W){Bt(),W=new Set;for(const t of z)null==(e=t.classifiableNames)||e.forEach((e=>W.add(e)))}return W},getCommonSourceDirectory:Pt,emit:function(e,t,n,r,i,o,a){var s,c;null==(s=Yn)||s.push(Yn.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const l=Gt((()=>function(e,t,n,r,i,o,a,s){if(!a){const i=JU(e,t,n,r);if(i)return i}const c=Bt(),l=c.getEmitResolver(N.outFile?void 0:t,r,cq(i,a));ar("beforeEmit");const u=c.runWithCancellationToken(r,(()=>lq(l,Lt(n),t,P$(N,o,i),i,!1,a,s)));return ar("afterEmit"),sr("Emit","beforeEmit","afterEmit"),u}(st,e,t,n,r,i,o,a)));return null==(c=Yn)||c.pop(),l},getCurrentDirectory:()=>Ce,getNodeCount:()=>Bt().getNodeCount(),getIdentifierCount:()=>Bt().getIdentifierCount(),getSymbolCount:()=>Bt().getSymbolCount(),getTypeCount:()=>Bt().getTypeCount(),getInstantiationCount:()=>Bt().getInstantiationCount(),getRelationCacheSizes:()=>Bt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ee,getAutomaticTypeDirectiveNames:()=>te,getAutomaticTypeDirectiveResolutions:()=>ne,isSourceFileFromExternalLibrary:Mt,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(N.noLib)return!1;const t=ye.useCaseSensitiveFileNames()?St:xt;return N.lib?X(N.lib,(n=>{const r=re.get(n);return!!r&&t(e.fileName,r.actual)})):t(e.fileName,xe())},getModeForUsageLocation:ir,getEmitSyntaxForUsageLocation:function(e,t){return lU(e,t,Fn(e))},getModeForResolutionAtIndex:or,getSourceFileFromReference:function(e,t){return cn(Lq(t.fileName,e.fileName),$t)},getLibFileFromReference:function(e){var t;const n=CU(e),r=n&&(null==(t=null==re?void 0:re.get(n))?void 0:t.actual);return void 0!==r?$t(r):void 0},sourceFileToPackageName:Je,redirectTargetsMap:ze,usesUriStyleNodeCoreModules:Be,resolvedModules:oe,resolvedTypeReferenceDirectiveNames:ce,resolvedLibReferences:re,getResolvedModule:_t,getResolvedModuleFromModuleSpecifier:function(e,t){return t??(t=Cd(e)),gn.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),_t(t,e.text,ir(t,e))},getResolvedTypeReferenceDirective:pt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return pt(t,e.fileName,_r(e,t))},forEachResolvedModule:ft,forEachResolvedTypeReferenceDirective:gt,getCurrentPackagesMap:()=>_e,typesPackageExists:function(e){return vt().has(EM(e))},packageBundlesTypes:function(e){return!!vt().get(e)},isEmittedFile:function(e){if(N.noEmit)return!1;const t=Nt(e);if(Ut(t))return!1;const n=N.outFile;if(n)return nr(t,n)||nr(t,Xk(n)+".d.ts");if(N.declarationDir&&sa(N.declarationDir,t,Ce,!ye.useCaseSensitiveFileNames()))return!0;if(N.outDir)return sa(N.outDir,t,Ce,!ye.useCaseSensitiveFileNames());if(Po(t,Ik)||iO(t)){const e=Xk(t);return!!Ut(e+".ts")||!!Ut(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return A||u},getProjectReferences:function(){return I},getResolvedProjectReferences:jt,getProjectReferenceRedirect:yn,getResolvedProjectReferenceToRedirect:xn,getResolvedProjectReferenceByPath:Dn,forEachResolvedProjectReference:Sn,isSourceOfProjectReferenceRedirect:Tn,getRedirectReferenceForResolutionFromSourceOfProject:Et,getCompilerOptionsForFile:Fn,getDefaultResolutionModeForFile:cr,getEmitModuleFormatOfFile:lr,getImpliedNodeFormatForEmit:function(e){return jU(e,Fn(e))},shouldTransformImportCall:ur,emitBuildInfo:function(e){var t,n;null==(t=Yn)||t.push(Yn.Phase.Emit,"emitBuildInfo",{},!0),ar("beforeEmit");const r=lq(dq,Lt(e),void 0,N$,!1,!0);return ar("afterEmit"),sr("Emit","beforeEmit","afterEmit"),null==(n=Yn)||n.pop(),r},fileExists:Ze,readFile:tt,directoryExists:et,getSymlinkCache:rr,realpath:null==(k=ye.realpath)?void 0:k.bind(ye),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getCanonicalFileName:On,getFileIncludeReasons:()=>de,structureIsReused:ot,writeFile:Rt,getGlobalTypingsCacheLocation:Xe(ye,ye.getGlobalTypingsCacheLocation)};return Ye(),function(){N.strictPropertyInitialization&&!HS(N,"strictNullChecks")&&Wn(ha.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),N.exactOptionalPropertyTypes&&!HS(N,"strictNullChecks")&&Wn(ha.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(N.isolatedModules||N.verbatimModuleSyntax)&&N.outFile&&Wn(ha.Option_0_cannot_be_specified_with_option_1,"outFile",N.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),N.isolatedDeclarations&&(JS(N)&&Wn(ha.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),RS(N)||Wn(ha.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),N.inlineSourceMap&&(N.sourceMap&&Wn(ha.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),N.mapRoot&&Wn(ha.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),N.composite&&(!1===N.declaration&&Wn(ha.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===N.incremental&&Wn(ha.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=N.outFile;if(N.tsBuildInfoFile||!N.incremental||e||N.configFilePath||ke.add(oS(ha.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),jn("5.0","5.5",(function(e,t,n,r,...i){if(n){const o=sS(void 0,ha.Use_0_instead,n);Kn(!t,e,void 0,sS(o,r,...i))}else Kn(!t,e,void 0,r,...i)}),(e=>{0===N.target&&e("target","ES3"),N.noImplicitUseStrict&&e("noImplicitUseStrict"),N.keyofStringsOnly&&e("keyofStringsOnly"),N.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),N.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),N.noStrictGenericChecks&&e("noStrictGenericChecks"),N.charset&&e("charset"),N.out&&e("out",void 0,"outFile"),N.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),N.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})),function(){const e=N.suppressOutputPathCheck?void 0:U$(N);bU(I,Ve,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:I)[r],o=n&&n.sourceFile;if(function(e,t,n){function r(e,r,i,o,...a){Gn(t,n,o,...a)}jn("5.0","5.5",r,(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Gn(o,r,ha.File_0_not_found,i.path);const a=t.commandLine.options;a.composite&&!a.noEmit||(n?n.commandLine.fileNames:F).length&&(a.composite||Gn(o,r,ha.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Gn(o,r,ha.Referenced_project_0_may_not_disable_emit,i.path)),!n&&e&&e===U$(a)&&(Gn(o,r,ha.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Ee.set(Nt(e),!0))}))}(),N.composite){const e=new Set(F.map(Nt));for(const t of z)rv(t,st)&&!e.has(t.path)&&Jn(t,ha.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,N.configFilePath||""])}if(N.paths)for(const e in N.paths)if(Ie(N.paths,e))if(rk(e)||$n(!0,e,ha.Pattern_0_can_have_at_most_one_Asterisk_character,e),nt(N.paths[e])){const t=N.paths[e].length;0===t&&$n(!1,e,ha.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nXI(e)&&!e.isDeclarationFile));if(N.isolatedModules||N.verbatimModuleSyntax)0===N.module&&t<2&&N.isolatedModules&&Wn(ha.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===N.preserveConstEnums&&Wn(ha.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,N.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===N.module){const e=rf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);ke.add(rS(n,e.start,e.length,ha.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!N.emitDeclarationOnly)if(N.module&&2!==N.module&&4!==N.module)Wn(ha.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===N.module&&n){const e=rf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);ke.add(rS(n,e.start,e.length,ha.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}if(LS(N)&&(1===ES(N)?Wn(ha.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):qS(N)||Wn(ha.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),N.outDir||N.rootDir||N.sourceRoot||N.mapRoot||RS(N)&&N.declarationDir){const e=Pt();N.outDir&&""===e&&z.some((e=>Lo(e.fileName)>1))&&Wn(ha.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}N.checkJs&&!JS(N)&&Wn(ha.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),N.emitDeclarationOnly&&(RS(N)||Wn(ha.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),N.emitDecoratorMetadata&&!N.experimentalDecorators&&Wn(ha.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),N.jsxFactory?(N.reactNamespace&&Wn(ha.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==N.jsx&&5!==N.jsx||Wn(ha.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",yO.get(""+N.jsx)),GI(N.jsxFactory,t)||Hn("jsxFactory",ha.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,N.jsxFactory)):N.reactNamespace&&!Ss(N.reactNamespace,t)&&Hn("reactNamespace",ha.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,N.reactNamespace),N.jsxFragmentFactory&&(N.jsxFactory||Wn(ha.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==N.jsx&&5!==N.jsx||Wn(ha.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",yO.get(""+N.jsx)),GI(N.jsxFragmentFactory,t)||Hn("jsxFragmentFactory",ha.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,N.jsxFragmentFactory)),N.reactNamespace&&(4!==N.jsx&&5!==N.jsx||Wn(ha.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",yO.get(""+N.jsx))),N.jsxImportSource&&2===N.jsx&&Wn(ha.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",yO.get(""+N.jsx));const r=wS(N);N.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Wn(ha.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax")),N.allowImportingTsExtensions&&!(N.noEmit||N.emitDeclarationOnly||N.rewriteRelativeImportExtensions)&&Hn("allowImportingTsExtensions",ha.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=ES(N);if(N.resolvePackageJsonExports&&!WS(i)&&Wn(ha.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),N.resolvePackageJsonImports&&!WS(i)&&Wn(ha.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),N.customConditions&&!WS(i)&&Wn(ha.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||$S(r)||200===r||Hn("moduleResolution",ha.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),vi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=vi[r];Hn("moduleResolution",ha.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,e,e)}else if(fi[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=fi[i];Hn("module",ha.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!N.noEmit&&!N.suppressOutputPathCheck){const e=Lt(),t=new Set;q$(e,(e=>{N.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=Nt(e);if($e.has(n)){let t;N.configFilePath||(t=sS(void 0,ha.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=sS(t,ha.Cannot_write_file_0_because_it_would_overwrite_input_file,e),tr(e,aS(t))}const r=ye.useCaseSensitiveFileNames()?n:mt(n);t.has(r)?tr(e,oS(ha.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),ar("afterProgram"),sr("Program","beforeProgram","afterProgram"),null==(C=Yn)||C.pop(),st;function ut(){return Te&&(null==ee||ee.forEach((e=>{switch(e.kind){case 1:return ke.add(Mn(e.file&&Ut(e.file),e.fileProcessingReason,e.diagnostic,e.args||u));case 0:return ke.add(function({reason:e}){const{file:t,pos:n,end:r}=EU(st,e),i=TU(t.libReferenceDirectives[e.index]),o=Jt(qt(tn(i,"lib."),".d.ts"),bO,dt);return rS(t,gn.checkDefined(n),gn.checkDefined(r)-n,o?ha.Cannot_find_lib_definition_for_0_Did_you_mean_1:ha.Cannot_find_lib_definition_for_0,i,o)}(e));case 2:return e.diagnostics.forEach((e=>ke.add(e)));default:gn.assertNever(e)}})),Te.forEach((({file:e,diagnostic:t,args:n})=>ke.add(Mn(e,void 0,t,n)))),Te=void 0,G=void 0,K=void 0),ke}function _t(e,t,n){var r;return null==(r=null==oe?void 0:oe.get(e.path))?void 0:r.get(t,n)}function pt(e,t,n){var r;return null==(r=null==ce?void 0:ce.get(e.path))?void 0:r.get(t,n)}function ft(e,t){yt(oe,e,t)}function gt(e,t){yt(ce,e,t)}function yt(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach(((e,r,i)=>t(e,r,i,n.path))):null==e||e.forEach(((e,n)=>e.forEach(((e,r,i)=>t(e,r,i,n)))))}function vt(){return _e||(_e=new Map,ft((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&_e.set(e.packageId.name,".d.ts"===e.extension||!!_e.get(e.packageId.name))})),_e)}function bt(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(ee??(ee=[])).push({kind:2,diagnostics:e.resolutionDiagnostics})}function kt(e,t,n,r){if(ye.resolveModuleNameLiterals||!ye.resolveModuleNames)return bt(n);if(!Pe||As(t))return;const i=Ro(Ho(e.originalFileName,Ce)),o=wt(e),a=Pe.getFromNonRelativeNameCache(t,r,i,o);a&&bt(a)}function Ct(e,t,n){var r,i;const o=Ho(t.originalFileName,Ce),a=wt(t);null==(r=Yn)||r.push(Yn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),ar("beforeResolveModule");const s=Ae(e,o,a,N,t,n);return ar("afterResolveModule"),sr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=Yn)||i.pop(),s}function Dt(e,t,n){var r,i;const o=it(t)?void 0:t,a=it(t)?t:Ho(t.originalFileName,Ce),s=o&&wt(o);null==(r=Yn)||r.push(Yn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),ar("beforeResolveTypeReference");const c=Le(e,a,s,N,o,n);return ar("afterResolveTypeReference"),sr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Yn)||i.pop(),c}function wt(e){const t=xn(e.originalFileName);if(t||!iO(e.originalFileName))return t;const n=Et(e.path);if(n)return n;if(!ye.realpath||!N.preserveSymlinks||!e.originalFileName.includes(Wj))return;const r=Nt(ye.realpath(e.originalFileName));return r===e.path?void 0:Et(r)}function Et(e){const t=kn(e);return it(t)?xn(t):t?Sn((t=>{const n=t.commandLine.options.outFile;if(n)return Nt(n)===e?t:void 0})):void 0}function Ft(e){if(sa(Se,e.fileName,!1)){const t=jo(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=qt(tn(t,"lib."),".d.ts"),r=bO.indexOf(n);if(-1!==r)return r+1}return bO.length+2}function Nt(e){return Xo(e,Ce,On)}function Pt(){if(void 0===U){const e=P(z,(e=>rv(e,st)));U=rq(N,(()=>q(e,(e=>e.isDeclarationFile?void 0:e.fileName))),Ce,On,(t=>function(e,t){let n=!0;const r=ye.getCanonicalFileName(Ho(t,Ce));for(const i of e)i.isDeclarationFile||0!==ye.getCanonicalFileName(Ho(i.fileName,Ce)).indexOf(r)&&(Jn(i,ha.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1);return n}(e,t)))}return U}function At(e,t){return Ot({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:wt(t),nameAndModeGetter:pU,resolutionWorker:Ct,getResolutionFromOldProgram:(e,n)=>null==L?void 0:L.getResolvedModule(t,e,n),getResolved:gd,canReuseResolutionsInFile:()=>t===(null==L?void 0:L.getSourceFile(t.fileName))&&!Oe(t.path),resolveToOwnAmbientModule:!0})}function It(e,t){const n=it(t)?void 0:t;return Ot({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&wt(n),nameAndModeGetter:gU,resolutionWorker:Dt,getResolutionFromOldProgram:(e,t)=>{var r;return n?null==L?void 0:L.getResolvedTypeReferenceDirective(n,e,t):null==(r=null==L?void 0:L.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,t)},getResolved:hd,canReuseResolutionsInFile:()=>n?n===(null==L?void 0:L.getSourceFile(n.fileName))&&!Oe(n.path):!Oe(Nt(t))})}function Ot({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:r,nameAndModeGetter:i,resolutionWorker:o,getResolutionFromOldProgram:a,getResolved:s,canReuseResolutionsInFile:c,resolveToOwnAmbientModule:l}){if(!e.length)return u;if(!(0!==ot||l&&n.ambientModuleNames.length))return o(e,t,void 0);let _,d,p,f;const m=c();for(let c=0;cp[d[t]]=e)),p):g}function Lt(e){return{getCanonicalFileName:On,getCommonSourceDirectory:st.getCommonSourceDirectory,getCompilerOptions:st.getCompilerOptions,getCurrentDirectory:()=>Ce,getSourceFile:st.getSourceFile,getSourceFileByPath:st.getSourceFileByPath,getSourceFiles:st.getSourceFiles,isSourceFileFromExternalLibrary:Mt,getResolvedProjectReferenceToRedirect:xn,getProjectReferenceRedirect:yn,isSourceOfProjectReferenceRedirect:Tn,getSymlinkCache:rr,writeFile:e||Rt,isEmitBlocked:zt,shouldTransformImportCall:ur,getEmitModuleFormatOfFile:lr,getDefaultResolutionModeForFile:cr,getModeForResolutionAtIndex:or,readFile:e=>ye.readFile(e),fileExists:e=>{const t=Nt(e);return!!Ut(t)||!qe.has(t)&&ye.fileExists(e)},realpath:Xe(ye,ye.realpath),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=st.getBuildInfo)?void 0:e.call(st)},getSourceFileFromReference:(e,t)=>st.getSourceFileFromReference(e,t),redirectTargetsMap:ze,getFileIncludeReasons:st.getFileIncludeReasons,createHash:Xe(ye,ye.createHash),getModuleResolutionCache:()=>st.getModuleResolutionCache(),trace:Xe(ye,ye.trace),getGlobalTypingsCacheLocation:st.getGlobalTypingsCacheLocation}}function Rt(e,t,n,r,i,o){ye.writeFile(e,t,n,r,i,o)}function jt(){return Ve}function Mt(e){return!!he.get(e.path)}function Bt(){return V||(V=eJ(st))}function zt(e){return Ee.has(Nt(e))}function $t(e){return Ut(Nt(e))}function Ut(e){return $e.get(e)||void 0}function Vt(e,t,n){return Is(e?t(e,n):M(st.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function Wt(e){var t;if(hT(e,N,st))return u;const n=ut().getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Qt(e,e.commentDirectives,n).diagnostics:n}function Ht(e){return Rm(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Gt((()=>{const t=[];return n(e,e),UI(e,n,r),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(a(e,ha.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(a(e,ha.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(a(n,ha._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(a(e,ha._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(a(e,ha._0_declarations_can_only_be_used_in_TypeScript_files,xN(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(a(e,ha.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(e.isExportEquals)return t.push(a(e,ha.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(a(e,ha.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=Ra(120);return gn.assertIsDefined(r),t.push(a(e,ha._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const i=32&e.flags?Ra(145):Ra(144);return gn.assertIsDefined(i),t.push(a(e,ha._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 265:return t.push(a(e,ha.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(a(e,ha.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const o=gn.checkDefined(Ra(94));return t.push(a(e,ha._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 235:return t.push(a(e,ha.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(a(e.type,ha.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(a(e.type,ha.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:gn.fail()}}function r(e,n){if(RA(n)){const e=T(n.modifiers,mE);e&&t.push(a(e,ha.Decorators_are_not_valid_here))}else if(gI(n)&&n.modifiers){const e=D(n.modifiers,mE);if(e>=0)if(fE(n)&&!N.experimentalDecorators)t.push(a(n.modifiers[e],ha.Decorators_are_not_valid_here));else if(nN(n)){const r=D(n.modifiers,Yw);if(r>=0){const i=D(n.modifiers,Zw);if(e>r&&i>=0&&e=0&&e=0&&t.push(pT(a(n.modifiers[i],ha.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),a(n.modifiers[e],ha.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(o(e,ha.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return i(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)au(n)&&126!==n.kind&&129!==n.kind&&t.push(a(n,ha.The_0_modifier_can_only_be_used_in_TypeScript_files,Ra(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&X(e,au))return t.push(o(e,ha.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(o(e,ha.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function i(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(a(r,ha.The_0_modifier_can_only_be_used_in_TypeScript_files,Ra(r.kind)))}}function o(t,n,...r){const i=t.pos;return rS(e,i,t.end-i,n,...r)}function a(t,n,...r){return Wp(e,t,n,...r)}}))}(e)),Y(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Gt(e){try{return e()}catch(e){throw e instanceof Nr&&(V=void 0),e}}function Kt(e,t,n){if(n)return Xt(e,t,n);let r=null==Q?void 0:Q.get(e.path);return r||(Q??(Q=new Map)).set(e.path,r=Xt(e,t)),r}function Xt(e,t,n){return Gt((()=>{if(hT(e,N,st))return u;const r=Bt();gn.assert(!!e.bindDiagnostics);const i=1===e.scriptKind||2===e.scriptKind,o=wd(e,N.checkJs),a=i&&lT(e,N);let s=e.bindDiagnostics,c=r.getDiagnostics(e,t,n);return o&&(s=P(s,(e=>IU.has(e.code))),c=P(c,(e=>IU.has(e.code)))),function(e,t,n,...r){var i;const o=j(r);if(!t||!(null==(i=e.commentDirectives)?void 0:i.length))return o;const{diagnostics:a,directives:s}=Qt(e,e.commentDirectives,o);if(n)return a;for(const t of s.getUnusedExpectations())a.push(Zp(e,t.range,ha.Unused_ts_expect_error_directive));return a}(e,!o,!!n,s,c,a?e.jsDocDiagnostics:void 0)}))}function Qt(e,t,n){const r=Wd(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=Ua(n);let o=Va(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^\s*\/\/.*$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function Yt(e,t){let n=null==Z?void 0:Z.get(e.path);return n||(Z??(Z=new Map)).set(e.path,n=function(e,t){return Gt((()=>{const n=Bt().getEmitResolver(e,t);return T$(Lt(ct),n,e)||u}))}(e,t)),n}function Zt(e,t){return e.isDeclarationFile?u:Yt(e,t)}function nn(e,t,n,r){ln(Go(e),t,n,void 0,r)}function rn(e,t){return e.fileName===t.fileName}function on(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function an(e,t){const n=oD.createStringLiteral(e),r=oD.createImportDeclaration(void 0,void 0,n);return fD(r,2),LT(n,r),LT(r,t),n.flags&=-17,r.flags&=-17,n}function sn(e){if(e.imports)return;const t=Rm(e),n=XI(e);let r,i,o;if(t||!e.isDeclarationFile&&(NS(N)||XI(e))){N.importHelpers&&(r=[an(X_,e)]);const t=nk(tk(N,e),N);t&&(r||(r=[])).push(an(t,e))}for(const t of e.statements)a(t,!1);return(4194304&e.flags||t)&&LC(e,!0,!0,((e,t)=>{RT(e,!1),r=le(r,t)})),e.imports=r||u,e.moduleAugmentations=i||u,void(e.ambientModuleNames=o||u);function a(t,s){if(Op(t)){const n=Fg(t);!(n&&Iw(n)&&n.text)||s&&As(n.text)||(RT(t,!1),r=le(r,n),Be||0!==fe||e.isDeclarationFile||(en(n.text,"node:")&&!IC.has(n.text)?Be=!0:void 0===Be&&AC.has(n.text)&&(Be=!1)))}else if(aN(t)&&fp(t)&&(s||Lv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=Kh(t.name);if(n||s&&!As(r))(i||(i=[])).push(t.name);else if(!s){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)a(e,!0)}}}}function cn(e,t,n,r){if(Fo(e)){const i=ye.getCanonicalFileName(e);if(!N.allowNonTsExtensions&&!f(j(we),(e=>No(i,e))))return void(n&&(zk(i)?n(ha.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(ha.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+j(De).join("', '")+"'")));const o=t(e);if(n)if(o)DU(r)&&i===ye.getCanonicalFileName(Ut(r.file).fileName)&&n(ha.A_file_cannot_have_a_reference_to_itself);else{const t=yn(e);t?n(ha.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(ha.File_0_not_found,e)}return o}{const r=N.allowNonTsExtensions&&t(e);if(r)return r;if(n&&N.allowNonTsExtensions)return void n(ha.File_0_not_found,e);const i=f(De[0],(n=>t(e+n)));return n&&!i&&n(ha.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+j(De).join("', '")+"'"),i}}function ln(e,t,n,r,i){cn(e,(e=>dn(e,t,n,i,r)),((e,...t)=>Bn(void 0,i,e,t)),i)}function un(e,t){return ln(e,!1,!1,void 0,t)}function _n(e,t,n){!DU(n)&&X(de.get(t.path),DU)?Bn(t,n,ha.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Bn(t,n,ha.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function dn(e,t,n,r,i){var o,a;null==(o=Yn)||o.push(Yn.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Pr[r.kind]});const s=function(e,t,n,r,i){var o;const a=Nt(e);if(Ke){let o=kn(a);if(!o&&ye.realpath&&N.preserveSymlinks&&iO(e)&&e.includes(Wj)){const t=Nt(ye.realpath(e));t!==a&&(o=kn(t))}if(o){const s=it(o)?dn(o,t,n,r,i):void 0;return s&&mn(s,a,e,void 0),s}}const s=e;if($e.has(a)){const n=$e.get(a),i=fn(n||void 0,r,!0);if(n&&i&&!1!==N.forceConsistentCasingInFileNames){const t=n.fileName;Nt(t)!==Nt(e)&&(e=yn(e)||e),Ko(t,Ce)!==Ko(e,Ce)&&_n(e,n,r)}return n&&he.get(n.path)&&0===fe?(he.set(n.path,!1),N.noResolve||(wn(n,t),En(n)),N.noLib||In(n),ge.set(n.path,!1),Ln(n)):n&&ge.get(n.path)&&feBn(void 0,r,ha.Cannot_read_file_0_Colon_1,[e,t])),rt);if(i){const t=xd(i),n=Me.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=yI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,he.set(r,fe>0),c}(n,u,e,a,Nt(e),s,l);return ze.add(n.path,e),mn(t,a,e,c),fn(t,r,!1),Je.set(a,bd(i)),J.push(t),t}u&&(Me.set(t,u),Je.set(a,bd(i)))}if(mn(u,a,e,c),u){if(he.set(a,fe>0),u.fileName=e,u.path=a,u.resolvedPath=Nt(e),u.originalFileName=s,u.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,u.packageJsonScope=l.packageJsonScope,fn(u,r,!1),ye.useCaseSensitiveFileNames()){const t=mt(a),n=Ue.get(t);n?_n(e,n,r):Ue.set(t,u)}be=be||u.hasNoDefaultLib&&!n,N.noResolve||(wn(u,t),En(u)),N.noLib||In(u),Ln(u),t?B.push(u):J.push(u),(H??(H=new Set)).add(u.path)}return u}(e,t,n,r,i);return null==(a=Yn)||a.pop(),s}function pn(e,t,n,r){const i=AU(Ho(e,Ce),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=DS(r),a=xS(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function fn(e,t,n){return!(!e||n&&DU(t)&&(null==H?void 0:H.has(t.file))||(de.add(e.path,t),0))}function mn(e,t,n,r){r?(hn(n,r,e),hn(n,t,e||!1)):hn(n,t,e)}function hn(e,t,n){$e.set(t,n),void 0!==n?qe.delete(t):qe.set(t,e)}function yn(e){const t=vn(e);return t&&bn(t,e)}function vn(e){if(Ve&&Ve.length&&!iO(e)&&!No(e,".json"))return xn(e)}function bn(e,t){const n=e.commandLine.options.outFile;return n?Zk(n,".d.ts"):X$(t,e.commandLine,!ye.useCaseSensitiveFileNames())}function xn(e){void 0===He&&(He=new Map,Sn((e=>{Nt(N.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>He.set(Nt(t),e.sourceFile.path)))})));const t=He.get(Nt(e));return t&&Dn(t)}function Sn(e){return vU(Ve,e)}function kn(e){if(iO(e))return void 0===Ge&&(Ge=new Map,Sn((e=>{const t=e.commandLine.options.outFile;if(t){const e=Zk(t,".d.ts");Ge.set(Nt(e),!0)}else{const t=ht((()=>iq(e.commandLine,!ye.useCaseSensitiveFileNames())));f(e.commandLine.fileNames,(n=>{if(!iO(n)&&!No(n,".json")){const r=X$(n,e.commandLine,!ye.useCaseSensitiveFileNames(),t);Ge.set(Nt(r),n)}}))}}))),Ge.get(e)}function Tn(e){return Ke&&!!xn(e)}function Dn(e){if(We)return We.get(e)||void 0}function wn(e,t){f(e.referencedFiles,((n,r)=>{ln(Lq(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function En(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ue?void 0:ue.get(e.path))||It(t,e),r=Tj();(ce??(ce=new Map)).set(e.path,r);for(let i=0;i{const r=CU(t);r?nn(Pn(r),!0,!0,{kind:7,file:e.path,index:n}):(ee||(ee=[])).push({kind:0,reason:{kind:7,file:e.path,index:n}})}))}function On(e){return ye.getCanonicalFileName(e)}function Ln(e){if(sn(e),e.imports.length||e.moduleAugmentations.length){const t=VU(e),n=(null==se?void 0:se.get(e.path))||At(t,e);gn.assert(n.length===t.length);const r=Fn(e),i=Tj();(oe??(oe=new Map)).set(e.path,i);for(let o=0;ope,f=d&&!UU(r,a,e)&&!r.noResolve&&o{l?void 0===i?n(r,i,o,ha.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,o,ha.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):void 0===i?n(r,i,o,ha.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,t,e):n(r,i,o,ha.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,i,t,e)}))}function Mn(e,t,n,r){let i;const o=e&&de.get(e.path);let a,s,c,l,_,d=DU(t)?t:void 0,p=e&&(null==G?void 0:G.get(e.path));p?(p.fileIncludeReasonDetails?(i=new Set(o),null==o||o.forEach(h)):null==o||o.forEach(g),l=p.redirectInfo):(null==o||o.forEach(g),l=e&&yW(e,Fn(e))),t&&g(t);const f=(null==i?void 0:i.size)!==(null==o?void 0:o.length);d&&1===(null==i?void 0:i.size)&&(i=void 0),i&&p&&(p.details&&!f?_=sS(p.details,n,...r||u):p.fileIncludeReasonDetails&&(f?a=y()?le(p.fileIncludeReasonDetails.next.slice(0,o.length),a[0]):[...p.fileIncludeReasonDetails.next,a[0]]:y()?a=p.fileIncludeReasonDetails.next.slice(0,o.length):c=p.fileIncludeReasonDetails)),_||(c||(c=i&&sS(a,ha.The_file_is_in_the_program_because_Colon)),_=sS(l?c?[c,...l]:l:c,n,...r||u)),e&&(p?(!p.fileIncludeReasonDetails||!f&&c)&&(p.fileIncludeReasonDetails=c):(G??(G=new Map)).set(e.path,p={fileIncludeReasonDetails:c,redirectInfo:l}),p.details||f||(p.details=_.next));const m=d&&EU(st,d);return m&&wU(m)?Xp(m.file,m.pos,m.end-m.pos,_,s):aS(_,s);function g(e){(null==i?void 0:i.has(e))||((i??(i=new Set)).add(e),(a??(a=[])).push(xW(st,e)),h(e))}function h(e){!d&&DU(e)?d=e:d!==e&&(s=le(s,function(e){let t=null==K?void 0:K.get(e);return void 0===t&&(K??(K=new Map)).set(e,t=function(e){if(DU(e)){const t=EU(st,e);let n;switch(e.kind){case 3:n=ha.File_is_included_via_import_here;break;case 4:n=ha.File_is_included_via_reference_here;break;case 5:n=ha.File_is_included_via_type_library_reference_here;break;case 7:n=ha.File_is_included_via_library_reference_here;break;default:gn.assertNever(e)}return wU(t)?rS(t.file,t.pos,t.end-t.pos,n):void 0}if(!N.configFile)return;let t,n;switch(e.kind){case 0:if(!N.configFile.configFileSpecs)return;const r=Ho(F[e.index],Ce),i=vW(st,r);if(i){t=Zf(N.configFile,"files",i),n=ha.File_is_matched_by_files_list_specified_here;break}const o=bW(st,r);if(!o||!it(o))return;t=Zf(N.configFile,"include",o),n=ha.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const a=gn.checkDefined(null==Ve?void 0:Ve[e.index]),s=bU(I,Ve,((e,t,n)=>e===a?{sourceFile:(null==t?void 0:t.sourceFile)||N.configFile,index:n}:void 0));if(!s)return;const{sourceFile:c,index:l}=s,u=em(c,"references",(e=>eF(e.initializer)?e.initializer:void 0));return u&&u.elements.length>l?Wp(c,u.elements[l],2===e.kind?ha.File_is_output_from_referenced_project_specified_here:ha.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!N.types)return;t=Vn("types",e.typeReference),n=ha.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=Vn("lib",N.lib[e.index]),n=ha.File_is_library_specified_here;break}const _=GS(DS(N));t=_?function(e,t){return qn(e,(e=>Iw(e.initializer)&&e.initializer.text===t?e.initializer:void 0))}("target",_):void 0,n=ha.File_is_default_library_for_target_specified_here;break;default:gn.assertNever(e)}return t&&Wp(N.configFile,t,n)}(e)??!1),t||void 0}(e)))}function y(){var e;return(null==(e=p.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==o?void 0:o.length)}}function Bn(e,t,n,r){(ee||(ee=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Jn(e,t,n){Te.push({file:e,diagnostic:t,args:n})}function zn(e,t,n,...r){let i=!0;Un((o=>{tF(o.initializer)&&Xf(o.initializer,e,(e=>{const o=e.initializer;eF(o)&&o.elements.length>t&&(ke.add(Wp(N.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&Xn(n,...r)}function $n(e,t,n,...r){let i=!0;Un((o=>{tF(o.initializer)&&er(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&Xn(n,...r)}function qn(e,t){return Xf(Qn(),e,t)}function Un(e){return qn("paths",e)}function Vn(e,t){const n=Qn();return n&&Qf(n,e,t)}function Wn(e,t,n,r){Kn(!0,t,n,e,t,n,r)}function Hn(e,t,...n){Kn(!1,e,void 0,t,...n)}function Gn(e,t,n,...r){const i=em(e||N.configFile,"references",(e=>eF(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?ke.add(Wp(e||N.configFile,i.elements[t],n,...r)):ke.add(oS(n,...r))}function Kn(e,t,n,r,...i){const o=Qn();(!o||!er(o,e,t,n,r,...i))&&Xn(r,...i)}function Xn(e,...t){const n=Zn();n?"messageText"in e?ke.add(Hp(N.configFile,n.name,e)):ke.add(Wp(N.configFile,n.name,e,...t)):"messageText"in e?ke.add(aS(e)):ke.add(oS(e,...t))}function Qn(){if(void 0===Fe){const e=Zn();Fe=e&&at(e.initializer,tF)||!1}return Fe||void 0}function Zn(){return void 0===Ne&&(Ne=Xf(Yf(N.configFile),"compilerOptions",dt)||!1),Ne||void 0}function er(e,t,n,r,i,...o){let a=!1;return Xf(e,n,(e=>{"messageText"in i?ke.add(Hp(N.configFile,t?e.name:e.initializer,i)):ke.add(Wp(N.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function tr(e,t){Ee.set(Nt(e),!0),ke.add(t)}function nr(e,t){return 0===aa(e,t,Ce,!ye.useCaseSensitiveFileNames())}function rr(){return ye.getSymlinkCache?ye.getSymlinkCache():($||($=ik(Ce,On)),z&&!$.hasProcessedResolutions()&&$.setSymlinksFromResolutions(ft,gt,ne),$)}function ir(e,t){return cU(e,t,Fn(e))}function or(e,t){return ir(e,WU(e,t))}function cr(e){return MU(e,Fn(e))}function lr(e){return RU(e,Fn(e))}function ur(e){return LU(e,Fn(e))}function _r(e,t){return e.resolutionMode||cr(t)}}function LU(e,t){const n=wS(t);return!(100<=n&&n<=199||200===n)&&RU(e,t)<5}function RU(e,t){return jU(e,t)??wS(t)}function jU(e,t){var n,r;const i=wS(t);return 100<=i&&i<=199?e.impliedNodeFormat:1!==e.impliedNodeFormat||"commonjs"!==(null==(n=e.packageJsonScope)?void 0:n.contents.packageJsonContent.type)&&!Po(e.fileName,[".cjs",".cts"])?99!==e.impliedNodeFormat||"module"!==(null==(r=e.packageJsonScope)?void 0:r.contents.packageJsonContent.type)&&!Po(e.fileName,[".mjs",".mts"])?void 0:99:1}function MU(e,t){return SS(t)?jU(e,t):void 0}var BU={diagnostics:u,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function JU(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return t?BU:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&RS(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function zU(e,t){return P(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function $U(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(gn.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:Xe(t,t.directoryExists),getDirectories:Xe(t,t.getDirectories),realpath:Xe(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||_t,trace:e.trace?t=>e.trace(t):void 0}}function qU(e){return VW(e.path)}function UU(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return LS(e)?void 0:ha.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:ha.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:ha.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return JS(e)||!HS(e,"noImplicitAny")?void 0:ha.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function VU({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const e of t)11===e.kind&&n.push(e);return n}function WU({imports:e,moduleAugmentations:t},n){if(n(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(KU||{});(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e,t){const n=e.getSymbolAtLocation(t);return n&&function(e){return q(e.declarations,(e=>{var t;return null==(t=Cd(e))?void 0:t.resolvedPath}))}(n)}function i(e,t,n,r){return Xo(e.getProjectReferenceRedirect(t)||t,n,r)}function o(e,t,n){let o;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=r(n,e);null==t||t.forEach(c)}}const a=Ro(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(i(e,r.fileName,a,n));if(e.forEachResolvedTypeReferenceDirective((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(i(e,r,a,n))}),t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!Iw(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return o;function s(e){if(e.declarations)for(const n of e.declarations){const e=Cd(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(o||(o=new Set)).add(e)}}function a(e,t){return t&&!t.referencedMap==!e}function s(e){return 0===e.module||e.outFile?void 0:t()}function c(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?_(e,t,o,r,i)?(e.referencedMap?h:g)(e,t,o,r,i):[o]:u}function l(e,t,n,r,i){e.emit(t,((n,o,a,s,c,l)=>{gn.assert(iO(n),`File extension for signature expected to be dts: Got:: ${n}`),i(EV(e,t,o,r,l),c)}),n,2,void 0,!0)}function _(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let u;return n.isDeclarationFile||o||l(t,n,r,i,(t=>{u=t,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,0)})),void 0===u&&(u=n.version,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=u,u!==c}function d(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===u?u:n.map((e=>e.fileName))}return e.allFileNames}function p(e,t){const n=e.referencedMap.getKeys(t);return n?Be(n.keys()):[]}function f(e){return function(e){return X(e.moduleAugmentations,(e=>vp(e.parent)))}(e)||!af(e)&&!sf(e)&&!function(e){for(const t of e.statements)if(!mp(t))return!1;return!0}(e)}function m(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||u,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function g(e,t,n){const r=t.getCompilerOptions();return r&&r.outFile?[n]:m(e,t,n)}function h(e,t,n,r,i){if(f(n))return m(e,t,n);const o=t.getCompilerOptions();if(o&&(NS(o)||o.outFile))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=p(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&_(e,t,o,r,i)&&s.push(...p(e,o.resolvedPath))}}return Be(U(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=a,e.createReferencedMap=s,e.create=function(e,t,n){var r,i;const c=new Map,l=e.getCompilerOptions(),u=s(l),_=a(u,t);e.getTypeChecker();for(const n of e.getSourceFiles()){const a=gn.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),s=_?null==(r=t.oldSignatures)?void 0:r.get(n.resolvedPath):void 0,d=void 0===s?_?null==(i=t.fileInfos.get(n.resolvedPath))?void 0:i.signature:void 0:s||void 0;if(u){const t=o(e,n,e.getCanonicalFileName);t&&u.set(n.resolvedPath,t)}c.set(n.resolvedPath,{version:a,signature:d,affectsGlobalScope:l.outFile?void 0:f(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:c,referencedMap:u,useFileVersionAsSignature:!n&&!_}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o;const a=c(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),a},e.getFilesAffectedByWithOldState=c,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=l,e.updateShapeSignature=_,e.getAllDependencies=function(e,t,n){if(t.getCompilerOptions().outFile)return d(e,t);if(!e.referencedMap||f(n))return d(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Be(U(r.keys(),(e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e})))},e.getReferencedByPaths=p,e.getAllFilesExcludingDefaultLibraryFile=m})(GU||(GU={}));var XU=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(XU||{});function QU(e){return void 0!==e.program}function YU(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),RS(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function ZU(e,t){const n=t&&(ot(t)?t:YU(t)),r=ot(e)?e:YU(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),8&i&&(o|=8&r),48&i&&(o|=48&r),o}function eV(e,t){var n,r;const i=GU.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const a=o.outFile;i.semanticDiagnosticsPerFile=new Map,a&&o.composite&&(null==t?void 0:t.outSignature)&&a===t.compilerOptions.outFile&&(i.outSignature=t.outSignature&&tV(o,t.compilerOptions,t.outSignature)),i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0,i.checkPending=!!i.compilerOptions.noCheck||void 0;const s=GU.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0;let l=s&&!XS(o,c);const u=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!YS(o,t.compilerOptions);let _=!0;s?(null==(n=t.changedFilesSet)||n.forEach((e=>i.changedFilesSet.add(e))),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending,a&&i.changedFilesSet.size&&(l=!1,_=!1),i.hasErrorsFromOldState=t.hasErrors):i.buildInfoEmitPending=MS(o);const d=i.referencedMap,p=s?t.referencedMap:void 0,f=l&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;if(i.fileInfos.forEach(((n,r)=>{var a;let c,h;if(!s||!(c=t.fileInfos.get(r))||c.version!==n.version||c.impliedFormat!==n.impliedFormat||(y=h=d&&d.getValues(r),v=p&&p.getValues(r),y!==v&&(void 0===y||void 0===v||y.size!==v.size||ud(y,(e=>!v.has(e)))))||h&&ud(h,(e=>!i.fileInfos.has(e)&&t.fileInfos.has(e))))g(r);else{const n=e.getSourceFileByPath(r),o=_?null==(a=t.emitDiagnosticsPerFile)?void 0:a.get(r):void 0;if(o&&(i.emitDiagnosticsPerFile??(i.emitDiagnosticsPerFile=new Map)).set(r,t.hasReusableDiagnostic?oV(o,r,e):nV(o,e)),l){if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?oV(o,r,e):nV(o,e)),(i.semanticDiagnosticsFromOldState??(i.semanticDiagnosticsFromOldState=new Set)).add(r))}}var y,v;if(u){const e=t.emitSignatures.get(r);e&&(i.emitSignatures??(i.emitSignatures=new Map)).set(r,tV(o,t.compilerOptions,e))}})),s&&ld(t.fileInfos,((e,t)=>!(i.fileInfos.has(t)||!e.affectsGlobalScope&&(i.buildInfoEmitPending=!0,!a)))))GU.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach((e=>g(e.resolvedPath)));else if(c){const t=QS(o,c)?YU(o):ZU(o,c);0!==t&&(a?i.changedFilesSet.size||(i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t):(e.getSourceFiles().forEach((e=>{i.changedFilesSet.has(e.resolvedPath)||NV(i,e.resolvedPath,t)})),gn.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set),i.buildInfoEmitPending=!0)}return s&&i.semanticDiagnosticsPerFile.size!==i.fileInfos.size&&t.checkPending!==i.checkPending&&(i.buildInfoEmitPending=!0),i;function g(e){i.changedFilesSet.add(e),a&&(l=!1,_=!1,i.semanticDiagnosticsFromOldState=void 0,i.semanticDiagnosticsPerFile.clear(),i.emitDiagnosticsPerFile=void 0),i.buildInfoEmitPending=!0,i.programEmitPending=void 0}}function tV(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:it(n)?[n]:n[0]}function nV(e,t){return e.length?R(e,(e=>{if(it(e.messageText))return e;const n=rV(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:{...e,messageText:n}})):e}function rV(e,t,n,r){const i=r(e);if(!0===i)return{...vd(t),next:iV(e.next,t,n,r)};if(i)return{...yd(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:iV(e.next,t,n,r)};const o=iV(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function iV(e,t,n,r){return R(e,(e=>rV(e,t,n,r)))}function oV(e,t,n){if(!e.length)return u;let r;return e.map((e=>{const r=aV(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return r.relatedInformation=o?o.length?o.map((e=>aV(e,t,n,i))):[]:void 0,r}));function i(e){return r??(r=Ro(Ho(U$(n.getCompilerOptions()),n.getCurrentDirectory()))),Xo(e,r,n.getCanonicalFileName)}}function aV(e,t,n,r){const{file:i}=e,o=!1!==i?n.getSourceFileByPath(i?r(i):t):void 0;return{...e,file:o,messageText:it(e.messageText)?e.messageText:rV(e.messageText,o,n,(e=>e.info))}}function sV(e,t){gn.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function cV(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a{const i=n?55&t:7&t;i?e.affectedFilesPendingEmit.set(r,i):e.affectedFilesPendingEmit.delete(r)})),e.programEmitPending)){const t=n?55&e.programEmitPending:7&e.programEmitPending;e.programEmitPending=t||void 0}}function uV(e,t,n,r){let i=ZU(e,t);return n&&(i&=56),r&&(i&=8),i}function _V(e){return e?8:56}function dV(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();f(e.program.getSourceFiles(),(n=>e.program.isSourceFileDefaultLibrary(n)&&!yT(n,t,e.program)&&mV(e,n.resolvedPath)))}}function pV(e,t,n,r){if(mV(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return dV(e),void GU.updateShapeSignature(e,e.program,t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!gV(e,t.resolvedPath))return;if(NS(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=GU.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),hV(e,t,!1,n,r))return;if(fV(e,t,!1,n,r),gV(e,t)){const n=e.program.getSourceFileByPath(t);o.push(...GU.getReferencedByPaths(e,n.resolvedPath))}}}}const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!ld(t.symbol.exports,(n=>{if(128&n.flags)return!0;const r=px(n,e.program.getTypeChecker());return r!==n&&!!(128&r.flags)&&X(r.declarations,(e=>Cd(e)===t))}));null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach((t=>{if(hV(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&ud(i,(t=>yV(e,t,s,a,n,r)))}))}(e,t,n,r)}function fV(e,t,n,r,i){if(mV(e,t),!e.changedFilesSet.has(t)){const o=e.program.getSourceFileByPath(t);o&&(GU.updateShapeSignature(e,e.program,o,r,i,!0),n?NV(e,t,YU(e.compilerOptions)):RS(e.compilerOptions)&&NV(e,t,e.compilerOptions.declarationMap?56:24))}}function mV(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function gV(e,t){const n=gn.checkDefined(e.oldSignatures).get(t)||void 0;return gn.checkDefined(e.fileInfos.get(t)).signature!==n}function hV(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(GU.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>fV(e,t.resolvedPath,n,r,i))),dV(e),!0)}function yV(e,t,n,r,i,o){var a;if(W(r,t)){if(hV(e,t,n,i,o))return!0;fV(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>yV(e,t,n,r,i,o)))}}function vV(e,t,n,r){return e.compilerOptions.noCheck?u:Y(function(e,t,n,r){r??(r=e.semanticDiagnosticsPerFile);const i=t.resolvedPath,o=r.get(i);if(o)return zU(o,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,a),e.buildInfoEmitPending=!0,zU(a,e.compilerOptions)}(e,t,n,r),e.program.getProgramDiagnostics(t))}function bV(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}function xV(e){return!!e.fileNames}function SV(e){void 0===e.hasErrors&&(MS(e.compilerOptions)?e.hasErrors=!X(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return void 0===i||!!i.length||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))&&(kV(e)||X(e.program.getSourceFiles(),(t=>!!e.program.getProgramDiagnostics(t).length))):e.hasErrors=X(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!(null==i?void 0:i.length)||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))||kV(e))}function kV(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function TV(e){return SV(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var CV=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(CV||{});function DV(e,t,n,r,i,o){let a,s,c;return void 0===e?(gn.assert(void 0===t),a=n,c=r,gn.assert(!!c),s=c.getProgram()):nt(e)?(c=r,s=OU({rootNames:e,options:t,host:n,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),a=n):(s=e,a=t,c=n,i=r),{host:a,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||u}}function wV(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function EV(e,t,n,r,i){var o;let a;return n=wV(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map((n=>`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===a&&(a=Ro(t.resolvedPath)),`${Zo(ua(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${di[n.category]}${n.code}: ${s(n.messageText)}`)).join("\n")),(r.createHash??qi)(n);function s(e){return it(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function FV(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let o=r&&r.state;if(o&&t===o.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,r;const a=eV(t,o);t.getBuildInfo=()=>function(e){var t,n;const r=e.program.getCurrentDirectory(),i=Ro(Ho(U$(e.compilerOptions),r)),o=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,a=[],s=new Map,l=new Set(e.program.getRootFileNames().map((t=>Xo(t,r,e.program.getCanonicalFileName))));if(SV(e),!MS(e.compilerOptions))return{root:Be(l,(e=>x(e))),errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:c};const _=[];if(e.compilerOptions.outFile){const t=Be(e.fileInfos.entries(),(([e,t])=>(T(e,S(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version)));return{fileNames:a,fileInfos:t,root:_,resolvedRoot:C(),options:D(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:E(),emitDiagnosticsPerFile:F(),changeFileSet:O(),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending!==YU(e.compilerOptions)&&e.programEmitPending:void 0,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:c}}let d,p,m;const g=Be(e.fileInfos.entries(),(([t,n])=>{var r,i;const o=S(t);T(t,o),gn.assert(a[o-1]===x(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!sf(n)&&rv(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==c&&(m=le(m,void 0===n?o:[o,it(n)||n[0]!==c?n:u]))}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let h;(null==(t=e.referencedMap)?void 0:t.size())&&(h=Be(e.referencedMap.keys()).sort(Nt).map((t=>[S(t),k(e.referencedMap.getValues(t))])));const y=E();let v;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=YU(e.compilerOptions),n=new Set;for(const r of Be(e.affectedFilesPendingEmit.keys()).sort(Nt))if(W(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!rv(n,e.program))continue;const i=S(r),o=e.affectedFilesPendingEmit.get(r);v=le(v,o===t?i:24===o?[i]:[i,o])}}return{fileNames:a,fileIdsList:d,fileInfos:g,root:_,resolvedRoot:C(),options:D(e.compilerOptions),referencedMap:h,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:F(),changeFileSet:O(),affectedFilesPendingEmit:v,emitSignatures:m,latestChangedDtsFile:o,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:c};function b(e){return x(Ho(e,r))}function x(t){return Zo(ua(i,t,e.program.getCanonicalFileName))}function S(e){let t=s.get(e);return void 0===t&&(a.push(x(e)),s.set(e,t=a.length)),t}function k(e){const t=Be(e.keys(),S).sort(Tt),n=t.join();let r=null==p?void 0:p.get(n);return void 0===r&&(d=le(d,t),(p??(p=new Map)).set(n,r=d.length)),r}function T(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!_.length)return _.push(n);const i=_[_.length-1],o=nt(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===_.length||i!==n-1)return _.push(n);const a=_[_.length-2];return ot(a)&&a===i-1?(_[_.length-2]=[a,n],_.length=_.length-1):_.push(n)}function C(){let t;return l.forEach((n=>{const r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=le(t,[S(r.resolvedPath),S(n)]))})),t}function D(e){let t;const{optionsNameMap:n}=qO();for(const r of Le(e).sort(Nt)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=w(i,e[r]))}return t}function w(e,t){if(e)if(gn.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(b)}else if(e.isFilePath)return b(t);return t}function E(){let t;return e.fileInfos.forEach(((n,r)=>{const i=e.semanticDiagnosticsPerFile.get(r);i?i.length&&(t=le(t,[S(r),N(i,r)])):e.changedFilesSet.has(r)||(t=le(t,S(r)))})),t}function F(){var t;let n;if(!(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size))return n;for(const t of Be(e.emitDiagnosticsPerFile.keys()).sort(Nt)){const r=e.emitDiagnosticsPerFile.get(t);n=le(n,[S(t),N(r,t)])}return n}function N(e,t){return gn.assert(!!e.length),e.map((e=>{const n=P(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>P(e,t))):[]:void 0,n}))}function P(e,t){const{file:n}=e;return{...e,file:!!n&&(n.resolvedPath===t?void 0:x(n.resolvedPath)),messageText:it(e.messageText)?e.messageText:A(e.messageText)}}function A(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:I(e.next)};const t=I(e.next);return t===e.next?e:{...e,next:t}}function I(e){return e&&f(e,((t,n)=>{const r=A(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t!!a.hasChangedEmitSignature,s.getAllDependencies=e=>GU.getAllDependencies(a,gn.checkDefined(a.program),e),s.getSemanticDiagnostics=function(e,t){if(gn.assert(QU(a)),sV(a,e),e)return vV(a,e,t);for(;;){const e=g(t);if(!e)break;if(e.affected===a.program)return e.result}let n;for(const e of a.program.getSourceFiles())n=de(n,vV(a,e,t));return a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0),n||u},s.getDeclarationDiagnostics=function(t,n){var r;if(gn.assert(QU(a)),1===e){let e,i;for(sV(a,t);e=l(void 0,n,void 0,void 0,!0);)t||(i=de(i,e.result.diagnostics));return(t?null==(r=a.emitDiagnosticsPerFile)?void 0:r.get(t.resolvedPath):i)||u}{const e=a.program.getDeclarationDiagnostics(t,n);return m(t,void 0,!0,e),e}},s.emit=function(t,n,r,i,o){gn.assert(QU(a)),1===e&&sV(a,t);const c=JU(s,t,n,r);if(c)return c;if(!t){if(1===e){let e,t,a=[],s=!1,c=[];for(;t=d(n,r,i,o);)s=s||t.result.emitSkipped,e=de(e,t.result.diagnostics),c=de(c,t.result.emittedFiles),a=de(a,t.result.sourceMaps);return{emitSkipped:s,diagnostics:e||u,emittedFiles:c,sourceMaps:a}}lV(a,i,!1)}const l=a.program.emit(t,p(n,o),r,i,o);return m(t,i,!1,l.diagnostics),l},s.releaseProgram=()=>function(e){GU.releaseCache(e),e.program=void 0}(a),0===e?s.getSemanticDiagnosticsOfNextAffectedFile=g:1===e?(s.getSemanticDiagnosticsOfNextAffectedFile=g,s.emitNextAffectedFile=d,s.emitBuildInfo=function(e,t){if(gn.assert(QU(a)),TV(a)){const r=a.program.emitBuildInfo(e||Xe(n,n.writeFile),t);return a.buildInfoEmitPending=!1,r}return BU}):gt(),s;function l(e,t,r,i,o){var s,c,l,u;gn.assert(QU(a));let d=cV(a,t,n);const f=YU(a.compilerOptions);let m,g=o?8:r?56&f:f;if(!d){if(a.compilerOptions.outFile){if(a.programEmitPending&&(g=uV(a.programEmitPending,a.seenProgramEmit,r,o),g&&(d=a.program)),!d&&(null==(s=a.emitDiagnosticsPerFile)?void 0:s.size)){const e=a.seenProgramEmit||0;if(!(e&_V(o))){a.seenProgramEmit=_V(o)|e;const t=[];return a.emitDiagnosticsPerFile.forEach((e=>de(t,e))),{result:{emitSkipped:!0,diagnostics:t},affected:a.program}}}}else{const e=function(e,t,n){var r;if(null==(r=e.affectedFilesPendingEmit)?void 0:r.size)return ld(e.affectedFilesPendingEmit,((r,i)=>{var o;const a=e.program.getSourceFileByPath(i);if(!a||!rv(a,e.program))return void e.affectedFilesPendingEmit.delete(i);const s=uV(r,null==(o=e.seenEmittedFiles)?void 0:o.get(a.resolvedPath),t,n);return s?{affectedFile:a,emitKind:s}:void 0}))}(a,r,o);if(e)({affectedFile:d,emitKind:g}=e);else{const e=function(e,t){var n;if(null==(n=e.emitDiagnosticsPerFile)?void 0:n.size)return ld(e.emitDiagnosticsPerFile,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!rv(o,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath))||0;return a&_V(t)?void 0:{affectedFile:o,diagnostics:n,seenKind:a}}))}(a,o);if(e)return(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.affectedFile.resolvedPath,e.seenKind|_V(o)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!d){if(o||!TV(a))return;const r=a.program,i=r.emitBuildInfo(e||Xe(n,n.writeFile),t);return a.buildInfoEmitPending=!1,{result:i,affected:r}}}7&g&&(m=0),56&g&&(m=void 0===m?1:void 0);const h=o?{emitSkipped:!0,diagnostics:a.program.getDeclarationDiagnostics(d===a.program?void 0:d,t)}:a.program.emit(d===a.program?void 0:d,p(e,i),t,m,i,void 0,!0);if(d!==a.program){const e=d;a.seenAffectedFiles.add(e.resolvedPath),void 0!==a.affectedFilesIndex&&a.affectedFilesIndex++,a.buildInfoEmitPending=!0;const t=(null==(c=a.seenEmittedFiles)?void 0:c.get(e.resolvedPath))||0;(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.resolvedPath,g|t);const n=ZU((null==(l=a.affectedFilesPendingEmit)?void 0:l.get(e.resolvedPath))||f,g|t);n?(a.affectedFilesPendingEmit??(a.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(u=a.affectedFilesPendingEmit)||u.delete(e.resolvedPath),h.diagnostics.length&&(a.emitDiagnosticsPerFile??(a.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,h.diagnostics)}else a.changedFilesSet.clear(),a.programEmitPending=a.changedFilesSet.size?ZU(f,g):a.programEmitPending?ZU(a.programEmitPending,g):void 0,a.seenProgramEmit=g|(a.seenProgramEmit||0),_(h.diagnostics),a.buildInfoEmitPending=!0;return{result:h,affected:d}}function _(e){let t;e.forEach((e=>{if(!e.file)return;let n=null==t?void 0:t.get(e.file.resolvedPath);n||(t??(t=new Map)).set(e.file.resolvedPath,n=[]),n.push(e)})),t&&(a.emitDiagnosticsPerFile=t)}function d(e,t,n,r){return l(e,t,n,r,!1)}function p(e,t){return gn.assert(QU(a)),RS(a.compilerOptions)?(r,i,o,s,c,l)=>{var u,_,d;if(iO(r))if(a.compilerOptions.outFile){if(a.compilerOptions.composite){const e=p(a.outSignature,void 0);if(!e)return l.skippedDtsWrite=!0;a.outSignature=e}}else{let e;if(gn.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=a.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=EV(a.program,t,i,n,l);(null==(u=null==l?void 0:l.diagnostics)?void 0:u.length)||(e=o),o!==t.version&&(n.storeSignatureInfo&&(a.signatureInfo??(a.signatureInfo=new Map)).set(t.resolvedPath,1),a.affectedFiles?(void 0===(null==(_=a.oldSignatures)?void 0:_.get(t.resolvedPath))&&(a.oldSignatures??(a.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o):r.signature=o)}}if(a.compilerOptions.composite){const t=c[0].resolvedPath;if(e=p(null==(d=a.emitSignatures)?void 0:d.get(t),e),!e)return l.skippedDtsWrite=!0;(a.emitSignatures??(a.emitSignatures=new Map)).set(t,e)}}function p(e,t){const o=!e||it(e)?e:e[0];if(t??(t=function(e,t,n){return(t.createHash??qi)(wV(e,n))}(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else a.hasChangedEmitSignature=!0,a.latestChangedDtsFile=r;return t}e?e(r,i,o,s,c,l):n.writeFile?n.writeFile(r,i,o,s,c,l):a.program.writeFile(r,i,o,s,c,l)}:e||Xe(n,n.writeFile)}function m(t,n,r,i){t||1===e||(lV(a,n,r),_(i))}function g(e,t){for(gn.assert(QU(a));;){const r=cV(a,e,n);let i;if(!r)return void(a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0));if(r!==a.program){const n=r;if(t&&t(n)||(i=vV(a,n,e)),a.seenAffectedFiles.add(n.resolvedPath),a.affectedFilesIndex++,a.buildInfoEmitPending=!0,!i)continue}else{let t;const n=new Map;a.program.getSourceFiles().forEach((r=>t=de(t,vV(a,r,e,n)))),a.semanticDiagnosticsPerFile=n,i=t||u,a.changedFilesSet.clear(),a.programEmitPending=YU(a.compilerOptions),a.compilerOptions.noCheck||(a.checkPending=void 0),a.buildInfoEmitPending=!0}return{result:i,affected:r}}}}function NV(e,t,n){var r,i;const o=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),null==(i=e.emitDiagnosticsPerFile)||i.delete(t)}function PV(e){return it(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:it(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function AV(e,t){return ot(e)?t:e[1]||24}function IV(e,t){return e||YU(t||{})}function OV(e,t,n){var r,i,o,a;const s=Ro(Ho(t,n.getCurrentDirectory())),c=Xt(n.useCaseSensitiveFileNames());let l;const _=null==(r=e.fileNames)?void 0:r.map((function(e){return Xo(e,s,c)}));let d;const p=e.latestChangedDtsFile?g(e.latestChangedDtsFile):void 0,f=new Map,m=new Set(O(e.changeFileSet,h));if(bV(e))e.fileInfos.forEach(((e,t)=>{const n=h(t+1);f.set(n,it(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),l={fileInfos:f,compilerOptions:e.options?WL(e.options,g):{},semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,latestChangedDtsFile:p,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:IV(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{d=null==(i=e.fileIdsList)?void 0:i.map((e=>new Set(e.map(h))));const t=(null==(o=e.options)?void 0:o.composite)&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach(((e,n)=>{const r=h(n+1),i=PV(e);f.set(r,i),t&&i.signature&&t.set(r,i.signature)})),null==(a=e.emitSignatures)||a.forEach((e=>{if(ot(e))t.delete(h(e));else{const n=h(e[0]);t.set(n,it(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=e.affectedFilesPendingEmit?YU(e.options||{}):void 0;l={fileInfos:f,compilerOptions:e.options?WL(e.options,g):{},referencedMap:function(e,t){const n=GU.createReferencedMap(t);return n&&e?(e.forEach((([e,t])=>n.set(h(e),d[t-1]))),n):n}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&$e(e.affectedFilesPendingEmit,(e=>h(ot(e)?e:e[0])),(e=>AV(e,n))),latestChangedDtsFile:p,emitSignatures:(null==t?void 0:t.size)?t:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:l,getProgram:gt,getProgramOrUndefined:_t,releaseProgram:ct,getCompilerOptions:()=>l.compilerOptions,getSourceFile:gt,getSourceFiles:gt,getOptionsDiagnostics:gt,getGlobalDiagnostics:gt,getConfigFileParsingDiagnostics:gt,getSyntacticDiagnostics:gt,getDeclarationDiagnostics:gt,getSemanticDiagnostics:gt,emit:gt,getAllDependencies:gt,getCurrentDirectory:gt,emitNextAffectedFile:gt,getSemanticDiagnosticsOfNextAffectedFile:gt,emitBuildInfo:gt,close:ct,hasChangedEmitSignature:lt};function g(e){return Ho(e,s)}function h(e){return _[e-1]}function y(e){const t=new Map(U(f.keys(),(e=>m.has(e)?void 0:[e,u])));return null==e||e.forEach((e=>{ot(e)?t.delete(h(e)):t.set(h(e[0]),e[1])})),t}function v(e){return e&&$e(e,(e=>h(e[0])),(e=>e[1]))}}function LV(e,t,n){const r=Ro(Ho(t,n.getCurrentDirectory())),i=Xt(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach(((t,n)=>{const s=Xo(e.fileNames[n],r,i),c=it(t)?t:t.version;if(o.set(s,c),aXo(e,i,o)))}function jV(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:gt,getCurrentDirectory:()=>n().getCurrentDirectory(),close:ct};function n(){return gn.checkDefined(e.program)}}function MV(e,t,n,r,i,o){return FV(0,DV(e,t,n,r,i,o))}function BV(e,t,n,r,i,o){return FV(1,DV(e,t,n,r,i,o))}function JV(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=DV(e,t,n,r,i,o);return jV({program:a,compilerOptions:a.getCompilerOptions()},s)}function zV(e){return $t(e,"/node_modules/.staging")?qt(e,"/.staging"):X(oo,(t=>e.includes(t)))?void 0:e}function $V(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-z]:/i);if(e[0]!==yo&&!r&&0===e[1].search(/[a-z]\$$/i)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function qV(e,t){return void 0===t&&(t=e.length),!(t<=2)&&t>$V(e,t)+1}function UV(e){return qV(Jo(e))}function VV(e){return HV(Ro(e))}function WV(e,t){if(t.lengthi.length+1?QV(l,c,Math.max(i.length+1,u+1),d):{dir:n,dirPath:r,nonRecursive:!0}:XV(l,c,c.length-1,u,_,i,d,s)}function XV(e,t,n,r,i,o,a,s){if(-1!==i)return QV(e,t,i+1,a);let c=!0,l=n;if(!s)for(let e=0;e=n&&r+2function(e,t,n,r,i,o,a){const s=eW(e),c=Oj(n,r,i,s,t,o,a);if(!e.getGlobalTypingsCacheLocation)return c;const l=e.getGlobalTypingsCacheLocation();if(!(void 0===l||As(n)||c.resolvedModule&&iT(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:u}=RM(gn.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=nj(c.failedLookupLocations,o),c.affectingLocations=nj(c.affectingLocations,a),c.resolutionDiagnostics=nj(c.resolutionDiagnostics,u),c}return c}(r,i,o,e,n,t,a)}}function nW(e,t,n){let r,i,o;const a=new Set,s=new Set,c=new Set,l=new Map,_=new Map;let d,p,f,m,g,y=!1,v=!1;const b=ht((()=>e.getCurrentDirectory())),x=e.getCachedDirectoryStructureHost(),S=new Map,k=Fj(b(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=Nj(b(),e.getCanonicalFileName,e.getCompilationSettings(),k.getPackageJsonInfoCache(),k.optionsToRedirectsKey),D=new Map,w=Fj(b(),e.getCanonicalFileName,Pj(e.getCompilationSettings()),k.getPackageJsonInfoCache()),E=new Map,F=new Map,N=ZV(t,b),P=e.toPath(N),A=Jo(P),I=qV(A),O=new Map,L=new Map,R=new Map,j=new Map;return{rootDirForResolution:t,resolvedModuleNames:S,resolvedTypeReferenceDirectives:T,resolvedLibraries:D,resolvedFileToResolution:l,resolutionsWithFailedLookups:s,resolutionsWithOnlyAffectingLocations:c,directoryWatchesOfFailedLookups:E,fileWatchesOfAffectingLocations:F,packageDirWatchers:L,dirPathToSymlinkPackageRefCount:R,watchFailedLookupLocationsOfExternalModuleResolutions:U,getModuleResolutionCache:()=>k,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){k.isReadonly=void 0,C.isReadonly=void 0,w.isReadonly=void 0,k.getPackageJsonInfoCache().isReadonly=void 0,k.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),w.clearAllExceptPackageJsonInfoCache(),K(),O.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,v=!1,K(),t!==n&&(function(t){D.forEach(((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(ee(n,e.toPath(SU(e.getCompilationSettings(),b(),r)),gd),D.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t;const n=(null==(t=e.packageJsonLocations)?void 0:t.length)??0,r=_.get(e.resolvedPath)??u;for(let t=r.length;tn)for(let e=n;e{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach((e=>F.get(e).files--)),_.delete(n))}))),E.forEach(J),F.forEach(z),L.forEach(B),y=!1,k.isReadonly=!0,C.isReadonly=!0,w.isReadonly=!0,k.getPackageJsonInfoCache().isReadonly=!0,O.clear()},resolveModuleNameLiterals:function(t,r,i,o,a,s){return $({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:S,loader:tW(r,i,o,e,k),getResolutionWithResolvedFileName:gd,shouldRetryResolution:e=>!e.resolvedModule||!oT(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return $({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:hU(n,r,i,eW(e),C),getResolutionWithResolvedFileName:hd,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=eW(e);let a=null==D?void 0:D.get(i);if(!a||a.isInvalidated){const s=a;a=Aj(t,n,r,o,w);const c=e.toPath(n);U(t,a,c,gd,!1),D.set(i,a),s&&ee(s,c,gd)}else if(HR(r,o)){const e=gd(a);WR(o,(null==e?void 0:e.resolvedFileName)?e.packageId?ha.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ha.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ha.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&xd(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=S.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,k),l=eW(e),u=Oj(t,n,e.getCompilationSettings(),l,k);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,k,t,n,u,c),u},removeResolutionsFromProjectReferenceRedirects:function(t){if(!No(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach((t=>ie(e.toPath(t))))},removeResolutionsOfFile:ie,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:function(t){ie(t);const n=y;oe(l.get(t),ut)&&y&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ce,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){gn.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){ce();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||v||!!(null==n?void 0:n.has(t))||M(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==D?void 0:D.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:M,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void de();const n=cj(t,{getCurrentDirectory:b});n?xx(j,new Set(n),{createNewValue:pe,onDeleteValue:ux}):de()},closeTypeRootsWatch:de,clear:function(){vx(E,Iq),vx(F,Iq),O.clear(),L.clear(),R.clear(),a.clear(),de(),S.clear(),T.clear(),l.clear(),s.clear(),c.clear(),f=void 0,m=void 0,g=void 0,p=void 0,d=void 0,v=!1,k.clear(),C.clear(),k.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),w.clear(),_.clear(),D.clear(),y=!1},onChangesAffectModuleResolution:function(){v=!0,k.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),k.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function M(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function B(e,t){0===e.dirPathToWatcher.size&&L.delete(t)}function J(e,t){0===e.refCount&&(E.delete(t),e.watcher.close())}function z(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(F.delete(t),e.watcher.close())}function $({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:u,deferWatchingNonRelativeResolution:_,shouldRetryResolution:d,logChanges:p}){const f=e.toPath(n),m=s.get(f)||s.set(f,Tj()).get(f),g=[],h=p&&M(f),y=e.getCurrentProgram(),b=y&&y.getResolvedProjectReferenceToRedirect(n),x=b?!o||o.sourceFile.path!==b.sourceFile.path:!!o,k=Tj();for(const c of t){const t=l.nameAndMode.getName(c),y=l.nameAndMode.getMode(c,i,(null==o?void 0:o.commandLine.options)||a);let b=m.get(t,y);if(!k.has(t,y)&&(v||x||!b||b.isInvalidated||h&&!As(t)&&d(b))){const n=b;b=l.resolve(t,y),e.onDiscoveredSymlink&&rW(b)&&e.onDiscoveredSymlink(),m.set(t,y,b),b!==n&&(U(t,b,f,u,_),n&&ee(n,f,u)),p&&r&&!T(n,b)&&(r.push(f),p=!1)}else{const r=eW(e);if(HR(a,r)&&!k.has(t,y)){const e=u(b);WR(r,s===S?(null==e?void 0:e.resolvedFileName)?e.packageId?ha.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ha.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ha.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?ha.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ha.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ha.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&xd(e.packageId))}}gn.assert(void 0!==b&&!b.isInvalidated),k.set(t,y,!0),g.push(b)}return null==c||c.forEach((e=>k.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0))),m.size()!==k.size()&&m.forEach(((e,t,n)=>{k.has(t,n)||(ee(e,f,u),m.delete(t,n))})),g;function T(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=u(e),r=u(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function q(e){return $t(e,"/node_modules/@types")}function U(t,n,r,i,o){if((n.files??(n.files=new Set)).add(r),1!==n.files.size)return;!o||As(t)?W(n):a.add(n);const s=i(n);if(s&&s.resolvedFileName){const t=e.toPath(s.resolvedFileName);let r=l.get(t);r||l.set(t,r=new Set),r.add(n)}}function V(t,n){const r=KV(t,e.toPath(t),N,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dir:e,dirPath:t,nonRecursive:i,packageDir:o,packageDirPath:a}=r;t===P?(gn.assert(i),gn.assert(!o),n=!0):Q(e,t,o,a,i)}return n}function W(e){var t;gn.assert(!!(null==(t=e.files)?void 0:t.size));const{failedLookupLocations:n,affectingLocations:r,alternateResult:i}=e;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length)&&!i)return;((null==n?void 0:n.length)||i)&&s.add(e);let o=!1;if(n)for(const e of n)o=V(e,o);i&&(o=V(i,o)),o&&Q(N,P,void 0,void 0,!0),function(e,t){var n;gn.assert(!!(null==(n=e.files)?void 0:n.size));const{affectingLocations:r}=e;if(null==r?void 0:r.length){t&&c.add(e);for(const e of r)H(e,!0)}}(e,!(null==n?void 0:n.length)&&!i)}function H(t,n){const r=F.get(t);if(r)return void(n?r.resolutions++:r.files++);let i,o=t,a=!1;e.realpath&&(o=e.realpath(t),t!==o&&(a=!0,i=F.get(o)));const s=n?1:0,c=n?0:1;if(!a||!i){const t={watcher:GV(e.toPath(o))?e.watchAffectingFileLocation(o,((t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(o),n),G(o,k.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):CW,resolutions:a?0:s,files:a?0:c,symlinks:void 0};F.set(o,t),a&&(i=t)}if(a){gn.assert(!!i);const e={watcher:{close:()=>{var e;const n=F.get(o);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(F.delete(o),n.watcher.close())}},resolutions:s,files:c,symlinks:void 0};F.set(t,e),(i.symlinks??(i.symlinks=new Set)).add(t)}}function G(t,n){var r;const i=F.get(t);(null==i?void 0:i.resolutions)&&(p??(p=new Set)).add(t),(null==i?void 0:i.files)&&(d??(d=new Set)).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach((e=>G(e,n))),null==n||n.delete(e.toPath(t))}function K(){a.forEach(W),a.clear()}function Q(t,n,r,i,o){i&&e.realpath?function(t,n,r,i,o){gn.assert(!o);let a=O.get(i),s=L.get(i);if(void 0===a){const t=e.realpath(r);a=t!==r&&e.toPath(t)!==i,O.set(i,a),s?s.isSymlink!==a&&(s.dirPathToWatcher.forEach((e=>{te(s.isSymlink?i:n),e.watcher=l()})),s.isSymlink=a):L.set(i,s={dirPathToWatcher:new Map,isSymlink:a})}else gn.assertIsDefined(s),gn.assert(a===s.isSymlink);const c=s.dirPathToWatcher.get(n);function l(){return a?Y(r,i,o):Y(t,n,o)}c?c.refCount++:(s.dirPathToWatcher.set(n,{watcher:l(),refCount:1}),a&&R.set(n,(R.get(n)??0)+1))}(t,n,r,i,o):Y(t,n,o)}function Y(e,t,n){let r=E.get(t);return r?(gn.assert(!!n==!!r.nonRecursive),r.refCount++):E.set(t,r={watcher:ne(e,t,n),refCount:1,nonRecursive:n}),r}function Z(t,n){const r=KV(t,e.toPath(t),N,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dirPath:t,packageDirPath:i}=r;if(t===P)n=!0;else if(i&&e.realpath){const e=L.get(i),n=e.dirPathToWatcher.get(t);if(n.refCount--,0===n.refCount&&(te(e.isSymlink?i:t),e.dirPathToWatcher.delete(t),e.isSymlink)){const e=R.get(t)-1;0===e?R.delete(t):R.set(t,e)}}else te(t)}return n}function ee(t,n,r){if(gn.checkDefined(t.files).delete(n),t.files.size)return;t.files=void 0;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=l.get(n);(null==r?void 0:r.delete(t))&&!r.size&&l.delete(n)}const{failedLookupLocations:o,affectingLocations:a,alternateResult:u}=t;if(s.delete(t)){let e=!1;if(o)for(const t of o)e=Z(t,e);u&&(e=Z(u,e)),e&&te(P)}else(null==a?void 0:a.length)&&c.delete(t);if(a)for(const e of a)F.get(e).resolutions--}function te(e){E.get(e).refCount--}function ne(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),ae(r,n===r)}),r?0:1)}function re(e,t,n){const r=e.get(t);r&&(r.forEach((e=>ee(e,t,n))),e.delete(t))}function ie(e){re(S,e,gd),re(T,e,hd)}function oe(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of gn.checkDefined(e.files))(i??(i=new Set)).add(t),y=y||$t(t,xU)}})),n}function ae(t,n){if(n)(g||(g=new Set)).add(t);else{const n=zV(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Ro(t);if(q(t)||ma(t)||q(r)||ma(r))(f||(f=new Set)).add(t),(m||(m=new Set)).add(t);else{if(Fq(e.getCurrentProgram(),t))return!1;if(No(t,".map"))return!1;(f||(f=new Set)).add(t),(m||(m=new Set)).add(t);const n=Gj(t,!0);n&&(m||(m=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function se(){const e=k.getPackageJsonInfoCache().getInternalMap();e&&(f||m||g)&&e.forEach(((t,n)=>ue(n)?e.delete(n):void 0))}function ce(){var t;if(v)return d=void 0,se(),(f||m||g||p)&&oe(D,le),f=void 0,m=void 0,g=void 0,p=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{X(e.packageJsonLocations,(e=>d.has(e)))&&((i??(i=new Set)).add(e.path),n=!0)})),d=void 0),f||m||g||p?(n=oe(s,le)||n,se(),f=void 0,m=void 0,g=void 0,n=oe(c,_e)||n,p=void 0,n):n}function le(t){var n;return!!_e(t)||!!(f||m||g)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>ue(e.toPath(t)))))||!!t.alternateResult&&ue(e.toPath(t.alternateResult)))}function ue(e){return(null==f?void 0:f.has(e))||h((null==m?void 0:m.keys())||[],(t=>!!en(e,t)||void 0))||h((null==g?void 0:g.keys())||[],(t=>!(!(e.length>t.length&&en(e,t))||!Co(t)&&e[t.length]!==yo)||void 0))}function _e(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some((e=>p.has(e))))}function de(){vx(j,ux)}function pe(t){return function(t){return!!e.getCompilationSettings().typeRoots||VV(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,(n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const i=YV(t,e.toPath(t),P,A,I,b,e.preferNonRecursiveWatch,(e=>E.has(e)||R.has(e)));i&&ae(r,i===r)}),1):CW}}function rW(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var iW=go?{getCurrentDirectory:()=>go.getCurrentDirectory(),getNewLine:()=>go.newLine,getCanonicalFileName:Xt(go.useCaseSensitiveFileNames)}:void 0;function oW(e,t){const n=e===go&&iW?iW:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Xt(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(Uq(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(nU(r,n)+n.getNewLine()),r[0]=void 0}}function aW(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!E(sW,t.code)||(e.clearScreen(),0))}var sW=[ha.Starting_compilation_in_watch_mode.code,ha.File_change_detected_Starting_incremental_compilation.code];function cW(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function lW(e,t){return t?(t,n,r)=>{aW(e,t,r);let i=`[${Zq(cW(e),"")}] `;i+=`${rU(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";aW(e,t,r)||(i+=n),i+=`${cW(e)} - `,i+=`${rU(t.messageText,e.newLine)}${function(e,t){return E(sW,e.code)?t+t:t}(t,n)}`,e.write(i)}}function uW(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>LW(i,o,e);const s=lL(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function _W(e){return N(e,(e=>1===e.category))}function dW(e){return P(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=T(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=Ga(n.file,n.start);return{fileName:t,line:e+1}}}))}function pW(e){return 1===e?ha.Found_1_error_Watching_for_file_changes:ha.Found_0_errors_Watching_for_file_changes}function fW(e,t){const n=Zq(":"+e.line,"");return Do(e.fileName)&&Do(t)?ua(t,e.fileName,!1)+n:e.fileName+n}function mW(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&fW(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[ha.Found_1_error_in_0,a]:[ha.Found_1_error]:0===o.length?[ha.Found_0_errors,e]:1===o.length?[ha.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[ha.Found_0_errors_in_1_files,e,o.length];const c=oS(...s),l=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,N(e,(e=>e.fileName===t.fileName))])),o=Dt(i,0,(e=>e[1])),a=ha.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let u="";return u+=" ".repeat(l)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=i_a(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${SW(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(` ${xW(e,n,o).messageText}`))),null==(r=yW(a,e.getCompilerOptionsForFile(a),o))||r.forEach((e=>t(` ${e.messageText}`)))}function yW(e,t,n){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(sS(void 0,ha.File_is_output_of_project_reference_source_0,SW(e.originalFileName,n))),e.redirectInfo&&(i??(i=[])).push(sS(void 0,ha.File_redirects_to_file_0,SW(e.redirectInfo.redirectTarget,n))),af(e))switch(jU(e,t)){case 99:e.packageJsonScope&&(i??(i=[])).push(sS(void 0,ha.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,SW(Te(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(i??(i=[])).push(sS(void 0,e.packageJsonScope.contents.packageJsonContent.type?ha.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:ha.File_is_CommonJS_module_because_0_does_not_have_field_type,SW(Te(e.packageJsonLocations),n))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(i??(i=[])).push(sS(void 0,ha.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function vW(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Ro(Ho(r.fileName,e.getCurrentDirectory())),a=D(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(Ho(t,o))===i));return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function bW(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=No(t,".json"),a=Ro(Ho(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),c=D(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!$t(e,".json"))return!1;const n=vk(e,a,"files");return!!n&&kk(`(${n})$`,s).test(t)}));return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function xW(e,t,n){var r,i;const o=e.getCompilerOptions();if(DU(t)){const r=EU(e,t),i=wU(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(gn.assert(wU(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=wU(r)?r.packageId?ha.Imported_via_0_from_file_1_with_packageId_2:ha.Imported_via_0_from_file_1:r.text===X_?r.packageId?ha.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:ha.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?ha.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:ha.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:gn.assert(!r.packageId),o=ha.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?ha.Type_library_referenced_via_0_from_file_1_with_packageId_2:ha.Type_library_referenced_via_0_from_file_1;break;case 7:gn.assert(!r.packageId),o=ha.Library_referenced_via_0_from_file_1;break;default:gn.assertNever(t)}return sS(void 0,o,i,SW(r.file,n),r.packageId&&xd(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return sS(void 0,ha.Root_file_specified_for_compilation);const a=Ho(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(vW(e,a))return sS(void 0,ha.Part_of_files_list_in_tsconfig_json);const s=bW(e,a);return it(s)?sS(void 0,ha.Matched_by_include_pattern_0_in_1,s,SW(o.configFile,n)):sS(void 0,s?ha.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:ha.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=gn.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return sS(void 0,o.outFile?c?ha.Output_from_referenced_project_0_included_because_1_specified:ha.Source_from_referenced_project_0_included_because_1_specified:c?ha.Output_from_referenced_project_0_included_because_module_is_specified_as_none:ha.Source_from_referenced_project_0_included_because_module_is_specified_as_none,SW(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return sS(void 0,...o.types?t.packageId?[ha.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,xd(t.packageId)]:[ha.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[ha.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,xd(t.packageId)]:[ha.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return sS(void 0,ha.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=GS(DS(o));return sS(void 0,...e?[ha.Default_library_for_target_0,e]:[ha.Default_library])}default:gn.assertNever(t)}}function SW(e,t){const n=it(e)?e:e.fileName;return t?t(n):n}function kW(e,t,n,r,i,o,a,s){const c=e.getCompilerOptions(),l=e.getConfigFileParsingDiagnostics().slice(),_=l.length;de(l,e.getSyntacticDiagnostics(void 0,o)),l.length===_&&(de(l,e.getOptionsDiagnostics(o)),c.listFilesOnly||(de(l,e.getGlobalDiagnostics(o)),l.length===_&&de(l,e.getSemanticDiagnostics(void 0,o)),c.noEmit&&RS(c)&&l.length===_&&de(l,e.getDeclarationDiagnostics(void 0,o))));const d=c.listFilesOnly?{emitSkipped:!0,diagnostics:u}:e.emit(void 0,i,o,a,s);de(l,d.diagnostics);const p=Is(l);if(p.forEach(t),n){const t=e.getCurrentDirectory();f(d.emittedFiles,(e=>{const r=Ho(e,t);n(`TSFILE: ${r}`)})),function(e,t){const n=e.getCompilerOptions();n.explainFiles?hW(gW(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&f(e.getSourceFiles(),(e=>{t(e.fileName)}))}(e,n)}return r&&r(_W(p),dW(p)),{emitResult:d,diagnostics:p}}function TW(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=kW(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var CW={close:ct},DW=()=>CW;function wW(e=go,t){return{onWatchStatusChange:t||lW(e),watchFile:Xe(e,e.watchFile)||DW,watchDirectory:Xe(e,e.watchDirectory)||DW,setTimeout:Xe(e,e.setTimeout)||ct,clearTimeout:Xe(e,e.clearTimeout)||ct,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var EW={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function FW(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):ct,i=Pq(e,n,r);return i.writeLog=r,i}function NW(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:Mq(((t,n)=>n?e.readFile(t,n):i.readFile(t)),void 0),getDefaultLibLocation:Xe(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:Bq(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:ht((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:Xt(r),getNewLine:()=>Bb(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:Xe(e,e.trace),directoryExists:Xe(n,n.directoryExists),getDirectories:Xe(n,n.getDirectories),realpath:Xe(e,e.realpath),getEnvironmentVariable:Xe(e,e.getEnvironmentVariable)||(()=>""),createHash:Xe(e,e.createHash),readDirectory:Xe(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function PW(e,t){if(t.match(xJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!Qa(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(SJ)){t=t.substring(0,n);break}if(!o.match(kJ))break;e=n}}return(e.createHash||qi)(t)}function AW(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=PW(e,r.text)),r}}function IW(e,t){const n=ht((()=>Ro(Go(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:ht((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>Uo(n(),Ls(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:Xe(e,e.realpath),getEnvironmentVariable:Xe(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:Xe(e,e.createHash),createProgram:t||BV,storeSignatureInfo:e.storeSignatureInfo,now:Xe(e,e.now)}}function OW(e=go,t,n,r){const i=t=>e.write(t+e.newLine),o=IW(e,t);return Ke(o,wW(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=Bb(t);kW(e,n,i,(e=>o.onWatchStatusChange(oS(pW(e),e),r,t,e)))},o}function LW(e,t,n){t(n),e.exit(1)}function RW({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||oW(i),l=OW(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>LW(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function jW({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=OW(i,o,a||oW(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function MW(e){const t=e.system||go,n=e.host||(e.host=JW(e.options,t)),r=zW(e),i=TW(r,e.reportDiagnostic||oW(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(mW(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function BW(e,t){const n=U$(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{const e=t.readFile(n);if(!e)return;r=_q(n,e)}return r&&r.version===c&&xV(r)?OV(r,n,t):void 0}function JW(e,t=go){const n=Jq(e,void 0,t);return n.createHash=Xe(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,AW(n),zq(n,(e=>Xo(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function zW({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||BV)(e,t,i=i||JW(t),BW(t,i),n,r)}function $W(e,t,n,r,i,o,a,s){return nt(e)?jW({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):RW({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function qW(e){let t,n,r,i,o,a,s,c,l=new Map([[void 0,void 0]]),u=e.extendedConfigCache,_=!1;const d=new Map;let p,f=!1;const m=e.useCaseSensitiveFileNames(),g=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:y={},watchOptionsToExtend:v,extraFileExtensions:b,createProgram:x}=e;let S,k,{rootFiles:T,options:C,watchOptions:D,projectReferences:w}=e,E=!1,F=!1;const N=void 0===h?void 0:xq(e,g,m),P=N||e,A=$U(e,P);let I=K();h&&e.configFileParsingResult&&(ce(e.configFileParsingResult),I=K()),ee(ha.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(I=Bb(y),gn.assert(!T),se(),I=K()),gn.assert(C),gn.assert(T);const{watchFile:O,watchDirectory:L,writeLog:R}=FW(e,C),j=Xt(m);let M;R(`Current directory: ${g} CaseSensitiveFileNames: ${m}`),h&&(M=O(h,(function(){gn.assert(!!h),n=2,ie()}),2e3,D,EW.ConfigFile));const B=NW(e,(()=>C),P);AW(B);const J=B.getSourceFile;B.getSourceFile=(e,...t)=>Y(e,X(e),...t),B.getSourceFileByPath=Y,B.getNewLine=()=>I,B.fileExists=function(e){const t=X(e);return!Q(d.get(t))&&P.fileExists(e)},B.onReleaseOldSourceFile=function(e,t,n){const r=d.get(e.resolvedPath);void 0!==r&&(Q(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),d.delete(e.resolvedPath),n||z.removeResolutionsOfFile(e.path)))},B.onReleaseParsedCommandLine=function(e){var t;const n=X(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&vx(r.watchedDirectories,Iq),null==(t=r.watcher)||t.close(),Tq(n,c))},B.toPath=X,B.getCompilationSettings=()=>C,B.useSourceOfProjectReferenceRedirect=Xe(e,e.useSourceOfProjectReferenceRedirect),B.preferNonRecursiveWatch=e.preferNonRecursiveWatch,B.watchDirectoryOfFailedLookupLocation=(e,t,n)=>L(e,t,n,D,EW.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>O(e,t,2e3,D,EW.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>L(e,t,n,D,EW.TypeRoots),B.getCachedDirectoryStructureHost=()=>N,B.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();const t=ne();R("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(re,250,"timerToInvalidateFailedLookupResolutions")},B.onInvalidatedResolution=ie,B.onChangedAutomaticTypeDirectiveNames=ie,B.fileIsOpen=lt,B.getCurrentProgram=H,B.writeLog=R,B.getParsedCommandLine=le;const z=nW(B,h?Ro(Ho(h,g)):g,!1);B.resolveModuleNameLiterals=Xe(e,e.resolveModuleNameLiterals),B.resolveModuleNames=Xe(e,e.resolveModuleNames),B.resolveModuleNameLiterals||B.resolveModuleNames||(B.resolveModuleNameLiterals=z.resolveModuleNameLiterals.bind(z)),B.resolveTypeReferenceDirectiveReferences=Xe(e,e.resolveTypeReferenceDirectiveReferences),B.resolveTypeReferenceDirectives=Xe(e,e.resolveTypeReferenceDirectives),B.resolveTypeReferenceDirectiveReferences||B.resolveTypeReferenceDirectives||(B.resolveTypeReferenceDirectiveReferences=z.resolveTypeReferenceDirectiveReferences.bind(z)),B.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):z.resolveLibrary.bind(z),B.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Xe(e,e.getModuleResolutionCache):()=>z.getModuleResolutionCache();const $=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?Xe(e,e.hasInvalidatedResolutions)||ut:lt,q=e.resolveLibrary?Xe(e,e.hasInvalidatedLibResolutions)||ut:lt;return t=BW(C,B),G(),h?{getCurrentProgram:W,getProgram:ae,close:U,getResolutionCache:V}:{getCurrentProgram:W,getProgram:ae,updateRootFileNames:function(e){gn.assert(!h,"Cannot update root file names with config file watch mode"),T=e,ie()},close:U,getResolutionCache:V};function U(){ne(),z.clear(),vx(d,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),M&&(M.close(),M=void 0),null==u||u.clear(),u=void 0,c&&(vx(c,Iq),c=void 0),i&&(vx(i,Iq),i=void 0),r&&(vx(r,ux),r=void 0),s&&(vx(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&vx(e.watchedDirectories,Iq),e.watchedDirectories=void 0})),s=void 0),t=void 0}function V(){return z}function W(){return t}function H(){return t&&t.getProgramOrUndefined()}function G(){R("Synchronizing program"),gn.assert(C),gn.assert(T),ne();const n=W();f&&(I=K(),n&&od(n.getCompilerOptions(),C)&&z.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:a}=z.createHasInvalidatedResolutions($,q),{originalReadFile:c,originalFileExists:u,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:E}=zq(B,X);return FU(H(),T,C,(e=>function(e,t){const n=d.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?PW(B,r):void 0}(e,E)),(e=>B.fileExists(e)),o,a,te,le,w)?F&&(_&&ee(ha.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,B,t,k,w),F=!1):(_&&ee(ha.File_change_detected_Starting_incremental_compilation),function(e,n){R("CreatingProgramWith::"),R(` roots: ${JSON.stringify(T)}`),R(` options: ${JSON.stringify(C)}`),w&&R(` projectReferences: ${JSON.stringify(w)}`);const i=f||!H();f=!1,F=!1,z.startCachingPerDirectoryResolution(),B.hasInvalidatedResolutions=e,B.hasInvalidatedLibResolutions=n,B.hasChangedAutomaticTypeDirectiveNames=te;const o=H();if(t=x(T,C,B,t,k,w),z.finishCachingPerDirectoryResolution(t.getProgram(),o),Dq(t.getProgram(),r||(r=new Map),pe),i&&z.updateTypeRootsWatch(),p){for(const e of p)r.has(e)||d.delete(e);p=void 0}}(o,a)),_=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),B.readFile=c,B.fileExists=u,B.directoryExists=y,B.createDirectory=v,B.writeFile=b,null==l||l.forEach(((e,t)=>{if(t){const n=null==s?void 0:s.get(t);n&&function(e,t,n){var r,i,o,a;n.watcher||(n.watcher=O(e,((n,r)=>{de(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(t),ie()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||D,EW.ConfigFileOfReferencedProject)),wq(n.watchedDirectories||(n.watchedDirectories=new Map),null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories,((r,i)=>{var o;return L(r,(n=>{const i=X(n);N&&N.addOrDeleteFileOrDirectory(n,i),Z(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(Eq({watchedDirPath:X(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:R,toPath:X})||2!==o.updateLevel&&(o.updateLevel=1,ie()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||D,EW.WildcardDirectoryOfReferencedProject)})),ge(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||D,EW.ExtendedConfigOfReferencedProject)}(e,t,n)}else wq(i||(i=new Map),S,me),h&&ge(X(h),C,D,EW.ExtendedConfigFile)})),l=void 0,t}function K(){return Bb(C||y)}function X(e){return Xo(e,g,j)}function Q(e){return"boolean"==typeof e}function Y(e,t,n,r,i){const o=d.get(t);if(Q(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=J(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=ue(t,e,_e,250,D,EW.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),d.set(t,!1));else if(i){const n=ue(t,e,_e,250,D,EW.SourceFile);d.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else d.set(t,!1);return i}return o.sourceFile}function Z(e){const t=d.get(e);void 0!==t&&(Q(t)?d.set(e,{version:!1}):t.version=!1)}function ee(t){e.onWatchStatusChange&&e.onWatchStatusChange(oS(t),I,C||y)}function te(){return z.hasChangedAutomaticTypeDirectiveNames()}function ne(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function re(){a=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ie()}function ie(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),R("Scheduling update"),o=e.setTimeout(oe,250,"timerToUpdateProgram"))}function oe(){o=void 0,_=!0,ae()}function ae(){switch(n){case 1:R("Reloading new file names and options"),gn.assert(C),gn.assert(h),n=0,T=PR(C.configFile.configFileSpecs,Ho(Ro(h),g),C,A,b),dR(T,Ho(h,g),C.configFile.configFileSpecs,k,E)&&(F=!0),G();break;case 2:gn.assert(h),R(`Reloading config file: ${h}`),n=0,N&&N.clearCache(),se(),f=!0,(l??(l=new Map)).set(void 0,void 0),G();break;default:G()}return W()}function se(){gn.assert(h),ce(lL(h,y,A,u||(u=new Map),v,b))}function ce(e){T=e.fileNames,C=e.options,D=e.watchOptions,w=e.projectReferences,S=e.wildcardDirectories,k=NU(e).slice(),E=_R(e.raw),F=!0}function le(t){const n=X(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){R("Reloading new file names and options"),gn.assert(C);const e=PR(r.parsedCommandLine.options.configFile.configFileSpecs,Ho(Ro(t),g),C,A);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}R(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=A.onUnRecoverableConfigFileDiagnostic;A.onUnRecoverableConfigFileDiagnostic=ct;const n=lL(e,void 0,A,u||(u=new Map),v);return A.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),(l??(l=new Map)).set(n,t),i}function ue(e,t,n,r,i,o){return O(t,((t,r)=>n(t,r,e)),r,i,o)}function _e(e,t,n){de(e,n,t),2===t&&d.has(n)&&z.invalidateResolutionOfFile(n),Z(n),ie()}function de(e,t,n){N&&N.addOrDeleteFile(e,t,n)}function pe(e,t){return(null==s?void 0:s.has(e))?CW:ue(e,t,fe,500,D,EW.MissingFile)}function fe(e,t,n){de(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Z(n),ie())}function me(e,t){return L(e,(t=>{gn.assert(h),gn.assert(C);const r=X(t);N&&N.addOrDeleteFileOrDirectory(t,r),Z(r),Eq({watchedDirPath:X(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:b,options:C,program:W()||T,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:R,toPath:X})||2!==n&&(n=1,ie())}),t,D,EW.WildcardDirectory)}function ge(e,t,r,i){kq(e,t,c||(c=new Map),((e,t)=>O(e,((r,i)=>{var o;de(e,t,i),u&&Cq(u,t,X);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(h&&X(h)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(e)}ie()}))}),2e3,r,i)),X)}}var UW=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(UW||{});function VW(e){return No(e,".json")?e:Uo(e,"tsconfig.json")}var WW=new Date(-864e13);function HW(e,t){return function(e,t,n){const r=e.get(t);let i;return r||(i=n(),e.set(t,i)),r||i}(e,t,(()=>new Map))}function GW(e){return e.now?e.now():new Date}function KW(e){return!!e&&!!e.buildOrder}function XW(e){return KW(e)?e.buildOrder:e}function QW(e,t){return n=>{let r=t?`[${Zq(cW(e),"")}] `:`${cW(e)} - `;r+=`${rU(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function YW(e,t,n,r){const i=IW(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):_t,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):ct,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):ct,i.reportDiagnostic=n||oW(e),i.reportSolutionBuilderStatus=r||QW(e),i.now=Xe(e,e.now),i}function ZW(e=go,t,n,r,i){const o=YW(e,t,n,r);return o.reportErrorSummary=i,o}function eH(e=go,t,n,r,i){const o=YW(e,t,n,r);return Ke(o,wW(e,i)),o}function tH(e,t,n){return GH(!1,e,t,n)}function nH(e,t,n,r){return GH(!0,e,t,n,r)}function rH(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return kO.forEach((n=>{Ie(e,n.name)&&(t[n.name]=e[n.name])})),t.tscBuild=!0,t}(r),c=NW(o,(()=>m.projectCompilerOptions));let l,u,_;AW(c),c.getParsedCommandLine=e=>cH(m,e,oH(m,e)),c.resolveModuleNameLiterals=Xe(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=Xe(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=Xe(o,o.resolveLibrary),c.resolveModuleNames=Xe(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=Xe(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=Xe(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=Fj(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>yU(e,t,n,r,i,o,l,fU),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(u=Nj(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>yU(e,t,n,r,i,o,u,hU)),c.resolveLibrary||(_=Fj(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>Aj(e,t,n,o,_)),c.getBuildInfo=(e,t)=>FH(m,e,oH(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=FW(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:$U(o),write:Xe(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:u,libraryResolutionCache:_,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:p,writeLog:f};return m}function iH(e,t){return Xo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function oH(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=iH(e,t);return n.set(t,i),i}function aH(e){return!!e.options}function sH(e,t){const n=e.configFileCache.get(t);return n&&aH(n)?n:void 0}function cH(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return aH(i)?i:void 0;let o;ar("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:u}=e;let _;return u.getParsedCommandLine?(_=u.getParsedCommandLine(t),_||(o=oS(ha.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,_=lL(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=ct),r.set(n,_||o),ar("SolutionBuilder::afterConfigFileParsing"),sr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),_}function lH(e,t){return VW(Vo(e.compilerHost.getCurrentDirectory(),t))}function uH(e,t){const n=new Map,r=new Map,i=[];let o,a;for(const e of t)s(e);return a?{buildOrder:o||u,circularDiagnostics:a}:o||u;function s(t,c){const l=oH(e,t);if(r.has(l))return;if(n.has(l))return void(c||(a||(a=[])).push(oS(ha.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const u=cH(e,t,l);if(u&&u.projectReferences)for(const t of u.projectReferences)s(lH(e,t.path),c||t.circular);i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function _H(e){return e.buildOrder||function(e){const t=uH(e,e.rootNames.map((t=>lH(e,t))));e.resolvedConfigFilePaths.clear();const n=new Set(XW(t).map((t=>oH(e,t)))),r={onDeleteValue:ct};return bx(e.configFileCache,n,r),bx(e.projectStatus,n,r),bx(e.builderPrograms,n,r),bx(e.diagnostics,n,r),bx(e.projectPendingBuild,n,r),bx(e.projectErrorsReported,n,r),bx(e.buildInfoCache,n,r),bx(e.outputTimeStamps,n,r),bx(e.lastCachedPackageJsonLookups,n,r),e.watch&&(bx(e.allWatchedConfigFiles,n,{onDeleteValue:ux}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),bx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(Iq)}),bx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(ux)}),bx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(ux)})),e.buildOrder=t}(e)}function dH(e,t,n){const r=t&&lH(e,t),i=_H(e);if(KW(i))return i;if(r){const t=oH(e,r);if(-1===D(i,(n=>oH(e,n)===t)))return}const o=r?uH(e,[r]):i;return gn.assert(!KW(o)),gn.assert(!n||void 0!==r),gn.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function pH(e){e.cache&&fH(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:u,readFileWithCache:_}=zq(n,(t=>iH(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=_,t.getSourceFile=u,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function fH(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function mH(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function gH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(oH(e,t),0))),t&&t.throwIfCancellationRequested())}var yH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(yH||{});function vH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function bH(e,t,n,r,i,o,a){let s,c,l=0;return{kind:0,project:t,projectPath:n,buildOrder:a,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>_(dt),getProgram:()=>_((e=>e.getProgramOrUndefined())),getSourceFile:e=>_((t=>t.getSourceFile(e))),getSourceFiles:()=>d((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>d((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>d((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>d((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>d((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>d((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>d((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>_((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(n,r,i,o,a)=>n||o?_((s=>{var c,l;return s.emit(n,r,i,o,a||(null==(l=(c=e.host).getCustomTransformers)?void 0:l.call(c,t)))})):(m(0,i),f(r,i,a)),done:function(t,r,i){return m(3,t,r,i),ar("SolutionBuilder::Projects built"),vH(e,n)}};function _(e){return m(0),s&&e(s)}function d(e){return _(e)||u}function p(){var r,o,a;if(gn.assert(void 0===s),e.options.dry)return XH(e,ha.A_non_dry_build_would_build_project_0,t),c=1,void(l=2);if(e.options.verbose&&XH(e,ha.Building_project_0,t),0===i.fileNames.length)return ZH(e,n,NU(i)),c=0,void(l=2);const{host:u,compilerHost:_}=e;if(e.projectCompilerOptions=i.options,null==(r=e.moduleResolutionCache)||r.update(i.options),null==(o=e.typeReferenceDirectiveResolutionCache)||o.update(i.options),s=u.createProgram(i.fileNames,i.options,_,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(e.force)return;const o=t.get(r);return o||BW(i.options,n)}(e,n,i),NU(i),i.projectReferences),e.watch){const t=null==(a=e.moduleResolutionCache)?void 0:a.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set(Be(t.values(),(t=>e.host.realpath&&(hj(t)||t.directoryExists)?e.host.realpath(Uo(t.packageDirectory,"package.json")):Uo(t.packageDirectory,"package.json"))))),e.builderPrograms.set(n,s)}l++}function f(r,a,u){var _,d,p;gn.assertIsDefined(s),gn.assert(1===l);const{host:f,compilerHost:m}=e,g=new Map,h=s.getCompilerOptions(),y=MS(h);let v,b;const{emitResult:x,diagnostics:S}=kW(s,(e=>f.reportDiagnostic(e)),e.write,void 0,((t,i,o,a,c,l)=>{var u;const _=iH(e,t);if(g.set(iH(e,t),t),null==l?void 0:l.buildInfo){b||(b=GW(e.host));const r=null==(u=s.hasChangedEmitSignature)?void 0:u.call(s),i=EH(e,t,n);i?(i.buildInfo=l.buildInfo,i.modifiedTime=b,r&&(i.latestChangedDtsTime=b)):e.buildInfoCache.set(n,{path:iH(e,t),buildInfo:l.buildInfo,modifiedTime:b,latestChangedDtsTime:r?b:void 0})}const d=(null==l?void 0:l.differsOnlyInMap)?Gi(e.host,t):void 0;(r||m.writeFile)(t,i,o,a,c,l),(null==l?void 0:l.differsOnlyInMap)?e.host.setModifiedTime(t,d):!y&&e.watch&&(v||(v=wH(e,n))).set(_,b||(b=GW(e.host)))}),a,void 0,u||(null==(d=(_=e.host).getCustomTransformers)?void 0:d.call(_,t)));return h.noEmitOnError&&S.length||!g.size&&8===o.type||IH(e,i,n,ha.Updating_unchanged_output_timestamps_of_project_0,g),e.projectErrorsReported.set(n,!0),c=(null==(p=s.hasChangedEmitSignature)?void 0:p.call(s))?0:2,S.length?(e.diagnostics.set(n,S),e.projectStatus.set(n,{type:0,reason:"it had errors"}),c|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:be(g.values())??sq(i,!f.useCaseSensitiveFileNames())})),function(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}(e,s),l=2,x}function m(o,s,u,_){for(;l<=o&&l<3;){const o=l;switch(l){case 0:p();break;case 1:f(u,s,_);break;case 2:RH(e,t,n,r,i,a,gn.checkDefined(c)),l++}gn.assert(l>o)}}}function xH(e,t,n){if(!e.projectPendingBuild.size)return;if(KW(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;or.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{LH(e,r,n),o=!1},done:()=>(o&&LH(e,r,n),ar("SolutionBuilder::Timestamps only updates"),vH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function kH(e,t,n){const r=xH(e,t,n);return r?SH(e,r,t):r}function TH(e){return!!e.watcher}function CH(e,t){const n=iH(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!TH(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=Gi(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function DH(e,t,n,r,i,o,a){const s=iH(e,t),c=e.filesWatched.get(s);if(c&&TH(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=gn.checkDefined(e.filesWatched.get(s));gn.assert(TH(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=gn.checkDefined(e.filesWatched.get(s));gn.assert(TH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),Iq(t)):Kt(t.callbacks,n)}}}function wH(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function EH(e,t,n){const r=iH(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function FH(e,t,n,r){const i=iH(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?_q(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||Hi}),s}function NH(e,t,n,r){if(nk&&(b=n,k=t),C.add(r)}if(v?(D||(D=LV(v,p,d)),w=ld(D.roots,((e,t)=>C.has(t)?void 0:t))):w=f(RV(y,p,d),(e=>C.has(e)?void 0:e)),w)return{type:10,buildInfoFile:p,inputFile:w};if(!m){const r=oq(t,!d.useCaseSensitiveFileNames()),i=wH(e,n);for(const t of r){if(t===p)continue;const n=iH(e,t);let r=null==i?void 0:i.get(n);if(r||(r=Gi(e.host,t),null==i||i.set(n,r)),r===Hi)return{type:3,missingOutputFileName:t};if(rNH(e,t,x,S)));if(N)return N;const P=e.lastCachedPackageJsonLookups.get(n),A=P&&ud(P,(t=>NH(e,t,x,S)));return A||{type:E?2:T?15:1,newestInputFileTime:k,newestInputFileName:b,oldestOutputFileName:S}}(e,t,n);return ar("SolutionBuilder::afterUpToDateCheck"),sr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,i),i}function IH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=U$(t.options),s=MS(t.options);if(a&&s)return(null==i?void 0:i.has(iH(e,a)))||(e.options.verbose&&XH(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=GW(e.host)),EH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:c}=e,l=oq(t,!c.useCaseSensitiveFileNames()),u=wH(e,n),_=u?new Set:void 0;if(!i||l.length!==i.size){let s=!!e.options.verbose;for(const d of l){const l=iH(e,d);(null==i?void 0:i.has(l))||(s&&(s=!1,XH(e,r,t.options.configFilePath)),c.setModifiedTime(d,o||(o=GW(e.host))),d===a?EH(e,a,n).modifiedTime=o:u&&(u.set(l,o),_.add(l)))}}null==u||u.forEach(((e,t)=>{(null==i?void 0:i.has(t))||_.has(t)||u.delete(t)}))}function OH(e,t,n){if(!t.composite)return;const r=gn.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&xV(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Ho(r.buildInfo.latestChangedDtsFile,Ro(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function LH(e,t,n){if(e.options.dry)return XH(e,ha.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);IH(e,t,n,ha.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:sq(t,!e.host.useCaseSensitiveFileNames())})}function RH(e,t,n,r,i,o,a){if(!(e.options.stopBuildOnErrors&&4&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(oH(e,t))))?c?2:1:0}(e,t,n,r,i,o);return ar("SolutionBuilder::afterBuild"),sr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function MH(e,t,n){ar("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=dH(e,t,n);if(!r)return 3;if(KW(r))return YH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=oH(e,t),r=cH(e,t,n);if(void 0===r){eG(e,n);continue}const i=oq(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>iH(e,t))));for(const t of i)s.has(iH(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),BH(e,n,0)))}return a&&XH(e,ha.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join("")),0}(e,t,n);return ar("SolutionBuilder::afterClean"),sr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function BH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,mH(e,t),gH(e,t,n),pH(e)}function JH(e,t,n){e.reportFileChangeDetected=!0,BH(e,t,n),zH(e,250,!0)}function zH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout($H,t,"timerToBuildInvalidatedProject",e,n))}function $H(e,t,n){ar("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),QH(e,ha.File_change_detected_Starting_incremental_compilation));let n=0;const r=_H(e),i=kH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=xH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void zH(e,100,!1);SH(e,i,r).done(),1!==i.kind&&n++}return fH(e),r}(t,n);ar("SolutionBuilder::afterBuild"),sr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&tG(t,r)}function qH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,DH(e,t,(()=>JH(e,n,2)),2e3,null==r?void 0:r.watchOptions,EW.ConfigFile,t))}function UH(e,t,n){kq(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>DH(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>JH(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,EW.ExtendedConfigFile)),(t=>iH(e,t)))}function VH(e,t,n,r){e.watch&&wq(HW(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,((i,o)=>e.watchDirectory(i,(o=>{var a;Eq({watchedDirPath:iH(e,i),fileOrDirectory:o,fileOrDirectoryPath:iH(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=sH(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>iH(e,t)})||JH(e,n,1)}),o,null==r?void 0:r.watchOptions,EW.WildcardDirectory,t)))}function WH(e,t,n,r){e.watch&&xx(HW(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>DH(e,i,(()=>JH(e,n,0)),250,null==r?void 0:r.watchOptions,EW.SourceFile,t),onDeleteValue:ux})}function HH(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&xx(HW(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>DH(e,i,(()=>JH(e,n,0)),2e3,null==r?void 0:r.watchOptions,EW.PackageJson,t),onDeleteValue:ux})}function GH(e,t,n,r,i){const o=rH(e,t,n,r,i);return{build:(e,t,n,r)=>jH(o,e,t,n,r),clean:e=>MH(o,e),buildReferences:(e,t,n,r)=>jH(o,e,t,n,r,!0),cleanReferences:e=>MH(o,e,!0),getNextInvalidatedProject:e=>(hH(o,e),kH(o,_H(o),!1)),getBuildOrder:()=>_H(o),getUpToDateStatusOfProject:e=>{const t=lH(o,e),n=oH(o,t);return AH(o,cH(o,t,n),n)},invalidateProject:(e,t)=>BH(o,e,t||0),close:()=>function(e){vx(e.allWatchedConfigFiles,ux),vx(e.allWatchedExtendedConfigFiles,Iq),vx(e.allWatchedWildcardDirectories,(e=>vx(e,Iq))),vx(e.allWatchedInputFiles,(e=>vx(e,ux))),vx(e.allWatchedPackageJsonFiles,(e=>vx(e,ux)))}(o)}}function KH(e,t){return _a(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function XH(e,t,...n){e.host.reportSolutionBuilderStatus(oS(t,...n))}function QH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,oS(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function YH({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function ZH(e,t,n){YH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function eG(e,t){ZH(e,t,[e.configFileCache.get(t)])}function tG(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];KW(t)?(nG(e,t.buildOrder),YH(e,t.circularDiagnostics),n&&(i+=_W(t.circularDiagnostics)),n&&(o=[...o,...dW(t.circularDiagnostics)])):(t.forEach((t=>{const n=oH(e,t);e.projectErrorsReported.has(n)||YH(e,r.get(n)||u)})),n&&r.forEach((e=>i+=_W(e))),n&&r.forEach((e=>[...o,...dW(e)]))),e.watch?QH(e,pW(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function nG(e,t){e.options.verbose&&XH(e,ha.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+KH(e,t))).join(""))}function rG(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return XH(e,ha.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,KH(e,t),KH(e,n.outOfDateOutputFileName),KH(e,n.newerInputFileName));case 6:return XH(e,ha.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,KH(e,t),KH(e,n.outOfDateOutputFileName),KH(e,n.newerProjectName));case 3:return XH(e,ha.Project_0_is_out_of_date_because_output_file_1_does_not_exist,KH(e,t),KH(e,n.missingOutputFileName));case 4:return XH(e,ha.Project_0_is_out_of_date_because_there_was_error_reading_file_1,KH(e,t),KH(e,n.fileName));case 7:return XH(e,ha.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,KH(e,t),KH(e,n.buildInfoFile));case 8:return XH(e,ha.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,KH(e,t),KH(e,n.buildInfoFile));case 9:return XH(e,ha.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,KH(e,t),KH(e,n.buildInfoFile));case 10:return XH(e,ha.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,KH(e,t),KH(e,n.buildInfoFile),KH(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return XH(e,ha.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,KH(e,t),KH(e,n.newestInputFileName||""),KH(e,n.oldestOutputFileName||""));break;case 2:return XH(e,ha.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,KH(e,t));case 15:return XH(e,ha.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,KH(e,t));case 11:return XH(e,ha.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,KH(e,t),KH(e,n.upstreamProjectName));case 12:return XH(e,n.upstreamProjectBlocked?ha.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:ha.Project_0_can_t_be_built_because_its_dependency_1_has_errors,KH(e,t),KH(e,n.upstreamProjectName));case 0:return XH(e,ha.Project_0_is_out_of_date_because_1,KH(e,t),n.reason);case 14:return XH(e,ha.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,KH(e,t),n.version,c);case 17:XH(e,ha.Project_0_is_being_forcibly_rebuilt,KH(e,t))}}(e,t,n)}var iG=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(iG||{});function oG(e){const t=function(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}();return f(e.getSourceFiles(),(n=>{const r=function(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const n=t.path;return Po(n,Nk)?"TypeScript":Po(n,Ik)?"JavaScript":No(n,".json")?"JSON":"Other"}(e,n),i=Ua(n).length;t.set(r,t.get(r)+i)})),t}function aG(e,t,n){return cG(e,n)?oW(e,!0):t}function sG(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function cG(e,t){return t&&void 0!==t.pretty?t.pretty:sG(e)}function lG(e){return e.options.all?me(wO.concat(MO),((e,t)=>Et(e.name,t.name))):P(wO.concat(MO),(e=>!!e.showInSimplifiedHelpView))}function uG(e){e.write(cL(ha.Version_0,c)+e.newLine)}function _G(e){if(!sG(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),n=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM"),i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function o(e){return`${e}`}return{bold:function(e){return`${e}`},blue:function(e){return!t||n||r?`${e}`:o(e)},brightWhite:o,blueBackground:function(e){return i?`${e}`:`${e}`}}}function dG(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function pG(e,t,n,r){var i;const o=[],a=_G(e),s=dG(t),c=function(e){if("object"!==e.type)return{valueType:function(e){switch(gn.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return cL(ha.type_Colon);case"list":return cL(ha.one_or_more_Colon);default:return cL(ha.one_of_Colon)}}(e),possibleValues:function e(t){let n;switch(t.type){case"string":case"number":case"boolean":n=t.type;break;case"list":case"listOrElement":n=e(t.element);break;case"object":n="";break;default:const r={};return t.type.forEach(((e,n)=>{var i;(null==(i=t.deprecatedKeys)?void 0:i.has(n))||(r[e]||(r[e]=[])).push(n)})),Object.entries(r).map((([,e])=>e.join("/"))).join(", ")}return n}(e)}}(t),l="object"==typeof t.defaultValueDescription?cL(t.defaultValueDescription):(u=t.defaultValueDescription,_="list"===t.type||"listOrElement"===t.type?t.element.type:t.type,void 0!==u&&"object"==typeof _?Be(_.entries()).filter((([,e])=>e===u)).map((([e])=>e)).join("/"):String(u));var u,_;const d=(null==(i=e.getWidthOfTerminal)?void 0:i.call(e))??0;if(d>=80){let i="";t.description&&(i=cL(t.description)),o.push(...f(s,i,n,r,d,!0),e.newLine),p(c,t)&&(c&&o.push(...f(c.valueType,c.possibleValues,n,r,d,!1),e.newLine),l&&o.push(...f(cL(ha.default_Colon),l,n,r,d,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(a.blue(s),e.newLine),t.description){const e=cL(t.description);o.push(e)}if(o.push(e.newLine),p(c,t)){if(c&&o.push(`${c.valueType} ${c.possibleValues}`),l){c&&o.push(e.newLine);const t=cL(ha.default_Colon);o.push(`${t} ${l}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function p(e,t){const n=[void 0,"false","n/a"],r=t.defaultValueDescription;return!(t.category===ha.Command_line_Options||E(["string"],null==e?void 0:e.possibleValues)&&E(n,r))}function f(e,t,n,r,i,o){const s=[];let c=!0,l=t;const u=i-r;for(;l.length>0;){let t="";c?(t=e.padStart(n),t=t.padEnd(r),t=o?a.blue(t):t):t="".padStart(r);const i=l.substr(0,u);l=l.slice(u),s.push(`${t}${i}`),c=!1}return s}}function fG(e,t){let n=0;for(const e of t){const t=dG(e).length;n=n>t?n:t}const r=n+2,i=r+2;let o=[];for(const n of t){const t=pG(e,n,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function mG(e,t,n,r,i,o){let a=[];if(a.push(_G(e).bold(t)+e.newLine+e.newLine),i&&a.push(i+e.newLine+e.newLine),!r)return a=[...a,...fG(e,n)],o&&a.push(o+e.newLine+e.newLine),a;const s=new Map;for(const e of n){if(!e.category)continue;const t=cL(e.category),n=s.get(t)??[];n.push(e),s.set(t,n)}return s.forEach(((t,n)=>{a.push(`### ${n}${e.newLine}${e.newLine}`),a=[...a,...fG(e,t)]})),o&&a.push(o+e.newLine+e.newLine),a}function gG(e,t){let n=[...hG(e,`${cL(ha.tsc_Colon_The_TypeScript_Compiler)} - ${cL(ha.Version_0,c)}`)];n=[...n,...mG(e,cL(ha.BUILD_OPTIONS),P(t,(e=>e!==MO)),!1,iS(ha.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of n)e.write(t)}function hG(e,t){var n;const r=_G(e),i=[],o=(null==(n=e.getWidthOfTerminal)?void 0:n.call(e))??0,a=r.blueBackground("".padStart(5)),s=r.blueBackground(r.brightWhite("TS ".padStart(5)));if(o>=t.length+5){const n=(o>120?120:o)-5;i.push(t.padEnd(n)+a+e.newLine),i.push("".padStart(n)+s+e.newLine)}else i.push(t+e.newLine),i.push(e.newLine);return i}function yG(e,t){t.options.all?function(e,t,n,r){let i=[...hG(e,`${cL(ha.tsc_Colon_The_TypeScript_Compiler)} - ${cL(ha.Version_0,c)}`)];i=[...i,...mG(e,cL(ha.ALL_COMPILER_OPTIONS),t,!0,void 0,iS(ha.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...mG(e,cL(ha.WATCH_OPTIONS),r,!1,cL(ha.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...mG(e,cL(ha.BUILD_OPTIONS),P(n,(e=>e!==MO)),!1,iS(ha.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of i)e.write(t)}(e,lG(t),BO,SO):function(e,t){const n=_G(e);let r=[...hG(e,`${cL(ha.tsc_Colon_The_TypeScript_Compiler)} - ${cL(ha.Version_0,c)}`)];r.push(n.bold(cL(ha.COMMON_COMMANDS))+e.newLine+e.newLine),a("tsc",ha.Compiles_the_current_project_tsconfig_json_in_the_working_directory),a("tsc app.ts util.ts",ha.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),a("tsc -b",ha.Build_a_composite_project_in_the_working_directory),a("tsc --init",ha.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),a("tsc -p ./path/to/tsconfig.json",ha.Compiles_the_TypeScript_project_located_at_the_specified_path),a("tsc --help --all",ha.An_expanded_version_of_this_information_showing_all_possible_compiler_options),a(["tsc --noEmit","tsc --target esnext"],ha.Compiles_the_current_project_with_additional_settings);const i=t.filter((e=>e.isCommandLineOnly||e.category===ha.Command_line_Options)),o=t.filter((e=>!E(i,e)));r=[...r,...mG(e,cL(ha.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...mG(e,cL(ha.COMMON_COMPILER_OPTIONS),o,!1,void 0,iS(ha.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const t of r)e.write(t);function a(t,i){const o="string"==typeof t?[t]:t;for(const t of o)r.push(" "+n.blue(t)+e.newLine);r.push(" "+cL(i)+e.newLine+e.newLine)}}(e,lG(t))}function vG(e,t,n){let r,i=oW(e);if(n.options.locale&&gc(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return function(e,t,n,r){const i=e.getCurrentDirectory(),o=Go(Uo(i,"tsconfig.json"));if(e.fileExists(o))t(oS(ha.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,VL(n,r,e.newLine));const t=[e.newLine,...hG(e,"Created a new tsconfig.json with:")];t.push(qL(n,e.newLine)+e.newLine+e.newLine),t.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const n of t)e.write(n)}}(e,i,n.options,n.fileNames),e.exit(0);if(n.options.version)return uG(e),e.exit(0);if(n.options.help||n.options.all)return yG(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(oS(ha.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(oS(ha.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const t=Go(n.options.project);if(!t||e.directoryExists(t)){if(r=Uo(t,"tsconfig.json"),!e.fileExists(r))return i(oS(ha.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(r=t,!e.fileExists(r))return i(oS(ha.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else 0===n.fileNames.length&&(r=Oq(Go(e.getCurrentDirectory()),(t=>e.fileExists(t))));if(0===n.fileNames.length&&!r)return n.options.showConfig?i(oS(ha.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Go(e.getCurrentDirectory()))):(uG(e),yG(e,n)),e.exit(1);const o=e.getCurrentDirectory(),a=WL(n.options,(e=>Ho(e,o)));if(r){const o=new Map,s=uW(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=aG(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(LL(s,r,e),null,4)+e.newLine),e.exit(0));if(i=aG(e,i,s.options),lx(s.options)){if(SG(e,i))return;return function(e,t,n,r,i,o,a){const s=RW({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:PG(e,r.options)});return NG(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,qW(s)}(e,t,i,s,a,n.watchOptions,o)}MS(s.options)?wG(e,t,i,s):DG(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify(LL(n,Uo(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=aG(e,i,a),lx(a)){if(SG(e,i))return;return function(e,t,n,r,i,o){const a=jW({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:PG(e,i)});return NG(e,t,a),qW(a)}(e,t,i,n.fileNames,a,n.watchOptions)}MS(a)?wG(e,t,i,{...n,options:a}):DG(e,t,i,{...n,options:a})}}function bG(e){if(e.length>0&&45===e[0].charCodeAt(0)){const t=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return t===MO.name||t===MO.shortName}return!1}function xG(e,t,n){if(bG(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=sL(n);if(!r.generateCpuProfile||!e.enableCPUProfiler)return TG(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,(()=>TG(e,t,r,i,o,a)))}const r=nL(n,(t=>e.readFile(t)));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return vG(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,(()=>vG(e,t,r)))}function SG(e,t){return!(e.watchFile&&e.watchDirectory||(t(oS(ha.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),0))}var kG=2;function TG(e,t,n,r,i,o){const a=aG(e,oW(e),n);if(n.locale&&gc(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return uG(e),gG(e,JO),e.exit(0);if(0===i.length)return uG(e),gG(e,JO),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(oS(ha.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(SG(e,a))return;const o=eH(e,void 0,a,QW(e,cG(e,n)),PG(e,n));o.jsDocParsingMode=kG;const s=AG(e,n);EG(e,t,o,s);const c=o.onWatchStatusChange;let l=!1;o.onWatchStatusChange=(e,t,n,r)=>{null==c||c(e,t,n,r),!l||e.code!==ha.Found_0_errors_Watching_for_file_changes.code&&e.code!==ha.Found_1_error_Watching_for_file_changes.code||IG(u,s)};const u=nH(o,i,n,r);return u.build(),IG(u,s),l=!0,u}const s=ZW(e,void 0,a,QW(e,cG(e,n)),CG(e,n));s.jsDocParsingMode=kG;const c=AG(e,n);EG(e,t,s,c);const l=tH(s,i,n),u=n.clean?l.clean():l.build();return IG(l,c),yr(),e.exit(u)}function CG(e,t){return cG(e,t)?(t,n)=>e.write(mW(t,n,e.newLine,e)):void 0}function DG(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=Jq(o,void 0,e);s.jsDocParsingMode=kG;const c=s.getCurrentDirectory(),l=Xt(s.useCaseSensitiveFileNames());zq(s,(e=>Xo(e,c,l))),RG(e,o,!1);const u=OU({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:NU(r)}),_=TW(u,n,(t=>e.write(t+e.newLine)),CG(e,o));return MG(e,u,void 0),t(u),e.exit(_)}function wG(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;RG(e,i,!1);const s=JW(i,e);s.jsDocParsingMode=kG;const c=MW({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:NU(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:CG(e,i),afterProgramEmitAndDiagnostics:n=>{MG(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function EG(e,t,n,r){FG(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{MG(e,n.getProgram(),r),t(n)}}function FG(e,t,n){const r=t.createProgram;t.createProgram=(t,i,o,a,s,c)=>(gn.assert(void 0!==t||void 0===i&&!!a),void 0!==i&&RG(e,i,n),r(t,i,o,a,s,c))}function NG(e,t,n){n.jsDocParsingMode=kG,FG(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),MG(e,n.getProgram(),void 0),t(n)}}function PG(e,t){return lW(e,cG(e,t))}function AG(e,t){if(e===go&&t.extendedDiagnostics)return mr(),function(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:n,clear:r};function t(t){const n=null==e?void 0:e.get(t.name);n?2===n.type?n.value=Math.max(n.value,t.value):n.value+=t.value:(e??(e=new Map)).set(t.name,t)}function n(t){null==e||e.forEach(t)}function r(){e=void 0}}()}function IG(e,t){if(!t)return;if(!fr())return void go.write(ha.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n");const n=[];function r(e){const t=cr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}n.push({name:"Projects in scope",value:XW(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics((e=>{e.name=`Aggregate ${e.name}`,n.push(e)})),ur(((e,t)=>{jG(e)&&n.push({name:`${i(e)} time`,value:t,type:0})})),gr(),mr(),t.clear(),BG(go,n)}function OG(e,t){return e===go&&(t.diagnostics||t.extendedDiagnostics)}function LG(e,t){return e===go&&t.generateTrace}function RG(e,t,n){OG(e,t)&&mr(e),LG(e,t)&&hr(n?"build":"project",t.generateTrace,t.configFilePath)}function jG(e){return en(e,"SolutionBuilder::")}function MG(e,t,n){var r;const i=t.getCompilerOptions();let o;if(LG(e,i)&&(null==(r=Yn)||r.stopTracing()),OG(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=oG(t);if(i.extendedDiagnostics)for(const[e,t]of l.entries())s("Lines of "+e,t);else s("Lines",y(l.values(),((e,t)=>e+t),0));s("Identifiers",t.getIdentifierCount()),s("Symbols",t.getSymbolCount()),s("Types",t.getTypeCount()),s("Instantiations",t.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const u=fr(),_=u?lr("Program"):0,d=u?lr("Bind"):0,p=u?lr("Check"):0,f=u?lr("Emit"):0;if(i.extendedDiagnostics){const e=t.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),u&&ur(((e,t)=>{jG(e)||c(`${e} time`,t,!0)}))}else u&&(c("I/O read",lr("I/O Read"),!0),c("I/O write",lr("I/O Write"),!0),c("Parse time",_,!0),c("Bind time",d,!0),c("Check time",p,!0),c("Emit time",f,!0));u&&c("Total time",_+d+p+f,!1),BG(e,o),u?n?(ur((e=>{jG(e)||dr(e)})),_r((e=>{jG(e)||pr(e)}))):gr():e.write(ha.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n")}function a(e,t){o.push(e),t&&(null==n||n.addAggregateStatistic(e))}function s(e,t){a({name:e,value:t,type:1},!0)}function c(e,t,n){a({name:e,value:t,type:0},n)}}function BG(e,t){let n=0,r=0;for(const e of t){e.name.length>n&&(n=e.name.length);const t=JG(e);t.length>r&&(r=t.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+JG(i).toString().padStart(r)+e.newLine)}function JG(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:gn.assertNever(e.type)}}function zG(e,t=!0){return{type:e,reportFallback:t}}var $G=zG(void 0,!1),qG=zG(void 0,!1),UG=zG(void 0,!0);function VG(e,t){const n=HS(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,n,r){switch(e.kind){case 169:case 341:return _(e,n,r);case 260:return function(e,n,r){var i;const o=xv(e);let s=UG;return o?s=zG(a(o,r,e,n)):!e.initializer||1!==(null==(i=n.declarations)?void 0:i.length)&&1!==N(n.declarations,ZF)||t.isExpandoFunctionDeclaration(e)||E(e)||(s=h(e.initializer,r,void 0,void 0,pf(e))),void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 171:case 348:case 172:return function(e,n,r){const i=xv(e),o=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let s=UG;if(i)s=zG(a(i,r,e,n,o));else{const t=hE(e)?e.initializer:void 0;t&&!E(e)&&(s=h(t,r,void 0,o,lf(e)))}return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 208:return d(e,n,r);case 277:return l(e.expression,r,void 0,!0);case 211:case 212:case 226:return function(e,t,n){const r=xv(e);let i;r&&(i=a(r,n,e,t));const o=n.suppressReportInferenceFallback;n.suppressReportInferenceFallback=!0;const s=i??d(e,t,n,!1);return n.suppressReportInferenceFallback=o,s}(e,n,r);case 303:case 304:return function(e,n,r){const i=xv(e);let a;if(i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(a=o(i,r)),!a&&303===e.kind){const t=e.initializer,n=fA(t)?mA(t):234===t.kind||216===t.kind?t.type:void 0;n&&!Fl(n)&&(a=o(n,r))}return a??d(e,n,r,!1)}(e,n,r);default:gn.assertNever(e,`Node needs to be an inferrable node, found ${gn.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,t,n){switch(e.kind){case 177:return c(e,t,n);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return w(e,t,n);default:gn.assertNever(e,`Node needs to be an inferrable node, found ${gn.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:l,serializeTypeOfAccessor:c,tryReuseExistingTypeNode(e,n){if(t.canReuseTypeNode(e,n))return i(e,n)}};function r(e,n,r=n){return void 0===n?void 0:t.markNodeReuse(e,16&n.flags?n:oD.cloneNode(n),r??n)}function i(n,r){const{finalizeBoundary:i,startRecoveryScope:o,hadError:a,markError:s}=t.createRecoveryBoundary(n),c=sJ(r,l,wu);if(i())return n.approximateLength+=r.end-r.pos,c;function l(r){if(a())return r;const i=o(),c=jC(r)?t.enterNewScope(n,r):void 0,u=function(r){var i;if(ZN(r))return sJ(r.type,l,wu);if(oP(r)||319===r.kind)return oD.createKeywordTypeNode(133);if(aP(r))return oD.createKeywordTypeNode(159);if(sP(r))return oD.createUnionTypeNode([sJ(r.type,l,wu),oD.createLiteralTypeNode(oD.createNull())]);if(lP(r))return oD.createUnionTypeNode([sJ(r.type,l,wu),oD.createKeywordTypeNode(157)]);if(cP(r))return sJ(r.type,l);if(_P(r))return oD.createArrayTypeNode(sJ(r.type,l,wu));if(fP(r))return oD.createTypeLiteralNode(O(r.jsDocPropertyTags,(e=>{const i=sJ(Xw(e.name)?e.name:e.name.right,l,Xw),o=t.getJsDocPropertyOverride(n,r,e);return oD.createPropertySignature(void 0,i,e.isBracketed||e.typeExpression&&lP(e.typeExpression.type)?oD.createToken(58):void 0,o||e.typeExpression&&sJ(e.typeExpression.type,l,wu)||oD.createKeywordTypeNode(133))})));if(EE(r)&&Xw(r.typeName)&&""===r.typeName.escapedText)return sD(oD.createKeywordTypeNode(133),r);if((TF(r)||EE(r))&&zm(r))return oD.createTypeLiteralNode([oD.createIndexSignature(void 0,[oD.createParameterDeclaration(void 0,void 0,"x",void 0,sJ(r.typeArguments[0],l,wu))],sJ(r.typeArguments[1],l,wu))]);if(uP(r)){if(Og(r)){let e;return oD.createConstructorTypeNode(void 0,cJ(r.typeParameters,l,pE),q(r.parameters,((r,i)=>r.name&&Xw(r.name)&&"new"===r.name.escapedText?void(e=r.type):oD.createParameterDeclaration(void 0,c(r),t.markNodeReuse(n,oD.createIdentifier(u(r,i)),r),oD.cloneNode(r.questionToken),sJ(r.type,l,wu),void 0))),sJ(e||r.type,l,wu)||oD.createKeywordTypeNode(133))}return oD.createFunctionTypeNode(cJ(r.typeParameters,l,pE),O(r.parameters,((e,r)=>oD.createParameterDeclaration(void 0,c(e),t.markNodeReuse(n,oD.createIdentifier(u(e,r)),e),oD.cloneNode(e.questionToken),sJ(e.type,l,wu),void 0))),sJ(r.type,l,wu)||oD.createKeywordTypeNode(133))}if(qE(r))return t.canReuseTypeNode(n,r)||s(),r;if(pE(r)){const{node:e}=t.trackExistingEntityName(n,r.name);return oD.updateTypeParameterDeclaration(r,cJ(r.modifiers,l,au),e,sJ(r.constraint,l,wu),sJ(r.default,l,wu))}if(VE(r)){const e=_(r);return e||(s(),r)}if(EE(r)){const e=f(r);return e||(s(),r)}if(yf(r))return 132===(null==(i=r.attributes)?void 0:i.token)?(s(),r):t.canReuseTypeNode(n,r)?oD.updateImportTypeNode(r,oD.updateLiteralTypeNode(r.argument,m(r,r.argument.literal)),sJ(r.attributes,l,gN),sJ(r.qualifier,l,su),cJ(r.typeArguments,l,wu),r.isTypeOf):t.serializeExistingTypeNode(n,r);if(Nc(r)&&167===r.name.kind&&!t.hasLateBindableName(r)){if(!Vh(r))return o(r,l);if(t.shouldRemoveDeclaration(n,r))return}if(uu(r)&&!r.type||hE(r)&&!r.type&&!r.initializer||gE(r)&&!r.type&&!r.initializer||fE(r)&&!r.type&&!r.initializer){let e=o(r,l);return e===r&&(e=t.markNodeReuse(n,oD.cloneNode(r),r)),e.type=oD.createKeywordTypeNode(133),fE(r)&&(e.modifiers=void 0),e}if(PE(r)){const e=p(r);return e||(s(),r)}if(dE(r)&&fb(r.expression)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.expression);if(o){const i=t.serializeTypeOfExpression(n,r.expression);let o;if(HE(i))o=i.literal;else{const e=t.evaluateEntityNameExpression(r.expression),a="string"==typeof e.value?oD.createStringLiteral(e.value,void 0):"number"==typeof e.value?oD.createNumericLiteral(e.value,0):void 0;if(!a)return GE(i)&&t.trackComputedName(n,r.expression),r;o=a}return 11===o.kind&&Ss(o.text,DS(e))?oD.createIdentifier(o.text):9!==o.kind||o.text.startsWith("-")?oD.updateComputedPropertyName(r,o):o}return oD.updateComputedPropertyName(r,i)}if(wE(r)){let e;if(Xw(r.parameterName)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.parameterName);o&&s(),e=i}else e=oD.cloneNode(r.parameterName);return oD.updateTypePredicateNode(r,oD.cloneNode(r.assertsModifier),e,sJ(r.type,l,wu))}if(OE(r)||AE(r)||WE(r)){const e=o(r,l),i=t.markNodeReuse(n,e===r?oD.cloneNode(r):e,r);return _D(i,op(i)|(1024&n.flags&&AE(r)?0:1)),i}if(Iw(r)&&268435456&n.flags&&!r.singleQuote){const e=oD.cloneNode(r);return e.singleQuote=!0,e}if(JE(r)){const e=sJ(r.checkType,l,wu),i=t.enterNewScope(n,r),o=sJ(r.extendsType,l,wu),a=sJ(r.trueType,l,wu);i();const s=sJ(r.falseType,l,wu);return oD.updateConditionalTypeNode(r,e,o,a,s)}if(UE(r))if(158===r.operator&&155===r.type.kind){if(!t.canReuseTypeNode(n,r))return s(),r}else if(143===r.operator){const e=d(r);return e||(s(),r)}return o(r,l);function o(e,t){return hJ(e,t,void 0,n.enclosingFile&&n.enclosingFile===Cd(e)?void 0:a)}function a(e,t,n,r,i){let o=cJ(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=oD.createNodeArray(e.slice(),e.hasTrailingComma)),AT(o,-1,-1))),o}function c(e){return e.dotDotDotToken||(e.type&&_P(e.type)?oD.createToken(26):void 0)}function u(e,t){return e.name&&Xw(e.name)&&"this"===e.name.escapedText?"this":c(e)?"args":`arg${t}`}function m(e,r){const i=t.getModuleSpecifierOverride(n,e,r);return i?sD(oD.createStringLiteral(i),r):sJ(r,l,Iw)}}(r);return null==c||c(),a()?wu(r)&&!wE(r)?(i(),t.serializeExistingTypeNode(n,r)):r:u?t.markNodeReuse(n,u,r):void 0}function u(e){const t=dh(e);switch(t.kind){case 183:return f(t);case 186:return p(t);case 199:return _(t);case 198:const e=t;if(143===e.operator)return d(e)}return sJ(e,l,wu)}function _(e){const t=u(e.objectType);if(void 0!==t)return oD.updateIndexedAccessTypeNode(e,t,sJ(e.indexType,l,wu))}function d(e){gn.assertEqual(e.operator,143);const t=u(e.type);if(void 0!==t)return oD.updateTypeOperatorNode(e,t)}function p(e){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return oD.updateTypeQueryNode(e,i,cJ(e.typeArguments,l,wu));const o=t.serializeTypeName(n,e.exprName,!0);return o?t.markNodeReuse(n,o,e.exprName):void 0}function f(e){if(t.canReuseTypeNode(n,e)){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),o=cJ(e.typeArguments,l,wu);if(!r){const r=oD.updateTypeReferenceNode(e,i,o);return t.markNodeReuse(n,r,e)}{const r=t.serializeTypeName(n,e.typeName,!1,o);if(r)return t.markNodeReuse(n,r,e.typeName)}}}}function o(e,n,r){if(!e)return;let o;return r&&!D(e)||!t.canReuseTypeNode(n,e)||(o=i(n,e),void 0!==o&&(o=C(o,r,void 0,n))),o}function a(e,n,r,i,a,s=void 0!==a){if(!e)return;if(!(t.canReuseTypeNodeAnnotation(n,r,e,i,a)||a&&t.canReuseTypeNodeAnnotation(n,r,e,i,!1)))return;let c;return a&&!D(e)||(c=o(e,n,a)),void 0===c&&s?(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,a)??oD.createKeywordTypeNode(133)):c}function s(e,n,r,i){if(!e)return;const a=o(e,n,r);return void 0!==a?a:(n.tracker.reportInferenceFallback(e),t.serializeExistingTypeNode(n,e,r)??oD.createKeywordTypeNode(133))}function c(e,n,r){return function(e,n,r){const i=t.getAllAccessorDeclarations(e),o=function(e,t){let n=u(e);return n||e===t.firstAccessor||(n=u(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=u(t.secondAccessor)),n}(e,i);return o&&!wE(o)?m(r,e,(()=>a(o,r,e,n)??d(e,n,r))):i.getAccessor?m(r,i.getAccessor,(()=>w(i.getAccessor,void 0,r))):void 0}(e,n,r)??f(e,t.getAllAccessorDeclarations(e),r,n)}function l(e,t,n,r){const i=h(e,t,!1,n,r);return void 0!==i.type?i.type:p(e,t,i.reportFallback)}function u(e){if(e)return 177===e.kind?jm(e)&&ll(e)||kv(e):Cv(e)}function _(e,n,r){const i=e.parent;if(178===i.kind)return c(i,void 0,r);const o=xv(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let l=UG;return o?l=zG(a(o,r,e,n,s)):fE(e)&&e.initializer&&Xw(e.name)&&!E(e)&&(l=h(e.initializer,r,void 0,s)),void 0!==l.type?l.type:d(e,n,r,l.reportFallback)}function d(e,n,r,i=!0){return i&&r.tracker.reportInferenceFallback(e),!0===r.noInferenceFallback?oD.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(r,e,n)}function p(e,n,r=!0,i){return gn.assert(!i),r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?oD.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??oD.createKeywordTypeNode(133)}function f(e,n,r,i,o=!0){return 177===e.kind?w(e,i,r,o):(o&&r.tracker.reportInferenceFallback(e),(n.getAccessor&&w(n.getAccessor,i,r,o))??t.serializeTypeOfDeclaration(r,e,i)??oD.createKeywordTypeNode(133))}function m(e,n,r){const i=t.enterNewScope(e,n),o=r();return i(),o}function g(e,t,n,r){return Fl(t)?h(e,n,!0,r):zG(s(t,n,r))}function h(e,r,i=!1,o=!1,a=!1){switch(e.kind){case 217:return fA(e)?g(e.expression,mA(e),r,o):h(e.expression,r,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return zG(k());break;case 106:return zG(n?C(oD.createLiteralTypeNode(oD.createNull()),o,e,r):oD.createKeywordTypeNode(133));case 219:case 218:return gn.type(e),m(r,e,(()=>function(e,t){const n=t.noInferenceFallback;return t.noInferenceFallback=!0,w(e,void 0,t),b(e.typeParameters,t),e.parameters.map((e=>v(e,t))),t.noInferenceFallback=n,$G}(e,r)));case 216:case 234:const s=e;return g(s.expression,s.type,r,o);case 224:const c=e;if(wC(c))return T(40===c.operator?c.operand:c,10===c.operand.kind?163:150,r,i||a,o);break;case 209:return function(e,t,n,r){if(!function(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(const n of e.elements)if(230===n.kind)return t.tracker.reportInferenceFallback(n),!1;return!0}(e,t,n))return r||h_(uh(e).parent)?qG:zG(p(e,t,!1,r));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const o=[];for(const r of e.elements)if(gn.assert(230!==r.kind),232===r.kind)o.push(k());else{const e=h(r,t,n),i=void 0!==e.type?e.type:p(r,t,e.reportFallback);o.push(i)}return oD.createTupleTypeNode(o).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,$G}(e,r,i,o);case 210:return function(e,n,r,i){if(!function(e,n){let r=!0;for(const i of e.properties){if(262144&i.flags){r=!1;break}if(304===i.kind||305===i.kind)n.tracker.reportInferenceFallback(i),r=!1;else{if(262144&i.name.flags){r=!1;break}if(81===i.name.kind)r=!1;else if(167===i.name.kind){const e=i.name.expression;wC(e,!1)||t.isDefinitelyReferenceToGlobalSymbolObject(e)||(n.tracker.reportInferenceFallback(i.name),r=!1)}}}return r}(e,n))return i||h_(uh(e).parent)?qG:zG(p(e,n,!1,i));const o=n.noInferenceFallback;n.noInferenceFallback=!0;const a=[],s=n.flags;n.flags|=4194304;for(const t of e.properties){gn.assert(!GN(t)&&!KN(t));const e=t.name;let i;switch(t.kind){case 174:i=m(n,t,(()=>x(t,e,n,r)));break;case 303:i=y(t,e,n,r);break;case 178:case 177:i=S(t,e,n)}i&&(SD(i,t),a.push(i))}n.flags=s;const c=oD.createTypeLiteralNode(a);return 1024&n.flags||_D(c,1),n.noInferenceFallback=o,$G}(e,r,i,o);case 231:return zG(p(e,r,!0,o));case 228:if(!i&&!a)return zG(oD.createKeywordTypeNode(154));break;default:let l,u=e;switch(e.kind){case 9:l=150;break;case 15:u=oD.createStringLiteral(e.text),l=154;break;case 11:l=154;break;case 10:l=163;break;case 112:case 97:l=136}if(l)return T(u,l,r,i||a,o)}return UG}function y(e,t,n,i){const o=i?[oD.createModifier(148)]:[],a=h(e.initializer,n,i),s=void 0!==a.type?a.type:d(e,void 0,n,a.reportFallback);return oD.createPropertySignature(o,r(n,t),void 0,s)}function v(e,n){return oD.updateParameterDeclaration(e,[],r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?oD.createToken(58):void 0,_(e,void 0,n),void 0)}function b(e,t){return null==e?void 0:e.map((e=>{var n;return oD.updateTypeParameterDeclaration(e,null==(n=e.modifiers)?void 0:n.map((e=>r(t,e))),r(t,e.name),s(e.constraint,t),s(e.default,t))}))}function x(e,t,n,i){const o=w(e,void 0,n),a=b(e.typeParameters,n),s=e.parameters.map((e=>v(e,n)));return i?oD.createPropertySignature([oD.createModifier(148)],r(n,t),r(n,e.questionToken),oD.createFunctionTypeNode(a,s,o)):(Xw(t)&&"new"===t.escapedText&&(t=oD.createStringLiteral("new")),oD.createMethodSignature([],r(n,t),r(n,e.questionToken),a,s,o))}function S(e,n,i){const o=t.getAllAccessorDeclarations(e),a=o.getAccessor&&u(o.getAccessor),c=o.setAccessor&&u(o.setAccessor);if(void 0!==a&&void 0!==c)return m(i,e,(()=>{const t=e.parameters.map((e=>v(e,i)));return O_(e)?oD.updateGetAccessorDeclaration(e,[],r(i,n),t,s(a,i),void 0):oD.updateSetAccessorDeclaration(e,[],r(i,n),t,void 0)}));if(o.firstAccessor===e){const t=(a?m(i,o.getAccessor,(()=>s(a,i))):c?m(i,o.setAccessor,(()=>s(c,i))):void 0)??f(e,o,i,void 0);return oD.createPropertySignature(void 0===o.setAccessor?[oD.createModifier(148)]:[],r(i,n),void 0,t)}}function k(){return n?oD.createKeywordTypeNode(157):oD.createKeywordTypeNode(133)}function T(e,t,n,i,o){let a;return i?(224===e.kind&&40===e.operator&&(a=oD.createLiteralTypeNode(r(n,e.operand))),a=oD.createLiteralTypeNode(r(n,e))):a=oD.createKeywordTypeNode(t),zG(C(a,o,e,n))}function C(e,t,r,i){const o=r&&uh(r).parent,a=o&&h_(o)&&rC(o);return n&&(t||a)?(D(e)||i.tracker.reportInferenceFallback(e),ME(e)?oD.createUnionTypeNode([...e.types,oD.createKeywordTypeNode(157)]):oD.createUnionTypeNode([e,oD.createKeywordTypeNode(157)])):e}function D(e){return!n||!(!Ah(e.kind)&&201!==e.kind&&184!==e.kind&&185!==e.kind&&188!==e.kind&&189!==e.kind&&187!==e.kind&&203!==e.kind&&197!==e.kind)||(196===e.kind?D(e.type):(192===e.kind||193===e.kind)&&e.types.every(D))}function w(e,n,r,i=!0){let s=UG;const c=Og(e)?xv(e.parameters[0]):kv(e);return c?s=zG(a(c,r,e,n)):sh(e)&&(s=function(e,t){let n;if(e&&!Id(e.body)){if(3&zh(e))return UG;const t=e.body;t&&OF(t)?Of(t,(e=>e.parent!==t||n?(n=void 0,!0):void(n=e.expression))):n=t}if(n){if(!E(n))return h(n,t);{const e=fA(n)?mA(n):CF(n)||sF(n)?n.type:void 0;if(e&&!Fl(e))return zG(o(e,t))}}return UG}(e,r)),void 0!==s.type?s.type:function(e,n,r){return r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?oD.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e)??oD.createKeywordTypeNode(133)}(e,r,i&&s.reportFallback&&!c)}function E(e){return yc(e.parent,(e=>iF(e)||!du(e)&&!!xv(e)||PN(e)||zN(e)))}}var WG={};n(WG,{NameValidationResult:()=>mK,discoverTypings:()=>pK,isTypingUpToDate:()=>lK,loadSafeList:()=>_K,loadTypesMap:()=>dK,nonRelativeModuleNameForTypingCache:()=>uK,renderPackageNameValidationFailure:()=>vK,validatePackageName:()=>hK});var HG,GG,KG="action::set",XG="action::invalidate",QG="action::packageInstalled",YG="event::typesRegistry",ZG="event::beginInstallTypes",eK="event::endInstallTypes",tK="event::initializationFailed",nK="action::watchTypingLocations";function rK(e){return go.args.includes(e)}function iK(e){const t=go.args.indexOf(e);return t>=0&&te.readFile(t)));return new Map(Object.entries(n.config))}function dK(e,t){var n;const r=uL(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function pK(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const u=new Map;n=q(n,(e=>{const t=Go(e);if(zk(t))return t}));const _=[];a.include&&y(a.include,"Explicitly included types");const d=a.exclude||[];if(!l.types){const e=new Set(n.map(Ro));e.add(r),e.forEach((e=>{v(e,"bower.json","bower_components",_),v(e,"package.json","node_modules",_)}))}a.disableFilenameBasedTypeAcquisition||function(e){const n=q(e,(e=>{if(!zk(e))return;const t=Vt(Xk(mt(jo(e))));return i.get(t)}));n.length&&y(n,"Inferred typings from file names"),X(e,(e=>No(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s&&y(ne(s.map(uK),St,Nt),"Inferred typings from unresolved imports");for(const e of d)u.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);o.forEach(((e,t)=>{const n=c.get(t);!1===u.get(t)&&void 0!==n&&lK(e,n)&&u.set(t,e.typingLocation)}));const p=[],m=[];u.forEach(((e,t)=>{e?m.push(e):p.push(t)}));const g={cachedTypingPaths:m,newTypingNames:p,filesToWatch:_};return t&&t(`Finished typings discovery:${cK(g)}`),g;function h(e){u.has(e)||u.set(e,!1)}function y(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),f(e,h)}function v(n,r,i,o){const a=Uo(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=uL(a,(t=>e.readFile(t))).config,c=M([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Le),y(c,`Typing names in '${a}' dependencies`));const l=Uo(n,i);if(o.push(l),!e.directoryExists(l))return;const _=[],d=c?c.map((e=>Uo(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(jo(e)!==r)return!1;const t=Jo(Go(e)),n="@"===t[t.length-3][0];return n&&mt(t[t.length-4])===i||!n&&mt(t[t.length-3])===i}));t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=Go(n),i=uL(r,(t=>e.readFile(t))),o=i.config;if(!o.name)continue;const a=o.types||o.typings;if(a){const n=Ho(a,Ro(r));e.fileExists(n)?(t&&t(` Package '${o.name}' provides its own types.`),u.set(o.name,n)):t&&t(` Package '${o.name}' provides its own types but they are missing.`)}else _.push(o.name)}y(_," Found package names")}}var fK,mK=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(mK||{}),gK=214;function hK(e){return yK(e,!0)}function yK(e,t){if(!e)return 1;if(e.length>gK)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=yK(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=yK(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function vK(e,t){return"object"==typeof e?bK(t,e.result,e.name,e.isScopeName):bK(t,e,t,!1)}function bK(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${gK} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return gn.fail();default:gn.assertNever(t)}}(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(fK||(fK={}));var xK=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(xK||{}),SK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(SK||{}),kK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(kK||{}),TK={},CK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(CK||{}),DK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(DK||{}),wK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(wK||{}),EK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(EK||{}),FK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(FK||{}),NK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(NK||{}),PK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(PK||{});function AK(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var IK=AK("\n"),OK=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(OK||{}),LK=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(LK||{}),RK=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(RK||{}),jK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(jK||{}),MK=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(MK||{}),BK=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(BK||{}),JK=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(JK||{}),zK=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(zK||{}),$K=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))($K||{}),qK=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(qK||{}),UK=ks(99,!0),VK=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(VK||{});function WK(e){switch(e.kind){case 260:return jm(e)&&rl(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return fp(e)||1===zM(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function HK(e){const t=(e=WX(e)).parent;return 307===e.kind?1:SN(t)||CN(t)||NN(t)||xN(t)||dN(t)||uN(t)&&e===t.name?7:GK(e)?function(e){const t=166===e.kind?e:_E(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):gh(e)?WK(t):su(e)&&yc(e,an(eP,U_,tP))?7:function(e){switch(bb(e)&&(e=e.parent),e.kind){case 110:return!wm(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Af(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:pE(t)?(gn.assert(IP(t.parent)),2):HE(t)?3:1}function GK(e){for(;166===e.parent.kind;)e=e.parent;return Om(e.parent)&&e.parent.moduleReference===e}function KK(e,t=!1,n=!1){return iX(e,iF,tX,t,n)}function XK(e,t=!1,n=!1){return iX(e,oF,tX,t,n)}function QK(e,t=!1,n=!1){return iX(e,qu,tX,t,n)}function YK(e,t=!1,n=!1){return iX(e,aF,nX,t,n)}function ZK(e,t=!1,n=!1){return iX(e,mE,tX,t,n)}function eX(e,t=!1,n=!1){return iX(e,w_,rX,t,n)}function tX(e){return e.expression}function nX(e){return e.tag}function rX(e){return e.tagName}function iX(e,t,n,r,i){let o=r?function(e){return pX(e)||fX(e)?e.parent:e}(e):oX(e);return i&&(o=hA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function oX(e){return pX(e)?e.parent:e}function aX(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function sX(e,t){return!!nF(e.expression)&&e.expression.name.text===t}function cX(e){var t;return Xw(e)&&(null==(t=at(e.parent,Al))?void 0:t.label)===e}function lX(e){var t;return Xw(e)&&(null==(t=at(e.parent,KF))?void 0:t.label)===e}function uX(e){return lX(e)||cX(e)}function _X(e){var t;return(null==(t=at(e.parent,A_))?void 0:t.tagName)===e}function dX(e){var t;return(null==(t=at(e.parent,_E))?void 0:t.right)===e}function pX(e){var t;return(null==(t=at(e.parent,nF))?void 0:t.name)===e}function fX(e){var t;return(null==(t=at(e.parent,rF))?void 0:t.argumentExpression)===e}function mX(e){var t;return(null==(t=at(e.parent,aN))?void 0:t.name)===e}function gX(e){var t;return Xw(e)&&(null==(t=at(e.parent,uu))?void 0:t.name)===e}function hX(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Ac(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function yX(e){return Pm(e.parent.parent)&&Am(e.parent.parent)===e}function vX(e){for(Lg(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function bX(e){switch(e.kind){case 307:return XI(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(oy(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return uu(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Lv(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=cg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=bX(i);return""===e?"const":e;case 3:case 5:return lF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return dN(e.parent)?"alias":"";case 277:const o=bX(e.expression);return""===o?"const":o;default:return""}function t(e){return df(e)?"const":ff(e)?"let":"var"}}function xX(e){switch(e.kind){case 110:return!0;case 80:return vv(e)&&169===e.parent.kind;default:return!1}}var SX=/^\/\/\/\s*=n}function EX(e,t,n){return NX(e.pos,e.end,t,n)}function FX(e,t,n,r){return NX(e.getStart(t),e.end,n,r)}function NX(e,t,n,r){return Math.max(e,n)e.kind===t))}function jX(e){const t=T(e.parent.getChildren(),(t=>zP(t)&&ix(t,e)));return gn.assert(!t||E(t.getChildren(),e)),t}function MX(e){return 90===e.kind}function BX(e){return 86===e.kind}function JX(e){return 100===e.kind}function zX(e,t){if(16777216&e.flags)return;const n=vZ(e,t);if(n)return n;const r=function(e){let t;return yc(e,(e=>(wu(e)&&(t=e),!_E(e.parent)&&!wu(e.parent)&&!Tu(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function $X(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(Nc(e))return e.name;if(nN(e)){const t=e.modifiers&&T(e.modifiers,MX);if(t)return t}if(SF(e)){const t=T(e.getChildren(),BX);if(t)return t}}(e);case 262:case 218:return function(e){if(Nc(e))return e.name;if(tN(e)){const t=T(e.modifiers,MX);if(t)return t}if(lF(e)){const t=T(e.getChildren(),JX);if(t)return t}}(e);case 176:return e}if(Nc(e))return e.name}function qX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(bN(e.importClause.namedBindings)){const t=Ce(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(yN(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function UX(e,t){if(e.exportClause){if(TN(e.exportClause)){if(!Ce(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(vN(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function VX(e,t){const{parent:n}=e;if(au(e)&&(t||90!==e.kind)?mI(n)&&E(n.modifiers,e):86===e.kind?nN(n)||SF(e):100===e.kind?tN(n)||lF(e):120===e.kind?rN(n):94===e.kind?oN(n):156===e.kind?iN(n):145===e.kind||144===e.kind?aN(n):102===e.kind?uN(n):139===e.kind?SE(n):153===e.kind&&kE(n)){const e=$X(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&eN(n)&&1===n.declarations.length){const e=n.declarations[0];if(Xw(e.name))return e.name}if(156===e.kind){if(dN(n)&&n.isTypeOnly){const e=qX(n.parent,t);if(e)return e}if(kN(n)&&n.isTypeOnly){const e=UX(n,t);if(e)return e}}if(130===e.kind){if(xN(n)&&n.propertyName||CN(n)&&n.propertyName||yN(n)||vN(n))return n.name;if(kN(n)&&n.exportClause&&vN(n.exportClause))return n.exportClause.name}if(102===e.kind&&_N(n)){const e=qX(n,t);if(e)return e}if(95===e.kind){if(kN(n)){const e=UX(n,t);if(e)return e}if(SN(n))return hA(n.expression)}if(149===e.kind&&NN(n))return n.expression;if(161===e.kind&&(_N(n)||kN(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&VN(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(pE(n)&&n.constraint&&EE(n.constraint))return n.constraint.typeName;if(JE(n)&&EE(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&zE(n))return n.typeParameter.name;if(103===e.kind&&pE(n)&&WE(n.parent))return n.name;if(143===e.kind&&UE(n)&&143===n.operator&&EE(n.type))return n.type.typeName;if(148===e.kind&&UE(n)&&148===n.operator&&IE(n.type)&&EE(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&oF(n)||116===e.kind&&pF(n)||114===e.kind&&dF(n)||135===e.kind&&fF(n)||127===e.kind&&bF(n)||91===e.kind&&_F(n))&&n.expression)return hA(n.expression);if((103===e.kind||104===e.kind)&&hF(n)&&n.operatorToken===e)return hA(n.right);if(130===e.kind&&CF(n)&&EE(n.type))return n.type.typeName;if(103===e.kind&&$F(n)||165===e.kind&&qF(n))return hA(n.expression)}return e}function WX(e){return VX(e,!1)}function HX(e){return VX(e,!0)}function GX(e,t){return KX(e,t,(e=>Gh(e)||Ah(e.kind)||Qw(e)))}function KX(e,t,n){return QX(e,t,!1,n,!1)}function XX(e,t){return QX(e,t,!0,void 0,!1)}function QX(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Ne(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&hQ(r,n)?t(r):void 0))}(t)}function tQ(e,t,n,r){const i=function i(o){if(nQ(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Ne(a,e,((e,t)=>t),((t,n)=>e=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e=e||!hQ(n,t)||sQ(n)){const e=iQ(a,s,t,o.kind);return e?!r&&P_(e)&&e.getChildren(t).length?i(e):rQ(e,t):void 0}return i(n)}}gn.assert(void 0!==n||307===o.kind||1===o.kind||P_(o));const c=iQ(a,a.length,t,o.kind);return c&&rQ(c,t)}(n||t);return gn.assert(!(i&&sQ(i))),i}function nQ(e){return jl(e)&&!sQ(e)}function rQ(e,t){if(nQ(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=iQ(n,n.length,t,e.kind);return r&&rQ(r,t)}function iQ(e,t,n,r){for(let i=t-1;i>=0;i--)if(sQ(e[i]))0!==i||12!==r&&285!==r||gn.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(hQ(e[i],n))return e[i]}function oQ(e,t,n=tQ(t,e)){if(n&&Xl(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function lQ(e,t){const n=XX(e,t);return!!Ow(n)||!(19!==n.kind||!zN(n.parent)||!PN(n.parent.parent))||!(30!==n.kind||!w_(n.parent)||!PN(n.parent.parent))}function uQ(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(XX(e,t))}function _Q(e,t,n){const r=Ra(e.kind),i=Ra(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t))}function fQ(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=tQ(n.getFullStart(),t),n&&29===n.kind&&(n=tQ(n.getFullStart(),t)),!n||!Xw(n))return;if(!r)return gh(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=_Q(n,19,t),!n)return;break;case 22:if(n=_Q(n,21,t),!n)return;break;case 24:if(n=_Q(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(wu(n))break;return}n=tQ(n.getFullStart(),t)}}function mQ(e,t,n){return Ede.getRangeOfEnclosingComment(e,t,void 0,n)}function gQ(e,t){return!!yc(XX(e,t),pP)}function hQ(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function yQ(e,t=0){const n=[],r=h_(e)?dc(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||bE(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function vQ(e){return 183===e.kind||213===e.kind?e.typeArguments:uu(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function bQ(e){return 2===e||3===e}function xQ(e){return!(11!==e&&14!==e&&!$l(e))}function SQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function kQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(SQ(n,t[0],t[1])||SQ(n,t[1],t[0]))}function TQ(e,t,n){return $l(e.kind)&&e.getStart(n){const n=QB(t);return!e[n]&&(e[n]=!0)}}function UQ(e){return e.getText(0,e.getLength())}function VQ(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function KQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function XQ(e){return!!e.module||DS(e)>=2||!!e.noEmit}function QQ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Xe(t,t.readFile),useCaseSensitiveFileNames:Xe(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:Xe(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Xe(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Xe(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:Xe(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n)}}function YQ(e,t){return{...QQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function ZQ(e){return 2===e||e>=3&&e<=99||100===e}function eY(e,t,n,r,i){return oD.createImportDeclaration(void 0,e||t?oD.createImportClause(!!i,e,t&&t.length?oD.createNamedImports(t):void 0):void 0,"string"==typeof n?tY(n,r):n,void 0)}function tY(e,t){return oD.createStringLiteral(e,0===t)}var nY=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(nY||{});function rY(e,t){return Km(e,t)?1:0}function iY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=Lm(e)&&e.imports&&T(e.imports,(e=>Iw(e)&&!sy(e.parent)));return t?rY(t,e):1}}function oY(e){switch(e){case 0:return"'";case 1:return'"';default:return gn.assertNever(e)}}function aY(e){const t=sY(e);return void 0===t?void 0:Sc(t)}function sY(e){return"default"!==e.escapedName?e.escapedName:g(e.declarations,(e=>{const t=Ac(e);return t&&80===t.kind?t.escapedText:void 0}))}function cY(e){return q_(e)&&(NN(e.parent)||_N(e.parent)||JP(e.parent)||$m(e.parent,!1)&&e.parent.arguments[0]===e||gf(e.parent)&&e.parent.arguments[0]===e)}function lY(e){return ZE(e)&&QE(e.parent)&&Xw(e.name)&&!e.propertyName}function uY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function _Y(e,t,n){if(e)for(;e.parent;){if(QN(e.parent)||!dY(n,e.parent,t))return e;e=e.parent}}function dY(e,t,n){return Ms(e,t.getStart(n))&&t.getEnd()<=Rs(e)}function pY(e,t){return mI(e)?T(e.modifiers,(e=>e.kind===t)):void 0}function fY(e,t,n,r,i){var o;const a=243===(nt(n)?n[0]:n).kind?Hm:Fp,s=P(t.statements,a),{comparer:c,isSorted:l}=pue.getOrganizeImportsStringComparerWithDetection(s,i),u=nt(n)?me(n,((e,t)=>pue.compareImportsOrRequireStatements(e,t,c))):[n];if(null==s?void 0:s.length)if(gn.assert(Lm(t)),s&&l)for(const n of u){const r=pue.getImportDeclarationInsertionIndex(s,n,c);if(0===r){const r=s[0]===t.statements[0]?{leadingTriviaOption:Z_e.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,s[0],n,!1,r)}else{const i=s[r-1];e.insertNodeAfter(t,i,n)}}else{const n=ke(s);n?e.insertNodesAfter(t,n,u):e.insertNodesAtTopOfFile(t,u,r)}else if(Lm(t))e.insertNodesAtTopOfFile(t,u,r);else for(const n of u)e.insertStatementsInNewFile(t.fileName,[n],null==(o=hc(n))?void 0:o.getSourceFile())}function mY(e,t){return gn.assert(e.isTypeOnly),st(e.getChildAt(0,t),zQ)}function gY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function hY(e,t,n){return(n?St:xt)(e.fileName,t.fileName)&&gY(e.textSpan,t.textSpan)}function yY(e){return(t,n)=>hY(t,n,e)}function vY(e,t){if(e)for(let n=0;n!!fE(e)||!(ZE(e)||QE(e)||YE(e))&&"quit"))}var CY=function(){const e=10*Q_;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(Ka(n.charCodeAt(n.length-1))||t.push(DY(" ",16)),t.push(DY("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){i>e||(a(),i+=n.length,t.push(function(e,t){return DY(e,n(t));function n(e){const t=e.flags;return 3&t?TY(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}}(n,r)))},writeLine:function(){i>e||(i+=1,t.push($Y()),n=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:gt,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=By(r);e&&(i+=e.length,t.push(DY(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(DY(n,r)))}function c(){t=[],n=!0,r=0,i=0}}();function DY(e,t){return{text:e,kind:OK[t]}}function wY(){return DY(" ",16)}function EY(e){return DY(Ra(e),5)}function FY(e){return DY(Ra(e),15)}function NY(e){return DY(Ra(e),12)}function PY(e){return DY(e,13)}function AY(e){return DY(e,14)}function IY(e){const t=ja(e);return void 0===t?OY(e):EY(t)}function OY(e){return DY(e,17)}function LY(e){return DY(e,0)}function RY(e){return DY(e,18)}function jY(e){return DY(e,24)}function MY(e){return DY(e,22)}function BY(e,t){var n;const r=[MY(`{@${nP(e)?"link":rP(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?KY(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=np(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t{e.writeType(t,n,17408|r,i)}))}function VY(e,t,n,r,i=0){return qY((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function WY(e,t,n,r=0){return r|=25632,qY((i=>{e.writeSignature(t,n,r,void 0,i)}))}function HY(e){return!!e.parent&&Vl(e.parent)&&e.parent.propertyName===e}function GY(e,t){return wk(e,t.getScriptKind&&t.getScriptKind(e))}function KY(e,t){let n=e;for(;XY(n)||nd(n)&&n.links.target;)n=nd(n)&&n.links.target?n.links.target:px(n,t);return n}function XY(e){return!!(2097152&e.flags)}function QY(e,t){return YB(px(e,t))}function YY(e,t){for(;Ka(e.charCodeAt(t));)t+=1;return t}function ZY(e,t){for(;t>-1&&Xa(e.charCodeAt(t));)t-=1;return t+1}function eZ(e,t=!0){const n=e&&nZ(e);return n&&!t&&oZ(n),RT(n,!1)}function tZ(e,t,n){let r=n(e);return r?sD(r,e):r=nZ(e,n),r&&!t&&oZ(r),r}function nZ(e,t){const n=t?e=>tZ(e,!0,t):eZ,r=hJ(e,n,void 0,t?e=>e&&iZ(e,!0,t):e=>e&&rZ(e),n);return r===e?fI(Iw(e)?sD(oD.createStringLiteralFromNode(e),e):Pw(e)?sD(oD.createNumericLiteral(e.text,e.numericLiteralFlags),e):oD.cloneNode(e),e):(r.parent=void 0,r)}function rZ(e,t=!0){if(e){const n=oD.createNodeArray(e.map((e=>eZ(e,t))),e.hasTrailingComma);return fI(n,e),n}return e}function iZ(e,t,n){return oD.createNodeArray(e.map((e=>tZ(e,t,n))),e.hasTrailingComma)}function oZ(e){aZ(e),sZ(e)}function aZ(e){lZ(e,1024,uZ)}function sZ(e){lZ(e,2048,wx)}function cZ(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;ee))}function _Z(e,t){let n=e;for(let r=1;!Ad(t,n);r++)n=`${e}_${r}`;return n}function dZ(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){gn.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=hZ(a,Ey(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return gn.assert(r),gn.assert(o>=0),o}function pZ(e,t,n,r,i){ds(n.text,e.pos,gZ(t,n,r,i,CD))}function fZ(e,t,n,r,i){ps(n.text,e.end,gZ(t,n,r,i,ED))}function mZ(e,t,n,r,i){ps(n.text,e.pos,gZ(t,n,r,i,CD))}function gZ(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function hZ(e,t){if(en(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function yZ(e){return hF(e)&&28===e.operatorToken.kind||tF(e)||(CF(e)||DF(e))&&tF(e.expression)}function vZ(e,t,n){const r=uh(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:i,operatorToken:o,right:a}=r;return xZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 296:return TZ(r,t);default:return t.getContextualType(e,n)}}function bZ(e,t,n){const r=iY(e,t),i=JSON.stringify(n);return 0===r?`'${Ry(i).replace(/'/g,(()=>"\\'")).replace(/\\"/g,'"')}'`:i}function xZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function SZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function kZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function TZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var CZ="anonymous function";function DZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,8,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:YQ(n,r)});return o?s:void 0}function wZ(e){return 179===e||180===e||181===e||171===e||173===e}function EZ(e){return 262===e||176===e||174===e||177===e||178===e}function FZ(e){return 267===e}function NZ(e){return 243===e||244===e||246===e||251===e||252===e||253===e||257===e||259===e||172===e||265===e||272===e||271===e||278===e||270===e||277===e}var PZ=an(wZ,EZ,FZ,NZ);function AZ(e,t,n){const r=yc(t,(t=>t.end!==e?"quit":PZ(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(wZ(e.kind)){if(n&&28===n.kind)return!1}else if(FZ(e.kind)){const n=Te(e.getChildren(t));if(n&&sN(n))return!1}else if(EZ(e.kind)){const n=Te(e.getChildren(t));if(n&&Vf(n))return!1}else if(!NZ(e.kind))return!1;if(246===e.kind)return!0;const r=eQ(e,yc(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function IZ(e){let t=0,n=0;return qI(e,(function r(i){if(NZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(wZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:r&&28!==r.kind&&Ga(e,r.getStart(e)).line!==Ga(e,tf(e,r.end).start).line&&n++}return t+n>=5||qI(i,r)})),0===t&&n<=1||t/n>.2}function OZ(e,t){return BZ(e,e.getDirectories,t)||[]}function LZ(e,t,n,r,i){return BZ(e,e.readDirectory,t,n,r,i)||u}function RZ(e,t){return BZ(e,e.fileExists,t)}function jZ(e,t){return MZ((()=>Rb(t,e)))||!1}function MZ(e){try{return e()}catch{return}}function BZ(e,t,...n){return MZ((()=>t&&t.apply(e,n)))}function JZ(e,t){const n=[];return SM(t,e,(e=>{const r=Uo(e,"package.json");RZ(t,r)&&n.push(r)})),n}function zZ(e,t){let n;return SM(t,e,(e=>"node_modules"===e||(n=Oq(e,(e=>RZ(t,e)),"package.json"),!!n||void 0))),n}function $Z(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=Lb(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function qZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||function(e,t){if(!t.fileExists)return[];const n=[];return SM(t,Ro(e),(e=>{const r=Uo(e,"package.json");if(t.fileExists(r)){const e=$Z(r,t);e&&n.push(e)}})),n}(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=Ry(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},getSourceFileInfo:function(e,t){if(!r.length)return{importable:!0,packageName:void 0};if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n){const t={importable:!0,packageName:n};return a.set(e,t),t}const i={importable:s(n),packageName:n};return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||(!(!wo(e)&&!To(e))||s(e))}};function s(e){const t=u(e);for(const e of r)if(e.has(t)||e.has(EM(t)))return!0;return!1}function c(t){return!!(Lm(e)&&Rm(e)&&OC.has(t)&&(void 0===i&&(i=UZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=eB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?wo(o)||To(o)?void 0:u(o):void 0}function u(e){const t=Jo(NM(e)).slice(1);return en(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function UZ(e){return X(e.imports,(({text:e})=>OC.has(e)))}function VZ(e){return E(Jo(e),"node_modules")}function WZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function HZ(e,t){const n=Ne(t,AQ(e),dt,Ct);if(n>=0){const r=t[n];return gn.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),st(r,WZ)}}function GZ(e,t){var n;let r=Ne(t,e.start,(e=>e.start),Tt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Rs(e);for(;;){const n=at(t[r],WZ);if(!n||n.start>o)break;Js(e,n)&&i.push(n),r++}return i}function KZ({startPosition:e,endPosition:t}){return Zs(e,void 0===t?e:t)}function XZ(e,t){const n=yc(XX(e,t.start),(n=>n.getStart(e)Rs(t)?"quit":Qu(n)&&gY(t,AQ(n,e))));return n}function QZ(e,t,n=dt){return e?nt(e)?n(O(e,t)):t(e,0):void 0}function YZ(e){return nt(e)?xe(e):e}function ZZ(e,t,n){return"export="===e.escapedName||"default"===e.escapedName?e0(e)||t0(function(e){var t;return gn.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${gn.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=gn.formatSyntaxKind(e.kind),n=jm(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${gn.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}(e),t,!!n):e.name}function e0(e){return g(e.declarations,(t=>{var n,r,i;if(SN(t))return null==(n=at(hA(t.expression),Xw))?void 0:n.text;if(CN(t)&&2097152===t.symbol.flags)return null==(r=at(t.propertyName,Xw))?void 0:r.text;const o=null==(i=at(Ac(t),Xw))?void 0:i.text;return o||(e.parent&&!rd(e.parent)?e.parent.getName():void 0)}))}function t0(e,t,n){return n0(Xk(Ry(e.name)),t,n)}function n0(e,t,n){const r=jo(qt(e,"/index"));let i="",o=!0;const a=r.charCodeAt(0);bs(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;ee.length)return!1;for(let i=0;i(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(g0||{}),h0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(h0||{});function y0(e){let t=1;const n=Qe(),r=new Map,i=new Map;let o;const a={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,s,c,l,u,_,d,p)=>{let f;if(e!==o&&(a.clear(),o=e),u){const t=XT(u.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=PM(NM(u.fileName.substring(r+1,o))),en(e,u.path.substring(0,n))){const e=i.get(f),t=u.fileName.substring(0,r+1);e?n>e.indexOf(Wj)&&i.set(f,t):i.set(f,t)}}}const m=1===_&&wb(s)||s,g=0===_||rd(m)?Sc(c):function(e,t,n){let r;return F0(e,t,n,((e,t)=>(r=t?[e,t]:e,!0))),gn.checkDefined(r)}(m,p,void 0),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=Ry(l.name),b=t++,x=px(s,p),S=33554432&s.flags?void 0:s,k=33554432&l.flags?void 0:l;S&&k||r.set(b,[s,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${YB(px(t,r))} ${e} ${i}`}(h,s,As(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:u,moduleFileName:null==u?void 0:u.fileName,packageName:f,exportKind:_,targetFlags:x.flags,isFromPackageJson:d,symbol:S,moduleSymbol:k})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(s)},search:(t,r,a,c)=>{if(t===o)return ld(n,((t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1),s=""===a?void 0:a;return{symbolName:o,ambientModuleName:s}}(n),u=r&&t[0].capitalizedSymbolName||o;if(a(u,t[0].targetFlags)){const r=t.map(s).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&en(t.moduleFileName,r))return!0;const o=i.get(n);return!o||en(t.moduleFileName,o)}(n,t[r].packageName)));if(r.length){const e=c(r,u,!!l,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>!(c(e)&&c(t)||(o&&o!==t.path||n&&UZ(e)!==UZ(t)||!ae(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!ae(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>gp(e)&&e.name.text===i;if(n=D(e.statements,o,n+1),r=D(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(a.clear(),0):(o=t.path,1)))};return gn.isDebugging&&Object.defineProperty(a,"__cache",{value:n}),a;function s(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:a,moduleFileName:s}=t,[c,l]=r.get(n)||u;if(c&&l)return{symbol:c,moduleSymbol:l,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a};const _=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||l||gn.checkDefined(t.moduleFile?_.getMergedSymbol(t.moduleFile.symbol):_.tryFindAmbientModule(t.moduleName)),p=t.symbol||c||gn.checkDefined(2===i?_.resolveExternalModuleSymbol(d):_.tryGetMemberInModuleExportsAndProperties(Sc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a}}function c(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function v0(e,t,n,r,i,o,a,s){var c;if(!n){let n;const i=Ry(r.name);return OC.has(i)&&void 0!==(n=a0(t,e))?n===en(i,"node:"):!o||o.allowsImportingAmbientModule(r,a)||b0(t,i)}if(gn.assertIsDefined(n),t===n)return!1;const l=null==s?void 0:s.get(t.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies||!!l.packageName&&b0(t,l.packageName);const u=Uy(a),_=null==(c=a.getGlobalTypingsCacheLocation)?void 0:c.call(a),d=!!eB.forEachFileNameOfModule(t.fileName,n.fileName,a,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r,i){const o=SM(i,t,(e=>"node_modules"===jo(e)?e:void 0)),a=o&&Ro(n(o));return void 0===a||en(n(e),a)||!!r&&en(n(r),a)}(t.fileName,r,u,_,a)}));if(o){const e=d?o.getSourceFileInfo(n,a):void 0;return null==s||s.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},null==e?void 0:e.packageName,!(null==e?void 0:e.importable)),!!(null==e?void 0:e.importable)||d&&!!(null==e?void 0:e.packageName)&&b0(t,e.packageName)}return d}function b0(e,t){return e.imports&&e.imports.some((e=>e.text===t||e.text.startsWith(t+"/")))}function x0(e,t,n,r,i){var o,a;const s=qy(t),c=n.autoImportFileExcludePatterns&&S0(n,s);k0(e.getTypeChecker(),e.getSourceFiles(),c,t,((t,n)=>i(t,n,e,!1)));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=Gn(),r=e.getTypeChecker();k0(l.getTypeChecker(),l.getSourceFiles(),c,t,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(Gn()-n))}}function S0(e,t){return q(e.autoImportFileExcludePatterns,(e=>{const n=bk(e,"","exclude");return n?kk(n,t):void 0}))}function k0(e,t,n,r,i){var o;const a=n&&T0(n,r);for(const t of e.getAmbientModules())t.name.includes("*")||n&&(null==(o=t.declarations)?void 0:o.every((e=>a(e.getSourceFile()))))||i(t,void 0);for(const n of t)af(n)&&!(null==a?void 0:a(n))&&i(e.getMergedSymbol(n.symbol),n)}function T0(e,t){var n;const r=null==(n=t.getSymlinkCache)?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:n,path:i})=>{if(e.some((e=>e.test(n))))return!0;if((null==r?void 0:r.size)&&Hj(n)){let o=Ro(n);return SM(t,Ro(i),(t=>{const i=r.get(Yo(t));if(i)return i.some((t=>e.some((e=>e.test(n.replace(o,t))))));o=Ro(o)}))??!1}return!1}}function C0(e,t){return t.autoImportFileExcludePatterns?T0(S0(t,qy(e)),e):()=>!1}function D0(e,t,n,r,i){var o,a,s,c,l;const u=Gn();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const _=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||y0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(_.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),_;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let d=0;try{x0(n,t,r,!0,((t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),c=w0(t,s);c&&E0(c.symbol,s)&&_.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&E0(r,s)&&Ex(a,i)&&_.add(e.path,r,i,t,n,0,o,s)}))}))}catch(e){throw _.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${Gn()-u} ms`),_}function w0(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e){const e=t.tryGetMemberInModuleExports("default",n);return e?{symbol:e,exportKind:1}:{symbol:n,exportKind:2}}const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}function E0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Yh(e)||Zh(e))}function F0(e,t,n,r){let i,o=e;const a=new Set;for(;o;){const e=e0(o);if(e){const t=r(e);if(t)return t}if("default"!==o.escapedName&&"export="!==o.escapedName){const e=r(o.name);if(e)return e}if(i=le(i,o),!Ex(a,o))break;o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(const e of i??u)if(e.parent&&rd(e.parent)){const t=r(t0(e.parent,n,!1),t0(e.parent,n,!0));if(t)return t}}function N0(){const e=ks(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return gn.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let u=0;const _=[];let d=0;do{i=e.scan(),Bh(i)||(p(),o=i);const n=e.getTokenEnd();if(O0(e.getTokenStart(),n,l,R0(i),_),n>=t.length){const t=I0(e,i,ke(a));void 0!==t&&(u=t)}}while(1!==i);function p(){switch(i){case 44:case 69:A0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=ke(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():gn.assertEqual(i,17,"Should have been a template middle.")):(gn.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Ah(i))break;(25===o||Ah(o)&&Ah(i)&&!function(e,t){if(!CQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:u,spans:_}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:L0(a)}),i=t+o}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}var P0,A0=qe([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0));function I0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(!(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if($l(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return gn.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function O0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function L0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function R0(e){if(Ah(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return $l(e)?6:2}}function j0(e,t,n,r,i){return $0(B0(e,t,n,r,i))}function M0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function B0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&Ws(i,s.pos,s.getFullWidth())){if(M0(t,s.kind),Xw(s)&&!Id(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&J0(t,HK(s),e);r&&function(e,t,n){const r=t-e;gn.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function J0(e,t,n){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return X(e.declarations,(e=>aN(e)&&1===zM(e)))}(e)?14:void 0:2097152&r?J0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function z0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function $0(e){gn.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/m,i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,o=t.text.substr(e,n),a=r.exec(o);if(!a)return!1;if(!a[3]||!(a[3]in zi))return!1;let s=e;u(s,a[1].length),s+=a[1].length,c(s,a[2].length,10),s+=a[2].length,c(s,a[3].length,21),s+=a[3].length;const l=a[4];let _=s;for(;;){const e=i.exec(l);if(!e)break;const t=s+e.index+e[1].length;t>_&&(u(_,t-_),_=t),c(_,e[2].length,22),_+=e[2].length,e[3].length&&(u(_,e[3].length),_+=e[3].length),c(_,e[4].length,5),_+=e[4].length,e[5].length&&(u(_,e[5].length),_+=e[5].length),c(_,e[6].length,24),_+=e[6].length}s+=a[4].length,s>_&&u(_,s-_),a[5]&&(c(s,a[5].length,10),s+=a[5].length);const d=e+n;return s=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Ah(e))return 3;if((30===e||32===e)&&t&&vQ(t.parent))return 10;if(Ih(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if($l(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?gv(t)?3:17:void 0}if(Fl(t.parent))return 3}return 2}}function g(n){if(n&&Hs(r,i,n.pos,n.getFullWidth())){M0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function V0(e){return!!e.sourceFile}function W0(e,t,n){return H0(e,t,n)}function H0(e,t="",n,r){const i=new Map,o=Xt(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return u(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return u(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=V0(e)?e:e.get(gn.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return gn.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function u(e,t,o,s,c,u,_,d,p){var f,m,g,h;d=wk(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:DS(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&PU(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:xS(y),jsDocParsingMode:n};x.languageVersion=b,gn.assertEqual(n,x.jsDocParsingMode);const S=i.size,k=K0(s,x.impliedNodeFormat),T=V(i,k,(()=>new Map));if(Yn){i.size>S&&Yn.instant(Yn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:k});const e=!iO(t)&&ld(i,((e,n)=>n!==k&&e.has(t)&&n));e&&Yn.instant(Yn.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:k})}const C=T.get(t);let D=C&&l(C,d);if(!D&&r){const e=r.getDocument(k,t);e&&e.scriptKind===d&&e.text===UQ(c)&&(gn.assert(_),D={sourceFile:e,languageServiceRefCount:0},w())}if(D)D.sourceFile.version!==u&&(D.sourceFile=r7(D.sourceFile,c,u,c.getChangeRange(D.sourceFile.scriptSnapshot)),r&&r.setDocument(k,t,D.sourceFile)),_&&D.languageServiceRefCount++;else{const n=n7(e,c,x,u,!1,d);r&&r.setDocument(k,t,n),D={sourceFile:n,languageServiceRefCount:1},w()}return gn.assert(0!==D.languageServiceRefCount),D.sourceFile;function w(){if(C)if(V0(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,D),T.set(t,e)}else C.set(d,D);else T.set(t,D)}}function _(e,t,n,r){const o=gn.checkDefined(i.get(K0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,gn.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(V0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,h(a.values(),dt))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,Xo(e,t,o),n,G0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,Xo(e,t,o),n,G0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return _(Xo(e,t,o),G0(n),r,i)},releaseDocumentWithKey:_,getKeyForCompilationSettings:G0,getDocumentRegistryBucketKeyWithMode:K0,reportStats:function(){const e=Be(i.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=i.get(e),n=[];return t.forEach(((e,t)=>{V0(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getBuckets:()=>i}}function G0(e){return bj(e,AO)}function K0(e,t){return t?`${e}|${t}`:e}function X0(e,t,n,r,i,o,a){const s=qy(r),c=Xt(s),l=Q0(t,n,c,a),u=Q0(n,t,c,a);return Z_e.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Ro(s.fileName),l=Yf(s);function u(e){const t=eF(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=_(e)||n;return n}function _(e){if(!Iw(e))return!1;const r=Y0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,n1(e,s),d(i)),!0)}function d(e){return ua(c,e,!a)}l&&r1(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(u(e)||"include"!==n||!eF(e.initializer))return;const l=q(e.initializer.elements,(e=>Iw(e)?e.text:void 0));if(0===l.length)return;const _=Sk(c,[],l,a,o);return void(kk(gn.checkDefined(_.includeFilePattern),a).test(r)&&!kk(gn.checkDefined(_.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,Te(e.initializer.elements),oD.createStringLiteral(d(i))))}case"compilerOptions":return void r1(e.initializer,((e,t)=>{const n=rL(t);gn.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?u(e):"paths"===t&&r1(e.initializer,(e=>{if(eF(e.initializer))for(const t of e.initializer.elements)_(t)}))}))}}))}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,u=Ro(l),_=r(s.fileName),d=_||s.fileName,p=Ro(d),f=void 0!==c||void 0!==_;t1(s,t,(e=>{if(!wo(e))return;const t=Y0(p,e),r=n(t);return void 0===r?void 0:Zo(ua(u,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>fp(e))))return;const o=void 0!==_?e1(t,Oj(t.text,d,e.getCompilerOptions(),i),n,a):Z0(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&wo(t.text))?eB.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,QQ(e,i),t.text):void 0}))}}(e,i,l,u,r,c)}))}function Q0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=ak(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=da(e,t,r);return Y0(Ro(n),i)}(o.fileName,a,e,n):a}}function Y0(e,t){return Zo(function(e,t){return Go(Uo(e,t))}(e,t))}function Z0(e,t,n,r,i,o){if(e){const t=T(e.declarations,QN).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return e1(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function e1(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=a(t.resolvedModule.resolvedFileName);if(e)return e}const i=f(t.failedLookupLocations,(function(e){const t=n(e);return t&&T(r,(e=>e.fileName===t))?o(e):void 0}))||wo(e.text)&&f(t.failedLookupLocations,o);return i||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(e){return $t(e,"/package.json")?void 0:a(e)}function a(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function t1(e,t,n,r){for(const r of e.referencedFiles||u){const i=n(r.fileName);void 0!==i&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(const n of e.imports){const i=r(n);void 0!==i&&i!==n.text&&t.replaceRangeWithText(e,n1(n,e),i)}}function n1(e,t){return Jb(e.getStart(t)+1,e.end-1)}function r1(e,t){if(tF(e))for(const n of e.properties)HN(n)&&Iw(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:AQ(e,t),kind:"none"}}function n(e){return XF(e)?[e]:QF(e)?Y(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):uu(e)?void 0:i(e,n)}function r(e){return Al(e)?[e]:uu(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...rt(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return yc(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!yc(e.parent,(e=>KF(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return uu(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!E(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&246===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return f(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function l(e){const t=a(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return c(t);case 255:return u(t)}}function u(e){const t=[];return s(t,e.getFirstToken(),109),f(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),f(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function _(e,t){const n=[];return s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&s(n,RX(e,98,t),98),n}function d(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Vf(e)||307===e.kind)return e;if(QF(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return f(n(r),(e=>{i.push(RX(e,111,t))})),Vf(r)&&Of(r,(e=>{i.push(RX(e,107,t))})),i}function p(e,t){const r=tm(e);if(!r)return;const i=[];return Of(st(r.body,OF),(e=>{i.push(RX(e,107,t))})),f(n(r.body),(e=>{i.push(RX(e,111,t))})),i}function m(e){const t=tm(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),qI(t,(e=>{g(e,(e=>{fF(e)&&s(n,e.getFirstToken(),135)}))})),n}function g(e,t){t(e),uu(e)||yu(e)||rN(e)||aN(e)||iN(e)||wu(e)||qI(e,(e=>g(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=GX(r,i);if(a.parent&&(IN(a.parent)&&a.parent.tagName===a||ON(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=Nce.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Ue(a.map(Nce.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=Xt(n.useCaseSensitiveFileNames());return Be(U(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(Xo(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=T(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,gn.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return MF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;MF(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!MF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!Xa(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:Zs(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,WF,p);case 111:return o(e.parent,XF,d);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,QF,_);case 109:return o(e.parent,GF,u);case 84:case 90:return UN(e.parent)||qN(e.parent)?o(e.parent.parent.parent,GF,u):void 0;case 83:case 88:return o(e.parent,Al,l);case 99:case 117:case 92:return o(e.parent,(e=>Zu(e,!0)),c);case 137:return i(xE,[137]);case 139:case 153:return i(vu,[139,153]);case 135:return o(e.parent,fF,m);case 134:return a(m(e));case 127:return a(function(e){const t=tm(e);if(!t)return;const n=[];return qI(t,(e=>{g(e,(e=>{bF(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:case 147:return;default:return ru(e.kind)&&(h_(e.parent)||LF(e.parent))?a((r=e.kind,q(function(e,t){const n=e.parent;switch(n.kind){case 268:case 307:case 241:case 296:case 297:return 64&t&&nN(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...yu(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(15&t){const e=T(n.members,xE);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;default:return}}(e.parent,tb(r)),(e=>pY(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return q(null==(i=at(e,p_))?void 0:i.symbol.declarations,(e=>t(e)?T(e.getChildren(n),(e=>E(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(P0||(P0={}));var i1=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(i1||{});function o1(e,t){return{kind:e,isCaseSensitive:t}}function a1(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:b1(t=e.trim()),subWordTextChunks:v1(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>o1(2,!0),getFullMatch:()=>o1(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){const i=l1(t,Te(n),r);if(!i)return;if(n.length-1>e.length)return;let o;for(let t=n.length-2,i=e.length-1;t>=0;t-=1,i-=1)o=u1(o,l1(e[i],n[t],r));return o}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>l1(e,Te(n),t),patternContainsDots:n.length>1}}function s1(e,t){let n=t.get(e);return n||t.set(e,n=S1(e)),n}function c1(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(F1(t,((t,n)=>g1(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return o1(t.text.length===e.length?0:1,en(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=s1(e,n);for(const n of i)if(d1(e,n,t.text,!0))return o1(2,d1(e,n,t.text,!1));if(t.text.length0)return o1(2,!0);if(t.characterSpans.length>0){const r=s1(e,n),i=!!p1(e,r,t,!1)||!p1(e,r,t,!0)&&void 0;if(void 0!==i)return o1(3,i)}}}function l1(e,t,n){if(F1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=c1(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=u1(i,c1(e,t,n));return i}function u1(e,t){return wt([e,t],_1)}function _1(e,t){return void 0===e?1:void 0===t?-1:Tt(e.kind,t.kind)||Bt(!e.isCaseSensitive,!t.isCaseSensitive)}function d1(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&E1(0,i.length,(o=>function(e,t,n){return n?g1(e)===g1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function p1(e,t,n,r){const i=n.characterSpans;let o=0,a=0;for(;;){if(a===i.length)return!0;if(o===t.length)return!1;let s=t[o],c=!1;for(;a=65&&e<=90)return!0;if(e<127||!Ia(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function m1(e){if(e>=97&&e<=122)return!0;if(e<127||!Ia(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function g1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function h1(e){return e>=48&&e<=57}function y1(e){return f1(e)||m1(e)||h1(e)||95===e||36===e}function v1(e){const t=[];let n=0,r=0;for(let i=0;i0&&(t.push(b1(e.substr(n,r))),r=0);return r>0&&t.push(b1(e.substr(n,r))),t}function b1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:x1(e)}}function x1(e){return k1(e,!1)}function S1(e){return k1(e,!0)}function k1(e,t){const n=[];let r=0;for(let i=1;iT1(e)&&95!==e),t,n)}function D1(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n)))}function N1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function u(){return a=s,s=UK.scan(),19===s?c++:20===s&&c--,s}function _(){const e=UK.getTokenValue(),t=UK.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function d(){i.push(_()),f()}function f(){0===c&&(l=!0)}function m(){let e=UK.getToken();return 138===e&&(e=u(),144===e&&(e=u(),11===e&&(o||(o=[]),o.push({ref:_(),depth:c}))),!0)}function g(){if(25===a)return!1;let e=UK.getToken();if(102===e){if(e=u(),21===e){if(e=u(),11===e||15===e)return d(),!0}else{if(11===e)return d(),!0;if(156===e&&UK.lookAhead((()=>{const e=UK.scan();return 161!==e&&(42===e||19===e||80===e||Ah(e))}))&&(e=u()),80===e||Ah(e))if(e=u(),161===e){if(e=u(),11===e)return d(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=u()}if(19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&d()))}else 42===e&&(e=u(),130===e&&(e=u(),(80===e||Ah(e))&&(e=u(),161===e&&(e=u(),11===e&&d()))))}return!0}return!1}function h(){let e=UK.getToken();if(95===e){if(f(),e=u(),156===e&&UK.lookAhead((()=>{const e=UK.scan();return 42===e||19===e}))&&(e=u()),19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&d()))}else if(42===e)e=u(),161===e&&(e=u(),11===e&&d());else if(102===e&&(e=u(),156===e&&UK.lookAhead((()=>{const e=UK.scan();return 80===e||Ah(e)}))&&(e=u()),(80===e||Ah(e))&&(e=u(),64===e&&y(!0))))return!0;return!0}return!1}function y(e,t=!1){let n=e?u():UK.getToken();return 149===n&&(n=u(),21===n&&(n=u(),(11===n||t&&15===n)&&d()),!0)}function v(){let e=UK.getToken();if(80===e&&"define"===UK.getTokenValue()){if(e=u(),21!==e)return!0;if(e=u(),11===e||15===e){if(e=u(),28!==e)return!0;e=u()}if(23!==e)return!0;for(e=u();24!==e&&1!==e;)11!==e&&15!==e||d(),e=u();return!0}return!1}if(t&&function(){for(UK.setText(e),u();1!==UK.getToken();){if(16===UK.getToken()){const e=[UK.getToken()];e:for(;p(e);){const t=UK.scan();switch(t){case 1:break e;case 102:g();break;case 16:e.push(t);break;case 19:p(e)&&e.push(t);break;case 20:p(e)&&(16===ke(e)?18===UK.reScanTemplateToken(!1)&&e.pop():e.pop())}}u()}m()||g()||h()||n&&(y(!1,!0)||v())||u()}UK.setText(void 0)}(),aO(r,e),sO(r,ct),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var P1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function A1(e){const t=Xt(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!iO(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(t){if(iO(t.fileName))return;const n=s(t.fileName);if(!n)return;const r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(n.fileName))return;const i=r.getCompilerOptions().outFile,o=i?Xk(i)+".d.ts":Qy(t.fileName,r.getCompilerOptions(),r);if(void 0===o)return;const c=a(o,t.fileName).getGeneratedPosition(t);return c===t?void 0:c},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()},documentPositionMappers:i};function o(e){return Xo(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let c;if(e.getDocumentPositionMapper)c=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=l(n);c=r&&I1({getSourceFileLike:l,getCanonicalFileName:t,log:t=>e.log(t)},n,TJ(r.text,Ua(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,c||MJ),c||MJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(e){return Va(Ua(this),e)}}}(a);return r.set(n,s),s||void 0}function l(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||c(t)}}function I1(e,t,n,r){let i=CJ(n);if(i){const n=P1.exec(i);if(n){if(n[1]){const r=n[1];return O1(e,Ab(go,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&Ho(i,Ro(t));for(const n of o){const i=Ho(n,Ro(t)),o=r(i,a);if(it(o))return O1(e,o,i);if(void 0!==o)return o||void 0}}function O1(e,t,n){const r=wJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(it)))return jJ(e,r,n)}var L1=new Map;function R1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;1!==t.getImpliedNodeFormatForEmit(e)&&!Po(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&(KQ(t)||XQ(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&$m(j1(e.initializer),!0)));case 244:{const{expression:t}=e;if(!hF(t))return $m(t,!0);const n=cg(t);return 1===n||2===n}default:return!1}}))}(e)&&i.push(Up(hF(a=e.commonJsModuleIndicator)?a.left:a,ha.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Rm(e);if(L1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(lF(e)){if(ZF(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!tN(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,o)&&i.push(Up(ZF(n.parent)?n.parent.name:n,ha.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(LF(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&$m(e,!0)&&i.push(Up(e,ha.require_call_may_be_converted_to_an_import))}const t=M7.getJSDocTypedefNodes(n);for(const e of t)i.push(Up(e,ha.JSDoc_typedef_may_be_converted_to_TypeScript_type));M7.parameterShouldGetTypeFromJSDoc(n)&&i.push(Up(n.name||n,ha.JSDoc_types_may_be_moved_to_TypeScript_types))}W1(n)&&function(e,t,n){(function(e,t){return!$h(e)&&e.body&&OF(e.body)&&function(e,t){return!!Of(e,(e=>J1(e,t)))}(e.body,t)&&B1(e,t)})(e,t)&&!L1.has(V1(e))&&n.push(Up(!e.name&&ZF(e.parent)&&Xw(e.parent.name)?e.parent.name:e,ha.This_may_be_converted_to_an_async_function))}(n,o,i),n.forEachChild(t)}(e),AS(t.getCompilerOptions()))for(const n of e.imports){const o=M1(Dg(n));if(!o)continue;const a=null==(r=t.getResolvedModuleFromModuleSpecifier(n,e))?void 0:r.resolvedModule,s=a&&t.getSourceFile(a.resolvedFileName);s&&s.externalModuleIndicator&&!0!==s.externalModuleIndicator&&SN(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&i.push(Up(o,ha.Import_may_be_converted_to_a_default_import))}return de(i,e.bindSuggestionDiagnostics),de(i,t.getSuggestionDiagnostics(e,n)),i.sort(((e,t)=>e.start-t.start)),i}function j1(e){return nF(e)?j1(e.expression):e}function M1(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&Iw(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function B1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function J1(e,t){return WF(e)&&!!e.expression&&z1(e.expression,t)}function z1(e,t){if(!$1(e)||!q1(e)||!e.arguments.every((e=>U1(e,t))))return!1;let n=e.expression.expression;for(;$1(n)||nF(n);)if(iF(n)){if(!q1(n)||!n.arguments.every((e=>U1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function $1(e){return iF(e)&&(sX(e,"then")||sX(e,"catch")||sX(e,"finally"))}function q1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length106===e.kind||Xw(e)&&"undefined"===e.text)))}function U1(e,t){switch(e.kind){case 262:case 218:if(1&zh(e))return!1;case 219:L1.set(V1(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||X(px(n,t).declarations,(e=>uu(e)||j_(e)&&!!e.initializer&&uu(e.initializer))))}default:return!1}}function V1(e){return`${e.pos.toString()}:${e.end.toString()}`}function W1(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var H1=new Set(["isolatedModules"]);function G1(e,t){return e2(e,t,!1)}function K1(e,t){return e2(e,t,!0)}var X1,Q1,Y1='/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}',Z1="lib.d.ts";function e2(e,t,n){X1??(X1=HI(Z1,Y1,{languageVersion:99}));const r=[],i=t.compilerOptions?n2(t.compilerOptions,r):{},o={target:1,jsx:1};for(const e in o)Ie(o,e)&&void 0===i[e]&&(i[e]=o[e]);for(const e of OO)i.verbatimModuleSyntax&&H1.has(e.name)||(i[e.name]=e.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,n?(i.declaration=!0,i.emitDeclarationOnly=!0,i.isolatedDeclarations=!0):(i.declaration=!1,i.declarationMap=!1);const a=Bb(i),s={getSourceFile:e=>e===Go(c)?l:e===Go(Z1)?X1:void 0,writeFile:(e,t)=>{No(e,".map")?(gn.assertEqual(_,void 0,"Unexpected multiple source map outputs, file:",e),_=t):(gn.assertEqual(u,void 0,"Unexpected multiple outputs, file:",e),u=t)},getDefaultLibFileName:()=>Z1,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===c||!!n&&e===Z1,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=HI(c,e,{languageVersion:DS(i),impliedNodeFormat:PU(Xo(c,"",s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:xS(i),jsDocParsingMode:t.jsDocParsingMode??0});let u,_;t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const d=OU(n?[c,Z1]:[c],i,s);return t.reportDiagnostics&&(de(r,d.getSyntacticDiagnostics(l)),de(r,d.getOptionsDiagnostics())),de(r,d.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),void 0===u?gn.fail("Output generation failed"):{outputText:u,diagnostics:r,sourceMapText:_}}function t2(e,t,n,r,i){const o=G1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return de(r,o.diagnostics),o.outputText}function n2(e,t){Q1=Q1||P(wO,(e=>"object"==typeof e.type&&!ld(e.type,(e=>"number"!=typeof e)))),e=DQ(e);for(const n of Q1){if(!Ie(e,n.name))continue;const r=e[n.name];it(r)?e[n.name]=GO(n,r,t):ld(n.type,(e=>e===r))||t.push(WO(n))}return e}var r2={};function i2(e,t,n,r,i,o,a){const s=a1(r);if(!s)return u;const c=[],l=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||o2(r,!!a,l)||r.getNamedDeclarations().forEach(((e,n)=>{a2(s,n,e,t,r.fileName,!!a,l,c)}));return c.sort(d2),(void 0===i?c:c.slice(0,i)).map(p2)}function o2(e,t,n){return e!==n&&t&&(VZ(e.path)||e.hasNoDefaultLib)}function a2(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(s2(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(_2(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}function s2(e,t,n,r){var i;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every((e=>o2(e.getSourceFile(),n,r))));default:return!0}}function c2(e,t){const n=Ac(e);return!!n&&(u2(n,t)||167===n.kind&&l2(n.expression,t))}function l2(e,t){return u2(e,t)||nF(e)&&(t.push(e.name.text),!0)&&l2(e.expression,t)}function u2(e,t){return Gh(e)&&(t.push(Kh(e)),!0)}function _2(e){const t=[],n=Ac(e);if(n&&167===n.kind&&!l2(n.expression,t))return u;t.shift();let r=vX(e);for(;r;){if(!c2(r,t))return u;r=vX(r)}return t.reverse(),t}function d2(e,t){return Tt(e.matchKind,t.matchKind)||jt(e.name,t.name)}function p2(e){const t=e.declaration,n=vX(t),r=n&&Ac(n);return{name:e.name,kind:bX(t),kindModifiers:yQ(t),matchKind:i1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:AQ(t),containerName:r?r.text:"",containerKind:r?bX(n):""}}n(r2,{getNavigateToItems:()=>i2});var f2={};n(f2,{getNavigationBarItems:()=>T2,getNavigationTree:()=>C2});var m2,g2,h2,y2,v2=/\s+/g,b2=150,x2=[],S2=[],k2=[];function T2(e,t){m2=t,g2=e;try{return O(function(e){const t=[];function n(e){if(r(e)&&(t.push(e),e.children))for(const t of e.children)n(t)}return n(e),t;function r(e){if(e.children)return!0;switch(E2(e)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(E2(e.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}(N2(e)),Z2)}finally{D2()}}function C2(e,t){m2=t,g2=e;try{return Y2(N2(e))}finally{D2()}}function D2(){g2=void 0,m2=void 0,x2=[],h2=void 0,k2=[]}function w2(e){return l6(e.getText(g2))}function E2(e){return e.node.kind}function F2(e,t){e.children?e.children.push(t):e.children=[t]}function N2(e){gn.assert(!x2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};h2=t;for(const t of e.statements)z2(t);return j2(),gn.assert(!h2&&!x2.length),t}function P2(e,t){F2(h2,A2(e,t))}function A2(e,t){return{node:e,name:t||(h_(e)||Qu(e)?Ac(e):void 0),additionalNodes:void 0,parent:h2,children:void 0,indent:h2.indent+1}}function I2(e){y2||(y2=new Map),y2.set(e,!0)}function O2(e){for(let t=0;t0;t--)R2(e,n[t]);return[n.length-1,n[0]]}function R2(e,t){const n=A2(e,t);F2(h2,n),x2.push(h2),S2.push(y2),y2=void 0,h2=n}function j2(){h2.children&&($2(h2.children,h2),G2(h2.children)),h2=x2.pop(),y2=S2.pop()}function M2(e,t,n){R2(e,n),z2(t),j2()}function B2(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(R2(e),qI(e.initializer,z2),j2()):M2(e,e.initializer)}function J2(e){const t=Ac(e);if(void 0===t)return!1;if(dE(t)){const e=t.expression;return fb(e)||Pw(e)||qh(e)}return!!t}function z2(e){if(m2.throwIfCancellationRequested(),e&&!jl(e))switch(e.kind){case 176:const t=e;M2(t,t.body);for(const e of t.parameters)ac(e,t)&&P2(e);break;case 174:case 177:case 178:case 173:J2(e)&&M2(e,e.body);break;case 172:J2(e)&&B2(e);break;case 171:J2(e)&&P2(e);break;case 273:const n=e;n.name&&P2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)P2(r);else for(const e of r.elements)P2(e);break;case 304:M2(e,e.name);break;case 305:const{expression:i}=e;Xw(i)?P2(e,i):P2(e);break;case 208:case 303:case 260:{const t=e;Fu(t.name)?z2(t.name):B2(t);break}case 262:const o=e.name;o&&Xw(o)&&I2(o.text),M2(e,e.body);break;case 219:case 218:M2(e,e.body);break;case 266:R2(e);for(const t of e.members)i6(t)||P2(t);j2();break;case 263:case 231:case 264:R2(e);for(const t of e.members)z2(t);j2();break;case 267:M2(e,r6(e).body);break;case 277:{const t=e.expression,n=tF(t)||iF(t)?t:uF(t)||lF(t)?t.body:void 0;n?(R2(e),z2(n),j2()):P2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:P2(e);break;case 213:case 226:{const t=cg(e);switch(t){case 1:case 2:return void M2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return Xw(i.expression)?(I2(i.expression.text),o=i.expression):[a,o]=L2(n,i.expression),6===t?tF(n.right)&&n.right.properties.length>0&&(R2(n,o),qI(n.right,z2),j2()):lF(n.right)||uF(n.right)?M2(e,n.right,o):(R2(n,o),M2(e,n.right,r.name),j2()),void O2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=L2(e,r);return R2(e,a),R2(e,fI(oD.createIdentifier(i.text),i)),z2(e.arguments[2]),j2(),j2(),void O2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(Xw(r)&&"prototype"!==hg(n)&&y2&&y2.has(r.text))return void(lF(t.right)||uF(t.right)?M2(e,t.right,r):dg(n)&&(R2(t,r),M2(t.left,t.right,mg(n)),j2()));break}case 4:case 0:case 8:break;default:gn.assertNever(t)}}default:L_(e)&&f(e.jsDoc,(e=>{f(e.tags,(e=>{Lg(e)&&P2(e)}))})),qI(e,z2)}}function $2(e,t){const n=new Map;A(e,((e,r)=>{const i=e.name||Ac(e.node),o=i&&w2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(U2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!U2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}var q2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function U2(e,t,n,r){return!!function(e,t,n,r){function i(e){return lF(e)||tN(e)||ZF(e)}const o=hF(t.node)||iF(t.node)?cg(t.node):0,a=hF(e.node)||iF(e.node)?cg(e.node):0;if(q2[o]&&q2[a]||i(e.node)&&q2[o]||i(t.node)&&q2[a]||nN(e.node)&&V2(e.node)&&q2[o]||nN(t.node)&&q2[a]||nN(e.node)&&V2(e.node)&&i(t.node)||nN(t.node)&&i(e.node)&&V2(e.node)){let o=e.additionalNodes&&ke(e.additionalNodes)||e.node;if(!nN(e.node)&&!nN(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=A2(fI(oD.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?Y([r],t.children||[t]):Y(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=Y(e.children||[{...e}],t.children||[t]),e.children&&($2(e.children,e),G2(e.children)));o=e.node=fI(oD.createClassDeclaration(void 0,e.name||oD.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Y(e.children,t.children),e.children&&$2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?fI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(fI(oD.createClassDeclaration(void 0,e.name||oD.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!W2(e,n)||!W2(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Rv(e)===Rv(t);case 267:return H2(e,t)&&n6(e)===n6(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=Y(i.children,o.children),i.children&&($2(i.children,i),G2(i.children)),!0);var i,o}function V2(e){return!!(16&e.flags)}function W2(e,t){if(void 0===e.parent)return!1;const n=sN(e.parent)?e.parent.parent:e.parent;return n===t.node||E(t.additionalNodes,n)}function H2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||H2(e.body,t.body)):e.body===t.body}function G2(e){e.sort(K2)}function K2(e,t){return jt(X2(e.node),X2(t.node))||Tt(E2(e),E2(t))}function X2(e){if(267===e.kind)return t6(e);const t=Ac(e);if(t&&cu(t)){const e=Hh(t);return e&&Sc(e)}switch(e.kind){case 218:case 219:case 231:return s6(e);default:return}}function Q2(e,t){if(267===e.kind)return l6(t6(e));if(t){const e=Xw(t)?t.text:rF(t)?`[${w2(t.argumentExpression)}]`:w2(t);if(e.length>0)return l6(e)}switch(e.kind){case 307:const t=e;return XI(t)?`"${Ey(jo(Xk(Go(t.fileName))))}"`:"";case 277:return SN(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&Kv(e)?"default":s6(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function Y2(e){return{text:Q2(e.node,e.name),kind:bX(e.node),kindModifiers:a6(e.node),spans:e6(e),nameSpan:e.name&&o6(e.name),childItems:O(e.children,Y2)}}function Z2(e){return{text:Q2(e.node,e.name),kind:bX(e.node),kindModifiers:a6(e.node),spans:e6(e),childItems:O(e.children,(function(e){return{text:Q2(e.node,e.name),kind:bX(e.node),kindModifiers:yQ(e.node),spans:e6(e),childItems:k2,indent:0,bolded:!1,grayed:!1}}))||k2,indent:e.indent,bolded:!1,grayed:!1}}function e6(e){const t=[o6(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(o6(n));return t}function t6(e){return fp(e)?np(e.name):n6(e)}function n6(e){const t=[Kh(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(Kh(e.name));return t.join(".")}function r6(e){return e.body&&aN(e.body)?r6(e.body):e}function i6(e){return!e.name||167===e.name.kind}function o6(e){return 307===e.kind?LQ(e):AQ(e,g2)}function a6(e){return e.parent&&260===e.parent.kind&&(e=e.parent),yQ(e)}function s6(e){const{parent:t}=e;if(e.name&&pd(e.name)>0)return l6(Mp(e.name));if(ZF(t))return l6(Mp(t.name));if(hF(t)&&64===t.operatorToken.kind)return w2(t.left).replace(v2,"");if(HN(t))return w2(t.name);if(2048&Kv(e))return"default";if(yu(e))return"";if(iF(t)){let e=c6(t.expression);if(void 0!==e)return e=l6(e),e.length>b2?`${e} callback`:`${e}(${l6(q(t.arguments,(e=>q_(e)||Uu(e)?e.getText(g2):void 0)).join(", "))}) callback`}return""}function c6(e){if(Xw(e))return e.text;if(nF(e)){const t=c6(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function l6(e){return(e=e.length>b2?e.substring(0,b2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var u6={};n(u6,{addExportsInOldFile:()=>q6,addImportsForMovedSymbols:()=>X6,addNewFileToTsconfig:()=>$6,addOrRemoveBracesToArrowFunction:()=>R3,addTargetFileImports:()=>T3,containsJsx:()=>c3,convertArrowFunctionOrFunctionExpression:()=>H3,convertParamsToDestructuredObject:()=>r4,convertStringOrTemplateLiteral:()=>k4,convertToOptionalChainExpression:()=>j4,createNewFileName:()=>a3,doChangeNamedToNamespaceOrDefault:()=>D6,extractSymbol:()=>K4,generateGetAccessorAndSetAccessor:()=>f8,getApplicableRefactors:()=>p6,getEditsForRefactor:()=>f6,getExistingLocals:()=>b3,getIdentifierForNode:()=>k3,getNewStatementsAndRemoveFromOldFile:()=>z6,getStatementsToMove:()=>s3,getUsageInfo:()=>u3,inferFunctionReturnType:()=>y8,isInImport:()=>p3,isRefactorErrorInfo:()=>x3,refactorKindBeginsWith:()=>S3,registerRefactor:()=>d6});var _6=new Map;function d6(e,t){_6.set(e,t)}function p6(e,t){return Be(J(_6.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>S3(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function f6(e,t,n,r){const i=_6.get(t);return i&&i.getEditsForAction(e,n,r)}var m6="Convert export",g6={name:"Convert default export to named export",description:Yx(ha.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},h6={name:"Convert named export to default export",description:Yx(ha.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function y6(e,t=!0){const{file:n,program:r}=e,i=KZ(e),o=XX(n,i.start),a=o.parent&&32&Kv(o.parent)&&t?o.parent:_Y(o,n,i);if(!a||!(QN(a.parent)||sN(a.parent)&&fp(a.parent.parent)))return{error:Yx(ha.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(QN(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&bp(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),l=Kv(a)||(SN(a)&&!a.isExportEquals?2080:0),u=!!(2048&l);if(!(32&l)||!u&&c.exports.has("default"))return{error:Yx(ha.This_file_already_has_a_default_export)};const _=e=>Xw(e)&&s.getSymbolAtLocation(e)?void 0:{error:Yx(ha.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return _(e.name)||{exportNode:e,exportName:e.name,wasDefault:u,exportingModuleSymbol:c}}case 243:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=xe(e.declarationList.declarations);if(!t.initializer)return;return gn.assert(!u,"Can't have a default flag here"),_(t.name)||{exportNode:e,exportName:t.name,wasDefault:u,exportingModuleSymbol:c}}case 277:{const e=a;if(e.isExportEquals)return;return _(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:u,exportingModuleSymbol:c}}default:return}}function v6(e,t){return oD.createImportSpecifier(!1,e===t?void 0:oD.createIdentifier(e),oD.createIdentifier(t))}function b6(e,t){return oD.createExportSpecifier(!1,e===t?void 0:oD.createIdentifier(e),oD.createIdentifier(t))}d6(m6,{kinds:[g6.kind,h6.kind],getAvailableActions:function(e){const t=y6(e,"invoked"===e.triggerReason);if(!t)return u;if(!x3(t)){const e=t.wasDefault?g6:h6;return[{name:m6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:m6,description:Yx(ha.Convert_default_export_to_named_export),actions:[{...g6,notApplicableReason:t.error},{...h6,notApplicableReason:t.error}]}]:u},getEditsForAction:function(e,t){gn.assert(t===g6.name||t===h6.name,"Unexpected action name");const n=y6(e);gn.assert(n&&!x3(n),"Expected applicable refactor info");const r=Z_e.ChangeTracker.with(e,(t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(SN(n)&&!n.isExportEquals){const t=n.expression,r=b6(t.text,t.text);i.replaceNode(e,n,oD.createExportDeclaration(void 0,!1,oD.createNamedExports([r])))}else i.delete(e,gn.checkDefined(pY(n,90),"Should find a default keyword in modifier list"));else{const t=gn.checkDefined(pY(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:i.insertNodeAfter(e,t,oD.createToken(90));break;case 243:const a=xe(n.declarationList.declarations);if(!Nce.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,oD.createExportDefault(gn.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:i.deleteModifier(e,t),i.insertNodeAfter(e,n,oD.createExportDefault(oD.createIdentifier(r.text)));break;default:gn.fail(`Unexpected exportNode kind ${n.kind}`)}}})(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=gn.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");Nce.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 211:n.replaceNode(e,t,oD.createIdentifier(r));break;case 276:case 281:{const t=i;n.replaceNode(e,t,v6(r,t.name.text));break}case 273:{const o=i;gn.assert(o.name===t,"Import clause name should match provided ref");const a=v6(r,t.text),{namedBindings:s}=o;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=Iw(o.parent.moduleSpecifier)?rY(o.parent.moduleSpecifier,e):1,a=eY(void 0,[v6(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,oD.createNamedImports([a]));break}case 205:const o=i;n.replaceNode(e,i,oD.createImportTypeNode(o.argument,o.attributes,oD.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:gn.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 211:n.replaceNode(e,t,oD.createIdentifier("default"));break;case 276:{const t=oD.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 281:n.replaceNode(e,r,b6("default",r.name.text));break;default:gn.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var x6="Convert import",S6={0:{name:"Convert namespace import to named imports",description:Yx(ha.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Yx(ha.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Yx(ha.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function k6(e,t=!0){const{file:n}=e,r=KZ(e),i=XX(n,r.start),o=t?yc(i,an(_N,JP)):_Y(i,n,r);if(void 0===o||!_N(o)&&!JP(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=eQ(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?274===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:T6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:Yx(ha.Could_not_find_namespace_import_or_named_imports)}:{error:Yx(ha.Could_not_find_import_clause)}}function T6(e,t){return AS(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const r=t.resolveExternalModuleSymbol(n);return n!==r}(t.parent.moduleSpecifier,e.getTypeChecker())}function C6(e){return nF(e)?e.name:e.right}function D6(e,t,n,r,i=T6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const l=s&&Iw(s)?n0(s.text,99):"module",u=r.elements.some((function(t){return!!Nce.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||CN(e.parent))}))}))?_Z(l,e):l,_=new Set;for(const t of r.elements){const r=t.propertyName||t.name;Nce.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=11===r.kind?oD.createElementAccessExpression(oD.createIdentifier(u),oD.cloneNode(r)):oD.createPropertyAccessExpression(oD.createIdentifier(u),oD.cloneNode(r));GN(i.parent)?n.replaceNode(e,i.parent,oD.createPropertyAssignment(i.text,o)):CN(i.parent)?_.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?oD.createIdentifier(u):oD.createNamespaceImport(oD.createIdentifier(u))),_.size&&_N(a)){const t=Be(_.values(),(e=>oD.createImportSpecifier(e.isTypeOnly,e.propertyName&&oD.cloneNode(e.propertyName),oD.cloneNode(e.name))));n.insertNodeAfter(e,r.parent.parent,w6(a,void 0,t))}}function w6(e,t,n){return oD.createImportDeclaration(void 0,E6(t,n),e.moduleSpecifier,void 0)}function E6(e,t){return oD.createImportClause(!1,e,t&&t.length?oD.createNamedImports(t):void 0)}d6(x6,{kinds:je(S6).map((e=>e.kind)),getAvailableActions:function(e){const t=k6(e,"invoked"===e.triggerReason);if(!t)return u;if(!x3(t)){const e=S6[t.convertTo];return[{name:x6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?je(S6).map((e=>({name:x6,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):u},getEditsForAction:function(e,t){gn.assert(X(je(S6),(e=>e.name===t)),"Unexpected action name");const n=k6(e);gn.assert(n&&!x3(n),"Expected applicable refactor info");const r=Z_e.ChangeTracker.with(e,(t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;Nce.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(Ju(e.parent)){const r=C6(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),gn.assert((nF(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const t of a){const r=C6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?_Z(r,e):r),n.replaceNode(e,t,oD.createIdentifier(i))}const l=[];c.forEach(((e,t)=>{l.push(oD.createImportSpecifier(!1,e===t?void 0:oD.createIdentifier(t),oD.createIdentifier(e)))}));const u=r.parent.parent;if(o&&!i&&_N(u))n.insertNodeAfter(e,u,w6(u,void 0,l));else{const t=o?oD.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,E6(t,l))}}(e,i,n,r.import,AS(t.getCompilerOptions())):D6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var F6="Extract type",N6={name:"Extract to type alias",description:Yx(ha.Extract_to_type_alias),kind:"refactor.extract.type"},P6={name:"Extract to interface",description:Yx(ha.Extract_to_interface),kind:"refactor.extract.interface"},A6={name:"Extract to typedef",description:Yx(ha.Extract_to_typedef),kind:"refactor.extract.typedef"};function I6(e,t=!0){const{file:n,startPosition:r}=e,i=Rm(n),o=RQ(KZ(e)),a=o.pos===o.end&&t,s=function(e,t,n,r){const i=[()=>XX(e,t),()=>KX(e,t,(()=>!0))];for(const t of i){const i=t(),o=FX(i,e,n.pos,n.end),a=yc(i,(t=>t.parent&&wu(t)&&!L6(n,t.parent,e)&&(r||o)));if(a)return a}}(n,r,o,a);if(!s||!wu(s))return{info:{error:Yx(ha.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const c=e.program.getTypeChecker(),l=function(e,t){return yc(e,b_)||(t?yc(e,pP):void 0)}(s,i);if(void 0===l)return{info:{error:Yx(ha.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const _=function(e,t){return yc(e,(e=>e===t?"quit":!(!ME(e.parent)&&!BE(e.parent))))??e}(s,l);if(!wu(_))return{info:{error:Yx(ha.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];(ME(_.parent)||BE(_.parent))&&o.end>s.end&&de(d,_.parent.types.filter((e=>FX(e,n,o.pos,o.end))));const p=d.length>1?d:_,{typeParameters:f,affectedTextRange:m}=function(e,t,n,r){const i=[],o=rt(t),a={pos:o[0].getStart(r),end:o[o.length-1].end};for(const e of o)if(s(e))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:a};function s(t){if(EE(t)){if(Xw(t.typeName)){const o=t.typeName,s=e.resolveName(o.text,o,262144,!0);for(const e of(null==s?void 0:s.declarations)||u)if(pE(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&L6(e,a,r))return!0;if(L6(n,e,r)&&!L6(a,e,r)){pe(i,e);break}}}}else if(zE(t)){const e=yc(t,(e=>JE(e)&&L6(e.extendsType,t,r)));if(!e||!L6(a,e,r))return!0}else if(wE(t)||qE(t)){const e=yc(t.parent,uu);if(e&&e.type&&L6(e.type,t,r)&&!L6(a,e,r))return!0}else if(PE(t))if(Xw(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&L6(n,i.valueDeclaration,r)&&!L6(a,i.valueDeclaration,r))return!0}else if(gv(t.exprName.left)&&!L6(a,t.parent,r))return!0;return r&&OE(t)&&Ga(r,t.pos).line===Ga(r,t.end).line&&_D(t,1),qI(t,s)}}(c,p,l,n);return f?{info:{isJS:i,selection:p,enclosingNode:l,typeParameters:f,typeElements:O6(c,p)},affectedTextRange:m}:{info:{error:Yx(ha.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}}function O6(e,t){if(t){if(nt(t)){const n=[];for(const r of t){const t=O6(e,r);if(!t)return;de(n,t)}return n}if(BE(t)){const n=[],r=new Set;for(const i of t.types){const t=O6(e,i);if(!t||!t.every((e=>e.name&&Ex(r,HQ(e.name)))))return;de(n,t)}return n}return $E(t)?O6(e,t.type):AE(t)?t.members:void 0}}function L6(e,t,n){return wX(e,is(n.text,t.pos),t.end)}function R6(e){return nt(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:ME(e.selection[0].parent)?oD.createUnionTypeNode(e.selection):oD.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}d6(F6,{kinds:[N6.kind,P6.kind,A6.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=I6(e,"invoked"===e.triggerReason);return t?x3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:F6,description:Yx(ha.Extract_type),actions:[{...A6,notApplicableReason:t.error},{...N6,notApplicableReason:t.error},{...P6,notApplicableReason:t.error}]}]:u:[{name:F6,description:Yx(ha.Extract_type),actions:t.isJS?[A6]:le([N6],t.typeElements&&P6)}].map((t=>({...t,actions:t.actions.map((t=>({...t,range:n?{start:{line:Ga(e.file,n.pos).line,offset:Ga(e.file,n.pos).character},end:{line:Ga(e.file,n.end).line,offset:Ga(e.file,n.end).character}}:void 0})))}))):u},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=I6(e);gn.assert(r&&!x3(r),"Expected to find a range to extract");const i=_Z("NewType",n),o=Z_e.ChangeTracker.with(e,(o=>{switch(t){case N6.name:return gn.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=R6(r),l=oD.createTypeAliasDeclaration(void 0,n,o.map((e=>oD.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),c);e.insertNodeBefore(t,i,BD(l),!0),e.replaceNodeRange(t,a,s,oD.createTypeReferenceNode(n,o.map((e=>oD.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Z_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Z_e.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case A6.name:return gn.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;rt(i.selection).forEach((e=>{_D(e,7168)}));const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:u}=R6(i),_=oD.createJSDocTypedefTag(oD.createIdentifier("typedef"),oD.createJSDocTypeExpression(u),oD.createIdentifier(r)),d=[];f(s,(e=>{const t=yl(e),n=oD.createTypeParameterDeclaration(void 0,e.name),r=oD.createJSDocTemplateTag(oD.createIdentifier("template"),t&&st(t,ZN),[n]);d.push(r)}));const p=oD.createJSDocComment(void 0,oD.createNodeArray(Y(d,[_])));if(pP(a)){const r=a.getStart(n),i=zY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),p,{suffix:i+i+n.text.slice(ZY(n.text,r-1),r)})}else e.insertNodeBefore(n,a,p,!0);e.replaceNodeRange(n,c,l,oD.createTypeReferenceNode(r,s.map((e=>oD.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case P6.name:return gn.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=oD.createInterfaceDeclaration(void 0,n,a,void 0,s);fI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,BD(c),!0);const{firstTypeNode:l,lastTypeNode:u}=R6(r);e.replaceNodeRange(t,l,u,oD.createTypeReferenceNode(n,a.map((e=>oD.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Z_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Z_e.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:gn.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:dZ(o,a,i,!1)}}});var j6="Move to file",M6=Yx(ha.Move_to_file),B6={name:"Move to file",description:M6,kind:"refactor.move.file"};function J6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function z6(e,t,n,r,i,o,a,s,c,l){const u=o.getTypeChecker(),_=pn(e.statements,vf),d=!p0(t.fileName,o,a,!!e.commonJsModuleIndicator),f=iY(e,s);X6(n.oldFileImportsFromTargetFile,t.fileName,l,o),function(e,t,n,r){for(const i of e.statements)E(t,i)||G6(i,(e=>{K6(e,(e=>{n.has(e.symbol)&&r.removeExistingImport(e)}))}))}(e,i.all,n.unusedImportsFromOldFile,l),l.writeFixes(r,f),function(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}(e,i.ranges,r),function(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)G6(l,(u=>{if(s.getSymbolAtLocation(H6(u))!==r.symbol)return;const _=e=>{const t=ZE(e.parent)?uY(s,e.parent):px(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};Y6(c,u,e,_);const d=Vo(Ro(Ho(r.fileName,t.getCurrentDirectory())),o);if(0===Pt(!t.useCaseSensitiveFileNames())(d,c.fileName))return;const p=eB.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,d,QQ(t,n)),f=r3(u,tY(p,a),_);f&&e.insertNodeAfter(c,l,f);const m=U6(u);m&&V6(e,c,s,i,p,m,u,a)}))}(r,o,a,e,n.movedSymbols,t.fileName,f),q6(e,n.targetFileImportsFromOldFile,r,d),T3(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,u,o,c),!Lm(t)&&_.length&&r.insertStatementsInNewFile(t.fileName,_,e),c.writeFixes(r,f);const m=function(e,t,n,r){return M(t,(t=>{if(Z6(t)&&!Q6(e,t,r)&&d3(t,(e=>{var t;return n.includes(gn.checkDefined(null==(t=at(e,p_))?void 0:t.symbol))}))){const e=function(e,t){return t?[e3(e)]:function(e){return[e,...n3(e).map(t3)]}(e)}(eZ(t),r);if(e)return e}return eZ(t)}))}(e,i.all,Be(n.oldFileImportsFromTargetFile.keys()),d);Lm(t)&&t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)Z6(e)&&Lv(e,32)&&d3(e,(e=>{var t;const n=g(p_(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>kN(e)?e:CN(e)?at(e.parent.parent,kN):void 0));n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))}));for(const[t,i]of Be(o))if(t.exportClause&&TN(t.exportClause)&&p(t.exportClause.elements)){const o=t.exportClause.elements,s=P(o,(e=>void 0===T(px(e.symbol,n).declarations,(e=>m3(e)&&i.has(e)))));if(0===p(s)){e.deleteNode(r,t),a.add(t);continue}p(s)kN(e)&&!!e.moduleSpecifier&&!a.has(e)));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,m,t,i):Lm(t)?r.insertNodesAtEndOfFile(t,m,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...m]:m,e)}function $6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=Go(Uo(n,"..",r)),s=da(o.fileName,a,i),c=o.statements[0]&&at(o.statements[0].expression,tF),l=c&&T(c.properties,(e=>HN(e)&&Iw(e.name)&&"files"===e.name.text));l&&eF(l.initializer)&&t.insertNodeInListAfter(o,Te(l.initializer.elements),oD.createStringLiteral(s),l.initializer.elements)}function q6(e,t,n,r){const i=qQ();t.forEach(((t,o)=>{var a;if(o.declarations)for(const t of o.declarations){if(!m3(t))continue;const o=jF(a=t)?at(a.expression.left.name,Xw):at(a.name,Xw);if(!o)continue;const s=i3(t);i(s)&&o3(e,s,o,n,r)}}))}function U6(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return at(e.name,Xw);default:return gn.assertNever(e,`Unexpected node kind ${e.kind}`)}}function V6(e,t,n,r,i,o,a,s){const c=n0(i,99);let l=!1;const u=[];if(Nce.Core.eachSymbolReferenceInFile(o,n,t,(e=>{nF(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&u.push(e))})),u.length){const n=l?_Z(c,t):c;for(const r of u)e.replaceNode(t,r,oD.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=oD.createIdentifier(t),o=tY(n,r);switch(e.kind){case 272:return oD.createImportDeclaration(void 0,oD.createImportClause(!1,void 0,oD.createNamespaceImport(i)),o,void 0);case 271:return oD.createImportEqualsDeclaration(void 0,!1,i,oD.createExternalModuleReference(o));case 260:return oD.createVariableDeclaration(i,void 0,void 0,W6(o));default:return gn.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function W6(e){return oD.createCallExpression(oD.createIdentifier("require"),void 0,[e])}function H6(e){return 272===e.kind?e.moduleSpecifier:271===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function G6(e,t){if(_N(e))Iw(e.moduleSpecifier)&&t(e);else if(uN(e))NN(e.moduleReference)&&q_(e.moduleReference.expression)&&t(e);else if(LF(e))for(const n of e.declarationList.declarations)n.initializer&&$m(n.initializer,!0)&&t(n)}function K6(e,t){var n,r,i,o,a;if(272===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),274===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),275===(null==(a=null==(o=e.importClause)?void 0:o.namedBindings)?void 0:a.kind))for(const n of e.importClause.namedBindings.elements)t(n)}else if(271===e.kind)t(e);else if(260===e.kind)if(80===e.name.kind)t(e);else if(206===e.name.kind)for(const n of e.name.elements)Xw(n.name)&&t(n)}function X6(e,t,n,r){for(const[i,o]of e){const e=ZZ(i,DS(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function Q6(e,t,n,r){var i;return n?!jF(t)&&Lv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&n3(t).some((t=>e.symbol.exports.has(xc(t))))}function Y6(e,t,n,r){if(272===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||275===o.kind&&0!==o.elements.length&&o.elements.every((e=>r(e.name)))))return n.delete(e,t)}K6(t,(t=>{t.name&&Xw(t.name)&&r(t.name)&&n.delete(e,t)}))}function Z6(e){return gn.assert(QN(e.parent),"Node parent should be a SourceFile"),y3(e)||LF(e)}function e3(e){const t=mI(e)?Y([oD.createModifier(95)],Lc(e)):void 0;switch(e.kind){case 262:return oD.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=gI(e)?Oc(e):void 0;return oD.updateClassDeclaration(e,Y(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return oD.updateVariableStatement(e,t,e.declarationList);case 267:return oD.updateModuleDeclaration(e,t,e.name,e.body);case 266:return oD.updateEnumDeclaration(e,t,e.name,e.members);case 265:return oD.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return oD.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return oD.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return gn.fail();default:return gn.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function t3(e){return oD.createExpressionStatement(oD.createBinaryExpression(oD.createPropertyAccessExpression(oD.createIdentifier("exports"),oD.createIdentifier(e)),64,oD.createIdentifier(e)))}function n3(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return q(e.declarationList.declarations,(e=>Xw(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return u;case 244:return gn.fail("Can't export an ExpressionStatement");default:return gn.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function r3(e,t,n){switch(e.kind){case 272:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?oD.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?oD.createImportDeclaration(void 0,oD.createImportClause(r.isTypeOnly,i,o),eZ(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!Xw(e.name)||t(e.name)));return n.length?oD.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?function(e,t,n,r=2){return oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,W6(t),e.parent.flags):void 0}default:return gn.assertNever(e,`Unexpected import kind ${e.kind}`)}}function i3(e){switch(e.kind){case 260:return e.parent.parent;case 208:return i3(st(e.parent.parent,(e=>ZF(e)||ZE(e))));default:return e}}function o3(e,t,n,r,i){if(!Q6(e,t,i,n))if(i)jF(t)||r.insertExportModifier(e,t);else{const n=n3(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(t3))}}function a3(e,t,n,r){const i=t.getTypeChecker();if(r){const t=u3(e,r.all,i),s=Ro(e.fileName),c=aT(e.fileName),l=Uo(s,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=Uo(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((o=t.oldFileImportsFromTargetFile,a=t.movedSymbols,ud(o,aY)||ud(a,aY)||"newFile"),c,s,n))+c;return l}var o,a;return""}function s3(e){const t=function(e){const{file:t}=e,n=RQ(KZ(e)),{statements:r}=t;let i=D(r,(e=>e.end>n.pos));if(-1===i)return;const o=v3(t,r[i]);o&&(i=o.start);let a=D(r,(e=>e.end>=n.end),i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=v3(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return Q(i,l3,((e,t)=>{for(let r=e;r!!(2&e.transformFlags)))}function l3(e){return!function(e){switch(e.kind){case 272:return!0;case 271:return!Lv(e,32);case 243:return e.declarationList.declarations.every((e=>!!e.initializer&&$m(e.initializer,!0)));default:return!1}}(e)&&!vf(e)}function u3(e,t,n,r=new Set,i){var o;const a=new Set,s=new Map,c=new Map,l=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&X(r.declarations,p3)?r:void 0}(c3(t));l&&s.set(l,[!1,at(null==(o=l.declarations)?void 0:o[0],(e=>xN(e)||dN(e)||yN(e)||uN(e)||ZE(e)||ZF(e)))]);for(const e of t)d3(e,(e=>{a.add(gn.checkDefined(jF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const u=new Set;for(const o of t)_3(o,n,i,((t,i)=>{if(!t.declarations)return;if(r.has(px(t,n)))return void u.add(t);const o=T(t.declarations,p3);if(o){const e=s.get(t);s.set(t,[(void 0===e||e)&&i,at(o,(e=>xN(e)||dN(e)||yN(e)||uN(e)||ZE(e)||ZF(e)))])}else!a.has(t)&&k(t.declarations,(t=>m3(t)&&g3(t)===e))&&c.set(t,i)}));for(const e of s.keys())u.add(e);const _=new Map;for(const r of e.statements)E(t,r)||(l&&2&r.transformFlags&&u.delete(l),_3(r,n,i,((e,t)=>{a.has(e)&&_.set(e,t),u.delete(e)})));return{movedSymbols:a,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:_,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:u}}function _3(e,t,n,r){e.forEachChild((function e(i){if(Xw(i)&&!gh(i)){if(n&&!ix(n,i))return;const e=t.getSymbolAtLocation(i);e&&r(e,wT(i))}else i.forEachChild(e)}))}function d3(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return g(e.declarationList.declarations,(e=>h3(e.name,t)));case 244:{const{expression:n}=e;return hF(n)&&1===cg(n)?t(e):void 0}}}function p3(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return f3(e);case 208:return ZF(e.parent.parent)&&f3(e.parent.parent);default:return!1}}function f3(e){return QN(e.parent.parent.parent)&&!!e.initializer&&$m(e.initializer,!0)}function m3(e){return y3(e)&&QN(e.parent)||ZF(e)&&QN(e.parent.parent.parent)}function g3(e){return ZF(e)?e.parent.parent.parent:e.parent}function h3(e,t){switch(e.kind){case 80:return t(st(e.parent,(e=>ZF(e)||ZE(e))));case 207:case 206:return g(e.elements,(e=>kF(e)?void 0:h3(e.name,t)));default:return gn.assertNever(e,`Unexpected name kind ${e.kind}`)}}function y3(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function v3(e,t){if(du(t)){const n=t.symbol.declarations;if(void 0===n||p(n)<=1||!E(n,t))return;const r=n[0],i=n[p(n)-1],o=q(n,(t=>Cd(t)===e&&b_(t)?t:void 0)),a=D(e.statements,(e=>e.end>=i.end));return{toMove:o,start:D(e.statements,(e=>e.end>=r.end)),end:a}}}function b3(e,t,n){const r=new Set;for(const t of e.imports){const e=Dg(t);if(_N(e)&&e.importClause&&e.importClause.namedBindings&&bN(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(px(e,n))}if(qm(e.parent)&&QE(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(px(e,n))}}for(const i of t)_3(i,n,void 0,(t=>{const i=px(t,n);i.valueDeclaration&&Cd(i.valueDeclaration).path===e.path&&r.add(i)}));return r}function x3(e){return void 0!==e.error}function S3(e,t){return!t||e.substr(0,t.length)===t}function k3(e,t,n,r){return!nF(e)||yu(t)||n.resolveName(e.name.text,e,111551,!1)||Qw(e.name)||Tc(e.name)?_Z(yu(t)?"newProperty":"newLocal",r):e.name.text}function T3(e,t,n,r,i,o){t.forEach((([e,t],n)=>{var i;const a=px(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(gn.checkDefined(t??yc(null==(i=n.declarations)?void 0:i[0],Pp))):void 0===a.parent?(gn.assert(void 0!==t,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(n,e,t)):o.addImportFromExportedSymbol(a,e,t)})),X6(n,e.fileName,o,i)}d6(j6,{kinds:[B6.kind],getAvailableActions:function(e,t){const n=e.file,r=s3(e);if(!t)return u;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=yc(XX(n,e.startPosition),f0),r=yc(XX(n,e.endPosition),f0);if(t&&!QN(t)&&r&&!QN(r))return u}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:Ga(n,r.all[0].getStart(n)).line,offset:Ga(n,r.all[0].getStart(n)).character},end:{line:Ga(n,Te(r.all).end).line,offset:Ga(n,Te(r.all).end).character}};return[{name:j6,description:M6,actions:[{...B6,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:j6,description:M6,actions:[{...B6,notApplicableReason:Yx(ha.Selection_is_not_a_valid_statement_or_statements)}]}]:u},getEditsForAction:function(e,t,n){gn.assert(t===j6,"Wrong refactor invoked");const r=gn.checkDefined(s3(e)),{host:i,program:o}=e;gn.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(zk(a)||$k(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return J6(Yx(ha.Cannot_move_statements_to_the_selected_file));const t=Z_e.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),u=l?m0(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):gn.checkDefined(r.getSourceFile(n)),_=M7.createImportAdder(t,e.program,e.preferences,e.host),d=M7.createImportAdder(u,e.program,e.preferences,e.host);z6(t,u,u3(t,i.all,c,l?void 0:b3(u,i.all,c)),o,i,r,a,s,d,_),l&&$6(r,o,t.fileName,n,Uy(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return J6(Yx(ha.Cannot_move_to_file_selected_file_is_invalid))}});var C3="Inline variable",D3=Yx(ha.Inline_variable),w3={name:C3,description:D3,kind:"refactor.inline.variable"};function E3(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=GX(e,t),c=s.parent;if(Xw(s)){if(cx(c)&&Bf(c)&&Xw(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:Yx(ha.Variables_with_multiple_declarations_cannot_be_inlined)};if(F3(c))return;const t=N3(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:Yx(ha.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!cx(n)||!Bf(n)||!Xw(n.name))return;if(F3(n))return;const r=N3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:Yx(ha.Could_not_find_variable_to_inline)}}}function F3(e){return X(st(e.parent.parent,LF).modifiers,Yw)}function N3(e,t,n){const r=[],i=Nce.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!(!Nce.isWriteAccessForReference(t)||GN(t.parent))||!(!CN(t.parent)&&!SN(t.parent))||!!PE(t.parent)||!!Bs(e,t.pos)||void r.push(t)));return 0===r.length||i?void 0:r}function P3(e,t){t=eZ(t);const{parent:n}=e;return Qu(n)&&(_y(t)<_y(n)||yZ(n))||uu(t)&&($u(n)||nF(n))||nF(n)&&(Pw(t)||tF(t))?oD.createParenthesizedExpression(t):Xw(e)&&GN(n)?oD.createPropertyAssignment(e,t):t}function A3(e,t,n,r){const i=n.parent,o=i.templateSpans.indexOf(n),a=0===o?i.head:i.templateSpans[o-1];e.replaceRangeWithText(t,{pos:a.getEnd()-2,end:n.literal.getStart()+1},r.text.replace(/\\/g,"\\\\").replace(/`/g,"\\`"))}d6(C3,{kinds:[w3.kind],getAvailableActions(e){const{file:t,program:n,preferences:r,startPosition:i,triggerReason:o}=e,a=E3(t,i,"invoked"===o,n);return a?u6.isRefactorErrorInfo(a)?r.provideRefactorNotApplicableReason?[{name:C3,description:D3,actions:[{...w3,notApplicableReason:a.error}]}]:u:[{name:C3,description:D3,actions:[w3]}]:u},getEditsForAction(e,t){gn.assert(t===C3,"Unexpected refactor invoked");const{file:n,program:r,startPosition:i}=e,o=E3(n,i,!0,r);if(!o||u6.isRefactorErrorInfo(o))return;const{references:a,declaration:s,replacement:c}=o,l=Z_e.ChangeTracker.with(e,(e=>{for(const t of a){const r=Iw(c)&&Xw(t)&&uh(t.parent);r&&AF(r)&&!aF(r.parent.parent)?A3(e,n,r,c):e.replaceNode(n,t,P3(t,c))}e.delete(n,s)}));return{edits:l}}});var I3="Move to a new file",O3=Yx(ha.Move_to_a_new_file),L3={name:I3,description:O3,kind:"refactor.move.newFile"};d6(I3,{kinds:[L3.kind],getAvailableActions:function(e){const t=s3(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=yc(XX(n,e.startPosition),f0),r=yc(XX(n,e.endPosition),f0);if(t&&!QN(t)&&r&&!QN(r))return u}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:Ga(n,t.all[0].getStart(n)).line,offset:Ga(n,t.all[0].getStart(n)).character},end:{line:Ga(n,Te(t.all).end).line,offset:Ga(n,Te(t.all).end).character}};return[{name:I3,description:O3,actions:[{...L3,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:I3,description:O3,actions:[{...L3,notApplicableReason:Yx(ha.Selection_is_not_a_valid_statement_or_statements)}]}]:u},getEditsForAction:function(e,t){gn.assert(t===I3,"Wrong refactor invoked");const n=gn.checkDefined(s3(e)),r=Z_e.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=u3(e,n.all,s),l=a3(e,t,i,n),u=m0(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),_=M7.createImportAdder(e,o.program,o.preferences,o.host),d=M7.createImportAdder(u,o.program,o.preferences,o.host);z6(e,u,c,r,n,t,i,a,d,_),$6(t,r,e.fileName,l,Uy(i))}(e.file,e.program,n,t,e.host,e,e.preferences)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var R3={},j3="Convert overload list to single signature",M3=Yx(ha.Convert_overload_list_to_single_signature),B3={name:j3,description:M3,kind:"refactor.rewrite.function.overloadList"};function J3(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function z3(e,t,n){const r=yc(XX(e,t),J3);if(!r)return;if(du(r)&&r.body&&CX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(p(a)<=1)return;if(!k(a,(t=>Cd(t)===e)))return;if(!J3(a[0]))return;const s=a[0].kind;if(!k(a,(e=>e.kind===s)))return;const c=a;if(X(c,(e=>!!e.typeParameters||X(e.parameters,(e=>!!e.modifiers||!Xw(e.name))))))return;const l=q(c,(e=>i.getSignatureFromDeclaration(e)));if(p(l)!==p(a))return;const u=i.getReturnTypeOfSignature(l[0]);return k(l,(e=>i.getReturnTypeOfSignature(e)===u))?c:void 0}d6(j3,{kinds:[B3.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=z3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 173:s=oD.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,l(i),a.type);break;case 174:s=oD.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,l(i),a.type,a.body);break;case 179:s=oD.updateCallSignature(a,a.typeParameters,l(i),a.type);break;case 176:s=oD.updateConstructorDeclaration(a,a.modifiers,l(i),a.body);break;case 180:s=oD.updateConstructSignature(a,a.typeParameters,l(i),a.type);break;case 262:s=oD.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,l(i),a.type,a.body);break;default:return gn.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s===a)return;const c=Z_e.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}));return{renameFilename:void 0,renameLocation:void 0,edits:c};function l(e){const t=e[e.length-1];return du(t)&&t.body&&(e=e.slice(0,e.length-1)),oD.createNodeArray([oD.createParameterDeclaration(void 0,oD.createToken(26),"args",void 0,oD.createUnionTypeNode(O(e,u)))])}function u(e){const t=O(e.parameters,_);return _D(oD.createTupleTypeNode(t),X(t,(e=>!!p(kD(e))))?0:1)}function _(e){gn.assert(Xw(e.name));const t=fI(oD.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||oD.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=Q8(n);e.length&&TD(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r}=e;return z3(t,n,r)?[{name:j3,description:M3,actions:[B3]}]:u}});var $3="Add or remove braces in an arrow function",q3=Yx(ha.Add_or_remove_braces_in_an_arrow_function),U3={name:"Add braces to arrow function",description:Yx(ha.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},V3={name:"Remove braces from arrow function",description:Yx(ha.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function W3(e,t,n=!0,r){const i=XX(e,t),o=tm(i);if(!o)return{error:Yx(ha.Could_not_find_a_containing_arrow_function)};if(!uF(o))return{error:Yx(ha.Containing_function_is_not_an_arrow_function)};if(ix(o,i)&&(!ix(o.body,i)||n)){if(S3(U3.kind,r)&&Qu(o.body))return{func:o,addBraces:!0,expression:o.body};if(S3(V3.kind,r)&&OF(o.body)&&1===o.body.statements.length){const e=xe(o.body.statements);if(WF(e))return{func:o,addBraces:!1,expression:e.expression&&tF(Rx(e.expression,!1))?oD.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}d6($3,{kinds:[V3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=W3(n,r);gn.assert(i&&!x3(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===U3.name){const e=oD.createReturnStatement(o);c=oD.createBlock([e],!0),pZ(o,e,n,3,!0)}else if(t===V3.name&&a){const e=o||oD.createVoidZero();c=yZ(e)?oD.createParenthesizedExpression(e):e,mZ(a,c,n,3,!1),pZ(a,c,n,3,!1),fZ(a,c,n,3,!1)}else gn.fail("invalid action");const l=Z_e.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}));return{renameFilename:void 0,renameLocation:void 0,edits:l}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=W3(t,n,"invoked"===r);return i?x3(i)?e.preferences.provideRefactorNotApplicableReason?[{name:$3,description:q3,actions:[{...U3,notApplicableReason:i.error},{...V3,notApplicableReason:i.error}]}]:u:[{name:$3,description:q3,actions:[i.addBraces?U3:V3]}]:u}});var H3={},G3="Convert arrow function or function expression",K3=Yx(ha.Convert_arrow_function_or_function_expression),X3={name:"Convert to anonymous function",description:Yx(ha.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Q3={name:"Convert to named function",description:Yx(ha.Convert_to_named_function),kind:"refactor.rewrite.function.named"},Y3={name:"Convert to arrow function",description:Yx(ha.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function Z3(e){let t=!1;return e.forEachChild((function e(n){xX(n)?t=!0:yu(n)||tN(n)||lF(n)||qI(n,e)})),t}function e4(e,t,n){const r=XX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return ZF(e)||eN(e)&&1===e.declarations.length}(n))return;const r=(ZF(n)?n:xe(n.declarations)).initializer;return r&&(uF(r)||lF(r)&&!n4(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!Z3(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=tm(r);if(a&&(lF(a)||uF(a))&&!ix(a.body,r)&&!Z3(a.body)&&!i.containsArgumentsReference(a)){if(lF(a)&&n4(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function t4(e){if(Qu(e)){const t=oD.createReturnStatement(e),n=e.getSourceFile();return fI(t,e),oZ(t),mZ(e,t,n,void 0,!0),oD.createBlock([t],!0)}return e}function n4(e,t,n){return!!n.name&&Nce.Core.isSymbolReferencedInFile(n.name,t,e)}d6(G3,{kinds:[X3.kind,Q3.kind,Y3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=e4(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case X3.name:s.push(...function(e,t){const{file:n}=e,r=t4(t.body),i=oD.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return Z_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case Q3.name:const t=function(e){const t=e.parent;if(!ZF(t)||!Bf(t))return;const n=t.parent,r=n.parent;return eN(n)&&LF(r)&&Xw(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=t4(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;aZ(s);const l=32&_c(o)|Hv(t),u=oD.createModifiersFromModifierFlags(l),_=oD.createFunctionDeclaration(p(u)?u:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?Z_e.ChangeTracker.with(e,(e=>e.replaceNode(r,s,_))):Z_e.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,_)}))}(e,a,t));break;case Y3.name:if(!lF(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements,i=r[0];let o;!function(e,t){return 1===e.statements.length&&WF(t)&&!!t.expression}(t.body,i)?o=t.body:(o=i.expression,oZ(o),cZ(i,o));const a=oD.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,oD.createToken(39),o);return Z_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,a)))}(e,a));break;default:return gn.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=e4(t,n,r);if(!o)return u;const{selectedVariableDeclaration:a,func:s}=o,c=[],l=[];if(S3(Q3.kind,i)){const e=a||uF(s)&&ZF(s.parent)?void 0:Yx(ha.Could_not_convert_to_named_function);e?l.push({...Q3,notApplicableReason:e}):c.push(Q3)}if(S3(X3.kind,i)){const e=!a&&uF(s)?void 0:Yx(ha.Could_not_convert_to_anonymous_function);e?l.push({...X3,notApplicableReason:e}):c.push(X3)}if(S3(Y3.kind,i)){const e=lF(s)?void 0:Yx(ha.Could_not_convert_to_arrow_function);e?l.push({...Y3,notApplicableReason:e}):c.push(Y3)}return[{name:G3,description:K3,actions:0===c.length&&e.preferences.provideRefactorNotApplicableReason?l:c}]}});var r4={},i4="Convert parameters to destructured object",o4=Yx(ha.Convert_parameters_to_destructured_object),a4={name:i4,description:o4,kind:"refactor.rewrite.parameters.toDestructured"};function s4(e,t){const n=_7(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&_x(r)))return r}}function c4(e){const t=e.node;return xN(t.parent)||dN(t.parent)||uN(t.parent)||yN(t.parent)||CN(t.parent)||SN(t.parent)?t:void 0}function l4(e){if(h_(e.node.parent))return e.node}function u4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=at(n,qu);if(e&&e.expression===t)return e;break;case 211:const r=at(n,nF);if(r&&r.parent&&r.name===t){const e=at(r.parent,qu);if(e&&e.expression===r)return e}break;case 212:const i=at(n,rF);if(i&&i.parent&&i.argumentExpression===t){const e=at(i.parent,qu);if(e&&e.expression===i)return e}}}}function _4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=at(n,nF);if(e&&e.expression===t)return e;break;case 212:const r=at(n,rF);if(r&&r.expression===t)return r}}}function d4(e){const t=e.node;if(2===HK(t)||pb(t.parent))return t}function p4(e,t,n){const r=KX(e,t),i=nm(r);if(!function(e){const t=yc(e,N_);if(t){const e=yc(t,(e=>!N_(e)));return!!e&&du(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return y4(e)?e.length-1:e.length}(e)>=1&&k(e,(e=>function(e,t){if(W_(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Xw(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return g4(e)&&m4(e,t);case 174:if(tF(e.parent)){const r=s4(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&m4(e,t)}return m4(e,t);case 176:return nN(e.parent)?g4(e.parent)&&m4(e,t):h4(e.parent.parent)&&m4(e,t);case 218:case 219:return h4(e.parent)}return!1}(i,n)&&ix(i,r))||i.body&&ix(i.body,r)?void 0:i}function f4(e){return yE(e)&&(rN(e.parent)||AE(e.parent))}function m4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function g4(e){return!!e.name||!!pY(e,90)}function h4(e){return ZF(e)&&df(e)&&Xw(e.name)&&!e.type}function y4(e){return e.length>0&&xX(e[0].name)}function v4(e){return y4(e)&&(e=oD.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function b4(e,t){const n=v4(e.parameters),r=W_(Te(n)),i=O(r?t.slice(0,n.length-1):t,((e,t)=>{const r=function(e,t){return Xw(t)&&Kh(t)===e?oD.createShorthandPropertyAssignment(e):oD.createPropertyAssignment(e,t)}(S4(n[t]),e);return oZ(r.name),HN(r)&&oZ(r.initializer),cZ(e,r),r}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=oD.createPropertyAssignment(S4(Te(n)),oD.createArrayLiteralExpression(e));i.push(r)}return oD.createObjectLiteralExpression(i,!1)}function x4(e,t,n){const r=t.getTypeChecker(),i=v4(e.parameters),o=O(i,(function(e){const t=oD.createBindingElement(void 0,void 0,S4(e),W_(e)&&_(e)?oD.createArrayLiteralExpression():e.initializer);return oZ(t),e.initializer&&t.initializer&&cZ(e.initializer,t.initializer),t})),a=oD.createObjectBindingPattern(o),s=function(e){const t=O(e,u);return dD(oD.createTypeLiteralNode(t),1)}(i);let c;k(i,_)&&(c=oD.createObjectLiteralExpression());const l=oD.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(y4(e.parameters)){const t=e.parameters[0],n=oD.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return oZ(n.name),cZ(t.name,n.name),t.type&&(oZ(n.type),cZ(t.type,n.type)),oD.createNodeArray([n,l])}return oD.createNodeArray([l]);function u(e){let i=e.type;i||!e.initializer&&!W_(e)||(i=function(e){const i=r.getTypeAtLocation(e);return DZ(i,e,t,n)}(e));const o=oD.createPropertySignature(void 0,S4(e),_(e)?oD.createToken(58):e.questionToken,i);return oZ(o),cZ(e.name,o.name),e.type&&o.type&&cZ(e.type,o.type),o}function _(e){if(W_(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function S4(e){return Kh(e.name)}d6(i4,{kinds:[a4.kind],getEditsForAction:function(e,t){gn.assert(t===i4,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=p4(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 262:return e.name?[e.name]:[gn.checkDefined(pY(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=gn.checkDefined(RX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 231===e.parent.kind?[e.parent.parent.name,t]:[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return gn.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=xE(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[gn.checkDefined(pY(t,90),"Nameless class declaration should be a default export")];case 231:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=ne([...r,...i],bt),a=t.getTypeChecker(),s=M(o,(e=>Nce.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))),c=l(s);return k(c.declarations,(e=>E(o,e)))||(c.valid=!1),c;function l(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=O(r,u),c=O(i,u),l=xE(e),_=O(r,(e=>s4(e,a)));for(const r of t){if(r.kind===Nce.EntryKind.Span){o.valid=!1;continue}if(E(_,u(r.node))){if(f4(r.node.parent)){o.signature=r.node.parent;continue}const e=u4(r);if(e){o.functionCalls.push(e);continue}}const t=s4(r.node,a);if(t&&E(_,t)){const e=l4(r);if(e){o.declarations.push(e);continue}}if(E(s,u(r.node))||XK(r.node)){if(c4(r))continue;const e=l4(r);if(e){o.declarations.push(e);continue}const t=u4(r);if(t){o.functionCalls.push(t);continue}}if(l&&E(c,u(r.node))){if(c4(r))continue;const t=l4(r);if(t){o.declarations.push(t);continue}const i=_4(r);if(i){n.accessExpressions.push(i);continue}if(nN(e.parent)){const e=d4(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}return o}function u(e){const t=a.getSymbolAtLocation(e);return t&&KY(t,a)}}(s,i,o);if(c.valid){const t=Z_e.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=O(x4(i,t,n),(e=>eZ(e)));a&&l(a,O(x4(a,t,n),(e=>eZ(e)))),l(i,s);const c=oe(o.functionCalls,((e,t)=>Tt(e.pos,t.pos)));for(const e of c)if(e.arguments&&e.arguments.length){const t=eZ(b4(i,e.arguments),!0);r.replaceNodeRange(Cd(e),xe(e.arguments),Te(e.arguments),t,{leadingTriviaOption:Z_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Z_e.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,xe(t.parameters),Te(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:Z_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Z_e.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}},getAvailableActions:function(e){const{file:t,startPosition:n}=e;return Rm(t)?u:p4(t,n,e.program.getTypeChecker())?[{name:i4,description:o4,actions:[a4]}]:u}});var k4={},T4="Convert to template string",C4=Yx(ha.Convert_to_template_string),D4={name:T4,description:C4,kind:"refactor.rewrite.string"};function w4(e,t){const n=XX(e,t),r=F4(n);return!N4(r).isValidConcatenation&&cF(r.parent)&&hF(r.parent.parent)?r.parent.parent:n}function E4(e,t){const n=F4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=P4(t,n),i=A4(e,n,r),[o,a,s,c]=O4(0,e);if(o===e.length){const e=oD.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],u=oD.createTemplateHead(a,s);i(c,u);for(let t=o;t{L4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=I4(e.literal)+(r?s:"");return oD.createTemplateSpan(e.expression,u&&r?oD.createTemplateTail(i,o):oD.createTemplateMiddle(i,o))}));l.push(...e)}else{const e=u?oD.createTemplateTail(a,s):oD.createTemplateMiddle(a,s);i(c,e),l.push(oD.createTemplateSpan(n,e))}}return oD.createTemplateExpression(u,l)}(N4(n),r),o=ys(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return Z_e.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return Z_e.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function F4(e){const t=yc(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(hF(e.parent)&&function(e){return!(64===e.operatorToken.kind||65===e.operatorToken.kind)}(e.parent));default:return"quit"}}));return t||e}function N4(e){const t=e=>{if(!hF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:Iw(e)||Rw(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||Iw(e.right)||vF(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}d6(T4,{kinds:[D4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=w4(n,r);return t===C4?{edits:E4(e,i)}:gn.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=w4(t,n),i=F4(r),o=Iw(i),a={name:T4,description:C4,actions:[]};return o&&"invoked"!==e.triggerReason?u:wm(i)&&(o||hF(i)&&N4(i).isValidConcatenation)?(a.actions.push(D4),[a]):e.preferences.provideRefactorNotApplicableReason?(a.actions.push({...D4,notApplicableReason:Yx(ha.Can_only_convert_string_concatenations_and_string_literals)}),[a]):u}});var P4=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();fZ(e[o],i,t,3,!1),n(o,i)}};function I4(e){const t=jw(e)||Mw(e)?-2:-1;return np(e).slice(1,t)}function O4(e,t){const n=[];let r="",i="";for(;e"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function L4(e){const t=e.getSourceFile();fZ(e,e.expression,t,3,!1),mZ(e.expression,e.expression,t,3,!1)}function R4(e){return cF(e)&&(L4(e),e=e.expression),e}var j4={},M4="Convert to optional chain expression",B4=Yx(ha.Convert_to_optional_chain_expression),J4={name:M4,description:B4,kind:"refactor.rewrite.expression.optionalChain"};function z4(e){return hF(e)||yF(e)}function $4(e){return z4(e)||function(e){return jF(e)||WF(e)||LF(e)}(e)}function q4(e,t=!0){const{file:n,program:r}=e,i=KZ(e),o=0===i.length;if(o&&!t)return;const a=XX(n,i.start),s=ZX(n,i.start+i.length),c=Zs(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if($4(e)&&!$4(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if($4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),u=l&&$4(l)?function(e){if(z4(e))return e;if(LF(e)){const t=Bg(e),n=null==t?void 0:t.initializer;return n&&z4(n)?n:void 0}return e.expression&&z4(e.expression)?e.expression:void 0}(l):void 0;if(!u)return{error:Yx(ha.Could_not_find_convertible_access_expression)};const _=r.getTypeChecker();return yF(u)?function(e,t){const n=e.condition,r=H4(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:Yx(ha.Could_not_find_convertible_access_expression)};if((nF(n)||Xw(n))&&V4(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(hF(n)){const t=U4(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:Yx(ha.Could_not_find_matching_access_expressions)}}}(u,_):function(e){if(56!==e.operatorToken.kind)return{error:Yx(ha.Can_only_convert_logical_AND_access_chains)};const t=H4(e.right);if(!t)return{error:Yx(ha.Could_not_find_convertible_access_expression)};const n=U4(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Yx(ha.Could_not_find_matching_access_expressions)}}(u)}function U4(e,t){const n=[];for(;hF(t)&&56===t.operatorToken.kind;){const r=V4(ph(e),ph(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=V4(e,t);return r&&n.push(r),n.length>0?n:void 0}function V4(e,t){if(Xw(t)||nF(t)||rF(t))return function(e,t){for(;(iF(e)||nF(e)||rF(e))&&W4(e)!==W4(t);)e=e.expression;for(;nF(e)&&nF(t)||rF(e)&&rF(t);){if(W4(e)!==W4(t))return!1;e=e.expression,t=t.expression}return Xw(e)&&Xw(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function W4(e){return Xw(e)||qh(e)?e.getText():nF(e)?W4(e.name):rF(e)?W4(e.argumentExpression):void 0}function H4(e){return hF(e=ph(e))?H4(e.left):(nF(e)||rF(e)||iF(e))&&!Tl(e)?e:void 0}function G4(e,t,n){if(nF(t)||rF(t)||iF(t)){const r=G4(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),iF(t))return o?oD.createCallChain(r,oD.createToken(29),t.typeArguments,t.arguments):oD.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(nF(t))return o?oD.createPropertyAccessChain(r,oD.createToken(29),t.name):oD.createPropertyAccessChain(r,t.questionDotToken,t.name);if(rF(t))return o?oD.createElementAccessChain(r,oD.createToken(29),t.argumentExpression):oD.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}d6(M4,{kinds:[J4.kind],getEditsForAction:function(e,t){const n=q4(e);return gn.assert(n&&!x3(n),"Expected applicable refactor info"),{edits:Z_e.ChangeTracker.with(e,(t=>function(e,t,n,r){const{finalExpression:i,occurrences:o,expression:a}=r,s=o[o.length-1],c=G4(t,i,o);c&&(nF(c)||rF(c)||iF(c))&&(hF(a)?n.replaceNodeRange(e,s,i,c):yF(a)&&n.replaceNode(e,a,oD.createBinaryExpression(c,oD.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=q4(e,"invoked"===e.triggerReason);return t?x3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:M4,description:B4,actions:[{...J4,notApplicableReason:t.error}]}]:u:[{name:M4,description:B4,actions:[J4]}]:u}});var K4={};n(K4,{Messages:()=>X4,RangeFacts:()=>n8,getRangeToExtract:()=>r8,getRefactorActionsToExtractSymbol:()=>e8,getRefactorEditsToExtractSymbol:()=>t8});var X4,Q4="Extract Symbol",Y4={name:"Extract Constant",description:Yx(ha.Extract_constant),kind:"refactor.extract.constant"},Z4={name:"Extract Function",description:Yx(ha.Extract_function),kind:"refactor.extract.function"};function e8(e){const t=e.kind,n=r8(e.file,KZ(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return u;const r=[];return S3(Z4.kind,t)&&r.push({name:Q4,description:Z4.description,actions:[{...Z4,notApplicableReason:m(n.errors)}]}),S3(Y4.kind,t)&&r.push({name:Q4,description:Y4.description,actions:[{...Y4,notApplicableReason:m(n.errors)}]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=a8(e,t),a=n.map(((e,t)=>{const n=function(e){return du(e)?"inner function":yu(e)?"method":"function"}(e),r=function(e){return yu(e)?"readonly field":"constant"}(e),a=du(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:CZ;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:gn.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):yu(e)?function(e){return 263===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=Kx(Yx(ha.Extract_to_0_in_1_scope),[n,"global"]),c=Kx(Yx(ha.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=Kx(Yx(ha.Extract_to_0_in_1_scope),[n,"module"]),c=Kx(Yx(ha.Extract_to_0_in_1_scope),[r,"module"])):(s=Kx(Yx(ha.Extract_to_0_in_1),[n,a]),c=Kx(Yx(ha.Extract_to_0_in_1),[r,a])),0!==t||yu(e)||(c=Kx(Yx(ha.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:o[t]}}}));return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===o)return u;const a=[],s=new Map;let c;const l=[],_=new Map;let d,p=0;for(const{functionExtraction:n,constantExtraction:r}of o){if(S3(Z4.kind,t)){const t=n.description;0===n.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:`function_scope_${p}`,kind:Z4.kind,range:{start:{line:Ga(e.file,i.pos).line,offset:Ga(e.file,i.pos).character},end:{line:Ga(e.file,i.end).line,offset:Ga(e.file,i.end).character}}})):c||(c={description:t,name:`function_scope_${p}`,notApplicableReason:m(n.errors),kind:Z4.kind})}if(S3(Y4.kind,t)){const t=r.description;0===r.errors.length?_.has(t)||(_.set(t,!0),l.push({description:t,name:`constant_scope_${p}`,kind:Y4.kind,range:{start:{line:Ga(e.file,i.pos).line,offset:Ga(e.file,i.pos).character},end:{line:Ga(e.file,i.end).line,offset:Ga(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:m(r.errors),kind:Y4.kind})}p++}const f=[];return a.length?f.push({name:Q4,description:Yx(ha.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&f.push({name:Q4,description:Yx(ha.Extract_function),actions:[c]}),l.length?f.push({name:Q4,description:Yx(ha.Extract_constant),actions:l}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:Q4,description:Yx(ha.Extract_constant),actions:[d]}),f.length?f:u;function m(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function t8(e,t){const n=r8(e.file,KZ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return gn.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:a,exposedVariableDeclarations:s}}=a8(e,t);return gn.assert(!a[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,a,s){const c=s.program.getTypeChecker(),l=DS(s.program.getCompilerOptions()),_=M7.createImportAdder(s.file,s.program,s.preferences,s.host),d=t.getSourceFile(),p=_Z(yu(t)?"newMethod":"newFunction",d),f=jm(t),m=oD.createIdentifier(p);let g;const h=[],y=[];let v;n.forEach(((e,n)=>{let r;if(!f){let n=c.getTypeOfSymbolAtLocation(e.symbol,e.node);n=c.getBaseTypeOfLiteralType(n),r=M7.typeToAutoImportableTypeNode(c,_,n,t,l,1,8)}const i=oD.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(oD.createIdentifier(n))}));const b=Be(r.values(),(e=>({type:e,declaration:s8(e,s.startPosition)})));b.sort(c8);const x=0===b.length?void 0:q(b,(({declaration:e})=>e)),S=void 0!==x?x.map((e=>oD.createTypeReferenceNode(e.name,void 0))):void 0;if(Qu(e)&&!f){const n=c.getContextualType(e);g=c.typeToTypeNode(n,t,1,8)}const{body:k,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(OF(e)&&!o&&0===r.size)return{body:oD.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=oD.createNodeArray(OF(e)?e.statements.slice(0):[b_(e)?e:oD.createReturnStatement(ph(e))]);if(o||r.size){const r=cJ(c,l,b_).slice();if(o&&!i&&b_(e)){const e=l8(t,n);1===e.length?r.push(oD.createReturnStatement(e[0].name)):r.push(oD.createReturnStatement(oD.createObjectLiteralExpression(e)))}return{body:oD.createBlock(r,!0),returnValueProperty:a}}return{body:oD.createBlock(c,!0),returnValueProperty:void 0};function l(e){if(!s&&WF(e)&&o){const r=l8(t,n);return e.expression&&(a||(a="__return"),r.unshift(oD.createPropertyAssignment(a,sJ(e.expression,l,Qu)))),1===r.length?oD.createReturnStatement(r[0].name):oD.createReturnStatement(oD.createObjectLiteralExpression(r))}{const t=s;s=s||du(e)||yu(e);const n=r.get(QB(e).toString()),i=n?eZ(n):hJ(e,l,void 0);return s=t,i}}}(e,o,v,i,!!(1&a.facts));let D;oZ(k);const w=!!(16&a.facts);if(yu(t)){const e=f?[]:[oD.createModifier(123)];32&a.facts&&e.push(oD.createModifier(126)),4&a.facts&&e.push(oD.createModifier(134)),D=oD.createMethodDeclaration(e.length?e:void 0,2&a.facts?oD.createToken(42):void 0,m,void 0,x,h,g,k)}else w&&h.unshift(oD.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(c.getTypeAtLocation(a.thisNode),t,1,8),void 0)),D=oD.createFunctionDeclaration(4&a.facts?[oD.createToken(134)]:void 0,2&a.facts?oD.createToken(42):void 0,m,x,h,g,k);const E=Z_e.ChangeTracker.fromContext(s),F=(u8(a.range)?Te(a.range):a.range).end,N=function(e,t){return T(function(e){if(du(e)){const t=e.body;if(OF(t))return t.statements}else{if(sN(e)||QN(e))return e.statements;if(yu(e))return e.members}return u}(t),(t=>t.pos>=e&&du(t)&&!xE(t)))}(F,t);N?E.insertNodeBefore(s.file,N,D,!0):E.insertNodeAtEndOfScope(s.file,t,D),_.writeFixes(E);const P=[],A=function(e,t,n){const r=oD.createIdentifier(n);if(yu(e)){const n=32&t.facts?oD.createIdentifier(e.name.text):oD.createThis();return oD.createPropertyAccessExpression(n,r)}return r}(t,a,p);w&&y.unshift(oD.createIdentifier("this"));let I=oD.createCallExpression(w?oD.createPropertyAccessExpression(A,"call"):A,S,y);if(2&a.facts&&(I=oD.createYieldExpression(oD.createToken(42),I)),4&a.facts&&(I=oD.createAwaitExpression(I)),d8(e)&&(I=oD.createJsxExpression(void 0,I)),o.length&&!v)if(gn.assert(!C,"Expected no returnValueProperty"),gn.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];P.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(eZ(e.name),void 0,eZ(e.type),I)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const a of o){e.push(oD.createBindingElement(void 0,void 0,eZ(a.name)));const o=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(a)),t,1,8);n.push(oD.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?oD.createTypeLiteralNode(n):void 0;a&&_D(a,1),P.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(oD.createObjectBindingPattern(e),void 0,a,I)],r)))}else if(o.length||v){if(o.length)for(const e of o){let t=e.parent.flags;2&t&&(t=-3&t|1),P.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(e.symbol.name,void 0,M(e.type))],t)))}C&&P.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(C,void 0,M(g))],1)));const e=l8(o,v);C&&e.unshift(oD.createShorthandPropertyAssignment(C)),1===e.length?(gn.assert(!C,"Shouldn't have returnValueProperty here"),P.push(oD.createExpressionStatement(oD.createAssignment(e[0].name,I))),1&a.facts&&P.push(oD.createReturnStatement())):(P.push(oD.createExpressionStatement(oD.createAssignment(oD.createObjectLiteralExpression(e),I))),C&&P.push(oD.createReturnStatement(oD.createIdentifier(C))))}else 1&a.facts?P.push(oD.createReturnStatement(I)):u8(a.range)?P.push(oD.createExpressionStatement(I)):P.push(I);u8(a.range)?E.replaceNodeRangeWithNodes(s.file,xe(a.range),Te(a.range),P):E.replaceNodeWithNodes(s.file,a.range,P);const O=E.getChanges(),L=u8(a.range)?xe(a.range):a.range,R=L.getSourceFile().fileName,j=dZ(O,R,p,!1);return{renameFilename:R,renameLocation:j,edits:O};function M(e){if(void 0===e)return;const t=eZ(e);let n=t;for(;$E(n);)n=n.type;return ME(n)&&T(n.types,(e=>157===e.kind))?t:oD.createUnionTypeNode([t,oD.createKeywordTypeNode(157)])}}(i,r[n],o[n],s,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return gn.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=a8(e,t);return gn.assert(!a[n].length,"The extraction went missing? How?"),gn.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=k3(e,t,o,a),c=jm(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),u=function(e,t){return t.size?n(e):e;function n(e){const r=t.get(QB(e).toString());return r?eZ(r):hJ(e,n,void 0)}}(ph(e),n);({variableType:l,initializer:u}=m(l,u)),oZ(u);const _=Z_e.ChangeTracker.fromContext(i);if(yu(t)){gn.assert(!c,"Cannot extract to a JS class");const n=[];n.push(oD.createModifier(123)),32&r&&n.push(oD.createModifier(126)),n.push(oD.createModifier(148));const o=oD.createPropertyDeclaration(n,s,void 0,l,u);let a=oD.createPropertyAccessExpression(32&r?oD.createIdentifier(t.name.getText()):oD.createThis(),oD.createIdentifier(s));d8(e)&&(a=oD.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;gn.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!hE(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?gn.fail():r}(e.pos,t);_.insertNodeBefore(i.file,d,o,!0),_.replaceNode(i.file,e,a)}else{const n=oD.createVariableDeclaration(s,void 0,l,u),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(ZF(e)&&e.initializer===n&&eN(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){_.insertNodeBefore(i.file,r,n);const t=oD.createIdentifier(s);_.replaceNode(i.file,e,t)}else if(244===e.parent.kind&&t===yc(e,o8)){const t=oD.createVariableStatement(void 0,oD.createVariableDeclarationList([n],2));_.replaceNode(i.file,e.parent,t)}else{const r=oD.createVariableStatement(void 0,oD.createVariableDeclarationList([n],2)),o=function(e,t){let n;gn.assert(!yu(t));for(let r=e;r!==t;r=r.parent)o8(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(f0(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&qN(r)?(gn.assert(GF(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):gn.checkDefined(t,"prevStatement failed to get set")}gn.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?_.insertNodeAtTopOfFile(i.file,r,!1):_.insertNodeBefore(i.file,o,r,!1),244===e.parent.kind)_.delete(i.file,e.parent);else{let t=oD.createIdentifier(s);d8(e)&&(t=oD.createJsxExpression(void 0,t)),_.replaceNode(i.file,e,t)}}}const d=_.getChanges(),p=e.getSourceFile().fileName,f=dZ(d,p,s,!0);return{renameFilename:p,renameLocation:f,edits:d};function m(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!lF(r)&&!uF(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=Ce(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(oD.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1,8),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,uF(r))r=oD.updateArrowFunction(r,mI(e)?Lc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1,8),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=ve(s);if(!n||Xw(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,oD.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1,8)))}}r=oD.updateFunctionExpression(r,mI(e)?Lc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}}(Qu(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}gn.fail("Unrecognized action name")}d6(Q4,{kinds:[Y4.kind,Z4.kind],getEditsForAction:t8,getAvailableActions:e8}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(X4||(X4={}));var n8=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(n8||{});function r8(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[rS(e,t.start,r,X4.cannotExtractEmpty)]};const i=0===r&&n,o=YX(e,t.start),a=ZX(e,Rs(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return yc(e,(e=>e.parent&&_8(e)&&!hF(e.parent)))}(o):_Y(o,e,s),l=i?c:_Y(a,e,s);let u,_=0;if(!c||!l)return{errors:[rS(e,t.start,r,X4.cannotExtractRange)]};if(16777216&c.flags)return{errors:[rS(e,t.start,r,X4.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[rS(e,t.start,r,X4.cannotExtractRange)]};if(c!==l){if(!f0(c.parent))return{errors:[rS(e,t.start,r,X4.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:_,thisNode:u}}:{errors:[rS(e,t.start,r,X4.cannotExtractRange)]}}if(WF(c)&&!c.expression)return{errors:[rS(e,t.start,r,X4.cannotExtractRange)]};const d=function(e){if(WF(e)){if(e.expression)return e.expression}else if(LF(e)||eN(e)){const t=LF(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(ZF(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(Xw(jF(e)?e.expression:e))return[Up(e,X4.cannotExtractIdentifier)]}(d)||f(d);return p?{errors:p}:{targetRange:{range:i8(d),facts:_,thisNode:u}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",gn.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),gn.assert(!rT(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(b_(e)||wm(e)&&_8(e)||p8(e)))return[Up(e,X4.statementOrExpressionExpected)];if(33554432&e.flags)return[Up(e,X4.cannotExtractAmbientBlock)];const i=rm(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){Rv(n)&&(_|=32);break}if(169===n.kind){176===tm(n).kind&&(_|=32);break}174===n.kind&&Rv(n)&&(_|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(h_(n)&&Lv(260===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(Up(n,X4.cannotExtractExportedEntity)),!0;switch(n.kind){case 272:return(o||(o=[])).push(Up(n,X4.cannotExtractImport)),!0;case 277:return(o||(o=[])).push(Up(n,X4.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=rm(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(Up(n,X4.cannotExtractSuper)),!0}else _|=8,u=n;break;case 219:qI(n,(function e(t){if(xX(t))_|=8,u=n;else{if(yu(t)||uu(t)&&!uF(t))return!1;qI(t,e)}}));case 263:case 262:QN(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(Up(n,X4.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:Zu(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:_|=8,u=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),qI(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?E(a,e.escapedText)||(o||(o=[])).push(Up(n,X4.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(o||(o=[])).push(Up(n,X4.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:_|=4;break;case 229:_|=2;break;case 253:4&s?_|=1:(o||(o=[])).push(Up(n,X4.cannotExtractRangeContainingConditionalReturnStatement));break;default:qI(n,e)}s=r}(e),8&_){const t=sm(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(_|=16)}return o}}function i8(e){return b_(e)?[e]:wm(e)?jF(e.parent)?[e.parent]:e:p8(e)?e:void 0}function o8(e){return uF(e)?a_(e.body):du(e)||QN(e)||sN(e)||yu(e)}function a8(e,t){const{file:n}=t,r=function(e){let t=u8(e.range)?xe(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=rm(t);if(e){const n=yc(t,du);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=yc(t,(e=>du(e))).parent),o8(t)&&(n.push(t),307===t.kind))return n}(e),i=function(e,t){return u8(e.range)?{pos:xe(e.range).getStart(t),end:Te(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],u=[],_=[],d=new Map,p=[];let f;const m=u8(e.range)?1===e.range.length&&jF(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=xe(t).getStart(),i=Te(t).end;g=rS(r,n,i-n,X4.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=Up(m,X4.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),yu(e)&&jm(e)&&t.push(Up(e,X4.cannotExtractToJSClass)),uF(e)&&!OF(e.body)&&t.push(Up(e,X4.cannotExtractToExpressionArrowFunction)),u.push(t)}const h=new Map,y=u8(e.range)?oD.createBlock(e.range):e.range,v=u8(e.range)?xe(e.range):e.range,b=x(v);if(k(y),!b||u8(e.range)||MN(e.range)||S(i.getContextualType(e.range)),a.size>0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)})),n++),wp(r))for(const t of hl(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}gn.assert(n===t.length,"Should have iterated all scopes")}_.length&&qI(Dp(t[0],t[0].parent)?t[0]:Rp(t[0]),w);for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=u8(e.range)?e.range[0]:e.range;u[n].push(Up(t,X4.cannotAccessVariablesFromNestedScopes))}16&e.facts&&yu(t[n])&&l[n].push(Up(e.thisNode,X4.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&Ov(e.symbol.valueDeclaration,8)&&(i=e.symbol.valueDeclaration))})),gn.assert(u8(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!u8(e.range)){const t=Up(e.range,X4.cannotWriteInExpression);l[n].push(t),u[n].push(t)}else if(i&&n>0){const e=Up(i,X4.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),u[n].push(e)}else if(f){const e=Up(f,X4.cannotExtractExportedEntity);l[n].push(e),u[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:u,exposedVariableDeclarations:p};function x(e){return!!yc(e,(e=>wp(e)&&0!==hl(e).length))}function S(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function k(e,t=1){if(b&&S(i.getTypeAtLocation(e)),h_(e)&&e.symbol&&_.push(e),_b(e))k(e.left,2),k(e.right);else if(Ku(e))k(e.operand,2);else if(nF(e)||rF(e))qI(e,k);else if(Xw(e)){if(!e.parent)return;if(_E(e.parent)&&e!==e.parent.left)return;if(nF(e.parent)&&e!==e.parent.expression)return;C(e,t,Af(e))}else qI(e,k)}function C(e,n,r){const i=D(e,n,r);if(i)for(let n=0;n=a)return p;if(h.set(p,a),f){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return p}const m=d.getDeclarations(),g=m&&T(m,(e=>e.getSourceFile()===r));if(g&&!wX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=Up(o,X4.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of u)t.push(e)}for(let e=0;ee.symbol===n));if(e)if(ZF(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}qI(t,w)}function E(e){return e.parent&&GN(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function F(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return oD.createIdentifier(e.name);const i=F(e.parent,t,n);return void 0!==i?n?oD.createQualifiedName(i,oD.createIdentifier(e.name)):oD.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function s8(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.posoD.createShorthandPropertyAssignment(e.symbol.name))),r=O(t,(e=>oD.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function u8(e){return nt(e)}function _8(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function d8(e){return p8(e)||(PN(e)||AN(e)||LN(e))&&(PN(e.parent)||LN(e.parent))}function p8(e){return Iw(e)&&e.parent&&MN(e.parent)}var f8={},m8="Generate 'get' and 'set' accessors",g8=Yx(ha.Generate_get_and_set_accessors),h8={name:m8,description:g8,kind:"refactor.rewrite.property.generateAccessors"};d6(m8,{kinds:[h8.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=M7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);gn.assert(n&&!x3(n),"Expected applicable refactor info");const r=M7.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(Xw(o)?0:-1)+dZ(r,i,o.text,fE(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return u;const t=M7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?x3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:m8,description:g8,actions:[{...h8,notApplicableReason:t.error}]}]:u:[{name:m8,description:g8,actions:[h8]}]:u}});var y8={},v8="Infer function return type",b8=Yx(ha.Infer_function_return_type),x8={name:v8,description:b8,kind:"refactor.rewrite.function.returnType"};function S8(e){if(jm(e.file)||!S3(x8.kind,e.kind))return;const t=yc(GX(e.file,e.startPosition),(e=>OF(e)||e.parent&&uF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:Yx(ha.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker();let r;if(n.isImplementationOfOverload(t)){const e=n.getTypeAtLocation(t).getCallSignatures();e.length>1&&(r=n.getUnionType(q(e,(e=>e.getReturnType()))))}if(!r){const e=n.getSignatureFromDeclaration(t);if(e){const i=n.getTypePredicateOfSignature(e);if(i&&i.type){const e=n.typePredicateToTypePredicateNode(i,t,1,8);if(e)return{declaration:t,returnTypeNode:e}}else r=n.getReturnTypeOfSignature(e)}}if(!r)return{error:Yx(ha.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1,8);return i?{declaration:t,returnTypeNode:i}:void 0}d6(v8,{kinds:[x8.kind],getEditsForAction:function(e){const t=S8(e);if(t&&!x3(t))return{renameFilename:void 0,renameLocation:void 0,edits:Z_e.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=RX(n,22,e),o=uF(n)&&void 0===i,a=o?xe(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,oD.createToken(21)),t.insertNodeAfter(e,a,oD.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}},getAvailableActions:function(e){const t=S8(e);return t?x3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:v8,description:b8,actions:[{...x8,notApplicableReason:t.error}]}]:u:[{name:v8,description:b8,actions:[x8]}]:u}});var k8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(k8||{}),T8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(T8||{}),C8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(C8||{});function D8(e,t,n,r){const i=w8(e,t,n,r);gn.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;e{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)};return e&&t&&function(e,t,n,r,i){const o=e.getTypeChecker();let a=!1;function s(c){switch(c.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:i.throwIfCancellationRequested()}if(!c||!Ws(n,c.pos,c.getFullWidth())||0===c.getFullWidth())return;const l=a;if((PN(c)||AN(c))&&(a=!0),zN(c)&&(a=!1),Xw(c)&&!a&&!function(e){const t=e.parent;return t&&(dN(t)||xN(t)||yN(t))}(c)&&!qT(c.escapedText)){let n=o.getSymbolAtLocation(c);if(n){2097152&n.flags&&(n=o.getAliasedSymbol(n));let i=function(e,t){const n=e.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&t)return 2}else if(262144&n)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];return r&&ZE(r)&&(r=F8(r)),r&&P8.get(r.kind)}(n,HK(c));if(void 0!==i){let a=0;c.parent&&(ZE(c.parent)||P8.get(c.parent.kind)===i)&&c.parent.name===c&&(a=1),6===i&&N8(c)&&(i=9),i=function(e,t,n){if(7===n||9===n||6===n){const r=e.getTypeAtLocation(t);if(r){const e=e=>e(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;N8(e);)e=e.parent;return iF(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=_c(s),o=pc(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return ZE(e)&&(e=F8(e)),ZF(e)?(!QN(e.parent.parent.parent)||WN(e.parent))&&e.getSourceFile()===t:!!tN(e)&&(!QN(e.parent)&&e.getSourceFile()===t)}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}qI(c,s),a=l}s(t)}(e,t,n,o,r),i}function F8(e){for(;;){if(!ZE(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function N8(e){return _E(e.parent)&&e.parent.right===e||nF(e.parent)&&e.parent.name===e}var P8=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),A8="0.8";function I8(e,t,n,r){const i=Ll(e)?new O8(e,t,n):80===e?new B8(80,t,n):81===e?new J8(81,t,n):new M8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var O8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){gn.assert(!rT(this.pos)&&!rT(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Cd(this)}getStart(e,t){return this.assertHasRealPosition(),Hd(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=Cd(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),UP(this,e)??VP(this,e,function(e,t){const n=[];if(P_(e))return e.forEachChild((e=>{n.push(e)})),n;UK.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{L8(n,r,t.pos,e),n.push(t),r=t.end},o=t=>{L8(n,r,t.pos,e),n.push(function(e,t){const n=I8(352,e.pos,e.end,t),r=[];let i=e.pos;for(const n of e)L8(r,i,n.pos,t),r.push(n),i=n.end;return L8(r,i,e.end,t),n._children=r,n}(t,e)),r=t.end};return f(e.jsDoc,i),r=e.pos,e.forEachChild(i,o),L8(n,r,e.end,e),UK.setText(void 0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=T(t,(e=>e.kind<309||e.kind>351));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=ke(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return qI(this,e,t)}};function L8(e,t,n,r){for(UK.resetTokenState(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function U8(e,t){if(!e)return u;let n=zle.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(q8))){const r=new Set;for(const i of e){const e=W8(t,i,(e=>{var n;if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags(t):void 0}));e&&(n=[...e,...n])}}return n}function V8(e,t){if(!e)return u;let n=zle.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(q8))){const r=new Set;for(const i of e){const e=W8(t,i,(e=>{if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat($Y(),n))}}return n}function W8(e,t,n){var r;const i=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=jv(t);return g(Eh(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}var H8=class extends O8{constructor(e,t,n){super(e,t,n)}update(e,t){return QI(this,e,t)}getLineAndCharacterOfPosition(e){return Ga(this,e)}getLineStarts(){return Ua(this)}getPositionOfLineAndCharacter(e,t,n){return qa(Ua(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Qe();return this.forEachChild((function r(i){switch(i.kind){case 262:case 218:case 174:case 173:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=ke(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}qI(i,r);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(i),qI(i,r);break;case 169:if(!Lv(i,31))break;case 260:case 208:{const e=i;if(Fu(e.name)){qI(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(i);break;case 278:const s=i;s.exportClause&&(TN(s.exportClause)?f(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(274===c.namedBindings.kind?t(c.namedBindings):f(c.namedBindings.elements,r)));break;case 226:0!==cg(i)&&t(i);default:qI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Pc(e);return t&&(dE(t)&&nF(t.expression)?t.expression.name.text:cu(t)?HQ(t):void 0)}}},G8=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return Ga(this,e)}};function K8(e){let t=!0;for(const n in e)if(Ie(e,n)&&!X8(n)){t=!1;break}if(t)return e;const n={};for(const t in e)Ie(e,t)&&(n[X8(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]);return n}function X8(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function Q8(e){return e?O(e,(e=>e.text)).join(""):""}function Y8(){return{target:1,jsx:1}}function Z8(){return M7.getSupportedErrorCodes()}var e7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const u=GY(e,this.host),_=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=n7(e,l,{languageVersion:99,impliedNodeFormat:PU(Xo(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||Uy(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:xS(this.host.getCompilationSettings()),jsDocParsingMode:0},_,!0,u);else if(this.currentFileVersion!==_){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=r7(this.currentSourceFile,l,_,e)}return d&&(this.currentFileVersion=_,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function t7(e,t,n){e.version=n,e.scriptSnapshot=t}function n7(e,t,n,r,i,o){const a=HI(e,UQ(t),n,i,o);return t7(a,t,r),a}function r7(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Rs(r.span)!==e.text.length?e.text.substr(Rs(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=QI(e,o,r,i);return t7(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return n7(e.fileName,t,o,n,!0,e.scriptKind)}var i7={isCancellationRequested:lt,throwIfCancellationRequested:ct},o7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Yn)||e.instant(Yn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Nr}},a7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Gn();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Yn)||e.instant(Yn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Nr}},s7=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],c7=[...s7,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function l7(e,t=W0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new e7(e);let a,s,c=0;const l=e.getCancellationToken?new o7(e.getCancellationToken()):i7,_=e.getCurrentDirectory();function d(t){e.log&&e.log(t)}Qx(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const p=qy(e),m=Xt(p),g=A1({useCaseSensitiveFileNames:()=>p,getCurrentDirectory:()=>_,getProgram:v,fileExists:Xe(e,e.fileExists),readFile:Xe(e,e.readFile),getDocumentPositionMapper:Xe(e,e.getDocumentPositionMapper),getSourceFileLike:Xe(e,e.getSourceFileLike),log:d});function h(e){const t=a.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map((e=>e.fileName)),t}return t}function y(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(gn.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(s===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;s=t}}const u=e.getTypeRootsVersion?e.getTypeRootsVersion():0;c!==u&&(d("TypeRoots version has changed; provide new program"),a=void 0,c=u);const f=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||lt,v=Xe(e,e.hasInvalidatedLibResolutions)||lt,b=Xe(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let S,k={getSourceFile:O,getSourceFileByPath:L,getCancellationToken:()=>l,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>p,getNewLine:()=>Bb(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:ct,getCurrentDirectory:()=>_,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:Xe(e,e.getSymlinkCache),realpath:Xe(e,e.realpath),directoryExists:t=>Rb(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(gn.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:I,onReleaseParsedCommandLine:P,hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:Xe(e,e.trace),resolveModuleNames:Xe(e,e.resolveModuleNames),getModuleResolutionCache:Xe(e,e.getModuleResolutionCache),createHash:Xe(e,e.createHash),resolveTypeReferenceDirectives:Xe(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Xe(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Xe(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Xe(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Xe(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:Xe(e,e.getGlobalTypingsCacheLocation)};const T=k.getSourceFile,{getSourceFileWithCache:C}=zq(k,(e=>Xo(e,_,m)),((...e)=>T.call(k,...e)));k.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,k);const D={useCaseSensitiveFileNames:p,fileExists:e=>k.fileExists(e),readFile:e=>k.readFile(e),directoryExists:e=>k.directoryExists(e),getDirectories:e=>k.getDirectories(e),realpath:k.realpath,readDirectory:(...e)=>k.readDirectory(...e),trace:k.trace,getCurrentDirectory:k.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:ct},w=t.getKeyForCompilationSettings(h);let E=new Set;return FU(a,f,h,((t,n)=>e.getScriptVersion(n)),(e=>k.fileExists(e)),y,v,b,F,x)?(k=void 0,S=void 0,void(E=void 0)):(a=OU({rootNames:f,options:h,host:k,oldProgram:a,projectReferences:x}),k=void 0,S=void 0,E=void 0,g.clearCache(),void a.getTypeChecker());function F(t){const n=Xo(t,_,m),r=null==S?void 0:S.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):N(t);return(S||(S=new Map)).set(n,i||!1),i}function N(e){const t=O(e,100);if(t)return t.path=Xo(e,_,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,KL(t,D,Ho(Ro(e),_),void 0,Ho(e,_))}function P(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&A(n.sourceFile,r)}function A(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function I(t,n,r,i){var o;A(t,n),null==(o=e.onReleaseOldSourceFile)||o.call(e,t,n,r,i)}function O(e,t,n,r){return L(e,Xo(e,_,m),t,n,r)}function L(n,r,i,o,s){gn.assert(k,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=GY(n,e),u=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||E.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,w,c,u,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),E.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,w,c,u,l,i)}}()}function v(){if(2!==i)return y(),a;gn.assert(void 0===a)}function b(){if(a){const e=t.getKeyForCompilationSettings(a.getCompilerOptions());f(a.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),a=void 0}}function x(e,t){if(zs(t,e))return;const n=yc(ZX(e,Rs(t))||e,(e=>$s(e,t))),r=[];return S(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),X(r,QN)?void 0:r}function S(e,t,n){return!!function(e,t){const n=t.start+t.length;return e.post.start}(t,e)&&(zs(e,t)?(k(t,n),!0):f0(t)?function(e,t,n){const r=[],i=t.statements.filter((t=>S(e,t,r)));return i.length===t.statements.length?(k(t,n),!0):(n.push(...r),!1)}(e,t,n):yu(t)?function(e,t,n){var r,i,o;const a=t=>Ks(t,e);if((null==(r=t.modifiers)?void 0:r.some(a))||t.name&&a(t.name)||(null==(i=t.typeParameters)?void 0:i.some(a))||(null==(o=t.heritageClauses)?void 0:o.some(a)))return k(t,n),!0;const s=[],c=t.members.filter((t=>S(e,t,s)));return c.length===t.members.length?(k(t,n),!0):(n.push(...s),!1)}(e,t,n):(k(t,n),!0))}function k(e,t){for(;e.parent&&!xC(e);)e=e.parent;t.push(e)}function T(e,t,n,r){y();const i=n&&n.use===Nce.FindReferencesUse.Rename?a.getSourceFiles().filter((e=>!a.isSourceFileDefaultLibrary(e))):a.getSourceFiles();return Nce.findReferenceOrRenameEntries(a,l,i,e,t,n,r)}const C=new Map(Object.entries({19:20,21:22,23:24,32:30}));function D(t){return gn.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(e=>Xo(e,_,m))(t.file),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function w(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function E(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=w(r,t);let l=n||!1,u=Number.MAX_VALUE;const _=new Map,d=new RegExp(/\S/),p=uQ(r,a[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(a[e],r.getLineEndOfPosition(a[e])),i=d.exec(t);i&&(u=Math.min(u,i.index),_.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&a[n]===t.end)continue;const o=_.get(n.toString());void 0!==o&&(p?i.push(...F(e,{pos:a[n]+u,end:r.getLineEndOfPosition(a[n])},l,p)):l?i.push({newText:f,span:{length:0,start:a[n]+u}}):r.text.substr(a[n]+o,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[n]+o}}))}return i}function F(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,u=n||!1;const _=[];let{pos:d}=t;const p=void 0!==r?r:uQ(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=mQ(a,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),_.push(e.pos),3===e.kind&&_.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);u=void 0!==n?n:u||!bY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(u||!l){2!==(null==(i=mQ(a,t.pos))?void 0:i.kind)&&ie(_,t.pos,Tt),ie(_,t.end,Tt);const e=_[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e<_.length-1;e++)c.substr(_[e]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:_[e]}}),c.substr(_[e],f.length)!==f&&s.push({newText:f,span:{length:0,start:_[e]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:_[_.length-1]}})}else for(const e of _){const t=e-m.length>0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function N({openingElement:e,closingElement:t,parent:n}){return!fO(e.tagName,t.tagName)||PN(n)&&fO(e.tagName,n.openingElement.tagName)&&N(n)}function P({closingFragment:e,parent:t}){return!!(262144&e.flags)||LN(t)&&P(t)}function A(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:v(),host:e,formatContext:Ede.getFormatContext(i,e),cancellationToken:l,preferences:r,triggerReason:o,kind:a}}C.forEach(((e,t)=>C.set(e.toString(),Number(t))));const I={dispose:function(){b(),e=void 0},cleanupSemanticCache:b,getSyntacticDiagnostics:function(e){return y(),a.getSyntacticDiagnostics(h(e),l).slice()},getSemanticDiagnostics:function(e){y();const t=h(e),n=a.getSemanticDiagnostics(t,l);if(!RS(a.getCompilerOptions()))return n.slice();const r=a.getDeclarationDiagnostics(t,l);return[...n,...r]},getRegionSemanticDiagnostics:function(e,t){y();const n=h(e),r=a.getCompilerOptions();if(hT(n,r,a)||!bT(n,r)||a.getCachedSemanticDiagnostics(n))return;const i=function(e,t){const n=[],r=Qs(t.map((e=>LQ(e))));for(const t of r){const r=x(e,t);if(!r)return;n.push(...r)}if(n.length)return n}(n,t);if(!i)return;const o=Qs(i.map((e=>Zs(e.getFullStart(),e.getEnd()))));return{diagnostics:a.getSemanticDiagnostics(n,l,i).slice(),spans:o}},getSuggestionDiagnostics:function(e){return y(),R1(h(e),a,l)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(l),...a.getGlobalDiagnostics(l)]},getSyntacticClassifications:function(e,t){return q0(l,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return y(),"2020"===(n||"original")?D8(a,l,h(e),t):j0(a.getTypeChecker(),l,h(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return U0(l,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return y(),"original"===(n||"original")?B0(a.getTypeChecker(),l,h(e),a.getClassifiableNames(),t):w8(a,l,h(e),t)},getCompletionsAtPosition:function(t,n,r=TK,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),Fae.getCompletionsAtPosition(e,a,d,h(t),n,o,r.triggerCharacter,r.triggerKind,l,i&&Ede.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=TK,c){return y(),Fae.getCompletionEntryDetails(a,d,h(t),n,{name:r,source:o,data:c},e,i&&Ede.getFormatContext(i,e),s,l)},getCompletionEntrySymbol:function(t,n,r,i,o=TK){return y(),Fae.getCompletionEntrySymbol(a,d,h(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=TK){y();const r=h(e);return s_e.getSignatureHelpItems(a,r,t,n,l)},getQuickInfoAtPosition:function(e,t){y();const n=h(e),r=GX(n,t);if(r===n)return;const i=a.getTypeChecker(),o=function(e){return oF(e.parent)&&e.pos===e.parent.pos?e.parent.expression:LE(e.parent)&&e.pos===e.parent.pos||hf(e.parent)&&e.parent.name===e||$N(e.parent)?e.parent:e}(r),s=function(e,t){const n=_7(e);if(n){const e=t.getContextualType(n.parent),r=e&&d7(n,t,e,!1);if(r&&1===r.length)return xe(r)}return t.getSymbolAtLocation(e)}(o,i);if(!s||i.isUnknownSymbol(s)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!jm(t)&&(171===t.parent.kind&&t.parent.name===t||yc(t,(e=>169===e.kind)))||uX(t)||_X(t)||Fl(t.parent));case 211:case 166:return!mQ(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return hf(t);default:return!1}}(n,o,t)?i.getTypeAtLocation(o):void 0;return e&&{kind:"",kindModifiers:"",textSpan:AQ(o,n),displayParts:i.runWithCancellationToken(l,(t=>UY(t,e,vX(o)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:u,documentation:_,tags:d}=i.runWithCancellationToken(l,(e=>U_e.getSymbolDisplayPartsDocumentationAndSymbolKind(e,s,n,vX(o),o)));return{kind:c,kindModifiers:U_e.getSymbolModifiers(i,s),textSpan:AQ(o,n),displayParts:u,documentation:_,tags:d}},getDefinitionAtPosition:function(e,t,n,r){return y(),hle.getDefinitionAtPosition(a,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return y(),hle.getDefinitionAndBoundSpan(a,h(e),t)},getImplementationAtPosition:function(e,t){return y(),Nce.getImplementationsAtPosition(a,l,a.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return y(),hle.getTypeDefinitionAtPosition(a.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return y(),T(GX(h(e),t),t,{use:Nce.FindReferencesUse.References},Nce.toReferenceEntry)},findReferences:function(e,t){return y(),Nce.findReferencedSymbols(a,l,a.getSourceFiles(),h(e),t)},getFileReferences:function(e){return y(),Nce.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(Nce.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=Go(e);gn.assert(n.some((e=>Go(e)===r))),y();const i=q(n,(e=>a.getSourceFile(e))),o=h(e);return P0.getDocumentHighlights(a,l,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=GX(r,t);if(i===r)return;switch(i.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let a=i;for(;;)if(pX(a)||dX(a))a=a.parent;else{if(!mX(a))break;if(267!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return Zs(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return m7.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return y(),i2(n?[h(n)]:a.getSourceFiles(),a.getTypeChecker(),l,e,t,r,i)},getRenameInfo:function(e,t,n){return y(),e_e.getRenameInfo(a,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return I_e.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){y();const o=h(e),a=HX(GX(o,t));if(e_e.nodeIsEligibleForRename(a)){if(Xw(a)&&(IN(a.parent)||ON(a.parent))&&jy(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=AQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...Nce.toContextSpan(t,o,e.parent)}}))}{const e=iY(o,i??TK),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return T(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:Nce.FindReferencesUse.Rename},((t,n,r)=>Nce.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return T2(o.getCurrentSourceFile(e),l)},getNavigationTree:function(e){return C2(o.getCurrentSourceFile(e),l)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return Vue.collectElements(t,l)},getTodoComments:function(e,t){y();const n=h(e);l.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!function(e){return e.includes("/node_modules/")}(n.fileName)){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/{2,}\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+O(t,(e=>"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")")).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){l.throwIfCancellationRequested();const e=3;gn.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!mQ(n,c))continue;let u;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const _=a[2];i.push({descriptor:u,message:_,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=KX(n,t),i=r.getStart(n)===t?C.get(r.kind.toString()):void 0,a=i&&RX(r.parent,i,n);return a?[AQ(r,n),AQ(a,n)].sort(((e,t)=>e.start-t.start)):u},getIndentationAtPosition:function(e,t,n){let r=Gn();const i=K8(n),a=o.getCurrentSourceFile(e);d("getIndentationAtPosition: getCurrentSourceFile: "+(Gn()-r)),r=Gn();const s=Ede.SmartIndenter.getIndentation(t,a,i);return d("getIndentationAtPosition: computeIndentation : "+(Gn()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return Ede.formatSelection(n,r,a,Ede.getFormatContext(K8(i),e))},getFormattingEditsForDocument:function(t,n){return Ede.formatDocument(o.getCurrentSourceFile(t),Ede.getFormatContext(K8(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=Ede.getFormatContext(K8(i),e);if(!mQ(a,n))switch(r){case"{":return Ede.formatOnOpeningCurly(n,a,s);case"}":return Ede.formatOnClosingCurly(n,a,s);case";":return Ede.formatOnSemicolon(n,a,s);case"\n":return Ede.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?Ede.getFormatContext(i,e).options:void 0;return zle.getDocCommentTemplateAtPosition(zY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(oQ(r,t))return!1;if(aQ(r,t))return 123===n;if(cQ(r,t))return!1;switch(n){case 39:case 34:case 96:return!mQ(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=tQ(t,n);if(!r)return;const i=32===r.kind&&IN(r.parent)?r.parent.parent:Ow(r)&&PN(r.parent)?r.parent:void 0;if(i&&N(i))return{newText:``};const a=32===r.kind&&RN(r.parent)?r.parent.parent:Ow(r)&&LN(r.parent)?r.parent:void 0;return a&&P(a)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=tQ(t,n);if(!r||307===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(LN(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(Td(e)||Td(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=yc(r.parent,(e=>!(!IN(e)&&!ON(e))));if(!e)return;gn.assert(IN(e)||ON(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),u=a.tagName.end;if(s===o.getStart(n)||l===a.getStart(n)||c===o.getEnd()||u===a.getEnd())return;if(!(s<=t&&t<=c||l<=t&&t<=u))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:u-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=Ede.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:LQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=TK){y();const c=h(t),u=Zs(n,r),_=Ede.getFormatContext(o,e);return M(ne(i,bt,Tt),(t=>(l.throwIfCancellationRequested(),M7.getFixes({errorCode:t,sourceFile:c,span:u,program:a,host:e,cancellationToken:l,formatContext:_,preferences:s}))))},getCombinedCodeFix:function(t,n,r,i=TK){y(),gn.assert("file"===t.type);const o=h(t.fileName),s=Ede.getFormatContext(r,e);return M7.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:l,formatContext:s,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return nt(n)?Promise.all(n.map((e=>D(e)))):D(n)},organizeImports:function(t,n,r=TK){y(),gn.assert("file"===t.type);const i=h(t.fileName);if(Td(i))return u;const o=Ede.getFormatContext(n,e),s=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return pue.organizeImports(i,o,e,a,r,s)},getEditsForFileRename:function(t,n,r,i=TK){return X0(v(),t,n,e,Ede.getFormatContext(r,e),i,g)},getEmitOutput:function(t,n,r){y();const i=h(t),o=e.getCustomTransformers&&e.getCustomTransformers();return HU(a,i,!!n,l,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:v,getCurrentProgram:()=>a,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=a.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return gn.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=SY(t,g,Xe(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(gn.assertIsDefined(r),n.has(t)||Nce.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=SY(t,g,Xe(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=a.getSourceFile(e.fileName);if(!t)return;const n=GX(t,e.textSpan.start);return Nce.Core.getAdjustedNode(n,{use:Nce.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=TK,r,i,o){y();const a=h(e);return u6.getApplicableRefactors(A(a,t,n,TK,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=TK,a){y();const s=h(e);return u6.getEditsForRefactor(A(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=TK){y();const i=h(t),o=gn.checkDefined(a.getSourceFiles()),s=aT(t),c=s3(A(i,n,r,TK)),l=c3(null==c?void 0:c.all),u=q(o,(e=>{const t=aT(e.fileName);return(null==a?void 0:a.isSourceFileFromExternalLibrary(i))||i===h(e.fileName)||".ts"===s&&".d.ts"===t||".d.ts"===s&&en(jo(e.fileName),"lib.")&&".d.ts"===t||s!==t&&(!(".tsx"===s&&".ts"===t||".jsx"===s&&".js"===t)||l)?void 0:e.fileName}));return{newFileName:a3(i,a,e,c),files:u}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:g.toLineColumnOffset(e,t)},getSourceMapper:()=>g,clearSourceMapperCache:()=>g.clearCache(),prepareCallHierarchy:function(e,t){y();const n=h7.resolveCallHierarchyDeclaration(a,GX(h(e),t));return n&&QZ(n,(e=>h7.createCallHierarchyItem(a,e)))},provideCallHierarchyIncomingCalls:function(e,t){y();const n=h(e),r=YZ(h7.resolveCallHierarchyDeclaration(a,0===t?n:GX(n,t)));return r?h7.getIncomingCalls(a,r,l):[]},provideCallHierarchyOutgoingCalls:function(e,t){y();const n=h(e),r=YZ(h7.resolveCallHierarchyDeclaration(a,0===t?n:GX(n,t)));return r?h7.getOutgoingCalls(a,r):[]},toggleLineComment:E,toggleMultilineComment:F,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=w(n,t);return r===i&&t.pos!==t.end?F(e,t,!0):E(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=uQ(n,i)?2:1);for(let t=i;t<=a;t++){const i=mQ(n,t);if(i){switch(i.kind){case 2:r.push(...E(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...F(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=TK){y();const i=h(t);return Rle.provideInlayHints(function(t,n,r){return{file:t,program:v(),host:e,span:n,preferences:r,cancellationToken:l}}(i,n,r))},getSupportedCodeFixes:Z8,preparePasteEditsForFile:function(e,t){return y(),Efe.preparePasteEdits(h(e),t,a.getTypeChecker())},getPasteEdits:function(t,n){return y(),Nfe.pasteEditsProvider(h(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:h(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,Ede.getFormatContext(n,e),l)},mapCode:function(t,n,r,i,a){return sue.mapCode(o.getCurrentSourceFile(t),n,r,e,Ede.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:s7.forEach((e=>I[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:c7.forEach((e=>I[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:gn.assertNever(i)}return I}function u7(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(Xw(n)&&!_X(n)&&n.escapedText||qh(n)&&function(e){return gh(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||yh(e)}(n)){const e=Xh(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(Qw(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(qI(n,e),L_(n))for(const t of n.jsDoc)qI(t,e)}))}(e),e.nameTable}function _7(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return B_(e.parent.parent)?e.parent.parent:void 0;case 80:return!B_(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&(tF(t.parent)||BN(t.parent))?t:void 0}function d7(e,t,n,r){const i=HQ(e.name);if(!i)return u;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:u}const o=tF(e.parent)||BN(e.parent)?P(n.types,(n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent))):n.types,a=q(o,(e=>e.getProperty(i)));if(r&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return o.length||a.length?ne(a,bt):q(n.types,(e=>e.getProperty(i)))}function p7(e){if(go)return Uo(Ro(Go(go.getExecutingFilePath())),Ls(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function f7(e,t,n){const r=[];n=n2(n,r);const i=nt(e)?e:[e],o=B$(void 0,void 0,oD,n,i,t,!0);return o.diagnostics=Y(o.diagnostics,r),o}Gx({getNodeConstructor:()=>O8,getTokenConstructor:()=>M8,getIdentifierConstructor:()=>B8,getPrivateIdentifierConstructor:()=>J8,getSourceFileConstructor:()=>H8,getSymbolConstructor:()=>j8,getTypeConstructor:()=>z8,getSignatureConstructor:()=>$8,getSourceMapSourceConstructor:()=>G8});var m7={};function g7(e,t){if(e.isDeclarationFile)return;let n=XX(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=tQ(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=gI(t)?C(t.modifiers,mE):void 0;return Zs(r?is(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,eQ(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(tQ(t.pos,e))}function c(t){return l(eQ(t,t.parent,e))}function l(t){if(t){const{parent:u}=t;switch(t.kind){case 243:return _(t.declarationList.declarations[0]);case 260:case 172:case 171:return _(t);case 169:return function e(t){if(Fu(t.name))return g(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Lv(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return gn.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(e.body)return d(e)?i(e):l(e.body)}(t);case 241:if(Vf(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return d(e.parent)?a(e.parent,t):l(t)}(t);case 268:return p(t);case 299:return p(t.block);case 244:return i(t.expression);case 253:return i(t.getChildAt(0),t.expression);case 247:return o(t,t.expression);case 246:return l(t.statement);case 259:return i(t.getChildAt(0));case 245:return o(t,t.expression);case 256:return l(t.statement);case 252:case 251:return i(t.getChildAt(0),t.label);case 248:return(r=t).initializer?m(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 249:return o(t,t.expression);case 250:return m(t);case 255:return o(t,t.expression);case 296:case 297:return l(t.statements[0]);case 258:return p(t.tryBlock);case 257:case 277:return i(t,t.expression);case 271:return i(t,t.moduleReference);case 272:case 278:return i(t,t.moduleSpecifier);case 267:if(1!==zM(t))return;case 263:case 266:case 306:case 208:return i(t);case 254:return l(t.statement);case 170:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return l(t.declarations[0])}}function g(e){const t=f(e.elements,(e=>232!==e.kind?e:void 0));return t?l(t):208===e.parent.kind?i(e.parent):u(e.parent)}function h(e){gn.assert(207!==e.kind&&206!==e.kind);const t=f(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?l(t):i(226===e.parent.kind?e.parent:e)}}}n(m7,{spanInSourceFileAtLocation:()=>g7});var h7={};function y7(e){return hE(e)||ZF(e)}function v7(e){return(lF(e)||uF(e)||SF(e))&&y7(e.parent)&&e===e.parent.initializer&&Xw(e.parent.name)&&(!!(2&pc(e.parent))||hE(e.parent))}function b7(e){return QN(e)||aN(e)||tN(e)||lF(e)||nN(e)||SF(e)||bE(e)||vE(e)||yE(e)||SE(e)||kE(e)}function x7(e){return QN(e)||aN(e)&&Xw(e.name)||tN(e)||nN(e)||bE(e)||vE(e)||yE(e)||SE(e)||kE(e)||function(e){return(lF(e)||SF(e))&&Nc(e)}(e)||v7(e)}function S7(e){return QN(e)?e:Nc(e)?e.name:v7(e)?e.parent.name:gn.checkDefined(e.modifiers&&T(e.modifiers,k7))}function k7(e){return 90===e.kind}function T7(e,t){const n=S7(t);return n&&e.getSymbolAtLocation(n)}function C7(e,t){if(t.body)return t;if(xE(t))return _v(t.parent);if(tN(t)||vE(t)){const n=T7(e,t);return n&&n.valueDeclaration&&du(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function D7(e,t){const n=T7(e,t);let r;if(n&&n.declarations){const e=ee(n.declarations),t=O(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>Nt(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=O(e,(e=>n.declarations[e]));let o;for(const e of i)x7(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=le(r,e)),o=e)}return r}function w7(e,t){return bE(t)?t:du(t)?C7(e,t)??D7(e,t)??t:D7(e,t)??t}function E7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(x7(t))return w7(n,t);if(b7(t)){const e=yc(t,x7);return e&&w7(n,e)}if(gh(t)){if(x7(t.parent))return w7(n,t.parent);if(b7(t.parent)){const e=yc(t.parent,x7);return e&&w7(n,e)}return y7(t.parent)&&t.parent.initializer&&v7(t.parent.initializer)?t.parent.initializer:void 0}if(xE(t))return x7(t.parent)?t.parent:void 0;if(126!==t.kind||!bE(t.parent)){if(ZF(t)&&t.initializer&&v7(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function F7(e,t){const n=t.getSourceFile(),r=function(e,t){if(QN(t))return{text:t.fileName,pos:0,end:0};if((tN(t)||nN(t))&&!Nc(t)){const e=t.modifiers&&T(t.modifiers,k7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(bE(t)){const n=is(t.getSourceFile().text,Ub(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=v7(t)?t.parent.name:gn.checkDefined(Ac(t),"Expected call hierarchy item to have a name");let r=Xw(n)?kc(n):qh(n)?n.text:dE(n)&&qh(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=gq();r=dd((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n,r,i;if(v7(e))return hE(e.parent)&&yu(e.parent.parent)?SF(e.parent.parent)?null==(t=Ic(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():sN(e.parent.parent.parent.parent)&&Xw(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(r=Ic(e.parent))?void 0:r.getText():null==(i=Ac(e.parent))?void 0:i.getText();case 262:case 263:case 267:if(sN(e.parent)&&Xw(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=bX(t),a=yQ(t),s=Zs(is(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=Zs(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function N7(e){return void 0!==e}function P7(e){if(e.kind===Nce.EntryKind.Node){const{node:t}=e;if(QK(t,!0,!0)||YK(t,!0,!0)||ZK(t,!0,!0)||eX(t,!0,!0)||pX(t)||fX(t)){const e=t.getSourceFile();return{declaration:yc(t,x7)||e,range:OQ(t,e)}}}}function A7(e){return QB(e.declaration)}function I7(e,t,n){if(QN(t)||aN(t)||bE(t))return[];const r=S7(t),i=P(Nce.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:Nce.FindReferencesUse.References},P7),N7);return i?Ve(i,A7,(t=>function(e,t){return n=F7(e,t[0].declaration),r=O(t,(e=>LQ(e.range))),{from:n,fromSpans:r};var n,r}(e,t))):[]}function O7(e,t){const n=[],r=function(e,t){function n(n){const r=aF(n)?n.tag:w_(n)?n.tagName:Px(n)||bE(n)?n:n.expression,i=E7(e,r);if(i){const e=OQ(r,n.getSourceFile());if(nt(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(x7(t)){if(yu(t))for(const n of t.members)n.name&&dE(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void f(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),qI(t,e)}Af(t)||qI(t,e)}}}(e,n);switch(t.kind){case 307:!function(e,t){f(e.statements,t)}(t,r);break;case 267:!function(e,t){!Lv(e,128)&&e.body&&sN(e.body)&&f(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=C7(e,t);r&&(f(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){f(e.modifiers,t);const n=Dh(e);n&&t(n.expression);for(const n of e.members)mI(n)&&f(n.modifiers,t),hE(n)?t(n.initializer):xE(n)&&n.body?(f(n.parameters,t),t(n.body)):bE(n)&&t(n)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:gn.assertNever(t)}return n}function L7(e,t){return 33554432&t.flags||yE(t)?[]:Ve(O7(e,t),A7,(t=>function(e,t){return n=F7(e,t[0].declaration),r=O(t,(e=>LQ(e.range))),{to:n,fromSpans:r};var n,r}(e,t)))}n(h7,{createCallHierarchyItem:()=>F7,getIncomingCalls:()=>I7,getOutgoingCalls:()=>L7,resolveCallHierarchyDeclaration:()=>E7});var R7={};n(R7,{v2020:()=>j7});var j7={};n(j7,{TokenEncodingConsts:()=>k8,TokenModifier:()=>C8,TokenType:()=>T8,getEncodedSemanticClassifications:()=>w8,getSemanticClassifications:()=>D8});var M7={};n(M7,{PreserveOptionalFlags:()=>Hie,addNewNodeForMemberSymbol:()=>Gie,codeFixAll:()=>Y7,createCodeFixAction:()=>q7,createCodeFixActionMaybeFixAll:()=>U7,createCodeFixActionWithoutFixAll:()=>$7,createCombinedCodeActions:()=>X7,createFileTextChanges:()=>Q7,createImportAdder:()=>kee,createImportSpecifierResolver:()=>Cee,createMissingMemberNodes:()=>Vie,createSignatureDeclarationFromCallExpression:()=>Xie,createSignatureDeclarationFromSignature:()=>Kie,createStubbedBody:()=>soe,eachDiagnostic:()=>Z7,findAncestorMatchingSpan:()=>moe,generateAccessorFromProperty:()=>goe,getAccessorConvertiblePropertyAtPosition:()=>boe,getAllFixes:()=>K7,getAllSupers:()=>koe,getFixes:()=>G7,getImportCompletionAction:()=>Dee,getImportKind:()=>$ee,getJSDocTypedefNodes:()=>uee,getNoopSymbolTrackerWithResolver:()=>Wie,getPromoteTypeOnlyCompletionAction:()=>wee,getSupportedErrorCodes:()=>H7,importFixName:()=>bee,importSymbols:()=>foe,parameterShouldGetTypeFromJSDoc:()=>q5,registerCodeFix:()=>W7,setJsonCompilerOptionValue:()=>loe,setJsonCompilerOptionValues:()=>coe,tryGetAutoImportableReferenceFromTypeNode:()=>doe,typeNodeToAutoImportableTypeNode:()=>Zie,typePredicateToAutoImportableTypeNode:()=>toe,typeToAutoImportableTypeNode:()=>Yie,typeToMinimizedReferenceType:()=>eoe});var B7,J7=Qe(),z7=new Map;function $7(e,t,n){return V7(e,c0(n),t,void 0,void 0)}function q7(e,t,n,r,i,o){return V7(e,c0(n),t,r,c0(i),o)}function U7(e,t,n,r,i,o){return V7(e,c0(n),t,r,i&&c0(i),o)}function V7(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function W7(e){for(const t of e.errorCodes)B7=void 0,J7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)gn.assert(!z7.has(t)),z7.set(t,e)}function H7(){return B7??(B7=Be(J7.keys()))}function G7(e){const t=e5(e);return M(J7.get(String(e.errorCode)),(n=>O(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(E(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function K7(e){return z7.get(st(e.fixId,it)).getAllCodeActions(e)}function X7(e,t){return{changes:e,commands:t}}function Q7(e,t){return{fileName:e,textChanges:t}}function Y7(e,t,n){const r=[];return X7(Z_e.ChangeTracker.with(e,(i=>Z7(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function Z7(e,t,n){for(const r of e5(e))E(t,r.code)&&n(r)}function e5({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...R1(t,e,n)];return RS(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var t5="addConvertToUnknownForNonOverlappingTypes",n5=[ha.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function r5(e,t,n){const r=CF(n)?oD.createAsExpression(n.expression,oD.createKeywordTypeNode(159)):oD.createTypeAssertion(oD.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function i5(e,t){if(!jm(e))return yc(XX(e,t),(e=>CF(e)||sF(e)))}W7({errorCodes:n5,getCodeActions:function(e){const t=i5(e.sourceFile,e.span.start);if(void 0===t)return;const n=Z_e.ChangeTracker.with(e,(n=>r5(n,e.sourceFile,t)));return[q7(t5,n,ha.Add_unknown_conversion_for_non_overlapping_types,t5,ha.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t5],getAllCodeActions:e=>Y7(e,n5,((e,t)=>{const n=i5(t.file,t.start);n&&r5(e,t.file,n)}))}),W7({errorCodes:[ha.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,ha.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,ha.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[$7("addEmptyExportDeclaration",Z_e.ChangeTracker.with(e,(e=>{const n=oD.createExportDeclaration(void 0,!1,oD.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),ha.Add_export_to_make_this_file_into_a_module)]}});var o5="addMissingAsync",a5=[ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ha.Type_0_is_not_assignable_to_type_1.code,ha.Type_0_is_not_comparable_to_type_1.code];function s5(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(QB(n)))return;null==r||r.add(QB(n));const i=oD.replaceModifiers(eZ(n,!0),oD.createNodeArray(oD.createModifiersFromModifierFlags(1024|Kv(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return q7(o5,i,ha.Add_async_modifier_to_containing_function,o5,ha.Add_all_missing_async_modifiers)}function c5(e,t){if(!t)return;const n=yc(XX(e,t.start),(n=>n.getStart(e)Rs(t)?"quit":(uF(n)||vE(n)||lF(n)||tN(n))&&gY(t,AQ(n,e))));return n}W7({fixIds:[o5],errorCodes:a5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=T(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>ot(n)&&ot(r)&&gY({start:n,length:r},e)&&o===t&&!!i&&X(i,(e=>e.code===ha.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=c5(t,a&&a.relatedInformation&&T(a.relatedInformation,(e=>e.code===ha.Did_you_mean_to_mark_this_function_as_async.code)));if(s)return[s5(e,s,(t=>Z_e.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return Y7(e,a5,((r,i)=>{const o=i.relatedInformation&&T(i.relatedInformation,(e=>e.code===ha.Did_you_mean_to_mark_this_function_as_async.code)),a=c5(t,o);if(a)return s5(e,a,(e=>(e(r),[])),n)}))}});var l5="addMissingAwait",u5=ha.Property_0_does_not_exist_on_type_1.code,_5=[ha.This_expression_is_not_callable.code,ha.This_expression_is_not_constructable.code],d5=[ha.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,ha.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,ha.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,ha.Operator_0_cannot_be_applied_to_type_1.code,ha.Operator_0_cannot_be_applied_to_types_1_and_2.code,ha.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,ha.This_condition_will_always_return_true_since_this_0_is_always_defined.code,ha.Type_0_is_not_an_array_type.code,ha.Type_0_is_not_an_array_type_or_a_string_type.code,ha.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,ha.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ha.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ha.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ha.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,u5,..._5];function p5(e,t,n,r,i){const o=XZ(e,n);return o&&function(e,t,n,r,i){const o=i.getTypeChecker(),a=o.getDiagnostics(e,r);return X(a,(({start:e,length:r,relatedInformation:i,code:o})=>ot(e)&&ot(r)&&gY({start:e,length:r},n)&&o===t&&!!i&&X(i,(e=>e.code===ha.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&h5(o)?o:void 0}function f5(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(nF(e.parent)&&Xw(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Xw(e))return{identifiers:[e],isCompleteFix:!0};if(hF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!Xw(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=at(o.valueDeclaration,ZF),l=c&&at(c.name,Xw),u=Ph(c,243);if(!c||!u||c.type||!c.initializer||u.getSourceFile()!==t||Lv(u,32)||!l||!h5(c.initializer)){s=!1;continue}const _=r.getSemanticDiagnostics(t,n);Nce.Core.eachSymbolReferenceInFile(l,i,t,(n=>e!==n&&!g5(n,_,t,i)))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l)return $7("addMissingAwaitToInitializer",i((e=>{f(l.initializers,(({expression:t})=>y5(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&y5(e,n,a,r,t,o)})),1===l.initializers.length?[ha.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:ha.Add_await_to_initializers)}function m5(e,t,n,r,i,o){const a=i((i=>y5(i,n,e.sourceFile,r,t,o)));return q7(l5,a,ha.Add_await,l5,ha.Fix_all_expressions_possibly_missing_await)}function g5(e,t,n,r){const i=nF(e.parent)?e.parent.name:hF(e.parent)?e.parent:e,o=T(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&E(d5,o.code)||1&r.getTypeAtLocation(i).flags}function h5(e){return 65536&e.flags||!!yc(e,(e=>e.parent&&uF(e.parent)&&e.parent.body===e||OF(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function y5(e,t,n,r,i,o){if(qF(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAnyAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,oD.updateForOfStatement(t,oD.createToken(135),t.initializer,t.expression,t.statement))}}if(hF(i))for(const t of[i.left,i.right]){if(o&&Xw(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(YB(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?oD.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===u5&&nF(i.parent)){if(o&&Xw(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(YB(e)))return}e.replaceNode(n,i.parent.expression,oD.createParenthesizedExpression(oD.createAwaitExpression(i.parent.expression))),v5(e,i.parent.expression,n)}else if(E(_5,t)&&qu(i.parent)){if(o&&Xw(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(YB(e)))return}e.replaceNode(n,i,oD.createParenthesizedExpression(oD.createAwaitExpression(i))),v5(e,i,n)}else{if(o&&ZF(i.parent)&&Xw(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!W(o,YB(e)))return}e.replaceNode(n,i,oD.createAwaitExpression(i))}}function v5(e,t,n){const r=tQ(t.pos,n);r&&AZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}W7({fixIds:[l5],errorCodes:d5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=p5(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>Z_e.ChangeTracker.with(e,t);return se([f5(e,a,n,s,c),m5(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return Y7(e,d5,((a,s)=>{const c=p5(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return f5(e,c,s.code,i,l,o)||m5(e,c,s.code,i,l,o)}))}});var b5="addMissingConst",x5=[ha.Cannot_find_name_0.code,ha.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function S5(e,t,n,r,i){const o=XX(t,n),a=yc(o,(e=>i_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return k5(e,a,t,i);const s=o.parent;if(hF(s)&&64===s.operatorToken.kind&&jF(s.parent))return k5(e,o,t,i);if(eF(s)){const n=r.getTypeChecker();if(!k(s.elements,(e=>function(e,t){const n=Xw(e)?e:_b(e,!0)&&Xw(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return k5(e,s,t,i)}const c=yc(o,(e=>!!jF(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!T5(c,r.getTypeChecker()))return;return k5(e,c,t,i)}}function k5(e,t,n,r){r&&!W(r,t)||e.insertModifierBefore(n,87,t)}function T5(e,t){return!!hF(e)&&(28===e.operatorToken.kind?k([e.left,e.right],(e=>T5(e,t))):64===e.operatorToken.kind&&Xw(e.left)&&!t.getSymbolAtLocation(e.left))}W7({errorCodes:x5,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>S5(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[q7(b5,t,ha.Add_const_to_unresolved_variable,b5,ha.Add_const_to_all_unresolved_variables)]},fixIds:[b5],getAllCodeActions:e=>{const t=new Set;return Y7(e,x5,((n,r)=>S5(n,r.file,r.start,e.program,t)))}});var C5="addMissingDeclareProperty",D5=[ha.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function w5(e,t,n,r){const i=XX(t,n);if(!Xw(i))return;const o=i.parent;172!==o.kind||r&&!W(r,o)||e.insertModifierBefore(t,138,o)}W7({errorCodes:D5,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>w5(t,e.sourceFile,e.span.start)));if(t.length>0)return[q7(C5,t,ha.Prefix_with_declare,C5,ha.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[C5],getAllCodeActions:e=>{const t=new Set;return Y7(e,D5,((e,n)=>w5(e,n.file,n.start,t)))}});var E5="addMissingInvocationForDecorator",F5=[ha._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function N5(e,t,n){const r=yc(XX(t,n),mE);gn.assert(!!r,"Expected position to be owned by a decorator.");const i=oD.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}W7({errorCodes:F5,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>N5(t,e.sourceFile,e.span.start)));return[q7(E5,t,ha.Call_decorator_expression,E5,ha.Add_to_all_uncalled_decorators)]},fixIds:[E5],getAllCodeActions:e=>Y7(e,F5,((e,t)=>N5(e,t.file,t.start)))});var P5="addMissingResolutionModeImportAttribute",A5=[ha.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,ha.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function I5(e,t,n,r,i,o){var a,s,c;const l=yc(XX(t,n),an(_N,GE));gn.assert(!!l,"Expected position to be owned by an ImportDeclaration or ImportType.");const u=0===iY(t,o),_=Cg(l),d=!_||(null==(a=Oj(_.text,t.fileName,r.getCompilerOptions(),i,r.getModuleResolutionCache(),void 0,99).resolvedModule)?void 0:a.resolvedFileName)===(null==(c=null==(s=r.getResolvedModuleFromModuleSpecifier(_,t))?void 0:s.resolvedModule)?void 0:c.resolvedFileName),p=l.attributes?oD.updateImportAttributes(l.attributes,oD.createNodeArray([...l.attributes.elements,oD.createImportAttribute(oD.createStringLiteral("resolution-mode",u),oD.createStringLiteral(d?"import":"require",u))],l.attributes.elements.hasTrailingComma),l.attributes.multiLine):oD.createImportAttributes(oD.createNodeArray([oD.createImportAttribute(oD.createStringLiteral("resolution-mode",u),oD.createStringLiteral(d?"import":"require",u))]));272===l.kind?e.replaceNode(t,l,oD.updateImportDeclaration(l,l.modifiers,l.importClause,l.moduleSpecifier,p)):e.replaceNode(t,l,oD.updateImportTypeNode(l,l.argument,p,l.qualifier,l.typeArguments))}W7({errorCodes:A5,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>I5(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences)));return[q7(P5,t,ha.Add_resolution_mode_import_attribute,P5,ha.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[P5],getAllCodeActions:e=>Y7(e,A5,((t,n)=>I5(t,n.file,n.start,e.program,e.host,e.preferences)))});var O5="addNameToNamelessParameter",L5=[ha.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function R5(e,t,n){const r=XX(t,n),i=r.parent;if(!fE(i))return gn.fail("Tried to add a parameter name to a non-parameter: "+gn.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);gn.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),gn.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=oD.createTypeReferenceNode(i.name,void 0),c=j5(t,i);for(;c;)s=oD.createArrayTypeNode(s),a=c.getEnd(),c=j5(t,c);const l=oD.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!IE(s)?oD.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,Jb(i.getStart(t),a),l)}function j5(e,t){const n=eQ(t.name,t.parent,e);if(n&&23===n.kind&&YE(n.parent)&&fE(n.parent.parent))return n.parent.parent}W7({errorCodes:L5,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>R5(t,e.sourceFile,e.span.start)));return[q7(O5,t,ha.Add_parameter_name,O5,ha.Add_names_to_all_parameters_without_names)]},fixIds:[O5],getAllCodeActions:e=>Y7(e,L5,((e,t)=>R5(e,t.file,t.start)))});var M5="addOptionalPropertyUndefined";function B5(e,t){var n;if(e){if(hF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(ZF(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(iF(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!mu(n.valueDeclaration.kind))return;if(!Qu(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(Xw(i))return{source:e,target:i}}else if(HN(e.parent)&&Xw(e.parent.name)||GN(e.parent)){const r=B5(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:HN(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}W7({errorCodes:[ha.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,ha.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=function(e,t,n){var r,i;const o=B5(XZ(e,t),n);if(!o)return u;const{source:a,target:s}=o,c=function(e,t,n){return nF(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(a,s,n)?n.getTypeAtLocation(s.expression):n.getTypeAtLocation(s);return(null==(i=null==(r=c.symbol)?void 0:r.declarations)?void 0:i.some((e=>Cd(e).fileName.match(/\.d\.ts$/))))?u:n.getExactOptionalProperties(c)}(e.sourceFile,e.span,t);if(!n.length)return;const r=Z_e.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(gE(t)||hE(t))&&t.type){const n=oD.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],oD.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[$7(M5,r,ha.Add_undefined_to_optional_property_type)]},fixIds:[M5]});var J5="annotateWithTypeFromJSDoc",z5=[ha.JSDoc_types_may_be_moved_to_TypeScript_types.code];function $5(e,t){const n=XX(e,t);return at(fE(n.parent)?n.parent.parent:n.parent,q5)}function q5(e){return function(e){return du(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&U5(e)}function U5(e){return du(e)?e.parameters.some(U5)||!e.type&&!!ul(e):!e.type&&!!ll(e)}function V5(e,t,n){if(du(n)&&(ul(n)||n.parameters.some((e=>!!ll(e))))){if(!n.typeParameters){const r=Tv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=uF(n)&&!RX(n,21,t);r&&e.insertNodeBefore(t,xe(n.parameters),oD.createToken(21));for(const r of n.parameters)if(!r.type){const n=ll(r);n&&e.tryInsertTypeAnnotation(t,r,sJ(n,W5,wu))}if(r&&e.insertNodeAfter(t,Te(n.parameters),oD.createToken(22)),!n.type){const r=ul(n);r&&e.tryInsertTypeAnnotation(t,n,sJ(r,W5,wu))}}else{const r=gn.checkDefined(ll(n),"A JSDocType for this declaration should exist");gn.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,sJ(r,W5,wu))}}function W5(e){switch(e.kind){case 312:case 313:return oD.createTypeReferenceNode("any",u);case 316:return function(e){return oD.createUnionTypeNode([sJ(e.type,W5,wu),oD.createTypeReferenceNode("undefined",u)])}(e);case 315:return W5(e.type);case 314:return function(e){return oD.createUnionTypeNode([sJ(e.type,W5,wu),oD.createTypeReferenceNode("null",u)])}(e);case 318:return function(e){return oD.createArrayTypeNode(sJ(e.type,W5,wu))}(e);case 317:return function(e){return oD.createFunctionTypeNode(u,e.parameters.map(H5),e.type??oD.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(Xw(e.typeName)){if(zm(e))return function(e){const t=oD.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,oD.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=oD.createTypeLiteralNode([oD.createIndexSignature(void 0,[t],e.typeArguments[1])]);return _D(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=oD.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?cJ(e.typeArguments,W5,wu):oD.createNodeArray([oD.createTypeReferenceNode("any",u)])}return oD.createTypeReferenceNode(t,n)}(e);case 322:return function(e){const t=oD.createTypeLiteralNode(O(e.jsDocPropertyTags,(e=>oD.createPropertySignature(void 0,Xw(e.name)?e.name:e.name.right,ZT(e)?oD.createToken(58):void 0,e.typeExpression&&sJ(e.typeExpression.type,W5,wu)||oD.createKeywordTypeNode(133)))));return _D(t,1),t}(e);default:const t=hJ(e,W5,void 0);return _D(t,1),t}}function H5(e){const t=e.parent.parameters.indexOf(e),n=318===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?oD.createToken(26):e.dotDotDotToken;return oD.createParameterDeclaration(e.modifiers,i,r,e.questionToken,sJ(e.type,W5,wu),e.initializer)}W7({errorCodes:z5,getCodeActions(e){const t=$5(e.sourceFile,e.span.start);if(!t)return;const n=Z_e.ChangeTracker.with(e,(n=>V5(n,e.sourceFile,t)));return[q7(J5,n,ha.Annotate_with_type_from_JSDoc,J5,ha.Annotate_everything_with_types_from_JSDoc)]},fixIds:[J5],getAllCodeActions:e=>Y7(e,z5,((e,t)=>{const n=$5(t.file,t.start);n&&V5(e,t.file,n)}))});var G5="convertFunctionToEs6Class",K5=[ha.This_constructor_function_may_be_converted_to_a_class_declaration.code];function X5(e,t,n,r,i,o){const a=r.getSymbolAtLocation(XX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(tN(s)||lF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(oD.createConstructorDeclaration(void 0,e.parameters,e.body));const n=Q5(e,95),r=oD.createClassDeclaration(n,e.name,void 0,void 0,t);return r}(s));else if(ZF(s)){const n=function(e){const t=e.initializer;if(!t||!lF(t)||!Xw(e.name))return;const n=c(e.symbol);t.body&&n.unshift(oD.createConstructorDeclaration(void 0,t.parameters,t.body));const r=Q5(e.parent.parent,95),i=oD.createClassDeclaration(r,e.name,void 0,void 0,n);return i}(s);if(!n)return;const r=s.parent.parent;eN(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&nF(t)&&hF(t.parent)&&64===t.parent.operatorToken.kind&&tF(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[oD.createToken(126)],r)})),n.members&&n.members.forEach(((i,o)=>{var s,c,l,u;if("constructor"===o&&i.valueDeclaration){const r=null==(u=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:u.parent;r&&hF(r)&&tF(r.right)&&X(r.right.properties,Y5)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(_=l,!(Px(u=s)?nF(u)&&Y5(u)||uu(_):k(u.properties,(e=>!!(vE(e)||bl(e)||HN(e)&&lF(e.initializer)&&e.name||Y5(e))))))return;var u,_;if(X(a,(e=>{const t=Ac(e);return!(!t||!Xw(t)||kc(t)!==Cc(n))})))return;const d=c.parent&&244===c.parent.kind?c.parent:c;if(e.delete(t,d),l)if(Px(s)&&(lF(l)||uF(l))){const e=iY(t,i),n=function(e,t,n){if(nF(e))return e.name;const r=e.argumentExpression;return Pw(r)?r:q_(r)?Ss(r.text,DS(t))?oD.createIdentifier(r.text):Rw(r)?oD.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);n&&p(a,l,n)}else{if(!tF(l)){if(Rm(t))return;if(!nF(s))return;const e=oD.createPropertyDeclaration(r,s.name,void 0,void 0,l);return pZ(c.parent,e,t),void a.push(e)}f(l.properties,(e=>{(vE(e)||bl(e))&&a.push(e),HN(e)&&lF(e.initializer)&&p(a,e.initializer,e.name),Y5(e)}))}else a.push(oD.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function p(e,n,i){return lF(n)?function(e,n,i){const o=Y(r,Q5(n,134)),a=oD.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return pZ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=241===o.kind?o:oD.createBlock([oD.createReturnStatement(o)]);const s=Y(r,Q5(n,134)),l=oD.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);pZ(c,l,t),e.push(l)}(e,n,i)}}}}function Q5(e,t){return mI(e)?P(e.modifiers,(e=>e.kind===t)):void 0}function Y5(e){return!!e.name&&!(!Xw(e.name)||"constructor"!==e.name.text)}W7({errorCodes:K5,getCodeActions(e){const t=Z_e.ChangeTracker.with(e,(t=>X5(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[q7(G5,t,ha.Convert_function_to_an_ES2015_class,G5,ha.Convert_all_constructor_functions_to_classes)]},fixIds:[G5],getAllCodeActions:e=>Y7(e,K5,((t,n)=>X5(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))});var Z5="convertToAsyncFunction",e9=[ha.This_may_be_converted_to_an_async_function.code],t9=!0;function n9(e,t,n,r){const i=XX(t,n);let o;if(o=Xw(i)&&ZF(i.parent)&&i.parent.initializer&&du(i.parent.initializer)?i.parent.initializer:at(tm(XX(t,n)),W1),!o)return;const a=new Map,s=jm(o),c=function(e,t){if(!e.body)return new Set;const n=new Set;return qI(e.body,(function e(r){r9(r,t,"then")?(n.add(QB(r)),f(r.arguments,e)):r9(r,t,"catch")||r9(r,t,"finally")?(n.add(QB(r)),qI(r,e)):a9(r,t)?n.add(QB(r)):qI(r,e)})),n}(o,r),l=function(e,t,n){const r=new Map,i=Qe();return qI(e,(function e(o){if(!Xw(o))return void qI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=v9(t.getTypeAtLocation(o),t),s=YB(a).toString();if(!e||fE(o.parent)||du(o.parent)||n.has(s)){if(o.parent&&(fE(o.parent)||ZF(o.parent)||ZE(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=s9(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=eZ(o);n.set(s,k9(t)),i.add(e,a)}}}else{const t=ve(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&fE(t.valueDeclaration)&&at(t.valueDeclaration.name,Xw)||oD.createUniqueName("result",16),o=s9(r,i);n.set(s,o),i.add(r.text,a)}}})),tZ(e,!0,(e=>{if(ZE(e)&&Xw(e.name)&&QE(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(YB(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return oD.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(Xw(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(YB(n)));if(i)return oD.createIdentifier(i.text)}}))}(o,r,a);if(!B1(l,r))return;const _=l.body&&OF(l.body)?function(e,t){const n=[];return Of(e,(e=>{J1(e,t)&&n.push(e)})),n}(l.body,r):u,d={checker:r,synthNamesMap:a,setOfExpressionsToReturn:c,isInJSFile:s};if(!_.length)return;const p=is(t.text,Ub(o).pos);e.insertModifierAt(t,p,134,{suffix:" "});for(const n of _)if(qI(n,(function r(i){if(iF(i)){const r=u9(i,i,d,!1);if(c9())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!uu(i)&&(qI(i,r),c9()))return!0})),c9())return}function r9(e,t,n){if(!iF(e))return!1;const r=sX(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function i9(e,t){return!!(4&Tx(e))&&e.target===t}function o9(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(i9(r,n.getPromiseType())||i9(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return ye(e.typeArguments,0);if(t===ye(e.arguments,0))return ye(e.typeArguments,0);if(t===ye(e.arguments,1))return ye(e.typeArguments,1)}}function a9(e,t){return!!Qu(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function s9(e,t){const n=(t.get(e.text)||u).length;return k9(0===n?e:oD.createIdentifier(e.text+"_"+n))}function c9(){return!t9}function l9(){return t9=!1,u}function u9(e,t,n,r,i){if(r9(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||_9(r,t))return f9(e,n,r,i,o);if(n&&!_9(r,n))return l9();const a=x9(t,r),s=u9(e.expression.expression,e.expression.expression,r,!0,a);if(c9())return l9();const c=h9(t,i,o,a,e,r);return c9()?l9():Y(s,c)}(t,ye(t.arguments,0),ye(t.arguments,1),n,r,i);if(r9(t,n.checker,"catch"))return f9(t,ye(t.arguments,0),n,r,i);if(r9(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||_9(n,t))return u9(e,e.expression.expression,n,r,i);const o=d9(e,n,i),a=u9(e,e.expression.expression,n,!0,o);if(c9())return l9();const s=h9(t,r,void 0,void 0,e,n);if(c9())return l9();const c=oD.createBlock(a),l=oD.createBlock(s),u=oD.createTryStatement(c,void 0,l);return p9(e,n,u,o,i)}(t,ye(t.arguments,0),n,r,i);if(nF(t))return u9(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(gn.assertNode(hc(t).parent,nF),function(e,t,n,r,i){if(F9(e,n)){let e=eZ(t);return r&&(e=oD.createAwaitExpression(e)),[oD.createReturnStatement(e)]}return m9(i,oD.createAwaitExpression(t),void 0)}(e,t,n,r,i)):l9()}function _9({checker:e},t){if(106===t.kind)return!0;if(Xw(t)&&!Yl(t)&&"undefined"===kc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function d9(e,t,n){let r;return n&&!F9(e,t)&&(E9(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,k9(oD.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=k9(oD.createUniqueName("result",16),n.types),w9(r)),r}function p9(e,t,n,r,i){const o=[];let a;if(r&&!F9(e,t)){a=eZ(w9(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[oD.createVariableDeclaration(a,void 0,i)],c=oD.createVariableStatement(void 0,oD.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(eZ(D9(i)),void 0,void 0,a)],2))),o}function f9(e,t,n,r,i){if(!t||_9(n,t))return u9(e,e.expression.expression,n,r,i);const o=x9(t,n),a=d9(e,n,i),s=u9(e,e.expression.expression,n,!0,a);if(c9())return l9();const c=h9(t,r,a,o,e,n);if(c9())return l9();const l=oD.createBlock(s),u=oD.createCatchClause(o&&eZ(C9(o)),oD.createBlock(c));return p9(e,n,oD.createTryStatement(l,u,void 0),a,i)}function m9(e,t,n){return!e||S9(e)?[oD.createExpressionStatement(t)]:E9(e)&&e.hasBeenDeclared?[oD.createExpressionStatement(oD.createAssignment(eZ(T9(e)),t))]:[oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(eZ(C9(e)),void 0,n,t)],2))]}function g9(e,t){if(t&&e){const n=oD.createUniqueName("result",16);return[...m9(k9(n),e,t),oD.createReturnStatement(n)]}return[oD.createReturnStatement(e)]}function h9(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 211:case 80:if(!r)break;const s=oD.createCallExpression(eZ(e),void 0,E9(r)?[T9(r)]:[]);if(F9(i,o))return g9(s,o9(i,e,o.checker));const c=o.checker.getTypeAtLocation(e),l=o.checker.getSignaturesOfType(c,0);if(!l.length)return l9();const _=l[0].getReturnType(),d=m9(n,oD.createAwaitExpression(s),o9(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(_)||_),d;case 218:case 219:{const r=e.body,s=null==(a=v9(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(OF(r)){let a=[],c=!1;for(const l of r.statements)if(WF(l))if(c=!0,J1(l,o.checker))a=a.concat(b9(o,l,t,n));else{const t=s&&l.expression?y9(o.checker,s,l.expression):l.expression;a.push(...g9(t,o9(i,e,o.checker)))}else{if(t&&Of(l,ut))return l9();a.push(l)}return F9(i,o)?a.map((e=>eZ(e))):function(e,t,n,r){const i=[];for(const r of e)if(WF(r)){if(r.expression){const e=a9(r.expression,n.checker)?oD.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(oD.createExpressionStatement(e)):E9(t)&&t.hasBeenDeclared?i.push(oD.createExpressionStatement(oD.createAssignment(T9(t),e))):i.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(C9(t),void 0,void 0,e)],2)))}}else i.push(eZ(r));return r||void 0===t||i.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(C9(t),void 0,void 0,oD.createIdentifier("undefined"))],2))),i}(a,n,o,c)}{const a=z1(r,o.checker)?b9(o,oD.createReturnStatement(r),t,n):u;if(a.length>0)return a;if(s){const t=y9(o.checker,s,r);if(F9(i,o))return g9(t,o9(i,e,o.checker));{const e=m9(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(s)||s),e}}return l9()}}default:return l9()}return u}function y9(e,t,n){const r=eZ(n);return e.getPromisedTypeOfPromise(t)?oD.createAwaitExpression(r):r}function v9(e,t){return ke(t.getSignaturesOfType(e,0))}function b9(e,t,n,r){let i=[];return qI(t,(function t(o){if(iF(o)){const t=u9(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else uu(o)||qI(o,t)})),i}function x9(e,t){const n=[];let r;if(du(e)?e.parameters.length>0&&(r=function e(t){if(Xw(t))return i(t);const n=M(t.elements,(t=>kF(t)?[]:[e(t.name)]));return function(e,t=u,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,n)}(e.parameters[0].name)):Xw(e)?r=i(e):nF(e)&&Xw(e.name)&&(r=i(e.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){const r=function(e){return e.original?e.original:e}(e),i=function(e){var n;return(null==(n=at(e,p_))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}(r);return i&&t.synthNamesMap.get(YB(i).toString())||k9(e,n)}}function S9(e){return!e||(E9(e)?!e.identifier.text:k(e.elements,S9))}function k9(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function T9(e){return e.hasBeenReferenced=!0,e.identifier}function C9(e){return E9(e)?w9(e):D9(e)}function D9(e){for(const t of e.elements)C9(t);return e.bindingPattern}function w9(e){return e.hasBeenDeclared=!0,e.identifier}function E9(e){return 0===e.kind}function F9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(QB(e.original))}function N9(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=Dg(a);switch(c.kind){case 271:r.replaceNode(e,c,eY(c.name,void 0,a,i));break;case 213:$m(c,!1)&&r.replaceNode(e,c,oD.createPropertyAccessExpression(eZ(c),"default"))}}}function P9(e,t){e.forEachChild((function n(r){if(nF(r)&&XM(e,r.expression)&&Xw(r.name)){const{parent:e}=r;t(r,hF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function A9(e,t,n,r,i,o,a,s,c){switch(t.kind){case 243:return I9(e,t,r,n,i,o,c),!1;case 244:{const{expression:i}=t;switch(i.kind){case 213:return $m(i,!0)&&r.replaceNode(e,t,eY(void 0,void 0,i.arguments[0],c)),!1;case 226:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!nF(a))return!1;if(XM(e,a)){if(!XM(e,s)){const i=tF(s)?function(e,t){const n=$(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return Xw(e.name)?function(e,t,n){const r=[oD.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return i()}case 219:return J9(e,r,t,n);case 231:return function(e,t,n,r){return oD.createClassDeclaration(Y(t,rZ(n.modifiers)),e,rZ(n.typeParameters),rZ(n.heritageClauses),R9(n.members,r))}(e,r,t,n);default:return i()}function i(){return q9(r,oD.createIdentifier(e),R9(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return Xw(e.name)?J9(e.name.text,[oD.createToken(95)],e,t):void 0;default:gn.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(s,o):$m(s,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:d;return i.has("export=")?[[L9(n)],!0]:i.has("default")?i.size>1?[[O9(n),L9(n)],!0]:[[L9(n)],!0]:[[O9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,Jb(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else XM(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[q9(void 0,o,t.right),U9([oD.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(lF(t)||uF(t)||SF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,RX(e,25,r),[oD.createToken(95),oD.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},oD.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=RX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,s)}}}default:return!1}}function I9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=O(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(XM(e,l))return c=!0,V9([]);if($m(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 206:{const n=$(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!Xw(e.propertyName)||!Xw(e.name)?void 0:$9(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return V9([eY(void 0,n,t,o)])}case 207:{const n=j9(n0(t.text,i),r);return V9([eY(oD.createIdentifier(n),void 0,t,o),q9(void 0,eZ(e),oD.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(nF(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,oD.createIdentifier(e))}else{gn.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=j9(e,r),a.set(e,n)),(s??(s=new Map)).set(i,oD.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Be(L(a.entries(),(([e,t])=>oD.createImportSpecifier(!1,e===t?void 0:oD.createIdentifier(e),oD.createIdentifier(t)))));return l||(c=!0),V9([eY(c?eZ(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return gn.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(nF(l)&&$m(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 206:case 207:{const o=j9(t,r);return V9([z9(o,t,n,i),q9(void 0,e,oD.createIdentifier(o))])}case 80:return V9([z9(e.text,t,n,i)]);default:return gn.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return V9([oD.createVariableStatement(void 0,oD.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,M(l,(e=>e.newImports))),f(l,(e=>{e.useSitesToUnqualify&&_d(e.useSitesToUnqualify,r??(r=new Map))})),r}}function O9(e){return U9(void 0,e)}function L9(e){return U9([oD.createExportSpecifier(!1,void 0,"default")],e)}function R9(e,t){return t&&X(Be(t.keys()),(t=>ix(e,t)))?nt(e)?iZ(e,!0,n):tZ(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function j9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function M9(e){const t=Qe();return B9(e,(e=>t.add(e.text,e))),t}function B9(e,t){Xw(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>B9(e,t)))}function J9(e,t,n,r){return oD.createFunctionDeclaration(Y(t,rZ(n.modifiers)),eZ(n.asteriskToken),e,rZ(n.typeParameters),rZ(n.parameters),eZ(n.type),oD.converters.convertToFunctionBlock(R9(n.body,r)))}function z9(e,t,n,r){return"default"===t?eY(oD.createIdentifier(e),void 0,n,r):eY(void 0,[$9(t,e)],n,r)}function $9(e,t){return oD.createImportSpecifier(!1,void 0!==e&&e!==t?oD.createIdentifier(e):void 0,oD.createIdentifier(t))}function q9(e,t,n){return oD.createVariableStatement(e,oD.createVariableDeclarationList([oD.createVariableDeclaration(t,void 0,void 0,n)],2))}function U9(e,t){return oD.createExportDeclaration(void 0,!1,e&&oD.createNamedExports(e),void 0===t?void 0:oD.createStringLiteral(t))}function V9(e,t){return{newImports:e,useSitesToUnqualify:t}}W7({errorCodes:e9,getCodeActions(e){t9=!0;const t=Z_e.ChangeTracker.with(e,(t=>n9(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return t9?[q7(Z5,t,ha.Convert_to_async_function,Z5,ha.Convert_all_to_async_functions)]:[]},fixIds:[Z5],getAllCodeActions:e=>Y7(e,e9,((t,n)=>n9(t,n.file,n.start,e.program.getTypeChecker())))}),W7({errorCodes:[ha.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e,i=Z_e.ChangeTracker.with(e,(e=>{const i=function(e,t,n,r,i){const o={original:M9(e),additional:new Set},a=function(e,t,n){const r=new Map;return P9(e,(e=>{const{text:i}=e.name;r.has(i)||!Mh(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,j9(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){P9(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,oD.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of P(e.statements,LF)){const c=I9(e,a,n,t,o,r,i);c&&_d(c,s??(s=new Map))}for(const l of P(e.statements,(e=>!LF(e)))){const u=A9(e,l,t,n,o,r,a,s,i);c=c||u}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}(t,n.getTypeChecker(),e,DS(n.getCompilerOptions()),iY(t,r));if(i)for(const i of n.getSourceFiles())N9(i,t,n,e,iY(i,r))}));return[$7("convertToEsModule",i,ha.Convert_to_ES_module)]}});var W9="correctQualifiedNameToIndexedAccessType",H9=[ha.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function G9(e,t){const n=yc(XX(e,t),_E);return gn.assert(!!n,"Expected position to be owned by a qualified name."),Xw(n.left)?n:void 0}function K9(e,t,n){const r=n.right.text,i=oD.createIndexedAccessTypeNode(oD.createTypeReferenceNode(n.left,void 0),oD.createLiteralTypeNode(oD.createStringLiteral(r)));e.replaceNode(t,n,i)}W7({errorCodes:H9,getCodeActions(e){const t=G9(e.sourceFile,e.span.start);if(!t)return;const n=Z_e.ChangeTracker.with(e,(n=>K9(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[q7(W9,n,[ha.Rewrite_as_the_indexed_access_type_0,r],W9,ha.Rewrite_all_as_indexed_access_types)]},fixIds:[W9],getAllCodeActions:e=>Y7(e,H9,((e,t)=>{const n=G9(t.file,t.start);n&&K9(e,t.file,n)}))});var X9=[ha.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Q9="convertToTypeOnlyExport";function Y9(e,t){return at(XX(t,e.start).parent,CN)}function Z9(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=GZ(AQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return P(n.elements,(t=>{var n;return t===e||(null==(n=HZ(t,r))?void 0:n.code)===X9[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=oD.updateExportDeclaration(i,i.modifiers,!1,oD.updateNamedExports(r,P(r.elements,(e=>!E(o,e)))),i.moduleSpecifier,void 0),a=oD.createExportDeclaration(void 0,!0,oD.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:Z_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Z_e.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}W7({errorCodes:X9,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>Z9(t,Y9(e.span,e.sourceFile),e)));if(t.length)return[q7(Q9,t,ha.Convert_to_type_only_export,Q9,ha.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Q9],getAllCodeActions:function(e){const t=new Set;return Y7(e,X9,((n,r)=>{const i=Y9(r,e.sourceFile);i&&Ex(t,QB(i.parent.parent))&&Z9(n,i,e)}))}});var eee=[ha._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,ha._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],tee="convertToTypeOnlyImport";function nee(e,t){const{parent:n}=XX(e,t);return xN(n)||_N(n)&&n.importClause?n:void 0}function ree(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r)if(Nce.Core.eachSymbolReferenceInFile(e.name,i,t,(e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!wT(e)})))return!1;return!0}function iee(e,t,n){var r;if(xN(n))e.replaceNode(t,n,oD.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[oD.createImportDeclaration(rZ(n.modifiers,!0),oD.createImportClause(!0,eZ(i.name,!0),void 0),eZ(n.moduleSpecifier,!0),eZ(n.attributes,!0)),oD.createImportDeclaration(rZ(n.modifiers,!0),oD.createImportClause(!0,void 0,eZ(i.namedBindings,!0)),eZ(n.moduleSpecifier,!0),eZ(n.attributes,!0))]);else{const o=275===(null==(r=i.namedBindings)?void 0:r.kind)?oD.updateNamedImports(i.namedBindings,R(i.namedBindings.elements,(e=>oD.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=oD.updateImportDeclaration(n,n.modifiers,oD.updateImportClause(i,!0,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}W7({errorCodes:eee,getCodeActions:function(e){var t;const n=nee(e.sourceFile,e.span.start);if(n){const r=Z_e.ChangeTracker.with(e,(t=>iee(t,e.sourceFile,n))),i=276===n.kind&&_N(n.parent.parent.parent)&&ree(n,e.sourceFile,e.program)?Z_e.ChangeTracker.with(e,(t=>iee(t,e.sourceFile,n.parent.parent.parent))):void 0,o=q7(tee,r,276===n.kind?[ha.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:ha.Use_import_type,tee,ha.Fix_all_with_type_only_imports);return X(i)?[$7(tee,i,ha.Use_import_type),o]:[o]}},fixIds:[tee],getAllCodeActions:function(e){const t=new Set;return Y7(e,eee,((n,r)=>{const i=nee(r.file,r.start);272!==(null==i?void 0:i.kind)||t.has(i)?276===(null==i?void 0:i.kind)&&_N(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&ree(i,r.file,e.program)?(iee(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):276===(null==i?void 0:i.kind)&&iee(n,r.file,i):(iee(n,r.file,i),t.add(i))}))}});var oee="convertTypedefToType",aee=[ha.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function see(e,t,n,r,i=!1){if(!OP(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();return r?322===n.kind?function(e,t){const n=lee(t);if(X(n))return oD.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n):309===n.kind?function(e,t){const n=eZ(t.type);if(n)return oD.createTypeAliasDeclaration(void 0,oD.createIdentifier(e),void 0,n)}(r,n):void 0:void 0}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd())),i=r>0?t.getChildAt(r-1):void 0,o=r0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function lee(e){const t=e.jsDocPropertyTags;if(X(t))return q(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&fP(r)){const e=lee(r);o=oD.createTypeLiteralNode(e)}else r&&(o=eZ(r));if(o&&n){const e=i?oD.createToken(58):void 0;return oD.createPropertySignature(void 0,n,e,o)}}))}function uee(e){return L_(e)?M(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>OP(e)))})):[]}W7({fixIds:[oee],errorCodes:aee,getCodeActions(e){const t=zY(e.host,e.formatContext.options),n=XX(e.sourceFile,e.span.start);if(!n)return;const r=Z_e.ChangeTracker.with(e,(r=>see(r,n,e.sourceFile,t)));return r.length>0?[q7(oee,r,ha.Convert_typedef_to_TypeScript_type,oee,ha.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>Y7(e,aee,((t,n)=>{const r=zY(e.host,e.formatContext.options),i=XX(n.file,n.start);i&&see(t,i,n.file,r,!0)}))});var _ee="convertLiteralTypeToMappedType",dee=[ha._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function pee(e,t){const n=XX(e,t);if(Xw(n)){const t=st(n.parent.parent,gE),r=n.getText(e);return{container:st(t.parent,AE),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function fee(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,oD.createMappedTypeNode(void 0,oD.createTypeParameterDeclaration(void 0,o,oD.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}W7({errorCodes:dee,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=pee(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=Z_e.ChangeTracker.with(e,(e=>fee(e,t,r)));return[q7(_ee,a,[ha.Convert_0_to_1_in_0,o,i],_ee,ha.Convert_all_type_literals_to_mapped_type)]},fixIds:[_ee],getAllCodeActions:e=>Y7(e,dee,((e,t)=>{const n=pee(t.file,t.start);n&&fee(e,t.file,n)}))});var mee=[ha.Class_0_incorrectly_implements_interface_1.code,ha.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],gee="fixClassIncorrectlyImplementsInterface";function hee(e,t){return gn.checkDefined(rm(XX(e,t)),"There should be a containing class")}function yee(e){return!(e.valueDeclaration&&2&Hv(e.valueDeclaration))}function vee(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=Ch(e);if(!n)return td();const r=t.getTypeAtLocation(n),i=t.getPropertiesOfType(r);return td(i.filter(yee))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(on(yee,(e=>!s.has(e.escapedName)))),u=a.getTypeAtLocation(r),_=T(r.members,(e=>xE(e)));u.getNumberIndexType()||p(c,1),u.getStringIndexType()||p(c,0);const d=kee(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,void 0,Wie(e)))}function f(e,t,n){_?i.insertNodeAfter(e,_,n):i.insertMemberAtStart(e,t,n)}Vie(r,l,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}W7({errorCodes:mee,getCodeActions(e){const{sourceFile:t,span:n}=e,r=hee(t,n.start);return q(wh(r),(n=>{const i=Z_e.ChangeTracker.with(e,(i=>vee(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:q7(gee,i,[ha.Implement_interface_0,n.getText(t)],gee,ha.Implement_all_unimplemented_interfaces)}))},fixIds:[gee],getAllCodeActions(e){const t=new Set;return Y7(e,mee,((n,r)=>{const i=hee(r.file,r.start);if(Ex(t,QB(i)))for(const t of wh(i))vee(e,t,r.file,i,n,e.preferences)}))}});var bee="import",xee="fixMissingImport",See=[ha.Cannot_find_name_0.code,ha.Cannot_find_name_0_Did_you_mean_1.code,ha.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ha.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,ha.Cannot_find_namespace_0.code,ha._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,ha._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,ha.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,ha._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,ha.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,ha.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,ha.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,ha.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,ha.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,ha.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,ha.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,ha.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,ha.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,ha.Cannot_find_namespace_0_Did_you_mean_1.code,ha.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function kee(e,t,n,r,i){return Tee(e,t,!1,n,r,i)}function Tee(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,u=new Set,_=new Set,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=jee(t,e.code,e.start,n);r&&r.length&&p(xe(r))},addImportFromExportedSymbol:function(n,s,c){var l,u;const _=gn.checkDefined(n.parent,"Expected exported symbol to have module symbol as parent"),d=ZZ(n,DS(a)),f=t.getTypeChecker(),m=f.getMergedSymbol(px(n,f)),g=Nee(e,m,d,_,!1,t,i,r,o);if(!g)return void gn.assert(null==(l=r.autoImportFileExcludePatterns)?void 0:l.length);const h=Lee(e,t);let y=Eee(e,g,t,void 0,!!s,h,i,r);if(y){const e=(null==(u=at(null==c?void 0:c.name,Xw))?void 0:u.text)??d;let t,r;c&&Wl(c)&&(3===y.kind||2===y.kind)&&1===y.addAsTypeOnly&&(t=2),n.name!==e&&(r=n.name),y={...y,...void 0===t?{}:{addAsTypeOnly:t},...void 0===r?{}:{propertyName:r}},p({fix:y,symbolName:e??d,errorIdentifierText:void 0})}},addImportForModuleSymbol:function(n,o,s){var c,l,u;const _=t.getTypeChecker(),d=_.getAliasedSymbol(n);gn.assert(1536&d.flags,"Expected symbol to be a module");const f=QQ(t,i),m=eB.getModuleSpecifiersWithCacheInfo(d,_,a,e,f,r,void 0,!0),g=Lee(e,t);let h=Iee(o,0,void 0,n.flags,t.getTypeChecker(),a);h=1===h&&Wl(s)?2:1;const y=_N(s)?Pg(s)?1:2:xN(s)?0:dN(s)&&s.name?1:2,v=[{symbol:n,moduleSymbol:d,moduleFileName:null==(u=null==(l=null==(c=d.declarations)?void 0:c[0])?void 0:l.getSourceFile())?void 0:u.fileName,exportKind:4,targetFlags:n.flags,isFromPackageJson:!1}],b=Eee(e,v,t,void 0,!!o,g,i,r);let x;x=b&&2!==y?{...b,addAsTypeOnly:h,importKind:y}:{kind:3,moduleSpecifierKind:void 0!==b?b.moduleSpecifierKind:m.kind,moduleSpecifier:void 0!==b?b.moduleSpecifier:xe(m.moduleSpecifiers),importKind:y,addAsTypeOnly:h,useRequire:g},p({fix:x,symbolName:n.name,errorIdentifierText:void 0})},writeFixes:function(t,n){var i,o;let p,f,m;p=void 0!==e.imports&&0===e.imports.length&&void 0!==n?n:iY(e,r);for(const n of s)Kee(t,e,n);for(const n of c)Xee(t,e,n,p);if(u.size){gn.assert(Lm(e),"Cannot remove imports from a future source file");const n=new Set(q([...u],(e=>yc(e,_N)))),r=new Set(q([...u],(e=>yc(e,qm)))),a=[...n].filter((e=>{var t,n,r;return!l.has(e.importClause)&&(!(null==(t=e.importClause)?void 0:t.name)||u.has(e.importClause))&&(!at(null==(n=e.importClause)?void 0:n.namedBindings,yN)||u.has(e.importClause.namedBindings))&&(!at(null==(r=e.importClause)?void 0:r.namedBindings,bN)||k(e.importClause.namedBindings.elements,(e=>u.has(e))))})),s=[...r].filter((e=>(206!==e.name.kind||!l.has(e.name))&&(206!==e.name.kind||k(e.name.elements,(e=>u.has(e)))))),c=[...n].filter((e=>{var t,n;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===a.indexOf(e)&&!(null==(n=l.get(e.importClause))?void 0:n.namedImports)&&(274===e.importClause.namedBindings.kind||k(e.importClause.namedBindings.elements,(e=>u.has(e))))}));for(const n of[...a,...s])t.delete(e,n);for(const n of c)t.replaceNode(e,n.importClause,oD.updateImportClause(n.importClause,n.importClause.isTypeOnly,n.importClause.name,void 0));for(const n of u){const r=yc(n,_N);r&&-1===a.indexOf(r)&&-1===c.indexOf(r)?273===n.kind?t.delete(e,n.name):(gn.assert(276===n.kind,"NamespaceImport should have been handled earlier"),(null==(i=l.get(r.importClause))?void 0:i.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n)):208===n.kind?(null==(o=l.get(n.parent))?void 0:o.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n):271===n.kind&&t.delete(e,n)}}l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{Gee(t,e,n,i,Be(o.entries(),(([e,{addAsTypeOnly:t,propertyName:n}])=>({addAsTypeOnly:t,propertyName:n,name:e}))),f,r)})),d.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:i},o)=>{const s=(e?tte:ete)(o.slice(2),p,t,n&&Be(n.entries(),(([e,[t,n]])=>({addAsTypeOnly:t,propertyName:n,name:e}))),i,a,r);m=ue(m,s)})),m=ue(m,function(){if(!_.size)return;const e=new Set(q([..._],(e=>yc(e,_N)))),t=new Set(q([..._],(e=>yc(e,Hm))));return[...q([..._],(e=>271===e.kind?eZ(e,!0):void 0)),...[...e].map((e=>{var t;return _.has(e)?eZ(e,!0):eZ(oD.updateImportDeclaration(e,e.modifiers,e.importClause&&oD.updateImportClause(e.importClause,e.importClause.isTypeOnly,_.has(e.importClause)?e.importClause.name:void 0,_.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=at(e.importClause.namedBindings,bN))?void 0:t.elements.some((e=>_.has(e))))?oD.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter((e=>_.has(e)))):void 0),e.moduleSpecifier,e.attributes),!0)})),...[...t].map((e=>_.has(e)?eZ(e,!0):eZ(oD.updateVariableStatement(e,e.modifiers,oD.updateVariableDeclarationList(e.declarationList,q(e.declarationList.declarations,(e=>_.has(e)?e:oD.updateVariableDeclaration(e,206===e.name.kind?oD.updateObjectBindingPattern(e.name,e.name.elements.filter((e=>_.has(e)))):e.name,e.exclamationToken,e.type,e.initializer))))),!0)))]}()),m&&fY(t,e,m,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0||_.size>0||u.size>0},addImportForUnresolvedIdentifier:function(e,t,n){const r=function(e,t,n){const r=qee(e,t,n),i=qZ(e.sourceFile,e.preferences,e.host);return r&&Mee(r,e.sourceFile,e.program,i,e.host,e.preferences)}(e,t,n);r&&r.length&&p(xe(r))},addImportForNonExistentExport:function(n,o,s,c,l){const u=t.getSourceFile(o),_=Lee(e,t);if(u&&u.symbol){const{fixes:a}=Aee([{exportKind:s,isFromPackageJson:!1,moduleFileName:o,moduleSymbol:u.symbol,targetFlags:c}],void 0,l,_,t,e,i,r);a.length&&p({fix:a[0],symbolName:n,errorIdentifierText:n})}else{const u=m0(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:eB.getLocalModuleSpecifierBetweenFileNames(e,o,a,QQ(t,i),r),importKind:$ee(u,s,t),addAsTypeOnly:Iee(l,0,void 0,c,t.getTypeChecker(),a),useRequire:_},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){273===e.kind&&gn.assertIsDefined(e.name,"ImportClause should have a name if it's being removed"),u.add(e)},addVerbatimImport:function(e){_.add(e)}};function p(e){var t,n,r;const{fix:i,symbolName:o}=e;switch(i.kind){case 0:s.push(i);break;case 1:c.push(i);break;case 2:{const{importClauseOrBindingPattern:e,importKind:r,addAsTypeOnly:a,propertyName:s}=i;let c=l.get(e);if(c||l.set(e,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===r){const e=null==(t=null==c?void 0:c.namedImports.get(o))?void 0:t.addAsTypeOnly;c.namedImports.set(o,{addAsTypeOnly:u(e,a),propertyName:s})}else gn.assert(void 0===c.defaultImport||c.defaultImport.name===o,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:o,addAsTypeOnly:u(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:n,addAsTypeOnly:s,propertyName:c}=i,l=function(e,t,n,r){const i=_(e,!0),o=_(e,!1),a=d.get(i),s=d.get(o),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?a||(d.set(i,c),c):1===r&&(a||s)?a||s:s||(d.set(o,c),c)}(e,t,n,s);switch(gn.assert(l.useRequire===n,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:gn.assert(void 0===l.defaultImport||l.defaultImport.name===o,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:o,addAsTypeOnly:u(null==(r=l.defaultImport)?void 0:r.addAsTypeOnly,s)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[u(e,s),c]);break;case 3:if(a.verbatimModuleSyntax){const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[u(e,s),c])}else gn.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s};break;case 2:gn.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s}}break}case 4:break;default:gn.assertNever(i,`fix wasn't never - got kind ${i.kind}`)}function u(e,t){return Math.max(e??0,t)}function _(e,t){return`${t?1:0}|${e}`}}}function Cee(e,t,n,r){const i=qZ(e,r,n),o=Oee(e,t);return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:u,computedWithoutCacheCount:_}=Aee(a,s,c,!1,t,e,n,r,o,l),d=Bee(u,e,t,i,n,r);return d&&{...d,computedWithoutCacheCount:_}}}}function Dee(e,t,n,r,i,o,a,s,c,l,u,_){let d;n?(d=D0(r,a,s,u,_).get(r.path,n),gn.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=Eo(Ry(t.name))?[Pee(e,i,t,s,a)]:Nee(r,e,i,t,o,s,a,u,_),gn.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=Lee(r,s),f=wT(XX(r,l)),m=gn.checkDefined(Eee(r,d,s,l,f,p,a,u));return{moduleSpecifier:m.moduleSpecifier,codeAction:Fee(Wee({host:a,formatContext:c,preferences:u},r,i,m,!1,s,u))}}function wee(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=De(Vee(e,n.getTypeChecker(),t,a)),c=Uee(e,t,s,n),l=s!==t.text;return c&&Fee(Wee({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function Eee(e,t,n,r,i,o,a,s){const c=qZ(e,s,a);return Bee(Aee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function Fee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function Nee(e,t,n,r,i,o,a,s,c){const l=Ree(o,a),u=s.autoImportFileExcludePatterns&&C0(a,s),_=o.getTypeChecker().getMergedSymbol(r),d=u&&_.declarations&&Z_(_,307),p=d&&u(d);return D0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{const n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(px(e[0].symbol,n))===t&&(p||e.some((e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r))))return e}))}function Pee(e,t,n,r,i){var o,a;const s=l(r.getTypeChecker(),!1);if(s)return s;const c=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return gn.checkDefined(c&&l(c,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=w0(n,r);if(o&&px(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:px(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&px(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:px(e,r).flags,isFromPackageJson:i}:void 0}}function Aee(e,t,n,r,i,o,a,s,c=(Lm(o)?Oee(o,i):void 0),l){const _=i.getTypeChecker(),d=c?M(e,c.getImportsForExportInfo):u,p=void 0!==t&&function(e,t){return g(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 260:return null==(t=at(e.name,Xw))?void 0:t.text;case 271:return e.name.text;case 351:case 272:return null==(r=at(null==(n=e.importClause)?void 0:n.namedBindings,yN))?void 0:r.name.text;default:return gn.assertNever(e)}}(e),o=i&&(null==(r=Cg(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:o}:void 0}))}(d,t),f=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=Wl(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||271===e.kind)return;if(260===e.kind)return 0!==i&&1!==i||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!q_(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const u=Iee(t,0,o,a,n,r);return 1===i&&(c||2===u&&l)||0===i&&274===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:u}}}(d,n,_,i.getCompilerOptions());if(f)return{computedWithoutCacheCount:0,fixes:[...p?[p]:u,f]};const{fixes:m,computedWithoutCacheCount:h=0}=function(e,t,n,r,i,o,a,s,c,l){const u=g(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=Cg(e))?void 0:c.text;if(l)return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:Iee(i,0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return u?{fixes:[u]}:function(e,t,n,r,i,o,a,s,c){const l=zk(t.fileName),u=e.getCompilerOptions(),_=QQ(e,a),d=Ree(e,a),p=ZQ(ES(u)),f=c?e=>eB.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,_,s):(e,n)=>eB.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,u,t,_,s,void 0,!0);let m=0;const g=M(o,((o,a)=>{const s=d(o.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:_,kind:g}=f(o,s)??{},h=!!(111551&o.targetFlags),y=Iee(r,0,o.symbol,o.targetFlags,s,u);return m+=c?1:0,q(_,(r=>{if(p&&Hj(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:o,isReExport:a>0};const c=$ee(t,o.exportKind,e);let _;if(void 0!==n&&3===c&&0===o.exportKind){const e=s.resolveExternalModuleSymbol(o.moduleSymbol);let t;e!==o.moduleSymbol&&(t=F0(e,s,DS(u),dt)),t||(t=t0(o.moduleSymbol,DS(u),!1)),_={namespacePrefix:t,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:y,exportInfo:o,isReExport:a>0,qualification:_}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,i,o,t,n,r,a,s,l);return{computedWithoutCacheCount:h,fixes:[...p?[p]:u,...m]}}function Iee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function Oee(e,t){const n=t.getTypeChecker();let r;for(const t of e.imports){const e=Dg(t);if(qm(e.parent)){const i=n.resolveExternalModuleName(t);i&&(r||(r=Qe())).add(YB(i),e.parent)}else if(272===e.kind||271===e.kind||351===e.kind){const i=n.getSymbolAtLocation(t);i&&(r||(r=Qe())).add(YB(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:o,symbol:a})=>{const s=null==r?void 0:r.get(YB(n));if(!s)return u;if(Rm(e)&&!(111551&o)&&!k(s,JP))return u;const c=$ee(e,i,t);return s.map((e=>({declaration:e,importKind:c,symbol:a,targetFlags:o})))}}}function Lee(e,t){if(!zk(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return wS(n)<5;if(1===ite(e,t))return!0;if(99===ite(e,t))return!1;for(const n of t.getSourceFiles())if(n!==e&&Rm(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function Ree(e,t){return yt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function jee(e,t,n,r){const i=XX(e.sourceFile,n);let o;if(t===ha._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=Xw(e)?t.getSymbolAtLocation(e):void 0;if(Cx(n))return n;const{parent:r}=e;if(w_(r)&&r.tagName===e||RN(r)){const n=t.resolveName(t.getJsxNamespace(r),w_(r)?e:r,111551,!1);if(Cx(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name,l=[{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],u=Lee(e,t);return Aee(l,void 0,!1,u,t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=at(i,Xw))?void 0:t.text}}))}(e,i);else{if(!Xw(i))return;if(t===ha._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=De(Vee(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=Uee(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=qee(e,i,r)}const a=qZ(e.sourceFile,e.preferences,e.host);return o&&Mee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function Mee(e,t,n,r,i,o){const a=e=>Xo(e,i.getCurrentDirectory(),Uy(i));return me(e,((e,i)=>Bt(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||Tt(e.fix.kind,i.fix.kind)||Jee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a)))}function Bee(e,t,n,r,i,o){if(X(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,a)=>-1===Jee(a,e,t,n,o,r.allowsImportingSpecifier,(e=>Xo(e,i.getCurrentDirectory(),Uy(i))))?a:e))}function Jee(e,t,n,r,i,o,a){return 0!==e.kind&&0!==t.kind?Bt("node_modules"!==t.moduleSpecifierKind||o(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||o(e.moduleSpecifier))||function(e,t,n){return"non-relative"===n.importModuleSpecifierPreference||"project-relative"===n.importModuleSpecifierPreference?Bt("relative"===e.moduleSpecifierKind,"relative"===t.moduleSpecifierKind):0}(e,t,i)||function(e,t,n,r){return en(e,"node:")&&!en(t,"node:")?a0(n,r)?-1:1:en(t,"node:")&&!en(e,"node:")?a0(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Bt(zee(e,n.path,a),zee(t,n.path,a))||Gk(e.moduleSpecifier,t.moduleSpecifier):0}function zee(e,t,n){var r;return!(!e.isReExport||!(null==(r=e.exportInfo)?void 0:r.moduleFileName)||"index"!==jo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0))&&en(t,n(Ro(e.exportInfo.moduleFileName)))}function $ee(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&1===function(e,t){return Lm(e)?t.getEmitModuleFormatOfFile(e):RU(e,t.getCompilerOptions())}(e,n))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=AS(t),i=zk(e.fileName);if(!i&&wS(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(const t of e.statements??u)if(uN(t)&&!Id(t.moduleReference))return 3;return r?1:3}(e,n.getCompilerOptions(),!!r);case 3:return function(e,t,n){if(AS(t.getCompilerOptions()))return 1;const r=wS(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return zk(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return 99===ite(e,t)?2:3;default:return gn.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);case 4:return 2;default:return gn.assertNever(t)}}function qee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return M(Vee(e,s,o,c),(s=>{if("default"===s)return;const c=wT(o),l=Lee(e,t),u=function(e,t,n,r,i,o,a,s,c){var l;const u=Qe(),_=qZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=yt((e=>QQ(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(v0(o,i,t,e,c,_,s,d)){const i=o.getTypeChecker();u.add(QY(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:px(n,i).flags,isFromPackageJson:a})}}return x0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),u=w0(i,c);u&&rte(c.getSymbolFlags(u.symbol),n)&&F0(u.symbol,c,DS(l),((n,r)=>(t?r??n:n)===e))&&f(i,o,u.symbol,u.exportKind,a,s);const _=c.tryGetMemberInModuleExportsAndProperties(e,i);_&&rte(c.getSymbolFlags(_),n)&&f(i,o,_,0,a,s)})),u}(s,Dm(o),HK(o),n,e,t,a,r,i);return Be(J(u.values(),(n=>Aee(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}function Uee(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&Cd(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Vee(e,t,n,r){const i=n.parent;if((w_(i)||ON(i))&&i.tagName===n&&u0(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(jy(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||X(r.declarations,Gl)&&!(111551&r.flags)}(r,n,t))return jy(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function Wee(e,t,n,r,i,o,a){let s;const c=Z_e.ChangeTracker.with(e,(e=>{s=function(e,t,n,r,i,o,a){const s=iY(t,a);switch(r.kind){case 0:return Kee(e,t,r),[ha.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return Xee(e,t,r,s),[ha.Change_0_to_1,n,Qee(r.moduleSpecifier,s)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:s,addAsTypeOnly:c,moduleSpecifier:l}=r;Gee(e,t,o,1===s?{name:n,addAsTypeOnly:c}:void 0,0===s?[{name:n,addAsTypeOnly:c}]:u,void 0,a);const _=Ry(l);return i?[ha.Import_0_from_1,n,_]:[ha.Update_import_from_0,_]}case 3:{const{importKind:c,moduleSpecifier:l,addAsTypeOnly:u,useRequire:_,qualification:d}=r;return fY(e,t,(_?tte:ete)(l,s,1===c?{name:n,addAsTypeOnly:u}:void 0,0===c?[{name:n,addAsTypeOnly:u}]:void 0,2===c||3===c?{importKind:c,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:u}:void 0,o.getCompilerOptions(),a),!0,a),d&&Kee(e,t,d),i?[ha.Import_0_from_1,n,l]:[ha.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,s=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=o.verbatimModuleSyntax;switch(t.kind){case 276:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=oD.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=pue.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=pue.getImportSpecifierInsertionIndex(t.parent.elements,n,o);if(a!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,a),t}return e.deleteRange(r,{pos:Hd(t.getFirstToken()),end:Hd(t.propertyName??t.name)}),t}return gn.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 273:return s(t),t;case 274:return s(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:gn.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,mY(s,r)),!o.allowImportingTsExtensions){const t=Cg(s.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=ea(t.text,G$(t.text,o));e.replaceNode(r,t,oD.createStringLiteral(n))}}if(a){const n=at(s.namedBindings,bN);if(n&&n.elements.length>1){!1!==pue.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted&&276===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,a);return 276===s.kind?[ha.Remove_type_from_import_of_0_from_1,n,Hee(s.parent.parent)]:[ha.Remove_type_from_import_declaration_from_0,Hee(s)]}default:return gn.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)}));return q7(bee,c,s,xee,ha.Add_all_missing_imports)}function Hee(e){var t,n;return 271===e.kind?(null==(n=at(null==(t=at(e.moduleReference,NN))?void 0:t.expression,q_))?void 0:n.text)||e.moduleReference.getText():st(e.parent.moduleSpecifier,Iw).text}function Gee(e,t,n,r,i,o,a){var s;if(206===n.kind){if(o&&n.elements.some((e=>o.has(e))))return void e.replaceNode(t,n,oD.createObjectBindingPattern([...n.elements.filter((e=>!o.has(e))),...r?[oD.createBindingElement(void 0,"default",r.name)]:u,...i.map((e=>oD.createBindingElement(void 0,e.propertyName,e.name)))]));r&&_(n,r.name,"default");for(const e of i)_(n,e.name,e.propertyName);return}const c=n.isTypeOnly&&X([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),l=n.namedBindings&&(null==(s=at(n.namedBindings,bN))?void 0:s.elements);if(r&&(gn.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),oD.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=pue.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),u=me(i.map((e=>oD.createImportSpecifier((!n.isTypeOnly||c)&&Zee(e,a),void 0===e.propertyName?void 0:oD.createIdentifier(e.propertyName),oD.createIdentifier(e.name)))),r);if(o)e.replaceNode(t,n.namedBindings,oD.updateNamedImports(n.namedBindings,me([...l.filter((e=>!o.has(e))),...u],r)));else if((null==l?void 0:l.length)&&!1!==s){const i=c&&l?oD.updateNamedImports(n.namedBindings,R(l,(e=>oD.updateImportSpecifier(e,!0,e.propertyName,e.name)))).elements:l;for(const o of u){const a=pue.getImportSpecifierInsertionIndex(i,o,r);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,a)}}else if(null==l?void 0:l.length)for(const n of u)e.insertNodeInListAfter(t,Te(l),n,l);else if(u.length){const r=oD.createNamedImports(u);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,gn.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}if(c&&(e.delete(t,mY(n,t)),l))for(const n of l)e.insertModifierBefore(t,156,n);function _(n,r,i){const o=oD.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,Te(n.elements),o):e.replaceNode(t,n,oD.createObjectBindingPattern([o]))}}function Kee(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function Xee(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,Qee(n,i))}function Qee(e,t){const n=oY(t);return`import(${n}${e}${n}).`}function Yee({addAsTypeOnly:e}){return 2===e}function Zee(e,t){return Yee(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function ete(e,t,n,r,i,o,a){const s=tY(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||Yee(n))&&k(r,Yee)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!X(r,(e=>4===e.addAsTypeOnly));c=ue(c,eY(n&&oD.createIdentifier(n.name),null==r?void 0:r.map((e=>oD.createImportSpecifier(!i&&Zee(e,a),void 0===e.propertyName?void 0:oD.createIdentifier(e.propertyName),oD.createIdentifier(e.name)))),e,t,i))}return i&&(c=ue(c,3===i.importKind?oD.createImportEqualsDeclaration(void 0,Zee(i,a),oD.createIdentifier(i.name),oD.createExternalModuleReference(s)):oD.createImportDeclaration(void 0,oD.createImportClause(Zee(i,a),void 0,oD.createNamespaceImport(oD.createIdentifier(i.name))),s,void 0))),gn.checkDefined(c)}function tte(e,t,n,r,i){const o=tY(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e,propertyName:t})=>oD.createBindingElement(void 0,t,e))))||[];n&&e.unshift(oD.createBindingElement(void 0,"default",n.name)),a=ue(a,nte(oD.createObjectBindingPattern(e),o))}return i&&(a=ue(a,nte(i.name,o))),gn.checkDefined(a)}function nte(e,t){return oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration("string"==typeof e?oD.createIdentifier(e):e,void 0,void 0,oD.createCallExpression(oD.createIdentifier("require"),void 0,[t]))],2))}function rte(e,t){return!!(7===t||(1&t?111551&e:2&t?788968&e:4&t&&1920&e))}function ite(e,t){return Lm(e)?t.getImpliedNodeFormatForEmit(e):jU(e,t.getCompilerOptions())}W7({errorCodes:See,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=jee(e,t,i.start,!0);if(a)return a.map((({fix:t,symbolName:i,errorIdentifierText:a})=>Wee(e,r,i,t,i!==a,o,n)))},fixIds:[xee],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=Tee(t,n,!0,r,i,o);return Z7(e,See,(t=>a.addImportFromDiagnostic(t,e))),X7(Z_e.ChangeTracker.with(e,a.writeFixes))}});var ote="addMissingConstraint",ate=[ha.Type_0_is_not_comparable_to_type_1.code,ha.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,ha.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ha.Type_0_is_not_assignable_to_type_1.code,ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ha.Property_0_is_incompatible_with_index_signature.code,ha.Property_0_in_type_1_is_not_assignable_to_type_2.code,ha.Type_0_does_not_satisfy_the_constraint_1.code];function ste(e,t,n){const r=T(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=T(r.relatedInformation,(e=>e.code===ha.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=moe(i.file,Ys(i.start,i.length));if(void 0!==o&&(Xw(o)&&pE(o.parent)&&(o=o.parent),pE(o))){if(WE(o.parent))return;const r=XX(t,n.start),a=function(e,t){if(wu(t.parent))return e.getTypeArgumentConstraint(t.parent);const n=Qu(t)?e.getContextualType(t):void 0;return n||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=rU(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText);return{constraint:a,declaration:o,token:r}}}function cte(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(it(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=DS(t.getCompilerOptions()),l=Wie({program:t,host:r}),u=kee(i,t,n,r),_=Yie(c,u,s,void 0,o,void 0,void 0,l);_&&(e.replaceNode(i,a,oD.updateTypeParameterDeclaration(a,void 0,a.name,_,a.default)),u.writeFixes(e))}}W7({errorCodes:ate,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=ste(r,t,n);if(void 0===a)return;const s=Z_e.ChangeTracker.with(e,(e=>cte(e,r,i,o,t,a)));return[q7(ote,s,ha.Add_extends_constraint,ote,ha.Add_extends_constraint_to_all_type_parameters)]},fixIds:[ote],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Set;return X7(Z_e.ChangeTracker.with(e,(o=>{Z7(e,ate,(e=>{const a=ste(t,e.file,Ys(e.start,e.length));if(a&&Ex(i,QB(a.declaration)))return cte(o,t,n,r,e.file,a)}))})))}});var lte="fixOverrideModifier",ute="fixAddOverrideModifier",_te="fixRemoveOverrideModifier",dte=[ha.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,ha.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,ha.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,ha.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,ha.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,ha.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,ha.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],pte={[ha.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ha.Add_override_modifier,fixId:ute,fixAllDescriptions:ha.Add_all_missing_override_modifiers},[ha.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ha.Add_override_modifier,fixId:ute,fixAllDescriptions:ha.Add_all_missing_override_modifiers},[ha.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:ha.Remove_override_modifier,fixId:_te,fixAllDescriptions:ha.Remove_all_unnecessary_override_modifiers},[ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:ha.Remove_override_modifier,fixId:_te,fixAllDescriptions:ha.Remove_override_modifier},[ha.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:ha.Add_override_modifier,fixId:ute,fixAllDescriptions:ha.Add_all_missing_override_modifiers},[ha.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ha.Add_override_modifier,fixId:ute,fixAllDescriptions:ha.Add_all_missing_override_modifiers},[ha.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:ha.Add_override_modifier,fixId:ute,fixAllDescriptions:ha.Remove_all_unnecessary_override_modifiers},[ha.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:ha.Remove_override_modifier,fixId:_te,fixAllDescriptions:ha.Remove_all_unnecessary_override_modifiers},[ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:ha.Remove_override_modifier,fixId:_te,fixAllDescriptions:ha.Remove_all_unnecessary_override_modifiers}};function fte(e,t,n,r){switch(n){case ha.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case ha.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case ha.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case ha.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case ha.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=gte(t,n);if(Rm(t))return void e.addJSDocTags(t,r,[oD.createJSDocOverrideTag(oD.createIdentifier("override"))]);const i=r.modifiers||u,o=T(i,iE),a=T(i,oE),s=T(i,(e=>CQ(e.kind))),c=C(i,mE),l=a?a.end:o?o.end:s?s.end:c?is(t.text,c.end):r.getStart(t),_=s||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,l,164,_)}(e,t.sourceFile,r);case ha.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case ha.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=gte(t,n);if(Rm(t))return void e.filterJSDocTags(t,r,sn(TP));const i=T(r.modifiers,aE);gn.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:gn.fail("Unexpected error code: "+n)}}function mte(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return ac(e,e.parent);default:return!1}}function gte(e,t){const n=yc(XX(e,t),(e=>yu(e)?"quit":mte(e)));return gn.assert(n&&mte(n)),n}W7({errorCodes:dte,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=pte[t];if(!r)return u;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,s=Z_e.ChangeTracker.with(e,(r=>fte(r,e,t,n.start)));return[U7(lte,s,i,o,a)]},fixIds:[lte,ute,_te],getAllCodeActions:e=>Y7(e,dte,((t,n)=>{const{code:r,start:i}=n,o=pte[r];o&&o.fixId===e.fixId&&fte(t,e,r,i)}))});var hte="fixNoPropertyAccessFromIndexSignature",yte=[ha.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function vte(e,t,n,r){const i=iY(t,r),o=oD.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,xl(n)?oD.createElementAccessChain(n.expression,n.questionDotToken,o):oD.createElementAccessExpression(n.expression,o))}function bte(e,t){return st(XX(e,t).parent,nF)}W7({errorCodes:yte,fixIds:[hte],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=bte(t,n.start),o=Z_e.ChangeTracker.with(e,(t=>vte(t,e.sourceFile,i,r)));return[q7(hte,o,[ha.Use_element_access_for_0,i.name.text],hte,ha.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Y7(e,yte,((t,n)=>vte(t,n.file,bte(n.file,n.start),e.preferences)))});var xte="fixImplicitThis",Ste=[ha.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function kte(e,t,n,r){const i=XX(t,n);if(!xX(i))return;const o=sm(i,!1,!1);if((tN(o)||lF(o))&&!QN(sm(o,!1,!1))){const n=gn.checkDefined(RX(o,100,t)),{name:i}=o,a=gn.checkDefined(o.body);if(lF(o)){if(i&&Nce.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[ha.Convert_function_expression_0_to_arrow_function,i?i.text:CZ]}return e.replaceNode(t,n,oD.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[ha.Convert_function_declaration_0_to_arrow_function,i.text]}}W7({errorCodes:Ste,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=Z_e.ChangeTracker.with(e,(e=>{i=kte(e,t,r.start,n.getTypeChecker())}));return i?[q7(xte,o,i,xte,ha.Fix_all_implicit_this_errors)]:u},fixIds:[xte],getAllCodeActions:e=>Y7(e,Ste,((t,n)=>{kte(t,n.file,n.start,e.program.getTypeChecker())}))});var Tte="fixImportNonExportedMember",Cte=[ha.Module_0_declares_1_locally_but_it_is_not_exported.code];function Dte(e,t,n){var r,i;const o=XX(e,t);if(Xw(o)){const t=yc(o,_N);if(void 0===t)return;const a=Iw(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||_0(n,c))return;const l=null==(i=at(c.symbol.valueDeclaration,f_))?void 0:i.locals;if(void 0===l)return;const u=l.get(o.escapedText);if(void 0===u)return;const _=function(e){if(void 0===e.valueDeclaration)return ve(e.declarations);const t=e.valueDeclaration,n=ZF(t)?at(t.parent.parent,LF):void 0;return n&&1===p(n.declarationList.declarations)?n:t}(u);if(void 0===_)return;return{exportName:{node:o,isTypeOnly:QT(_)},node:_,moduleSourceFile:c,moduleSpecifier:a.text}}}function wte(e,t,n,r,i){p(r)&&(i?Fte(e,t,n,i,r):Nte(e,t,n,r))}function Ete(e,t){return C(e.statements,(e=>kN(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function Fte(e,t,n,r,i){const o=r.exportClause&&TN(r.exportClause)?r.exportClause.elements:oD.createNodeArray([]),a=!(r.isTypeOnly||!NS(t.getCompilerOptions())&&!T(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,oD.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,oD.createNamedExports(oD.createNodeArray([...o,...Pte(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function Nte(e,t,n,r){e.insertNodeAtEndOfScope(n,n,oD.createExportDeclaration(void 0,!1,oD.createNamedExports(Pte(r,NS(t.getCompilerOptions()))),void 0,void 0))}function Pte(e,t){return oD.createNodeArray(O(e,(e=>oD.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}W7({errorCodes:Cte,fixIds:[Tte],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Dte(t,n.start,r);if(void 0===i)return;const o=Z_e.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=Ete(i,n.isTypeOnly);o?Fte(e,t,i,o,[n]):YT(r)?e.insertExportModifier(i,r):Nte(e,t,i,[n])}(e,r,i)));return[q7(Tte,o,[ha.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],Tte,ha.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return X7(Z_e.ChangeTracker.with(e,(n=>{const r=new Map;Z7(e,Cte,(e=>{const i=Dte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===Ete(s,o.isTypeOnly)&&YT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=Ete(r,!0);i&&i.isTypeOnly?(wte(n,t,r,e.typeOnlyExports,i),wte(n,t,r,e.exports,Ete(r,!1))):wte(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}});var Ate="fixIncorrectNamedTupleSyntax";W7({errorCodes:[ha.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,ha.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){const n=XX(e,t);return yc(n,(e=>202===e.kind))}(t,n.start),i=Z_e.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?i=!0:191===r.kind&&(o=!0),r=r.type;const a=oD.updateNamedTupleMember(n,n.dotDotDotToken||(o?oD.createToken(26):void 0),n.name,n.questionToken||(i?oD.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[q7(Ate,i,ha.Move_labeled_tuple_element_modifiers_to_labels,Ate,ha.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Ate]});var Ite="fixSpelling",Ote=[ha.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,ha.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,ha.Cannot_find_name_0_Did_you_mean_1.code,ha.Could_not_find_name_0_Did_you_mean_1.code,ha.Cannot_find_namespace_0_Did_you_mean_1.code,ha.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ha.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,ha._0_has_no_exported_member_named_1_Did_you_mean_2.code,ha.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,ha.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,ha.No_overload_matches_this_call.code,ha.Type_0_is_not_assignable_to_type_1.code];function Lte(e,t,n,r){const i=XX(e,t),o=i.parent;if((r===ha.No_overload_matches_this_call.code||r===ha.Type_0_is_not_assignable_to_type_1.code)&&!MN(o))return;const a=n.program.getTypeChecker();let s;if(nF(o)&&o.name===i){gn.assert(vl(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(hF(o)&&103===o.operatorToken.kind&&o.left===i&&Qw(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(_E(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(xN(o)&&o.name===i){gn.assertNode(i,Xw,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!q_(t.moduleSpecifier))return;const i=null==(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))?void 0:r.resolvedModule;return i?e.program.getSourceFile(i.resolvedFileName):void 0}(n,yc(i,_N),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(MN(o)&&o.name===i){gn.assertNode(i,Xw,"Expected an identifier for JSX attribute");const e=yc(i,w_),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Mv(o)&&hu(o)&&o.name===i){const e=yc(i,yu),t=e?Ch(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(np(i),n))}else{const e=HK(i),t=np(i);gn.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function Rte(e,t,n,r,i){const o=Cc(r);if(!Ss(o,i)&&nF(n.parent)){const i=r.valueDeclaration;i&&Nc(i)&&Qw(i.name)?e.replaceNode(t,n,oD.createIdentifier(o)):e.replaceNode(t,n.parent,oD.createElementAccessExpression(n.parent.expression,oD.createStringLiteral(o)))}else e.replaceNode(t,n,oD.createIdentifier(o))}W7({errorCodes:Ote,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=Lte(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=DS(e.host.getCompilationSettings());return[q7("spelling",Z_e.ChangeTracker.with(e,(e=>Rte(e,t,i,o,a))),[ha.Change_spelling_to_0,Cc(o)],Ite,ha.Fix_all_detected_spelling_errors)]},fixIds:[Ite],getAllCodeActions:e=>Y7(e,Ote,((t,n)=>{const r=Lte(n.file,n.start,e,n.code),i=DS(e.host.getCompilationSettings());r&&Rte(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))});var jte="returnValueCorrect",Mte="fixAddReturnStatement",Bte="fixRemoveBracesFromArrowFunctionBody",Jte="fixWrapTheBlockWithParen",zte=[ha.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,ha.Type_0_is_not_assignable_to_type_1.code,ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function $te(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=td([r]);return e.createAnonymousType(void 0,i,[],[],[])}function qte(e,t,n,r){if(!t.body||!OF(t.body)||1!==p(t.body.statements))return;const i=xe(t.body.statements);if(jF(i)&&Ute(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(KF(i)&&jF(i.statement)){const o=oD.createObjectLiteralExpression([oD.createPropertyAssignment(i.label,i.statement.expression)]);if(Ute(e,t,$te(e,i.label,i.statement.expression),n,r))return uF(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(OF(i)&&1===p(i.statements)){const o=xe(i.statements);if(KF(o)&&jF(o.statement)){const a=oD.createObjectLiteralExpression([oD.createPropertyAssignment(o.label,o.statement.expression)]);if(Ute(e,t,$te(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function Ute(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){Lv(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,td(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function Vte(e,t,n,r){const i=XX(t,n);if(!i.parent)return;const o=yc(i.parent,du);switch(r){case ha.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&ix(o.type,i)))return;return qte(e,o,e.getTypeFromTypeNode(o.type),!1);case ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!iF(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return qte(e,o,n,!0);case ha.Type_0_is_not_assignable_to_type_1.code:if(!gh(i)||!Mf(i.parent)&&!MN(i.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(zN(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}(i.parent);if(!r||!du(r)||!r.body)return;return qte(e,r,e.getTypeAtLocation(i.parent),!0)}}function Wte(e,t,n,r){oZ(n);const i=IZ(t);e.replaceNode(t,r,oD.createReturnStatement(n),{leadingTriviaOption:Z_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Z_e.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function Hte(e,t,n,r,i,o){const a=yZ(r)?oD.createParenthesizedExpression(r):r;oZ(i),cZ(i,a),e.replaceNode(t,n.body,a)}function Gte(e,t,n,r){e.replaceNode(t,n.body,oD.createParenthesizedExpression(r))}function Kte(e,t,n){const r=Z_e.ChangeTracker.with(e,(r=>Wte(r,e.sourceFile,t,n)));return q7(jte,r,ha.Add_a_return_statement,Mte,ha.Add_all_missing_return_statement)}function Xte(e,t,n){const r=Z_e.ChangeTracker.with(e,(r=>Gte(r,e.sourceFile,t,n)));return q7(jte,r,ha.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Jte,ha.Wrap_all_object_literal_with_parentheses)}W7({errorCodes:zte,fixIds:[Mte,Bte,Jte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=Vte(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?le([Kte(e,o.expression,o.statement)],uF(o.declaration)?function(e,t,n,r){const i=Z_e.ChangeTracker.with(e,(i=>Hte(i,e.sourceFile,t,n,r)));return q7(jte,i,ha.Remove_braces_from_arrow_function_body,Bte,ha.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[Xte(e,o.declaration,o.expression)]},getAllCodeActions:e=>Y7(e,zte,((t,n)=>{const r=Vte(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Mte:Wte(t,n.file,r.expression,r.statement);break;case Bte:if(!uF(r.declaration))return;Hte(t,n.file,r.declaration,r.expression,r.commentSource);break;case Jte:if(!uF(r.declaration))return;Gte(t,n.file,r.declaration,r.expression);break;default:gn.fail(JSON.stringify(e.fixId))}}))});var Qte="fixMissingMember",Yte="fixMissingProperties",Zte="fixMissingAttributes",ene="fixMissingFunctionDeclaration",tne=[ha.Property_0_does_not_exist_on_type_1.code,ha.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,ha.Property_0_is_missing_in_type_1_but_required_in_type_2.code,ha.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,ha.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ha.Cannot_find_name_0.code];function nne(e,t,n,r,i){var o,a,s;const c=XX(e,t),l=c.parent;if(n===ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==c.kind||!tF(l)||!iF(l.parent))return;const e=D(l.parent.arguments,(e=>e===l));if(e<0)return;const t=r.getResolvedSignature(l.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&fE(n)&&Xw(n.name)))return;const i=Be(r.getUnmatchedProperties(r.getTypeAtLocation(l),r.getParameterType(t,e).getNonNullableType(),!1,!1));if(!p(i))return;return{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:l}}if(19===c.kind&&tF(l)){const e=null==(o=r.getContextualType(l)||r.getTypeAtLocation(l))?void 0:o.getNonNullableType(),t=Be(r.getUnmatchedProperties(r.getTypeAtLocation(l),e,!1,!1));if(!p(t))return;return{kind:3,token:l,identifier:"",properties:t,parentDeclaration:l}}if(!vl(c))return;if(Xw(c)&&j_(l)&&l.initializer&&tF(l.initializer)){const e=null==(a=r.getContextualType(c)||r.getTypeAtLocation(c))?void 0:a.getNonNullableType(),t=Be(r.getUnmatchedProperties(r.getTypeAtLocation(l.initializer),e,!1,!1));if(!p(t))return;return{kind:3,token:c,identifier:c.text,properties:t,parentDeclaration:l.initializer}}if(Xw(c)&&w_(c.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return u;const i=r.getProperties();if(!p(i))return u;const o=new Set;for(const t of n.attributes.properties)if(MN(t)&&o.add(cC(t.name)),JN(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return P(i,(e=>Ss(e.name,t,1)&&!(16777216&e.flags||48&_x(e)||o.has(e.escapedName))))}(r,DS(i.getCompilerOptions()),c.parent);if(!p(e))return;return{kind:4,token:c,attributes:e,parentDeclaration:c.parent}}if(Xw(c)){const t=null==(s=r.getContextualType(c))?void 0:s.getNonNullableType();if(t&&16&Tx(t)){const n=ve(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:c,signature:n,sourceFile:e,parentDeclaration:mne(c)}}if(iF(l)&&l.expression===c)return{kind:2,token:c,call:l,sourceFile:e,modifierFlags:0,parentDeclaration:mne(c)}}if(!nF(l))return;const _=WQ(r.getTypeAtLocation(l.expression)),d=_.symbol;if(!d||!d.declarations)return;if(Xw(c)&&iF(l.parent)){const t=T(d.declarations,aN),n=null==t?void 0:t.getSourceFile();if(t&&n&&!_0(i,n))return{kind:2,token:c,call:l.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};const r=T(d.declarations,QN);if(e.commonJsModuleIndicator)return;if(r&&!_0(i,r))return{kind:2,token:c,call:l.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const f=T(d.declarations,yu);if(!f&&Qw(c))return;const m=f||T(d.declarations,(e=>rN(e)||AE(e)));if(m&&!_0(i,m.getSourceFile())){const e=!AE(m)&&(_.target||_)!==r.getDeclaredTypeOfSymbol(d);if(e&&(Qw(c)||rN(m)))return;const t=m.getSourceFile(),n=AE(m)?0:(e?256:0)|(i0(c.text)?2:0),i=Rm(t);return{kind:0,token:c,call:at(l.parent,iF),modifierFlags:n,parentDeclaration:m,declSourceFile:t,isJSFile:i}}const g=T(d.declarations,oN);return!g||1056&_.flags||Qw(c)||_0(i,g.getSourceFile())?void 0:{kind:1,token:c,parentDeclaration:g}}function rne(e,t,n,r,i){const o=r.text;if(i){if(231===n.kind)return;const r=n.name.getText(),i=ine(oD.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(Qw(r)){const r=oD.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=sne(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=_v(n);if(!r)return;const i=ine(oD.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function ine(e,t){return oD.createExpressionStatement(oD.createAssignment(oD.createPropertyAccessExpression(e,t),fne()))}function one(e,t,n){let r;if(226===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1,8)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1,8):void 0}return r||oD.createKeywordTypeNode(133)}function ane(e,t,n,r,i,o){const a=o?oD.createNodeArray(oD.createModifiersFromModifierFlags(o)):void 0,s=yu(n)?oD.createPropertyDeclaration(a,r,void 0,i,void 0):oD.createPropertySignature(void 0,r,void 0,i),c=sne(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function sne(e){let t;for(const n of e.members){if(!hE(n))break;t=n}return t}function cne(e,t,n,r,i,o,a){const s=kee(a,e.program,e.preferences,e.host),c=Xie(yu(o)?174:173,e,s,n,r,i,o),l=function(e,t){if(AE(e))return;const n=yc(t,(e=>vE(e)||xE(e)));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function lne(e,t,{token:n,parentDeclaration:r}){const i=X(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=r.getSourceFile(),a=oD.createEnumMember(n,i?oD.createStringLiteral(n.text):void 0),s=ke(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function une(e,t,n){const r=iY(t.sourceFile,t.preferences),i=kee(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?Xie(262,t,i,n.call,kc(n.token),n.modifierFlags,n.parentDeclaration):Kie(262,t,r,n.signature,soe(ha.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&gn.fail("fixMissingFunctionDeclaration codefix got unexpected error."),WF(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function _ne(e,t,n){const r=kee(t.sourceFile,t.program,t.preferences,t.host),i=iY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=X(a.properties,JN),c=O(n.attributes,(e=>{const a=pne(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=oD.createIdentifier(e.name),c=oD.createJsxAttribute(s,oD.createJsxExpression(void 0,a));return LT(s,c),c})),l=oD.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),u={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,u),r.writeFixes(e)}function dne(e,t,n){const r=kee(t.sourceFile,t.program,t.preferences,t.host),i=iY(t.sourceFile,t.preferences),o=DS(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=O(n.properties,(e=>{const s=pne(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return oD.createPropertyAssignment(function(e,t,n,r){if(nd(e)){const t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&dE(t))return t}return GT(e.name,t,0===n,!1,!1)}(e,o,i,a),s)})),c={leadingTriviaOption:Z_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Z_e.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,oD.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function pne(e,t,n,r,i,o){if(3&i.flags)return fne();if(134217732&i.flags)return oD.createStringLiteral("",0===r);if(8&i.flags)return oD.createNumericLiteral(0);if(64&i.flags)return oD.createBigIntLiteral("0n");if(16&i.flags)return oD.createFalse();if(1056&i.flags){const e=i.symbol.exports?be(i.symbol.exports.values()):i.symbol,n=i.symbol.parent&&256&i.symbol.parent.flags?i.symbol.parent:i.symbol,r=t.symbolToExpression(n,111551,void 0,64);return void 0===e||void 0===r?oD.createNumericLiteral(0):oD.createPropertyAccessExpression(r,t.symbolToString(e))}if(256&i.flags)return oD.createNumericLiteral(i.value);if(2048&i.flags)return oD.createBigIntLiteral(i.value);if(128&i.flags)return oD.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?oD.createFalse():oD.createTrue();if(65536&i.flags)return oD.createNull();if(1048576&i.flags)return g(i.types,(i=>pne(e,t,n,r,i,o)))??fne();if(t.isArrayLikeType(i))return oD.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&Tx(e)||e.symbol&&at(Ce(e.symbol.declarations),AE))}(i)){const a=O(t.getPropertiesOfType(i),(i=>{const a=pne(e,t,n,r,t.getTypeOfSymbol(i),o);return oD.createPropertyAssignment(i.name,a)}));return oD.createObjectLiteralExpression(a,!0)}if(16&Tx(i)){if(void 0===T(i.symbol.declarations||u,an(FE,yE,vE)))return fne();const a=t.getSignaturesOfType(i,0);return void 0===a?fne():Kie(218,e,r,a[0],soe(ha.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??fne()}if(1&Tx(i)){const e=kx(i.symbol);if(void 0===e||Bv(e))return fne();const t=_v(e);return t&&p(t.parameters)?fne():oD.createNewExpression(oD.createIdentifier(i.symbol.name),void 0,void 0)}return fne()}function fne(){return oD.createIdentifier("undefined")}function mne(e){if(yc(e,zN)){const t=yc(e.parent,WF);if(t)return t}return Cd(e)}W7({errorCodes:tne,getCodeActions(e){const t=e.program.getTypeChecker(),n=nne(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=Z_e.ChangeTracker.with(e,(t=>dne(t,e,n)));return[q7(Yte,t,ha.Add_missing_properties,Yte,ha.Add_all_missing_properties)]}if(4===n.kind){const t=Z_e.ChangeTracker.with(e,(t=>_ne(t,e,n)));return[q7(Zte,t,ha.Add_missing_attributes,Zte,ha.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=Z_e.ChangeTracker.with(e,(t=>une(t,e,n)));return[q7(ene,t,[ha.Add_missing_function_declaration_0,n.token.text],ene,ha.Add_all_missing_function_declarations)]}if(1===n.kind){const t=Z_e.ChangeTracker.with(e,(t=>lne(t,e.program.getTypeChecker(),n)));return[q7(Qte,t,[ha.Add_missing_enum_member_0,n.token.text],Qte,ha.Add_all_missing_members)]}return Y(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>Z_e.ChangeTracker.with(e,(i=>cne(e,i,a,o,t,n,r))),l=[q7(Qte,c(256&i),[256&i?ha.Declare_static_method_0:ha.Declare_method_0,s],Qte,ha.Add_all_missing_members)];return 2&i&&l.unshift($7(Qte,c(2),[ha.Declare_private_method_0,s])),l}(e,n),function(e,t){return t.isJSFile?ln(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(rN(t)||AE(t))return;const o=Z_e.ChangeTracker.with(e,(e=>rne(e,n,t,i,!!(256&r))));if(0===o.length)return;const a=256&r?ha.Initialize_static_property_0:Qw(i)?ha.Declare_a_private_field_named_0:ha.Initialize_property_0_in_the_constructor;return q7(Qte,o,[a,i.text],Qte,ha.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=one(e.program.getTypeChecker(),t,i),c=r=>Z_e.ChangeTracker.with(e,(e=>ane(e,n,t,o,s,r))),l=[q7(Qte,c(256&r),[a?ha.Declare_static_property_0:ha.Declare_property_0,o],Qte,ha.Add_all_missing_members)];return a||Qw(i)||(2&r&&l.unshift($7(Qte,c(2),[ha.Declare_private_property_0,o])),l.push(function(e,t,n,r,i){const o=oD.createKeywordTypeNode(154),a=oD.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=oD.createIndexSignature(void 0,[a],i),c=Z_e.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return $7(Qte,c,[ha.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),l}(e,t)}(e,n))}},fixIds:[Qte,ene,Yte,Zte],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,o=new Map;return X7(Z_e.ChangeTracker.with(e,(t=>{Z7(e,tne,(a=>{const s=nne(a.file,a.start,a.code,r,e.program);if(s&&Ex(i,QB(s.parentDeclaration)+"#"+(3===s.kind?s.identifier:s.token.text)))if(n!==ene||2!==s.kind&&5!==s.kind){if(n===Yte&&3===s.kind)dne(t,e,s);else if(n===Zte&&4===s.kind)_ne(t,e,s);else if(1===s.kind&&lne(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=V(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else une(t,e,s)})),o.forEach(((n,i)=>{const a=AE(i)?void 0:koe(i,r);for(const i of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===i.token.text))})))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:u,isJSFile:_}=i;if(u&&!Qw(l))cne(e,t,u,l,256&c,n,s);else if(!_||rN(n)||AE(n)){const e=one(r,n,l);ane(t,s,n,l.text,e,256&c)}else rne(t,s,n,l,!!(256&c))}}))})))}});var gne="addMissingNewOperator",hne=[ha.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function yne(e,t,n){const r=st(function(e,t){let n=XX(e,t.start);const r=Rs(t);for(;n.endyne(e,t,n)));return[q7(gne,r,ha.Add_missing_new_operator_to_call,gne,ha.Add_missing_new_operator_to_all_calls)]},fixIds:[gne],getAllCodeActions:e=>Y7(e,hne,((t,n)=>yne(t,e.sourceFile,n)))});var vne="addMissingParam",bne="addOptionalParam",xne=[ha.Expected_0_arguments_but_got_1.code];function Sne(e,t,n){const r=yc(XX(e,n),iF);if(void 0===r||0===p(r.arguments))return;const i=t.getTypeChecker(),o=P(i.getTypeAtLocation(r.expression).symbol.declarations,Cne);if(void 0===o)return;const a=ke(o);if(void 0===a||void 0===a.body||_0(t,a.getSourceFile()))return;const s=function(e){const t=Ac(e);return t||(ZF(e.parent)&&Xw(e.parent.name)||hE(e.parent)||fE(e.parent)?e.parent.name:void 0)}(a);if(void 0===s)return;const c=[],l=[],u=p(a.parameters),_=p(r.arguments);if(u>_)return;const d=[a,...wne(a,o)];for(let e=0,t=0,n=0;e<_;e++){const o=r.arguments[e],s=Px(o)?Ax(o):o,_=i.getWidenedType(i.getBaseTypeOfLiteralType(i.getTypeAtLocation(o))),p=t{const s=Cd(i),c=kee(s,t,n,r);p(i.parameters)?e.replaceNodeRangeWithNodes(s,xe(i.parameters),Te(i.parameters),Dne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:Z_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Z_e.TrailingTriviaOption.Include}):f(Dne(c,a,i,o),((t,n)=>{0===p(i.parameters)&&0===n?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)})),c.writeFixes(e)}))}function Cne(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function Dne(e,t,n,r){const i=O(n.parameters,(e=>oD.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer)));for(const{pos:n,declaration:o}of r){const r=n>0?i[n-1]:void 0;i.splice(n,0,oD.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,r&&r.questionToken?oD.createToken(58):o.questionToken,Pne(e,o.type,t),o.initializer))}return i}function wne(e,t){const n=[];for(const r of t)if(Ene(r)){if(p(r.parameters)===p(e.parameters)){n.push(r);continue}if(p(r.parameters)>p(e.parameters))return[]}return n}function Ene(e){return Cne(e)&&void 0===e.body}function Fne(e,t,n){return oD.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function Nne(e,t){return p(e)&&X(e,(e=>tTne(t,e.program,e.preferences,e.host,r,i))),[p(i)>1?ha.Add_missing_parameters_to_0:ha.Add_missing_parameter_to_0,n],vne,ha.Add_all_missing_parameters)),p(o)&&le(a,q7(bne,Z_e.ChangeTracker.with(e,(t=>Tne(t,e.program,e.preferences,e.host,r,o))),[p(o)>1?ha.Add_optional_parameters_to_0:ha.Add_optional_parameter_to_0,n],bne,ha.Add_all_optional_parameters)),a},getAllCodeActions:e=>Y7(e,xne,((t,n)=>{const r=Sne(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===vne&&Tne(t,e.program,e.preferences,e.host,n,i),e.fixId===bne&&Tne(t,e.program,e.preferences,e.host,n,o)}}))});var Ane="installTypesPackage",Ine=ha.Cannot_find_module_0_or_its_corresponding_type_declarations.code,One=ha.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,Lne=[Ine,ha.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,One];function Rne(e,t){return{type:"install package",file:e,packageName:t}}function jne(e,t){const n=at(XX(e,t),Iw);if(!n)return;const r=n.text,{packageName:i}=pM(r);return As(i)?void 0:i}function Mne(e,t,n){var r;return n===Ine?OC.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?EM(e):void 0}W7({errorCodes:Lne,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=i===One?tk(e.program.getCompilerOptions(),n):jne(n,r);if(void 0===o)return;const a=Mne(o,t,i);return void 0===a?[]:[q7("fixCannotFindModule",[],[ha.Install_0,a],Ane,ha.Install_all_missing_types_packages,Rne(n.fileName,a))]},fixIds:[Ane],getAllCodeActions:e=>Y7(e,Lne,((t,n,r)=>{const i=jne(n.file,n.start);if(void 0!==i)switch(e.fixId){case Ane:{const t=Mne(i,e.host,n.code);t&&r.push(Rne(n.file.fileName,t));break}default:gn.fail(`Bad fixId: ${e.fixId}`)}}))});var Bne=[ha.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,ha.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,ha.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,ha.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,ha.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,ha.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Jne="fixClassDoesntImplementInheritedAbstractMember";function zne(e,t){return st(XX(e,t).parent,yu)}function $ne(e,t,n,r,i){const o=Ch(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(qne),l=kee(t,n.program,i,n.host);Vie(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function qne(e){const t=Kv(xe(e.getDeclarations()));return!(2&t||!(64&t))}W7({errorCodes:Bne,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Z_e.ChangeTracker.with(e,(r=>$ne(zne(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[q7(Jne,r,ha.Implement_inherited_abstract_class,Jne,ha.Implement_all_inherited_abstract_classes)]},fixIds:[Jne],getAllCodeActions:function(e){const t=new Set;return Y7(e,Bne,((n,r)=>{const i=zne(r.file,r.start);Ex(t,QB(i))&&$ne(i,e.sourceFile,e,n,e.preferences)}))}});var Une="classSuperMustPrecedeThisAccess",Vne=[ha.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function Wne(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Hne(e,t){const n=XX(e,t);if(110!==n.kind)return;const r=tm(n),i=Gne(r.body);return i&&!i.expression.arguments.some((e=>nF(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function Gne(e){return jF(e)&&mf(e.expression)?e:uu(e)?void 0:qI(e,Gne)}W7({errorCodes:Vne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Hne(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=Z_e.ChangeTracker.with(e,(e=>Wne(e,t,i,o)));return[q7(Une,a,ha.Make_super_call_the_first_statement_in_the_constructor,Une,ha.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Une],getAllCodeActions(e){const{sourceFile:t}=e,n=new Set;return Y7(e,Vne,((e,r)=>{const i=Hne(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;Ex(n,QB(o.parent))&&Wne(e,t,o,a)}))}});var Kne="constructorForDerivedNeedSuperCall",Xne=[ha.Constructors_for_derived_classes_must_contain_a_super_call.code];function Qne(e,t){const n=XX(e,t);return gn.assert(xE(n.parent),"token should be at the constructor declaration"),n.parent}function Yne(e,t,n){const r=oD.createExpressionStatement(oD.createCallExpression(oD.createSuper(),void 0,u));e.insertNodeAtConstructorStart(t,n,r)}W7({errorCodes:Xne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Qne(t,n.start),i=Z_e.ChangeTracker.with(e,(e=>Yne(e,t,r)));return[q7(Kne,i,ha.Add_missing_super_call,Kne,ha.Add_all_missing_super_calls)]},fixIds:[Kne],getAllCodeActions:e=>Y7(e,Xne,((t,n)=>Yne(t,e.sourceFile,Qne(n.file,n.start))))});var Zne="fixEnableJsxFlag",ere=[ha.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function tre(e,t){loe(e,t,"jsx",oD.createStringLiteral("react"))}W7({errorCodes:ere,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=Z_e.ChangeTracker.with(e,(e=>tre(e,t)));return[$7(Zne,n,ha.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Zne],getAllCodeActions:e=>Y7(e,ere,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&tre(t,n)}))});var nre="fixNaNEquality",rre=[ha.This_condition_will_always_return_0.code];function ire(e,t,n){const r=T(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=T(r.relatedInformation,(e=>e.code===ha.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=moe(i.file,Ys(i.start,i.length));return void 0!==o&&Qu(o)&&hF(o.parent)?{suggestion:are(i.messageText),expression:o.parent,arg:o}:void 0}function ore(e,t,n,r){const i=oD.createCallExpression(oD.createPropertyAccessExpression(oD.createIdentifier("Number"),oD.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?oD.createPrefixUnaryExpression(54,i):i)}function are(e){const[,t]=rU(e,"\n",0).match(/'(.*)'/)||[];return t}W7({errorCodes:rre,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=ire(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=Z_e.ChangeTracker.with(e,(e=>ore(e,t,s,a)));return[q7(nre,c,[ha.Use_0,o],nre,ha.Use_Number_isNaN_in_all_conditions)]},fixIds:[nre],getAllCodeActions:e=>Y7(e,rre,((t,n)=>{const r=ire(e.program,n.file,Ys(n.start,n.length));r&&ore(t,n.file,r.arg,r.expression)}))}),W7({errorCodes:[ha.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,ha.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,ha.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=wS(t);if(i>=5&&i<99){const t=Z_e.ChangeTracker.with(e,(e=>{loe(e,n,"module",oD.createStringLiteral("esnext"))}));r.push($7("fixModuleOption",t,[ha.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=DS(t);if(o<4||o>99){const t=Z_e.ChangeTracker.with(e,(e=>{if(!Yf(n))return;const t=[["target",oD.createStringLiteral("es2017")]];1===i&&t.push(["module",oD.createStringLiteral("commonjs")]),coe(e,n,t)}));r.push($7("fixTargetOption",t,[ha.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var sre="fixPropertyAssignment",cre=[ha.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function lre(e,t,n){e.replaceNode(t,n,oD.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function ure(e,t){return st(XX(e,t).parent,GN)}W7({errorCodes:cre,fixIds:[sre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=ure(t,n.start),i=Z_e.ChangeTracker.with(e,(t=>lre(t,e.sourceFile,r)));return[q7(sre,i,[ha.Change_0_to_1,"=",":"],sre,[ha.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Y7(e,cre,((e,t)=>lre(e,t.file,ure(t.file,t.start))))});var _re="extendsInterfaceBecomesImplements",dre=[ha.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function pre(e,t){const n=rm(XX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function fre(e,t,n,r){if(e.replaceNode(t,n,oD.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},oD.createToken(28));const o=t.text;let a=n.end;for(;afre(e,t,r,i)));return[q7(_re,o,ha.Change_extends_to_implements,_re,ha.Change_all_extended_interfaces_to_implements)]},fixIds:[_re],getAllCodeActions:e=>Y7(e,dre,((e,t)=>{const n=pre(t.file,t.start);n&&fre(e,t.file,n.extendsToken,n.heritageClauses)}))});var mre="forgottenThisPropertyAccess",gre=ha.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,hre=[ha.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ha.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,gre];function yre(e,t,n){const r=XX(e,t);if(Xw(r)||Qw(r))return{node:r,className:n===gre?rm(r).name.text:void 0}}function vre(e,t,{node:n,className:r}){oZ(n),e.replaceNode(t,n,oD.createPropertyAccessExpression(r?oD.createIdentifier(r):oD.createThis(),n))}W7({errorCodes:hre,getCodeActions(e){const{sourceFile:t}=e,n=yre(t,e.span.start,e.errorCode);if(!n)return;const r=Z_e.ChangeTracker.with(e,(e=>vre(e,t,n)));return[q7(mre,r,[ha.Add_0_to_unresolved_variable,n.className||"this"],mre,ha.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[mre],getAllCodeActions:e=>Y7(e,hre,((t,n)=>{const r=yre(n.file,n.start,n.code);r&&vre(t,e.sourceFile,r)}))});var bre="fixInvalidJsxCharacters_expression",xre="fixInvalidJsxCharacters_htmlEntity",Sre=[ha.Unexpected_token_Did_you_mean_or_gt.code,ha.Unexpected_token_Did_you_mean_or_rbrace.code];W7({errorCodes:Sre,fixIds:[bre,xre],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=Z_e.ChangeTracker.with(e,(e=>Tre(e,n,t,r.start,!1))),o=Z_e.ChangeTracker.with(e,(e=>Tre(e,n,t,r.start,!0)));return[q7(bre,i,ha.Wrap_invalid_character_in_an_expression_container,bre,ha.Wrap_all_invalid_characters_in_an_expression_container),q7(xre,o,ha.Convert_invalid_character_to_its_html_entity_code,xre,ha.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>Y7(e,Sre,((t,n)=>Tre(t,e.preferences,n.file,n.start,e.fixId===xre)))});var kre={">":">","}":"}"};function Tre(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return Ie(kre,e)}(o))return;const a=i?kre[o]:`{${bZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var Cre="deleteUnmatchedParameter",Dre="renameUnmatchedParameter",wre=[ha.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function Ere(e,t){const n=XX(e,t);if(n.parent&&FP(n.parent)&&Xw(n.parent.name)){const e=n.parent,t=Qg(e),r=Kg(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}W7({fixIds:[Cre,Dre],errorCodes:wre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=Ere(t,n.start);if(i)return le(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=Z_e.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return q7(Cre,i,[ha.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Cre,ha.Delete_all_unused_param_tags)}(e,i)),le(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!p(r.parameters))return;const o=e.sourceFile,a=dl(r),s=new Set;for(const e of a)FP(e)&&Xw(e.name)&&s.add(e.name.escapedText);const c=g(r.parameters,(e=>Xw(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const l=oD.updateJSDocParameterTag(i,i.tagName,oD.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),u=Z_e.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,O(a,(e=>e===i?l:e)))));return $7(Dre,u,[ha.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return X7(Z_e.ChangeTracker.with(e,(n=>{Z7(e,wre,(({file:e,start:n})=>{const r=Ere(e,n);r&&t.set(r.signature,le(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===Cre){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}});var Fre="fixUnreferenceableDecoratorMetadata";W7({errorCodes:[ha.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=at(XX(e,n),Xw);if(!r||183!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return T((null==i?void 0:i.declarations)||u,an(dN,xN,uN))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Z_e.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){u6.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=Z_e.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=273===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();Ag(i,(e=>{if(111551&px(e.symbol,o).flags)return!0}))||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program)));let i;return n.length&&(i=le(i,$7(Fre,n,ha.Convert_named_imports_to_namespace_import))),r.length&&(i=le(i,$7(Fre,r,ha.Use_import_type))),i},fixIds:[Fre]});var Nre="unusedIdentifier",Pre="unusedIdentifier_prefix",Are="unusedIdentifier_delete",Ire="unusedIdentifier_deleteImports",Ore="unusedIdentifier_infer",Lre=[ha._0_is_declared_but_its_value_is_never_read.code,ha._0_is_declared_but_never_used.code,ha.Property_0_is_declared_but_its_value_is_never_read.code,ha.All_imports_in_import_declaration_are_unused.code,ha.All_destructured_elements_are_unused.code,ha.All_variables_are_unused.code,ha.All_type_parameters_are_unused.code];function Rre(e,t,n){e.replaceNode(t,n.parent,oD.createKeywordTypeNode(159))}function jre(e,t){return q7(Nre,e,t,Are,ha.Delete_all_unused_declarations)}function Mre(e,t,n){e.delete(t,gn.checkDefined(st(n.parent,Ep).typeParameters,"The type parameter to delete should exist"))}function Bre(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function Jre(e){return 102===e.kind?at(e.parent,_N):void 0}function zre(e,t){return eN(t.parent)&&xe(t.parent.getChildren(e))===t}function $re(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function qre(e,t,n,r){t!==ha.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=st(r.parent,zE).typeParameter.name),Xw(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,oD.createIdentifier(`_${r.text}`)),fE(r.parent)&&jc(r.parent).forEach((t=>{Xw(t.name)&&e.replaceNode(n,t.name,oD.createIdentifier(`_${t.name.text}`))}))))}function Ure(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(fE(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 174:case 176:const c=s.parameters.indexOf(n),l=vE(s)?s.name:s,u=Nce.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(u)for(const e of u)for(const t of e.references)if(t.kind===Nce.EntryKind.Node){const e=cE(t.node)&&iF(t.node.parent)&&t.node.parent.arguments.length>c,r=nF(t.node.parent)&&cE(t.node.parent.expression)&&iF(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(vE(t.node.parent)||yE(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!Nce.Core.eachSymbolReferenceInFile(n,e,t,(e=>Xw(e)&&iF(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||Wre(s,n,a);case 218:case 219:return Wre(s,n,a);case 178:return!1;case 177:return!0;default:return gn.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!Xw(n.name)||Nce.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)au(r)&&e.deleteModifier(t,r);else!n.initializer&&Vre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&Xw(e)&&Nce.Core.isSymbolReferencedInFile(e,r,n))){const r=dN(c)?e:dE(c)?c.parent:c;gn.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),Xw(t)&&Nce.Core.eachSymbolReferenceInFile(t,r,e,(t=>{nF(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&function(e){return(hF(e.parent)&&e.parent.left===e||(gF(e.parent)||mF(e.parent))&&e.parent.operand===e)&&jF(e.parent.parent)}(t)&&n.delete(e,t.parent.parent)}))}function Vre(e,t,n){const r=e.parent.parameters.indexOf(e);return!Nce.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function Wre(e,t,n){const r=e.parameters,i=r.indexOf(t);return gn.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>Xw(e.name)&&!e.symbol.isReferenced)):i===r.length-1}W7({errorCodes:Lre,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=XX(n,e.span.start);if(IP(s))return[jre(Z_e.ChangeTracker.with(e,(e=>e.delete(n,s))),ha.Remove_template_tag)];if(30===s.kind)return[jre(Z_e.ChangeTracker.with(e,(e=>Mre(e,n,s))),ha.Remove_type_parameters)];const c=Jre(s);if(c){const t=Z_e.ChangeTracker.with(e,(e=>e.delete(n,c)));return[q7(Nre,t,[ha.Remove_import_from_0,Dx(c)],Ire,ha.Delete_all_unused_imports)]}if(Bre(s)){const t=Z_e.ChangeTracker.with(e,(e=>Ure(n,s,e,o,a,r,i,!1)));if(t.length)return[q7(Nre,t,[ha.Remove_unused_declaration_for_Colon_0,s.getText(n)],Ire,ha.Delete_all_unused_imports)]}if(QE(s.parent)||YE(s.parent)){if(fE(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?ha.Remove_unused_declarations_for_Colon_0:ha.Remove_unused_declaration_for_Colon_0,O(t,(e=>e.getText(n))).join(", ")];return[jre(Z_e.ChangeTracker.with(e,(e=>function(e,t,n){f(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[jre(Z_e.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(ZF(r)&&r.initializer&&$u(r.initializer))if(eN(r.parent)&&p(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:zY(e.host,e.formatContext.options)+n.text.slice(ZY(n.text,o-1),o),suffix:IZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),ha.Remove_unused_destructuring_declaration)]}if(zre(n,s))return[jre(Z_e.ChangeTracker.with(e,(e=>$re(e,n,s.parent))),ha.Remove_variable_statement)];if(Xw(s)&&tN(s.parent))return[jre(Z_e.ChangeTracker.with(e,(e=>function(e,t,n){const r=n.symbol.declarations;if(r)for(const n of r)e.delete(t,n)}(e,n,s.parent))),[ha.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const l=[];if(140===s.kind){const t=Z_e.ChangeTracker.with(e,(e=>Rre(e,n,s))),r=st(s.parent,zE).typeParameter.name.text;l.push(q7(Nre,t,[ha.Replace_infer_0_with_unknown,r],Ore,ha.Replace_all_unused_infer_with_unknown))}else{const t=Z_e.ChangeTracker.with(e,(e=>Ure(n,s,e,o,a,r,i,!1)));if(t.length){const e=dE(s.parent)?s.parent:s;l.push(jre(t,[ha.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const u=Z_e.ChangeTracker.with(e,(e=>qre(e,t,n,s)));return u.length&&l.push(q7(Nre,u,[ha.Prefix_0_with_an_underscore,s.getText(n)],Pre,ha.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[Pre,Are,Ire,Ore],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return Y7(e,Lre,((a,s)=>{const c=XX(t,s.start);switch(e.fixId){case Pre:qre(a,s.code,t,c);break;case Ire:{const e=Jre(c);e?a.delete(t,e):Bre(c)&&Ure(t,c,a,i,o,n,r,!0);break}case Are:if(140===c.kind||Bre(c))break;if(IP(c))a.delete(t,c);else if(30===c.kind)Mre(a,t,c);else if(QE(c.parent)){if(c.parent.parent.initializer)break;fE(c.parent.parent)&&!Vre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(YE(c.parent.parent)&&c.parent.parent.parent.initializer)break;zre(t,c)?$re(a,t,c.parent):Ure(t,c,a,i,o,n,r,!0)}break;case Ore:140===c.kind&&Rre(a,t,c);break;default:gn.fail(JSON.stringify(e.fixId))}}))}});var Hre="fixUnreachableCode",Gre=[ha.Unreachable_code_detected.code];function Kre(e,t,n,r,i){const o=XX(t,n),a=yc(o,b_);if(a.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:gn.formatSyntaxKind(a.kind),tokenKind:gn.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});gn.fail("Token and statement should start at the same point. "+e)}const s=(OF(a.parent)?a.parent:a).parent;if(!OF(a.parent)||a===xe(a.parent.statements))switch(s.kind){case 245:if(s.elseStatement){if(OF(a.parent))break;return void e.replaceNode(t,a,oD.createBlock(u))}case 247:case 248:return void e.delete(t,s)}if(OF(a.parent)){const i=n+r,o=gn.checkDefined(function(e,t){let n;for(const r of e){if(!t(r))break;n=r}return n}(dT(a.parent.statements,a),(e=>e.posKre(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[q7(Hre,t,ha.Remove_unreachable_code,Hre,ha.Remove_all_unreachable_code)]},fixIds:[Hre],getAllCodeActions:e=>Y7(e,Gre,((e,t)=>Kre(e,t.file,t.start,t.length,t.code)))});var Xre="fixUnusedLabel",Qre=[ha.Unused_label.code];function Yre(e,t,n){const r=XX(t,n),i=st(r.parent,KF),o=r.getStart(t),a=i.statement.getStart(t),s=ex(o,a,t)?a:is(t.text,RX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}W7({errorCodes:Qre,getCodeActions(e){const t=Z_e.ChangeTracker.with(e,(t=>Yre(t,e.sourceFile,e.span.start)));return[q7(Xre,t,ha.Remove_unused_label,Xre,ha.Remove_all_unused_labels)]},fixIds:[Xre],getAllCodeActions:e=>Y7(e,Qre,((e,t)=>Yre(e,t.file,t.start)))});var Zre="fixJSDocTypes_plain",eie="fixJSDocTypes_nullable",tie=[ha.JSDoc_types_can_only_be_used_inside_documentation_comments.code,ha._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,ha._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function nie(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function rie(e,t,n){const r=yc(XX(e,t),iie),i=r&&r.type;return i&&{typeNode:i,type:oie(n,i)}}function iie(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function oie(e,t){if(sP(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(le([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}W7({errorCodes:tie,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=rie(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,Zre,ha.Change_all_jsdoc_style_types_to_TypeScript)];return 314===i.kind&&s.push(c(o,eie,ha.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return q7("jdocTypes",Z_e.ChangeTracker.with(e,(e=>nie(e,t,i,r,n))),[ha.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[Zre,eie],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return Y7(e,tie,((e,n)=>{const o=rie(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=314===a.kind&&t===eie?i.getNullableType(s,32768):s;nie(e,r,a,c,i)}))}});var aie="fixMissingCallParentheses",sie=[ha.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function cie(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function lie(e,t){const n=XX(e,t);if(nF(n.parent)){let e=n.parent;for(;nF(e.parent);)e=e.parent;return e.name}if(Xw(n))return n}W7({errorCodes:sie,fixIds:[aie],getCodeActions(e){const{sourceFile:t,span:n}=e,r=lie(t,n.start);if(!r)return;const i=Z_e.ChangeTracker.with(e,(t=>cie(t,e.sourceFile,r)));return[q7(aie,i,ha.Add_missing_call_parentheses,aie,ha.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Y7(e,sie,((e,t)=>{const n=lie(t.file,t.start);n&&cie(e,t.file,n)}))});var uie="fixMissingTypeAnnotationOnExports",_ie="add-annotation",die="add-type-assertion",pie=[ha.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,ha.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,ha.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ha.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ha.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ha.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ha.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,ha.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,ha.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,ha.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,ha.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,ha.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,ha.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,ha.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,ha.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,ha.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,ha.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,ha.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,ha.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,ha.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,ha.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],fie=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),mie=531469;function gie(e,t,n,r,i){const o=hie(n,r,i);o.result&&o.textChanges.length&&t.push(q7(e,o.textChanges,o.result,uie,ha.Add_all_missing_type_annotations))}function hie(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=Z_e.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=DS(a.getCompilerOptions()),l=kee(e.sourceFile,e.program,e.preferences,e.host),u=new Set,_=new Set,d=hq({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=XX(o,t.start),r=g(n);if(r)return tN(r)?function(e){var t;if(null==_?void 0:_.has(e))return;null==_||_.add(e);const n=s.getTypeAtLocation(e),r=s.getPropertiesOfType(n);if(!e.name||0===r.length)return;const c=[];for(const t of r)Ss(t.name,DS(a.getCompilerOptions()))&&(t.valueDeclaration&&ZF(t.valueDeclaration)||c.push(oD.createVariableStatement([oD.createModifier(95)],oD.createVariableDeclarationList([oD.createVariableDeclaration(t.name,void 0,D(s.getTypeOfSymbol(t),e),void 0)]))));if(0===c.length)return;const l=[];(null==(t=e.modifiers)?void 0:t.some((e=>95===e.kind)))&&l.push(oD.createModifier(95)),l.push(oD.createModifier(138));const u=oD.createModuleDeclaration(l,e.name,oD.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,u),[ha.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=function(e){return yc(e,(e=>fie.has(e.kind)&&(!QE(e)&&!YE(e)||ZF(e.parent))))}(n);return c?h(c):void 0},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=XX(o,t.start);if(g(n))return;const r=F(n,t);if(!r||sh(r)||sh(r.parent))return;const a=Qu(r),c=GN(r);if(!c&&h_(r))return;if(yc(r,Fu))return;if(yc(r,XN))return;if(a&&(yc(r,VN)||yc(r,wu)))return;if(xF(r))return;const l=yc(r,ZF),u=l&&s.getTypeAtLocation(l);if(u&&8192&u.flags)return;if(!a&&!c)return;const{typeNode:_,mutatedTarget:d}=x(r,u);return _&&!d?(c?i.insertNodeAt(o,r.end,m(eZ(r.name),_),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){return f(e)&&(e=oD.createParenthesizedExpression(e)),oD.createAsExpression(oD.createSatisfiesExpression(e,eZ(t)),t)}(eZ(r),_)):gn.assertNever(r),[ha.Add_satisfies_and_an_inline_type_assertion_with_0,E(_)]):void 0},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=F(XX(o,t.start),t);if(!n||sh(n)||sh(n.parent))return;if(!Qu(n))return;if(eF(n))return i.replaceNode(o,n,m(n,oD.createTypeReferenceNode("const"))),[ha.Mark_array_literal_as_const];const r=yc(n,HN);if(r){if(r===n.parent&&fb(n))return;const e=oD.createUniqueName(k3(n,o,s,o),16);let t=n,a=n;if(xF(t)&&(t=uh(t.parent),a=T(t.parent)?t=t.parent:m(t,oD.createTypeReferenceNode("const"))),fb(t))return;const c=oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(e,void 0,void 0,a)],2)),l=yc(n,b_);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,oD.createAsExpression(oD.cloneNode(e),oD.createTypeQueryNode(oD.cloneNode(e)))),[ha.Extract_to_variable_and_replace_with_0_as_typeof_0,E(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(fb(e)||iF(e)||tF(e)||eF(e))}function m(e,t){return f(e)&&(e=oD.createParenthesizedExpression(e)),oD.createAsExpression(e,t)}function g(e){const t=yc(e,(e=>b_(e)?"quit":gC(e)));if(t&&gC(t)){let e=t;if(hF(e)&&(e=e.left,!gC(e)))return;const n=s.getTypeAtLocation(e.expression);if(!n)return;if(X(s.getPropertiesOfType(n),(e=>e.valueDeclaration===t||e.valueDeclaration===t.parent))){const e=n.symbol.valueDeclaration;if(e){if(VT(e)&&ZF(e.parent))return e.parent;if(tN(e))return e}}}}function h(e){if(!(null==u?void 0:u.has(e)))switch(null==u||u.add(e),e.kind){case 169:case 172:case 260:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(Cd(e),e.type,t):i.tryInsertTypeAnnotation(Cd(e),e,t),[ha.Add_annotation_of_type_0,E(t)]}(e);case 219:case 218:case 262:case 174:case 177:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);return n?(i.tryInsertTypeAnnotation(t,e,n),[ha.Add_return_type_0,E(n)]):void 0}(e,o);case 277:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=oD.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(n,void 0,t,e.expression)],2)),oD.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[ha.Extract_default_export_to_variable]}(e);case 263:return function(e){var t,n;const r=null==(t=e.heritageClauses)?void 0:t.find((e=>96===e.token)),a=null==r?void 0:r.types[0];if(!a)return;const{typeNode:s}=x(a.expression);if(!s)return;const c=oD.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),l=oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(c,void 0,s,a.expression)],2));i.insertNodeBefore(o,e,l);const u=ys(o.text,a.end),_=(null==(n=null==u?void 0:u[u.length-1])?void 0:n.end)??a.end;return i.replaceRange(o,{pos:a.getFullStart(),end:_},c,{prefix:" "}),[ha.Extract_base_class_to_variable]}(e);case 206:case 207:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(Xw(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=oD.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];YE(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const e of c){if(e.element.propertyName&&dE(e.element.propertyName)){const t=e.element.propertyName.expression,n=oD.getGeneratedNameForNode(t),r=oD.createVariableDeclaration(n,void 0,void 0,t),i=oD.createVariableDeclarationList([r],2),o=oD.createVariableStatement(void 0,i);s.push(o),l.set(t,n)}const n=e.element.name;if(YE(n))y(n,c,e);else if(QE(n))v(n,c,e);else{const{typeNode:i}=x(n);let o=b(e,l);if(e.element.initializer){const n=null==(t=e.element)?void 0:t.propertyName,r=oD.createUniqueName(n&&Xw(n)?n.text:"temp",16);s.push(oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(r,void 0,void 0,o)],2))),o=oD.createConditionalExpression(oD.createBinaryExpression(r,oD.createToken(37),oD.createIdentifier("undefined")),oD.createToken(58),e.element.initializer,oD.createToken(59),o)}const a=Lv(r,32)?[oD.createToken(95)]:void 0;s.push(oD.createVariableStatement(a,oD.createVariableDeclarationList([oD.createVariableDeclaration(n,void 0,i,o)],2)))}}return r.declarationList.declarations.length>1&&s.push(oD.updateVariableStatement(r,r.modifiers,oD.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter((t=>t!==e.parent))))),i.replaceNodeWithNodes(o,r,s),[ha.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,t,n){for(let r=0;r=0;--e){const i=n[e].expression;0===i.kind?r=oD.createPropertyAccessChain(r,void 0,oD.createIdentifier(i.text)):1===i.kind?r=oD.createElementAccessExpression(r,t.get(i.computed)):2===i.kind&&(r=oD.createElementAccessExpression(r,i.arrayIndex))}return r}function x(e,n){if(1===t)return C(e);let i;if(sh(e)){const t=s.getSignatureFromDeclaration(e);if(t){const n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:w(n,yc(e,h_)??o,c(n.type)),mutatedTarget:!1}:r;i=s.getReturnTypeOfSignature(t)}}else i=s.getTypeAtLocation(e);if(!i)return r;if(2===t){n&&(i=n);const e=s.getWidenedLiteralType(i);if(s.isTypeAssignableTo(e,i))return r;i=e}const a=yc(e,h_)??o;return fE(e)&&s.requiresAddingImplicitUndefined(e,a)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:D(i,a,c(i)),mutatedTarget:!1};function c(t){return(ZF(e)||hE(e)&&Lv(e,264))&&8192&t.flags?1048576:0}}function S(e){return oD.createTypeQueryNode(eZ(e))}function k(e,t,n,a,s,c,l,u){const _=[],d=[];let p;const f=yc(e,b_);for(const t of a(e))s(t)?(g(),fb(t.expression)?(_.push(S(t.expression)),d.push(t)):m(t.expression)):(p??(p=[])).push(t);return 0===d.length?r:(g(),i.replaceNode(o,e,l(d)),{typeNode:u(_),mutatedTarget:!0});function m(e){const r=oD.createUniqueName(t+"_Part"+(d.length+1),16),a=n?oD.createAsExpression(e,oD.createTypeReferenceNode("const")):e,s=oD.createVariableStatement(void 0,oD.createVariableDeclarationList([oD.createVariableDeclaration(r,void 0,void 0,a)],2));i.insertNodeBefore(o,f,s),_.push(S(r)),d.push(c(r))}function g(){p&&(m(l(p)),p=void 0)}}function T(e){return Yu(e)&&Fl(e.type)}function C(e){if(fE(e))return r;if(GN(e))return{typeNode:S(e.name),mutatedTarget:!1};if(fb(e))return{typeNode:S(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(eF(e)){const t=yc(e,ZF);return function(e,t="temp"){const n=!!yc(e,T);return n?k(e,t,n,(e=>e.elements),xF,oD.createSpreadElement,(e=>oD.createArrayLiteralExpression(e,!0)),(e=>oD.createTupleTypeNode(e.map(oD.createRestTypeNode)))):r}(e,t&&Xw(t.name)?t.name.text:void 0)}if(tF(e)){const t=yc(e,ZF);return function(e,t="temp"){return k(e,t,!!yc(e,T),(e=>e.properties),KN,oD.createSpreadAssignment,(e=>oD.createObjectLiteralExpression(e,!0)),oD.createIntersectionTypeNode)}(e,t&&Xw(t.name)?t.name.text:void 0)}if(ZF(e)&&e.initializer)return C(e.initializer);if(yF(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:oD.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function D(e,t,n=0){let r=!1;const i=eoe(s,e,t,mie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!i)return;const o=Zie(i,l,c);return r?oD.createKeywordTypeNode(133):o}function w(e,t,n=0){let r=!1;const i=toe(s,l,e,t,c,mie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?oD.createKeywordTypeNode(133):i}function E(e){_D(e,1);const t=d.printNode(4,e,o);return t.length>Q_?t.substring(0,Q_-3)+"...":(_D(e,0),t)}function F(e,t){for(;e&&e.endt.addTypeAnnotation(e.span))),gie(_ie,t,e,1,(t=>t.addTypeAnnotation(e.span))),gie(_ie,t,e,2,(t=>t.addTypeAnnotation(e.span))),gie(die,t,e,0,(t=>t.addInlineAssertion(e.span))),gie(die,t,e,1,(t=>t.addInlineAssertion(e.span))),gie(die,t,e,2,(t=>t.addInlineAssertion(e.span))),gie("extract-expression",t,e,0,(t=>t.extractAsVariable(e.span))),t},getAllCodeActions:e=>X7(hie(e,0,(t=>{Z7(e,pie,(e=>{t.addTypeAnnotation(e)}))})).textChanges)});var yie="fixAwaitInSyncFunction",vie=[ha.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ha.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ha.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ha.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function bie(e,t){const n=tm(XX(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=RX(n,100,e);break;case 219:r=RX(n,n.typeParameters?30:21,e)||xe(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:ZF(i.parent)&&i.parent.type&&FE(i.parent.type)?i.parent.type.type:void 0)};var i}function xie(e,t,{insertBefore:n,returnType:r}){if(r){const n=hm(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,oD.createTypeReferenceNode("Promise",oD.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}W7({errorCodes:vie,getCodeActions(e){const{sourceFile:t,span:n}=e,r=bie(t,n.start);if(!r)return;const i=Z_e.ChangeTracker.with(e,(e=>xie(e,t,r)));return[q7(yie,i,ha.Add_async_modifier_to_containing_function,yie,ha.Add_all_missing_async_modifiers)]},fixIds:[yie],getAllCodeActions:function(e){const t=new Set;return Y7(e,vie,((n,r)=>{const i=bie(r.file,r.start);i&&Ex(t,QB(i.insertBefore))&&xie(n,e.sourceFile,i)}))}});var Sie=[ha._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,ha._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],kie="fixPropertyOverrideAccessor";function Tie(e,t,n,r,i){let o,a;if(r===ha._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===ha._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=XX(e,t).parent;gn.assert(vu(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;gn.assert(yu(s),"erroneous accessors should only be inside classes");const c=Ce(koe(s,n));if(!c)return[];const l=Sc($p(r.name)),u=n.getPropertyOfType(n.getTypeAtLocation(c),l);if(!u||!u.valueDeclaration)return[];o=u.valueDeclaration.pos,a=u.valueDeclaration.end,e=Cd(u.valueDeclaration)}else gn.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return goe(e,i.program,o,a,i,ha.Generate_get_and_set_accessors.message)}W7({errorCodes:Sie,getCodeActions(e){const t=Tie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[q7(kie,t,ha.Generate_get_and_set_accessors,kie,ha.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[kie],getAllCodeActions:e=>Y7(e,Sie,((t,n)=>{const r=Tie(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))});var Cie="inferFromUsage",Die=[ha.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,ha.Variable_0_implicitly_has_an_1_type.code,ha.Parameter_0_implicitly_has_an_1_type.code,ha.Rest_parameter_0_implicitly_has_an_any_type.code,ha.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,ha._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,ha.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,ha.Member_0_implicitly_has_an_1_type.code,ha.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,ha.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ha.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ha.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,ha.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,ha._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,ha.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,ha.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ha.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function wie(e,t){switch(e){case ha.Parameter_0_implicitly_has_an_1_type.code:case ha.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return kE(tm(t))?ha.Infer_type_of_0_from_usage:ha.Infer_parameter_types_from_usage;case ha.Rest_parameter_0_implicitly_has_an_any_type.code:case ha.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return ha.Infer_parameter_types_from_usage;case ha.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return ha.Infer_this_type_of_0_from_usage;default:return ha.Infer_type_of_0_from_usage}}function Eie(e,t,n,r,i,o,a,s,c){if(!iu(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,u=kee(t,i,c,s);switch(r=function(e){switch(e){case ha.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return ha.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case ha.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ha.Variable_0_implicitly_has_an_1_type.code;case ha.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ha.Parameter_0_implicitly_has_an_1_type.code;case ha.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return ha.Rest_parameter_0_implicitly_has_an_any_type.code;case ha.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return ha.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case ha._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return ha._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case ha.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return ha.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case ha.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ha.Member_0_implicitly_has_an_1_type.code}return e}(r)){case ha.Member_0_implicitly_has_an_1_type.code:case ha.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(ZF(l)&&a(l)||hE(l)||gE(l))return Fie(e,u,t,l,i,s,o),u.writeFixes(e),l;if(nF(l)){const n=DZ(Oie(l.name,i,o),l,i,s);if(n){const r=oD.createJSDocTypeTag(void 0,oD.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,st(l.parent.parent,jF),[r])}return u.writeFixes(e),l}return;case ha.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&ZF(t.valueDeclaration)&&a(t.valueDeclaration)?(Fie(e,u,Cd(t.valueDeclaration),t.valueDeclaration,i,s,o),u.writeFixes(e),t.valueDeclaration):void 0}}const _=tm(n);if(void 0===_)return;let d;switch(r){case ha.Parameter_0_implicitly_has_an_1_type.code:if(kE(_)){Nie(e,u,t,_,i,s,o),d=_;break}case ha.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(_)){const n=st(l,fE);!function(e,t,n,r,i,o,a,s){if(!Xw(r.name))return;const c=function(e,t,n,r){const i=Lie(e,t,n,r);return i&&Rie(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:Xw(e.name)?Oie(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(gn.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),jm(i))Aie(e,n,c,o,a);else{const r=uF(i)&&!RX(i,21,n);r&&e.insertNodeBefore(n,xe(i.parameters),oD.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||Pie(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,Te(i.parameters),oD.createToken(22))}}(e,u,t,n,_,i,s,o),d=n}break;case ha.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case ha._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:SE(_)&&Xw(_.name)&&(Pie(e,u,t,_,Oie(_.name,i,o),i,s),d=_);break;case ha.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:kE(_)&&(Nie(e,u,t,_,i,s,o),d=_);break;case ha.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Z_e.isThisTypeAnnotatable(_)&&a(_)&&(function(e,t,n,r,i,o){const a=Lie(n,t,r,o);if(!a||!a.length)return;const s=Rie(r,a,o).thisParameter(),c=DZ(s,n,r,i);c&&(jm(n)?function(e,t,n,r){e.addJSDocTags(t,n,[oD.createJSDocThisTag(void 0,oD.createJSDocTypeExpression(r))])}(e,t,n,c):e.tryInsertThisTypeAnnotation(t,n,c))}(e,t,_,i,s,o),d=_);break;default:return gn.fail(String(r))}return u.writeFixes(e),d}function Fie(e,t,n,r,i,o,a){Xw(r.name)&&Pie(e,t,n,r,Oie(r.name,i,a),i,o)}function Nie(e,t,n,r,i,o,a){const s=ve(r.parameters);if(s&&Xw(r.name)&&Xw(s.name)){let c=Oie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=Oie(s.name,i,a)),jm(r)?Aie(e,n,[{declaration:s,type:c}],i,o):Pie(e,t,n,s,c,i,o)}}function Pie(e,t,n,r,i,o,a){const s=DZ(i,r,o,a);if(s)if(jm(n)&&171!==r.kind){const t=ZF(r)?at(r.parent.parent,LF):r;if(!t)return;const i=oD.createJSDocTypeExpression(s),o=SE(r)?oD.createJSDocReturnTag(void 0,i,void 0):oD.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=doe(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode))&&(f(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0)})(s,r,n,e,t,DS(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function Aie(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=q(n,(e=>{const t=e.declaration;if(t.initializer||ll(t)||!Xw(t.name))return;const n=e.type&&DZ(e.type,t,r,i);return n?(_D(oD.cloneNode(t.name),7168),{name:oD.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0}));if(a.length)if(uF(o)||lF(o)){const n=uF(o)&&!RX(o,21,t);n&&e.insertNodeBefore(t,xe(o.parameters),oD.createToken(21)),f(a,(({typeNode:n,param:r})=>{const i=oD.createJSDocTypeTag(void 0,oD.createJSDocTypeExpression(n)),o=oD.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,Te(o.parameters),oD.createToken(22))}else{const n=O(a,(({name:e,typeNode:t,isOptional:n})=>oD.createJSDocParameterTag(void 0,e,!!n,oD.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function Iie(e,t,n){return q(Nce.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==Nce.EntryKind.Span?at(e.node,Xw):void 0))}function Oie(e,t,n){return Rie(t,Iie(e,t,n),n).single()}function Lie(e,t,n,r){let i;switch(e.kind){case 176:i=RX(e,137,t);break;case 219:case 218:const n=e.parent;i=(ZF(n)||hE(n))&&Xw(n.name)?n.name:e.name;break;case 262:case 174:case 173:i=e.name}if(i)return Iie(i,n,r)}function Rie(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return d(s(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),c(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map(((t,o)=>{const c=[],l=W_(t);let u=!1;for(const e of a)if(e.argumentTypes.length<=o)u=jm(i),c.push(r.getUndefinedType());else if(l)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,a(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:M(e,(e=>e.candidateTypes)),properties:n,calls:M(e,(e=>e.calls)),constructs:M(e,(e=>e.constructs)),numberIndex:f(e,(e=>e.numberIndex)),stringIndex:f(e,(e=>e.stringIndex)),candidateThisTypes:M(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function s(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),c(r,t);return m(t)}function c(e,t){for(;bb(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){v(t,iF(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 226:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||260!==e.parent.parent.kind&&!_b(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(t));c(e,n.return_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):l(e,t);break;case 211:!function(e,t){const n=xc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,r),t.properties.set(n,r)}(e.parent,t);break;case 212:!function(e,t,n){if(t!==e.argumentExpression){const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,i),296&t.flags?n.numberIndex=i:n.stringIndex=i}else n.isNumberOrString=!0}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=ZF(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{const{name:n,initializer:i}=e.parent;if(e===n){i&&v(t,r.getTypeAtLocation(i));break}}default:return l(e,t)}}function l(e,t){wm(e)&&v(t,r.getContextualType(e))}function _(e){return d(m(e))}function d(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(gn.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&Tx(e)),low:e=>!!(16&Tx(e))}]);const i=n.filter((e=>16&Tx(e)));return i.length&&(n=n.filter((e=>!(16&Tx(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=Qe();for(const l of e){for(const e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));const e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),a=a||e.isReadonly);const u=r.getIndexInfoOfType(l,1);u&&(o.push(u.type),s=s||u.isReadonly)}const l=K(c,((t,n)=>{const i=n.lengthr.getBaseTypeOfLiteralType(e))),l=(null==(a=e.calls)?void 0:a.length)?g(e):void 0;return l&&c?s.push(r.getUnionType([l,...c],2)):(l&&s.push(l),p(c)&&s.push(...c)),s.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter((t=>function(e,t){return!!t.properties&&!ld(t.properties,((t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);return!i||(t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,td(),[y(o)],u,u))):!r.isTypeAssignableTo(i,_(t)));var o}))}(t,e)));return 0function(e,t){if(!(4&Tx(e)&&t.properties))return e;const n=e.target,o=Ce(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach(((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);gn.assert(!!i,"generic should have all the properties of its reference."),a.push(...h(i,_(e),o))})),i[e.symbol.escapedName](d(a))}(t,e))):[]}(e)),s}function g(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const i=r.createSymbol(4,n);i.links.type=_(e),t.set(n,i)}));const n=e.calls?[y(e.calls)]:[],i=e.constructs?[y(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),_(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function h(e,t,n){if(e===n)return[t];if(3145728&e.flags)return M(e.types,(e=>h(e,t,n)));if(4&Tx(e)&&4&Tx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;ee.argumentTypes.length)));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[i]))&&(n.flags|=16777216),t.push(n)}const i=_(a(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}W7({errorCodes:Die,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=XX(t,r);let l;const u=Z_e.ChangeTracker.with(e,(e=>{l=Eie(e,t,c,i,n,o,ut,a,s)})),_=l&&Ac(l);return _&&0!==u.length?[q7(Cie,u,[wie(i,c),np(_)],Cie,ha.Infer_all_types_from_usage)]:void 0},fixIds:[Cie],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=qQ();return Y7(e,Die,((e,s)=>{Eie(e,t,XX(s.file,s.start),s.code,n,r,a,i,o)}))}});var jie="fixReturnTypeInAsyncFunction",Mie=[ha.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function Bie(e,t,n){if(jm(e))return;const r=yc(XX(e,n),du),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function Jie(e,t,n,r){e.replaceNode(t,n,oD.createTypeReferenceNode("Promise",[r]))}W7({errorCodes:Mie,fixIds:[jie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=Bie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,u=Z_e.ChangeTracker.with(e,(e=>Jie(e,t,a,c)));return[q7(jie,u,[ha.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],jie,ha.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Y7(e,Mie,((t,n)=>{const r=Bie(n.file,e.program.getTypeChecker(),n.start);r&&Jie(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))});var zie="disableJsDiagnostics",$ie="disableJsDiagnostics",qie=q(Object.keys(ha),(e=>{const t=ha[e];return 1===t.category?t.code:void 0}));function Uie(e,t,n,r){const{line:i}=Ga(t,n);r&&!W(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function Vie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Gie(c,e,n,r,i,o,a,void 0)}function Wie(e){return{trackSymbol:()=>!1,moduleResolverHost:YQ(e.program,e.host)}}W7({errorCodes:qie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!jm(t)||!lT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":zY(i,o.options),s=[$7(zie,[Q7(t.fileName,[MQ(t.checkJsDirective?Zs(t.checkJsDirective.pos,t.checkJsDirective.end):Ys(0,0),`// @ts-nocheck${a}`)])],ha.Disable_checking_for_this_file)];return Z_e.isValidLocationToAddComment(t,r.start)&&s.unshift(q7(zie,Z_e.ChangeTracker.with(e,(e=>Uie(e,t,r.start))),ha.Ignore_this_error_message,$ie,ha.Add_ts_ignore_to_all_error_messages)),s},fixIds:[$ie],getAllCodeActions:e=>{const t=new Set;return Y7(e,qie,((e,n)=>{Z_e.isValidLocationToAddComment(n.file,n.start)&&Uie(e,n.file,n.start,t)}))}});var Hie=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Hie||{});function Gie(e,t,n,r,i,o,a,s,c=3,l=!1){const _=e.getDeclarations(),d=ve(_),f=r.program.getTypeChecker(),m=DS(r.program.getCompilerOptions()),g=(null==d?void 0:d.kind)??171,h=function(e,t){if(262144&_x(e)){const t=e.links.nameType;if(t&&fC(t))return oD.createIdentifier(Sc(mC(t)))}return eZ(Ac(t),!1)}(e,d),y=d?Hv(d):0;let v=256&y;v|=1&y?1:4&y?4:0,d&&bu(d)&&(v|=512);const b=function(){let e;return v&&(e=ue(e,oD.createModifiersFromModifierFlags(v))),r.program.getCompilerOptions().noImplicitOverride&&d&&Bv(d)&&(e=le(e,oD.createToken(164))),e&&oD.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),S=!!(16777216&e.flags),k=!!(33554432&t.flags)||l,T=iY(n,i),C=1|(0===T?268435456:0);switch(g){case 171:case 172:let n=f.typeToTypeNode(x,t,C,8,Wie(r));if(o){const e=doe(n,m);e&&(n=e.typeNode,foe(o,e.symbols))}a(oD.createPropertyDeclaration(b,d?w(h):e.getName(),S&&2&c?oD.createToken(58):void 0,n,void 0));break;case 177:case 178:{gn.assertIsDefined(_);let e=f.typeToTypeNode(x,t,C,void 0,Wie(r));const n=bv(_,d),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=doe(e,m);t&&(e=t.typeNode,foe(o,t.symbols))}for(const t of i)if(SE(t))a(oD.createGetAccessorDeclaration(b,w(h),u,F(e),E(s,T,k)));else{gn.assertNode(t,kE,"The counterpart to a getter should be a setter");const n=dv(t),r=n&&Xw(n.name)?kc(n.name):void 0;a(oD.createSetAccessorDeclaration(b,w(h),ooe(1,[r],[F(e)],1,!1),E(s,T,k)))}break}case 173:case 174:gn.assertIsDefined(_);const i=x.isUnion()?M(x.types,(e=>e.getCallSignatures())):x.getCallSignatures();if(!X(i))break;if(1===_.length){gn.assert(1===i.length,"One declaration implies one signature");const e=i[0];D(T,e,b,w(h),E(s,T,k));break}for(const e of i)e.declaration&&33554432&e.declaration.flags||D(T,e,b,w(h));if(!k)if(_.length>i.length){const e=f.getSignatureFromDeclaration(_[_.length-1]);D(T,e,b,w(h),E(s,T))}else gn.assert(_.length===i.length,"Declarations and signatures should match count"),a(function(e,t,n,r,i,o,a,s,c){let l=r[0],u=r[0].minArgumentCount,_=!1;for(const e of r)u=Math.min(e.minArgumentCount,u),iJ(e)&&(_=!0),e.parameters.length>=l.parameters.length&&(!iJ(e)||iJ(l))&&(l=e);const d=l.parameters.length-(iJ(l)?1:0),f=l.parameters.map((e=>e.name)),m=ooe(d,f,void 0,u,!1);if(_){const e=oD.createParameterDeclaration(void 0,oD.createToken(26),f[d]||"rest",d>=u?oD.createToken(58):void 0,oD.createArrayTypeNode(oD.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return oD.createMethodDeclaration(e,void 0,t,n?oD.createToken(58):void 0,r,i,o,s||aoe(a))}(a,i,o,void 0,m,function(e,t,n,r){if(p(e)){const i=t.getUnionType(O(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,Wie(n))}}(r,e,t,n),s,c)}(f,r,t,i,w(h),S&&!!(1&c),b,T,s))}function D(e,n,i,s,l){const u=Kie(174,r,e,n,l,s,i,S&&!!(1&c),t,o);u&&a(u)}function w(e){return Xw(e)&&"constructor"===e.escapedText?oD.createComputedPropertyName(oD.createStringLiteral(kc(e),0===T)):eZ(e,!1)}function E(e,t,n){return n?void 0:eZ(e,!1)||aoe(t)}function F(e){return eZ(e,!1)}}function Kie(e,t,n,r,i,o,a,s,c,l){const u=t.program,_=u.getTypeChecker(),d=DS(u.getCompilerOptions()),p=jm(c),f=524545|(0===n?268435456:0),m=_.signatureToSignatureDeclaration(r,e,c,f,8,Wie(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:eZ(m.type);if(l){if(g){const e=R(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=doe(t,d);e&&(t=e.typeNode,foe(l,e.symbols))}if(n){const e=doe(n,d);e&&(n=e.typeNode,foe(l,e.symbols))}return oD.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=fI(oD.createNodeArray(e,g.hasTrailingComma),g))}const e=R(h,(e=>{let t=p?void 0:e.type;if(t){const e=doe(t,d);e&&(t=e.typeNode,foe(l,e.symbols))}return oD.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=fI(oD.createNodeArray(e,h.hasTrailingComma),h)),y){const e=doe(y,d);e&&(y=e.typeNode,foe(l,e.symbols))}}const v=s?oD.createToken(58):void 0,b=m.asteriskToken;return lF(m)?oD.updateFunctionExpression(m,a,m.asteriskToken,at(o,Xw),g,h,y,i??m.body):uF(m)?oD.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):vE(m)?oD.updateMethodDeclaration(m,a,b,o??oD.createIdentifier(""),v,g,h,y,i):tN(m)?oD.updateFunctionDeclaration(m,a,m.asteriskToken,at(o,Xw),g,h,y,i??m.body):void 0}function Xie(e,t,n,r,i,o,a){const s=iY(t.sourceFile,t.preferences),c=DS(t.program.getCompilerOptions()),l=Wie(t),u=t.program.getTypeChecker(),_=jm(a),{typeArguments:d,arguments:p,parent:f}=r,m=_?void 0:u.getContextualType(r),g=O(p,(e=>Xw(e)?e.text:nF(e)&&Xw(e.name)?e.name.text:void 0)),h=_?[]:O(p,(e=>u.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=function(e,t,n,r,i,o,a,s){const c=[],l=new Map;for(let u=0;ue[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size{var t;return oD.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(u,v,d),k=ooe(p.length,g,y,void 0,_),T=_||void 0===m?void 0:u.typeToTypeNode(m,a,void 0,void 0,l);switch(e){case 174:return oD.createMethodDeclaration(b,x,i,void 0,S,k,T,aoe(s));case 173:return oD.createMethodSignature(b,i,void 0,S,k,void 0===T?oD.createKeywordTypeNode(159):T);case 262:return gn.assert("string"==typeof i||Xw(i),"Unexpected name"),oD.createFunctionDeclaration(b,x,i,S,k,T,soe(ha.Function_not_implemented.message,s));default:gn.fail("Unexpected kind")}}function Qie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Yie(e,t,n,r,i,o,a,s){const c=e.typeToTypeNode(n,r,o,a,s);if(c)return Zie(c,t,i)}function Zie(e,t,n){if(e&&GE(e)){const r=doe(e,n);r&&(foe(t,r.symbols),e=r.typeNode)}return eZ(e)}function eoe(e,t,n,r,i,o){let a=e.typeToTypeNode(t,n,r,i,o);if(a){if(EE(a)){const n=t;if(n.typeArguments&&a.typeArguments){const t=function(e,t){gn.assert(t.typeArguments);const n=t.typeArguments,r=t.target;for(let t=0;te===n[t])))return t}return n.length}(e,n);if(t=r?oD.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||oD.createKeywordTypeNode(159),void 0);o.push(l)}return o}function aoe(e){return soe(ha.Method_not_implemented.message,e)}function soe(e,t){return oD.createBlock([oD.createThrowStatement(oD.createNewExpression(oD.createIdentifier("Error"),void 0,[oD.createStringLiteral(e,0===t)]))],!0)}function coe(e,t,n){const r=Yf(t);if(!r)return;const i=_oe(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,uoe("compilerOptions",oD.createObjectLiteralExpression(n.map((([e,t])=>uoe(e,t))),!0)));const o=i.initializer;if(tF(o))for(const[r,i]of n){const n=_oe(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,uoe(r,i)):e.replaceNode(t,n.initializer,i)}}function loe(e,t,n,r){coe(e,t,[[n,r]])}function uoe(e,t){return oD.createPropertyAssignment(oD.createStringLiteral(e),t)}function _oe(e,t){return T(e.properties,(e=>HN(e)&&!!e.name&&Iw(e.name)&&e.name.text===t))}function doe(e,t){let n;const r=sJ(e,(function e(r){if(yf(r)&&r.qualifier){const i=mb(r.qualifier);if(!i.symbol)return hJ(r,e,void 0);const o=ZZ(i.symbol,t),a=o!==i.text?poe(r.qualifier,oD.createIdentifier(o)):r.qualifier;n=le(n,i.symbol);const s=cJ(r.typeArguments,e,wu);return oD.createTypeReferenceNode(a,s)}return hJ(r,e,void 0)}),wu);if(n&&r)return{typeNode:r,symbols:n}}function poe(e,t){return 80===e.kind?t:oD.createQualifiedName(poe(e.left,t),e.right)}function foe(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function moe(e,t){const n=Rs(t);let r=XX(e,t.start);for(;r.ende.replaceNode(t,n,r)));return $7(Toe,i,[ha.Replace_import_with_0,i[0].textChanges[0].newText])}function Doe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&nd(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(gf(i)||de(r,function(e,t){const n=Cd(t),r=Ng(t),i=e.program.getCompilerOptions(),o=[];return o.push(Coe(e,n,t,eY(r.name,void 0,t.moduleSpecifier,iY(n,e.preferences)))),1===wS(i)&&o.push(Coe(e,n,t,oD.createImportEqualsDeclaration(void 0,!1,r.name,oD.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),Qu(t)&&(!Nc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=Z_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,oD.createPropertyAccessExpression(t,"default"),{})));r.push($7(Toe,i,ha.Use_synthetic_default_member))}return r}W7({errorCodes:[ha.This_expression_is_not_callable.code,ha.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=ha.This_expression_is_not_callable.code===e.errorCode?213:214,r=yc(XX(t,e.span.start),(e=>e.kind===n));if(!r)return[];const i=r.expression;return Doe(e,i)}}),W7({errorCodes:[ha.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ha.Type_0_does_not_satisfy_the_constraint_1.code,ha.Type_0_is_not_assignable_to_type_1.code,ha.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,ha.Type_predicate_0_is_not_assignable_to_1.code,ha.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,ha._0_index_type_1_is_not_assignable_to_2_index_type_3.code,ha.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,ha.Property_0_in_type_1_is_not_assignable_to_type_2.code,ha.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,ha.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=yc(XX(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?Doe(e,t):[]}});var woe="strictClassInitialization",Eoe="addMissingPropertyDefiniteAssignmentAssertions",Foe="addMissingPropertyUndefinedType",Noe="addMissingPropertyInitializer",Poe=[ha.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function Aoe(e,t){const n=XX(e,t);if(Xw(n)&&hE(n.parent)){const e=xv(n.parent);if(e)return{type:e,prop:n.parent,isJs:jm(n.parent)}}}function Ioe(e,t,n){oZ(n);const r=oD.updatePropertyDeclaration(n,n.modifiers,n.name,oD.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function Ooe(e,t,n){const r=oD.createKeywordTypeNode(157),i=ME(n.type)?n.type.types.concat(r):[n.type,r],o=oD.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[oD.createJSDocTypeTag(void 0,oD.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function Loe(e,t,n,r){oZ(n);const i=oD.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function Roe(e,t){return joe(e,e.getTypeFromTypeNode(t.type))}function joe(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?oD.createFalse():oD.createTrue();if(t.isStringLiteral())return oD.createStringLiteral(t.value);if(t.isNumberLiteral())return oD.createNumericLiteral(t.value);if(2048&t.flags)return oD.createBigIntLiteral(t.value);if(t.isUnion())return g(t.types,(t=>joe(e,t)));if(t.isClass()){const e=kx(t.symbol);if(!e||Lv(e,64))return;const n=_v(e);if(n&&n.parameters.length)return;return oD.createNewExpression(oD.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?oD.createArrayLiteralExpression():void 0}W7({errorCodes:Poe,getCodeActions:function(e){const t=Aoe(e.sourceFile,e.span.start);if(!t)return;const n=[];return le(n,function(e,t){const n=Z_e.ChangeTracker.with(e,(n=>Ooe(n,e.sourceFile,t)));return q7(woe,n,[ha.Add_undefined_type_to_property_0,t.prop.name.getText()],Foe,ha.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),le(n,function(e,t){if(t.isJs)return;const n=Z_e.ChangeTracker.with(e,(n=>Ioe(n,e.sourceFile,t.prop)));return q7(woe,n,[ha.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],Eoe,ha.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),le(n,function(e,t){if(t.isJs)return;const n=e.program.getTypeChecker(),r=Roe(n,t.prop);if(!r)return;const i=Z_e.ChangeTracker.with(e,(n=>Loe(n,e.sourceFile,t.prop,r)));return q7(woe,i,[ha.Add_initializer_to_property_0,t.prop.name.getText()],Noe,ha.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[Eoe,Foe,Noe],getAllCodeActions:e=>Y7(e,Poe,((t,n)=>{const r=Aoe(n.file,n.start);if(r)switch(e.fixId){case Eoe:Ioe(t,n.file,r.prop);break;case Foe:Ooe(t,n.file,r);break;case Noe:const i=Roe(e.program.getTypeChecker(),r.prop);if(!i)return;Loe(t,n.file,r.prop,i);break;default:gn.fail(JSON.stringify(e.fixId))}}))});var Moe="requireInTs",Boe=[ha.require_call_may_be_converted_to_an_import.code];function Joe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,moduleSpecifier:s}=n;e.replaceNode(t,a,i&&!r?oD.createImportEqualsDeclaration(void 0,!1,i,oD.createExternalModuleReference(s)):oD.createImportDeclaration(void 0,oD.createImportClause(!1,i,o),s,void 0))}function zoe(e,t,n,r){const{parent:i}=XX(e,n);$m(i,!0)||gn.failBadSyntaxKind(i);const o=st(i.parent,ZF),a=iY(e,r),s=at(o.name,Xw),c=QE(o.name)?function(e){const t=[];for(const n of e.elements){if(!Xw(n.name)||n.initializer)return;t.push(oD.createImportSpecifier(!1,at(n.propertyName,Xw),n.name))}if(t.length)return oD.createNamedImports(t)}(o.name):void 0;if(s||c){const e=xe(i.arguments);return{allowSyntheticDefaults:AS(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:st(o.parent.parent,LF),moduleSpecifier:Rw(e)?oD.createStringLiteral(e.text,0===a):e}}}W7({errorCodes:Boe,getCodeActions(e){const t=zoe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const n=Z_e.ChangeTracker.with(e,(n=>Joe(n,e.sourceFile,t)));return[q7(Moe,n,ha.Convert_require_to_import,Moe,ha.Convert_all_require_to_import)]},fixIds:[Moe],getAllCodeActions:e=>Y7(e,Boe,((t,n)=>{const r=zoe(n.file,e.program,n.start,e.preferences);r&&Joe(t,e.sourceFile,r)}))});var $oe="useDefaultImport",qoe=[ha.Import_may_be_converted_to_a_default_import.code];function Uoe(e,t){const n=XX(e,t);if(!Xw(n))return;const{parent:r}=n;if(uN(r)&&NN(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(yN(r)&&_N(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Voe(e,t,n,r){e.replaceNode(t,n.importNode,eY(n.name,void 0,n.moduleSpecifier,iY(t,r)))}W7({errorCodes:qoe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=Uoe(t,n);if(!r)return;const i=Z_e.ChangeTracker.with(e,(n=>Voe(n,t,r,e.preferences)));return[q7($oe,i,ha.Convert_to_default_import,$oe,ha.Convert_all_to_default_imports)]},fixIds:[$oe],getAllCodeActions:e=>Y7(e,qoe,((t,n)=>{const r=Uoe(n.file,n.start);r&&Voe(t,n.file,r,e.preferences)}))});var Woe="useBigintLiteral",Hoe=[ha.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Goe(e,t,n){const r=at(XX(t,n.start),Pw);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,oD.createBigIntLiteral(i))}W7({errorCodes:Hoe,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>Goe(t,e.sourceFile,e.span)));if(t.length>0)return[q7(Woe,t,ha.Convert_to_a_bigint_numeric_literal,Woe,ha.Convert_all_to_bigint_numeric_literals)]},fixIds:[Woe],getAllCodeActions:e=>Y7(e,Hoe,((e,t)=>Goe(e,t.file,t)))});var Koe="fixAddModuleReferTypeMissingTypeof",Xoe=[ha.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function Qoe(e,t){const n=XX(e,t);return gn.assert(102===n.kind,"This token should be an ImportKeyword"),gn.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Yoe(e,t,n){const r=oD.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}W7({errorCodes:Xoe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Qoe(t,n.start),i=Z_e.ChangeTracker.with(e,(e=>Yoe(e,t,r)));return[q7(Koe,i,ha.Add_missing_typeof,Koe,ha.Add_missing_typeof)]},fixIds:[Koe],getAllCodeActions:e=>Y7(e,Xoe,((t,n)=>Yoe(t,e.sourceFile,Qoe(n.file,n.start))))});var Zoe="wrapJsxInFragment",eae=[ha.JSX_expressions_must_have_one_parent_element.code];function tae(e,t){let n=XX(e,t).parent.parent;if((hF(n)||(n=n.parent,hF(n)))&&Id(n.operatorToken))return n}function nae(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(hF(n)&&Id(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),T_(n.right))return t.push(n.right),t;if(hF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,oD.createJsxFragment(oD.createJsxOpeningFragment(),r,oD.createJsxJsxClosingFragment()))}W7({errorCodes:eae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=tae(t,n.start);if(!r)return;const i=Z_e.ChangeTracker.with(e,(e=>nae(e,t,r)));return[q7(Zoe,i,ha.Wrap_in_JSX_fragment,Zoe,ha.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Zoe],getAllCodeActions:e=>Y7(e,eae,((t,n)=>{const r=tae(e.sourceFile,n.start);r&&nae(t,e.sourceFile,r)}))});var rae="wrapDecoratorInParentheses",iae=[ha.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function oae(e,t,n){const r=yc(XX(t,n),mE);gn.assert(!!r,"Expected position to be owned by a decorator.");const i=oD.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}W7({errorCodes:iae,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>oae(t,e.sourceFile,e.span.start)));return[q7(rae,t,ha.Wrap_in_parentheses,rae,ha.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[rae],getAllCodeActions:e=>Y7(e,iae,((e,t)=>oae(e,t.file,t.start)))});var aae="fixConvertToMappedObjectType",sae=[ha.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function cae(e,t){const n=at(XX(e,t).parent.parent,DE);if(!n)return;const r=rN(n.parent)?n.parent:at(n.parent.parent,iN);return r?{indexSignature:n,container:r}:void 0}function lae(e,t,{indexSignature:n,container:r}){const i=(rN(r)?r.members:r.type.members).filter((e=>!DE(e))),o=xe(n.parameters),a=oD.createTypeParameterDeclaration(void 0,st(o.name,Xw),o.type),s=oD.createMappedTypeNode($v(n)?oD.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),c=oD.createIntersectionTypeNode([...Eh(r),s,...i.length?[oD.createTypeLiteralNode(i)]:u]);var l,_;e.replaceNode(t,r,(l=r,_=c,oD.createTypeAliasDeclaration(l.modifiers,l.name,l.typeParameters,_)))}W7({errorCodes:sae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=cae(t,n.start);if(!r)return;const i=Z_e.ChangeTracker.with(e,(e=>lae(e,t,r))),o=kc(r.container.name);return[q7(aae,i,[ha.Convert_0_to_mapped_object_type,o],aae,[ha.Convert_0_to_mapped_object_type,o])]},fixIds:[aae],getAllCodeActions:e=>Y7(e,sae,((e,t)=>{const n=cae(t.file,t.start);n&&lae(e,t.file,n)}))});var uae="removeAccidentalCallParentheses";W7({errorCodes:[ha.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=yc(XX(e.sourceFile,e.span.start),iF);if(!t)return;const n=Z_e.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[$7(uae,n,ha.Remove_parentheses)]},fixIds:[uae]});var _ae="removeUnnecessaryAwait",dae=[ha.await_has_no_effect_on_the_type_of_this_expression.code];function pae(e,t,n){const r=at(XX(t,n.start),(e=>135===e.kind)),i=r&&at(r.parent,fF);if(!i)return;let o=i;if(cF(i.parent)&&Xw(Rx(i.expression,!1))){const e=tQ(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}W7({errorCodes:dae,getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>pae(t,e.sourceFile,e.span)));if(t.length>0)return[q7(_ae,t,ha.Remove_unnecessary_await,_ae,ha.Remove_all_unnecessary_uses_of_await)]},fixIds:[_ae],getAllCodeActions:e=>Y7(e,dae,((e,t)=>pae(e,t.file,t)))});var fae=[ha.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],mae="splitTypeOnlyImport";function gae(e,t){return yc(XX(e,t.start),_N)}function hae(e,t,n){if(!t)return;const r=gn.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,oD.updateImportDeclaration(t,t.modifiers,oD.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,oD.createImportDeclaration(void 0,oD.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}W7({errorCodes:fae,fixIds:[mae],getCodeActions:function(e){const t=Z_e.ChangeTracker.with(e,(t=>hae(t,gae(e.sourceFile,e.span),e)));if(t.length)return[q7(mae,t,ha.Split_into_two_separate_import_declarations,mae,ha.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Y7(e,fae,((t,n)=>{hae(t,gae(e.sourceFile,n),e)}))});var yae="fixConvertConstToLet",vae=[ha.Cannot_assign_to_0_because_it_is_a_constant.code];function bae(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(XX(e,t));if(void 0===i)return;const o=at(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,eN);if(void 0===o)return;const a=RX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function xae(e,t,n){e.replaceNode(t,n,oD.createToken(121))}W7({errorCodes:vae,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=bae(t,n.start,r);if(void 0===i)return;const o=Z_e.ChangeTracker.with(e,(e=>xae(e,t,i.token)));return[U7(yae,o,ha.Convert_const_to_let,yae,ha.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Set;return X7(Z_e.ChangeTracker.with(e,(r=>{Z7(e,vae,(e=>{const i=bae(e.file,e.start,t);if(i&&Ex(n,YB(i.symbol)))return xae(r,e.file,i.token)}))})))},fixIds:[yae]});var Sae="fixExpectedComma",kae=[ha._0_expected.code];function Tae(e,t,n){const r=XX(e,t);return 27===r.kind&&r.parent&&(tF(r.parent)||eF(r.parent))?{node:r}:void 0}function Cae(e,t,{node:n}){const r=oD.createToken(28);e.replaceNode(t,n,r)}W7({errorCodes:kae,getCodeActions(e){const{sourceFile:t}=e,n=Tae(t,e.span.start,e.errorCode);if(!n)return;const r=Z_e.ChangeTracker.with(e,(e=>Cae(e,t,n)));return[q7(Sae,r,[ha.Change_0_to_1,";",","],Sae,[ha.Change_0_to_1,";",","])]},fixIds:[Sae],getAllCodeActions:e=>Y7(e,kae,((t,n)=>{const r=Tae(n.file,n.start,n.code);r&&Cae(t,e.sourceFile,r)}))});var Dae="addVoidToPromise",wae=[ha.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,ha.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function Eae(e,t,n,r,i){const o=XX(t,n.start);if(!Xw(o)||!iF(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!fE(c)||!oF(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!jm(e))return e.typeArguments;if(cF(e.parent)){const n=null==(t=cl(e.parent))?void 0:t.typeExpression.type;if(n&&EE(n)&&Xw(n.typeName)&&"Promise"===kc(n.typeName))return n.typeArguments}}(c.parent.parent);if(X(l)){const n=l[0],r=!ME(n)&&!$E(n)&&$E(oD.createUnionTypeNode([n,oD.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);jm(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,is(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}W7({errorCodes:wae,fixIds:[Dae],getCodeActions(e){const t=Z_e.ChangeTracker.with(e,(t=>Eae(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[q7("addVoidToPromise",t,ha.Add_void_to_Promise_resolved_without_a_value,Dae,ha.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>Y7(e,wae,((t,n)=>Eae(t,n.file,n,e.program,new Set)))});var Fae={};n(Fae,{CompletionKind:()=>kse,CompletionSource:()=>Lae,SortText:()=>Aae,StringCompletions:()=>ece,SymbolOriginInfoKind:()=>Rae,createCompletionDetails:()=>xse,createCompletionDetailsForSymbol:()=>bse,getCompletionEntriesFromSymbols:()=>gse,getCompletionEntryDetails:()=>yse,getCompletionEntrySymbol:()=>Sse,getCompletionsAtPosition:()=>Vae,getDefaultCommitCharacters:()=>Uae,getPropertiesForObjectExpression:()=>jse,moduleSpecifierResolutionCacheAttemptLimit:()=>Pae,moduleSpecifierResolutionLimit:()=>Nae});var Nae=100,Pae=1e3,Aae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},Iae=[".",",",";"],Oae=[".",";"],Lae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Lae||{}),Rae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Rae||{});function jae(e){return!!(e&&4&e.kind)}function Mae(e){return!(!e||32!==e.kind)}function Bae(e){return(jae(e)||Mae(e))&&!!e.isFromPackageJson}function Jae(e){return!!(e&&64&e.kind)}function zae(e){return!!(e&&128&e.kind)}function $ae(e){return!!(e&&512&e.kind)}function qae(e,t,n,r,i,o,a,s,c){var l,u,_,d;const p=Gn(),f=a||IS(r.getCompilerOptions())||(null==(l=o.autoImportSpecifierExcludeRegexes)?void 0:l.length);let m=!1,g=0,h=0,y=0,v=0;const b=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&g++,t||"failed"}const r=f||o.allowIncompleteCompletions&&hm,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>Nae}),x=v?` (${(y/v*100).toFixed(1)}% hit rate)`:"";return null==(u=t.log)||u.call(t,`${e}: resolved ${h} module specifiers, plus ${g} ambient and ${y} from cache${x}`),null==(_=t.log)||_.call(t,`${e}: response is ${m?"incomplete":"complete"}`),null==(d=t.log)||d.call(t,`${e}: ${Gn()-p}`),b}function Uae(e){return e?[]:Iae}function Vae(e,t,n,r,i,o,a,s,c,l,u=!1){var _;const{previousToken:d}=Dse(i,r);if(a&&!oQ(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&SZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&Qw(n)&&!!rm(n);case"<":return!!n&&30===n.kind&&(!hF(n.parent)||$se(n.parent));case"/":return!!n&&(q_(n)?!!wg(n):44===n.kind&&ON(n.parent));case" ":return!!n&&lE(n)&&307===n.parent.kind;default:return gn.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:Uae(!0)}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(_=e.getIncompleteCompletionsCache)?void 0:_.call(e):void 0;if(m&&3===s&&d&&Xw(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=GX(t,s),u=n.text.toLowerCase(),_=D0(t,i,r,o,a),d=qae("continuePreviousIncompleteResponse",i,M7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,wT(n),(e=>{const n=q(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||Hae(n.data))return n;if(!Yse(n.name,u))return;const{origin:a}=gn.checkDefined(wse(n.name,n.data,r,i)),s=_.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!As(Ry(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=_se(l),n.source=mse(l),n.sourceDisplay=[OY(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Zae(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=ece.getStringLiteralCompletions(r,i,d,p,e,t,n,o,u);if(g)return g;if(d&&Al(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!uu(r);){if(KF(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:Aae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:Uae(!1)}}(d.parent);const h=Cse(t,n,r,p,i,o,void 0,e,l,c);var y,v;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:u,contextToken:_,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:S,isRightOfOpenTag:k,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:D,symbolToSortTextMap:w,hasUnresolvedAutoImports:E,defaultCommitCharacters:F}=o;let N=o.literals;const P=n.getTypeChecker();if(1===hS(e.scriptKind)){const t=function(e,t){const n=yc(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!RX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:AQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:Aae.LocationPriority}],defaultCommitCharacters:Uae(!1)}}}(m,e);if(t)return t}const A=yc(_,qN);if(A&&(uE(_)||mh(_,A.expression))){const e=d0(P,A.parent.clauses);N=N.filter((t=>!e.hasValue(t))),u.forEach(((t,n)=>{if(t.valueDeclaration&&XN(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const I=[],O=ese(e,r);if(O&&!f&&(!u||0===u.length)&&0===h)return;const L=gse(u,I,void 0,_,m,c,e,t,n,DS(r),i,d,a,r,s,x,g,S,b,C,v,y,w,S,k,l);if(0!==h)for(const t of Pse(h,!D&&Rm(e)))(x&&JQ(ja(t.name))||!x&&Zse(t.name)||!L.has(t.name))&&(L.add(t.name),ie(I,t,Wae,void 0,!0));for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(_N(i)||kN(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Ra(132),kind:"keyword",kindModifiers:"",sortText:Aae.GlobalsOrKeywords})}return n}(_,c))L.has(e.name)||(L.add(e.name),ie(I,e,Wae,void 0,!0));for(const t of N){const n=ase(e,a,t);L.add(n.name),ie(I,n,Wae,void 0,!0)}let R;if(O||function(e,t,n,r,i){u7(e).forEach(((e,o)=>{if(e===t)return;const a=Sc(o);!n.has(a)&&Ss(a,r)&&(n.add(a),ie(i,{name:a,kind:"warning",kindModifiers:"",sortText:Aae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Wae))}))}(e,m.pos,L,DS(r),I),a.includeCompletionsWithInsertText&&_&&!k&&!T&&(R=yc(_,cN))){const i=tse(R,e,a,r,t,n,s);i&&I.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!E)||void 0,isMemberCompletion:ise(d),isNewIdentifierLocation:f,optionalReplacementSpan:Zae(m),entries:I,defaultCommitCharacters:F??Uae(f)}}(r,e,t,p,n,h,o,l,i,u);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return Gae([...zle.getJSDocTagNameCompletions(),...Kae(r,i,f,p,o,!0)]);case 2:return Gae([...zle.getJSDocTagCompletions(),...Kae(r,i,f,p,o,!1)]);case 3:return Gae(zle.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=h.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:Uae(v)};default:return gn.assertNever(h)}}function Wae(e,t){var n,r;let i=jt(e.sortText,t.sortText);return 0===i&&(i=jt(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=Gk(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Hae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Gae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:Uae(!1)}}function Kae(e,t,n,r,i,o){const a=XX(e,t);if(!A_(a)&&!pP(a))return[];const s=pP(a)?a:a.parent;if(!pP(s))return[];const c=s.parent;if(!uu(c))return[];const l=Rm(e),u=i.includeCompletionsWithSnippetText||void 0,_=N(s.tags,(e=>FP(e)&&e.getEnd()<=t));return q(c.parameters,(e=>{if(!jc(e).length){if(Xw(e.name)){const t={tabstop:1},a=e.name.text;let s=Qae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=u?Qae(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:Aae.LocationPriority,insertText:u?c:void 0,isSnippet:u}}if(e.parent.parameters.indexOf(e)===_){const t=`param${_}`,a=Xae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=u?Xae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(Bb(r)+"* "),d=null==s?void 0:s.join(Bb(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:Aae.LocationPriority,insertText:u?d:void 0,isSnippet:u}}}}))}function Xae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Qae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(QE(t)&&!r){const _={tabstop:l.tabstop},d=Qae(e,n,r,i,!0,o,a,s,c,_);let p=[];for(const n of t.elements){const t=u(e,n,_);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=_.tabstop,[d,...p]}return[Qae(e,n,r,i,!1,o,a,s,c,l)]}function u(e,t,n){if(!t.propertyName&&Xw(t.name)||Xw(t.name)){const r=t.propertyName?zp(t.propertyName):t.name.text;if(!r)return;return[Qae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=zp(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Qae(e,t,n,r,i,o,a,s,c,l){if(o&&gn.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();return n.includes("\n")||n.length>80?`[${e}]`:`[${e}=${n}]`}(e,t)),o&&(e=WT(e)),r){let r="*";if(i)gn.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===iY(n,c)?268435456:0,l=a.typeToTypeNode(e,yc(t,uu),i);if(l){const e=o?use({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):hq({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});_D(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Yae(e,t,n){return{kind:4,keywordCompletions:Pse(e,t),isNewIdentifierLocation:n}}function Zae(e){return 80===(null==e?void 0:e.kind)?AQ(e):void 0}function ese(e,t){return!Rm(e)||!!lT(e,t)}function tse(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&k(l.types,(e=>e.isLiteral()))){const u=d0(c,s),_=DS(r),d=iY(t,n),p=M7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&t.flags){gn.assert(t.symbol,"An enum member type should have a symbol"),gn.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(u.hasValue(n))continue;u.addValue(n)}const r=M7.typeToAutoImportableTypeNode(c,p,t,e,_);if(!r)return;const i=nse(r,_,d);if(!i)return;f.push(i)}else if(!u.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?oD.createPrefixUnaryExpression(41,oD.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):oD.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?oD.createPrefixUnaryExpression(41,oD.createNumericLiteral(-t.value)):oD.createNumericLiteral(t.value));break;case"string":f.push(oD.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=O(f,(e=>oD.createCaseClause(e,[]))),g=zY(i,null==a?void 0:a.options),h=use({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:s0(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=O(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:Aae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function nse(e,t,n){switch(e.kind){case 183:return rse(e.typeName,t,n);case 199:const r=nse(e.objectType,t,n),i=nse(e.indexType,t,n);return r&&i&&oD.createElementAccessExpression(r,i);case 201:const o=e.literal;switch(o.kind){case 11:return oD.createStringLiteral(o.text,0===n);case 9:return oD.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 196:const a=nse(e.type,t,n);return a&&(Xw(a)?a:oD.createParenthesizedExpression(a));case 186:return rse(e.exprName,t,n);case 205:gn.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function rse(e,t,n){if(Xw(e))return e;const r=Sc(e.right.escapedText);return eC(r,t)?oD.createPropertyAccessExpression(rse(e.left,t,n),r):oD.createElementAccessExpression(rse(e.left,t,n),oD.createStringLiteral(r,0===n))}function ise(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function ose(e,t,n){return"object"==typeof n?kT(n)+"n":it(n)?bZ(e,t,n):JSON.stringify(n)}function ase(e,t,n){return{name:ose(e,t,n),kind:"string",kindModifiers:"",sortText:Aae.LocationPriority,commitCharacters:[]}}function sse(e,t,n,r,i,o,a,s,c,l,u,_,d,p,f,m,g,h,y,v,b,x,S,C){var D,w;let E,F,N,P,A,I,O,L=PQ(n,o),R=mse(_);const j=c.getTypeChecker(),M=_&&function(e){return!!(16&e.kind)}(_),B=_&&function(e){return!!(2&e.kind)}(_)||u;if(_&&function(e){return!!(1&e.kind)}(_))E=u?`this${M?"?.":""}[${pse(a,y,l)}]`:`this${M?"?.":"."}${l}`;else if((B||M)&&p){E=B?u?`[${pse(a,y,l)}]`:`[${l}]`:l,(M||p.questionDotToken)&&(E=`?.${E}`);const e=RX(p,25,a)||RX(p,29,a);if(!e)return;const t=en(l,p.name.text)?p.name.end:e.end;L=Zs(e.getStart(a),t)}if(f&&(void 0===E&&(E=l),E=`{${E}}`,"boolean"!=typeof f&&(L=AQ(f,a))),_&&function(e){return!!(8&e.kind)}(_)&&p){void 0===E&&(E=l);const e=tQ(p.pos,a);let t="";e&&AZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,E=u?`${t}${E}`:`${t}${M?"?.":"."}${E}`,L=Zs((at(p.parent,fF)?p.parent:p.expression).getStart(a),p.end)}if(Mae(_)&&(A=[OY(_.moduleSpecifier)],m&&(({insertText:E,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=WT(bZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,u=a.includeCompletionsWithSnippetText?"$1":"",_=M7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Ra(156)} `:" ",f=d?`${Ra(156)} `:"",m=r?";":"";switch(_){case 3:return{replacementSpan:s,insertText:`import${p}${WT(e)}${u} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${WT(e)}${u} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${WT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${WT(e)}${u} } from ${c}${m}`}}}(l,m,_,g,a,c,y)),P=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==_?void 0:_.kind)&&(I=!0),0===v&&r&&28!==(null==(D=tQ(r.pos,a,r))?void 0:D.kind)&&(vE(r.parent.parent)||SE(r.parent.parent)||kE(r.parent.parent)||KN(r.parent)||(null==(w=yc(r.parent,HN))?void 0:w.getLastToken(a))===r||GN(r.parent)&&Ga(a,r.getEnd()).line!==Ga(a,o).line)&&(R="ObjectLiteralMemberWithComma/",I=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===v&&function(e,t,n){if(jm(t))return!1;const r=106500;return!!(e.flags&r)&&(yu(t)||t.parent&&t.parent.parent&&hu(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&yu(t.parent.parent)||t.parent&&zP(t)&&yu(t.parent))}(e,i,a)){let t;const n=cse(s,c,h,y,l,e,i,o,r,b);if(!n)return;({insertText:E,filterText:F,isSnippet:P,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(I=!0,R="ClassMemberSnippet/")}if(_&&zae(_)&&(({insertText:E,isSnippet:P,labelDetails:O}=_),y.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),R="ObjectLiteralMethodSnippet/",t=Aae.SortBelow(t)),x&&!S&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!MN(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=j.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&T(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&k(n.types,(e=>!!(402686084&e.flags||kQ(e))))?(E=`${WT(l)}=${bZ(a,y,"$1")}`,P=!0):t=!0),t&&(E=`${WT(l)}={$1}`,P=!0)}if(void 0!==E&&!y.includeCompletionsWithInsertText)return;(jae(_)||Mae(_))&&(N=_se(_),I=!m);const J=yc(i,Ix);if(J){const e=DS(s.getCompilationSettings());if(Ss(l,e)){if(275===J.kind){const e=ja(l);e&&(135===e||Rh(e))&&(E=`${l} as ${l}_`)}}else E=pse(a,y,l),275===J.kind&&(UK.setText(a.text),UK.resetTokenState(o),130===UK.scan()&&80===UK.scan()||(E+=" as "+function(e,t){let n,r=!1,i="";for(let o=0;o=65536?2:1)n=e.codePointAt(o),void 0!==n&&(0===o?bs(n,t):xs(n,t))?(r&&(i+="_"),i+=String.fromCodePoint(n),r=!1):r=!0;return r&&(i+="_"),i||"_"}(l,e)))}const z=U_e.getSymbolKind(j,e,i),$="warning"===z||"string"===z?[]:void 0;return{name:l,kind:z,kindModifiers:U_e.getSymbolModifiers(j,e),sortText:t,source:R,hasAction:!!I||void 0,isRecommended:fse(e,d,j)||void 0,insertText:E,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:P,isPackageJsonImport:Bae(_)||void 0,isImportStatementCompletion:!!m||void 0,data:N,commitCharacters:$,...C?{symbol:e}:void 0}}function cse(e,t,n,r,i,o,a,s,c,l){const u=yc(a,yu);if(!u)return;let _,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=use({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:s0(zY(e,null==l?void 0:l.options))}),h=M7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){_=!0;const e=oD.createEmptyStatement();y=oD.createBlock([e],!0),MD(e,{kind:0,order:0})}else y=oD.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:S}=function(e,t,n){if(!e||Ga(t,n).line>Ga(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(hE(e.parent)&&(i=function(e){if(au(e))return e.kind;if(Xw(e)){const t=Tc(e);if(t&&ru(t))return t}}(e))){e.parent.modifiers&&(o|=98303&eb(e.parent.modifiers),r=e.parent.modifiers.filter(mE)||[],a.pos=Math.min(...e.parent.modifiers.map((e=>e.getStart(t)))));const n=tb(i);o&n||(o|=n,a.pos=Math.min(a.pos,e.getStart(t))),e.parent.name!==e&&(a.end=e.parent.name.getStart(t))}return{modifiers:o,decorators:r,range:a.pos{let t=0;k&&(t|=64),hu(e)&&1===f.getMemberOverrideModifierStatus(u,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=oD.replaceModifiers(e,v),T.push(e)}),y,M7.PreserveOptionalFlags.Property,!!k),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map((e=>oD.replaceModifiers(e,v))),null==S?void 0:S.length){const e=T[T.length-1];gI(e)&&(T[T.length-1]=oD.replaceDecoratorsAndModifiers(e,S.concat(Lc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,oD.createNodeArray(T),m,l):g.printSnippetList(r,oD.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:_,importAdder:h,eraseRange:x}}function lse(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const u=n.getSourceFile(),_=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=eZ(Ac(c),!1),u=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),_=iY(n,o),d=33554432|(0===_?268435456:0);switch(c.kind){case 171:case 172:case 173:case 174:{let e=1048576&u.flags&&u.types.length<10?s.getUnionType(u.types,2):u;if(1048576&e.flags){const t=P(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,d,void 0,M7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!FE(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=oD.createEmptyStatement();a=oD.createBlock([e],!0),MD(e,{kind:0,order:0})}else a=oD.createBlock([],!0);const c=n.parameters.map((e=>oD.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return oD.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,u,r,i,a);if(!_)return;const d=use({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:s0(zY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,oD.createNodeArray([_],!0),u,s):d.printSnippetList(80,oD.createNodeArray([_],!0),u);const p=hq({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),f=oD.createMethodSignature(void 0,"",_.questionToken,_.typeParameters,_.parameters,_.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,u)}}}function use(e){let t;const n=Z_e.createWriter(Bb(e)),r=hq(e,n),i={...n,write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?Z_e.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return Ga(this,e)}},s=l0(i,r),c=M(n,(e=>{const t=Z_e.assignPositionsToNode(e);return Ede.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),l=t?me(Y(c,t),((e,t)=>Ct(e.span,t.span))):c;return Z_e.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?Z_e.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return Ga(this,e)}},a=l0(i,r),c=Z_e.assignPositionsToNode(n),l=Ede.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),u=t?me(Y(l,t),((e,t)=>Ct(e.span,t.span))):l;return Z_e.applyChanges(o.text,u)}};function o(e,r){const i=WT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=le(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function _se(e){const t=e.fileName?void 0:Ry(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return Mae(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Ry(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function dse(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Hae(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function pse(e,t,n){return/^\d+$/.test(n)?n:bZ(e,t,n)}function fse(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function mse(e){return jae(e)?Ry(e.moduleSymbol.name):Mae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function gse(e,t,n,r,i,o,a,s,c,l,u,_,d,p,f,m,g,h,y,v,b,x,S,k,T,C=!1){const D=Gn(),w=function(e,t){if(!e)return;let n=yc(e,(e=>Vf(e)||Kse(e)||Fu(e)?"quit":(fE(e)||pE(e))&&!DE(e.parent)));return n||(n=yc(t,(e=>Vf(e)||Kse(e)||Fu(e)?"quit":ZF(e)))),n}(r,i),E=IZ(a),F=c.getTypeChecker(),N=new Map;for(let u=0;ue.getSourceFile()===i.getSourceFile())));N.set(O,M),ie(t,j,Wae,void 0,!0)}return u("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Gn()-D)),{has:e=>N.has(e),add:e=>N.set(e,!0)};function P(e,t){var n;let o=e.flags;if(!QN(i)){if(SN(i.parent))return!0;if(at(w,ZF)&&e.valueDeclaration===w)return!1;const s=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(w&&s)if(fE(w)&&fE(s)){const e=w.parent.parameters;if(s.pos>=w.pos&&s.pos=w.pos&&s.posose(n,a,e)===i.name));return void 0!==v?{type:"literal",literal:v}:g(l,((e,t)=>{const n=p[t],r=Ese(e,DS(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||mse(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:_,origin:n,contextToken:f,previousToken:m,isJsxInitializer:h,isTypeOnlyLocation:y}:void 0}))||{type:"none"}}function yse(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),u=e.getCompilerOptions(),{name:_,source:d,data:p}=i,{previousToken:f,contextToken:m}=Dse(r,n);if(oQ(n,r,f))return ece.getStringLiteralCompletionDetails(_,n,r,f,e,o,c,s);const g=hse(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return zle.getJSDocTagNameCompletionDetails(_);case 2:return zle.getJSDocTagCompletionDetails(_);case 3:return zle.getJSDocParameterNameCompletionDetails(_);case 4:return X(e.keywordCompletions,(e=>e.name===_))?vse(_,"keyword",5):void 0;default:return gn.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,u,_,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&u&&qse(n||u,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[OY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:u}=cse(a,o,s,d,e,i,t,l,n,_);if((null==r?void 0:r.hasFixes())||u)return{sourceDisplay:void 0,codeActions:[{changes:Z_e.ChangeTracker.with({host:a,formatContext:_,preferences:d},(e=>{r&&r.writeFixes(e),u&&e.deleteRange(c,u)})),description:(null==r?void 0:r.hasFixes())?c0([ha.Includes_imports_of_types_referenced_by_0,e]):c0([ha.Update_modifiers_of_0,e])}]}}if(Jae(r)){const e=M7.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,_,d);return gn.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=Z_e.ChangeTracker.with({host:a,formatContext:_,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:c0([ha.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!jae(r)&&!Mae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(px(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&w_(n.parent),{moduleSpecifier:b,codeAction:x}=M7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,_,u&&Xw(u)?u.getStart(c):l,d,m);return gn.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[OY(b)],codeActions:[x]}}(_,i,f,m,t,e,o,u,n,r,h,a,s,p,d,c);return bse(t,$ae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return vse(ose(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=tse(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=Z_e.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:c0([ha.Includes_imports_of_types_referenced_by_0,_])}]}}return{name:_,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Nse().some((e=>e.name===_))?vse(_,"keyword",5):void 0;default:gn.assertNever(g)}}function vse(e,t,n){return xse(e,"",t,[DY(e,n)])}function bse(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:u,tags:_}=n.runWithCancellationToken(o,(t=>U_e.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return xse(t,U_e.getSymbolModifiers(n,e),u,c,l,_,a,s)}function xse(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function Sse(e,t,n,r,i,o,a){const s=hse(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var kse=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(kse||{});function Tse(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?xe(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>307===e.kind)))}(e.parent)?e:Tse(e.parent,t,n))}function Cse(e,t,n,r,i,o,a,s,c,l){const u=e.getTypeChecker(),_=ese(n,r);let d=Gn(),p=XX(n,i);t("getCompletionData: Get current token: "+(Gn()-d)),d=Gn();const m=mQ(n,i,p);t("getCompletionData: Is inside comment: "+(Gn()-d));let h=!1,y=!1,v=!1;if(m){if(gQ(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=kX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return yc(e,(e=>!(!A_(e)||!CX(e,t))||!!pP(e)&&"quit"))}(p,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(JP(e))y=!0;else{const t=function(e){if(function(e){switch(e.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!e.constraint;default:return!1}}(e)){const t=IP(e)?e.constraint:e.typeExpression;return t&&309===t.kind?t:void 0}if(gP(e)||jP(e))return e.class}(e);if(t&&(p=XX(n,i),p&&(gh(p)||348===p.parent.kind&&p.parent.name===p)||(h=he(t))),!h&&FP(e)&&(Id(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!h&&!y)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=Gn();const b=!h&&!y&&Rm(n),x=Dse(i,n),S=x.previousToken;let k=x.contextToken;t("getCompletionData: Get previous token: "+(Gn()-d));let C,D,w,E=p,F=!1,N=!1,A=!1,I=!1,O=!1,L=!1,R=GX(n,i),j=0,B=!1,J=0;if(k){const e=qse(k,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(z=e.keywordCompletion,{name:Ra(z),kind:"keyword",kindModifiers:"",sortText:Aae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};j=function(e){if(156===e)return 8;gn.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(J|=2,D=e,B=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=Gn(),o=function(e){return(Lw(e)||Xl(e))&&(DX(e,i)||i===e.end&&(!!e.isUnterminated||Lw(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(o=e).parent.kind&&!dQ(o,n,u)||243===r||266===r||pe(r)||264===r||207===r||265===r||yu(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||pe(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||mu(r);case 126:return 172===r&&!yu(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!xE(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!zse(e);case 80:if((276===r||281===r)&&e===t.name&&"type"===e.text)return!1;if(yc(e.parent,ZF)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())S.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(R===e.parent&&(286===R.kind||285===R.kind))return!1;if(286===e.parent.kind)return 286!==R.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||Aw(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Gn()-r)),o}(k))return t("Returning an empty list because completion was requested in an invalid position."),j?Yae(j,b,ue().isNewIdentifierLocation):void 0;let r=k.parent;if(25===k.kind||29===k.kind)switch(F=25===k.kind,N=29===k.kind,r.kind){case 211:if(C=r,E=C.expression,Id(Ox(C))||(iF(E)||uu(E))&&E.end===k.pos&&E.getChildCount(n)&&22!==Te(E.getChildren(n)).kind)return;break;case 166:E=r.left;break;case 267:E=r.name;break;case 205:E=r;break;case 236:E=r.getFirstToken(n),gn.assert(102===E.kind||105===E.kind);break;default:return}else if(!D){if(r&&211===r.kind&&(k=r,r=r.parent),p.parent===R)switch(p.kind){case 32:284!==p.parent.kind&&286!==p.parent.kind||(R=p);break;case 44:285===p.parent.kind&&(R=p)}switch(r.kind){case 287:44===k.kind&&(I=!0,R=k);break;case 226:if(!$se(r))break;case 285:case 284:case 286:L=!0,30===k.kind&&(A=!0,R=k);break;case 294:case 293:(20===S.kind||80===S.kind&&291===S.parent.kind)&&(L=!0);break;case 291:if(r.initializer===S&&S.endQQ(t?s.getPackageJsonAutoImportProvider():e,s)));if(F||N)!function(){V=2;const e=yf(E),t=e&&!E.isTypeOf||Af(E.parent)||dQ(k,n,u),r=GK(E);if(su(E)||e||nF(E)){const n=aN(E.parent);n&&(B=!0,w=[]);let i=u.getSymbolAtLocation(E);if(i&&(i=px(i,u),1920&i.flags)){const a=u.getExportsOfModule(i);gn.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>u.isValidPropertyAccess(e?E:E.parent,t.name),c=e=>Xse(e,u),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===E.parent)))}:r?e=>c(e)||s(e):t||h?c:s;for(const e of a)l(e)&&H.push(e);if(!t&&!h&&i.declarations&&i.declarations.some((e=>307!==e.kind&&267!==e.kind&&266!==e.kind))){let e=u.getTypeOfSymbolAtLocation(i,E).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=F&&!N&&!1!==o.includeAutomaticOptionalChainCompletions;(n||N)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&E.flags),t)}return}}if(!t||hv(E)){u.tryGetThisTypeAt(E,!1);let e=u.getTypeAtLocation(E).getNonOptionalType();if(t)oe(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=F&&!N&&!1!==o.includeAutomaticOptionalChainCompletions;(n||N)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&E.flags),t)}}}();else if(A)H=u.getJsxIntrinsicTagNamesAt(R),gn.assertEachIsDefined(H,"getJsxIntrinsicTagNames() should all be defined"),ce(),V=1,j=0;else if(I){const e=k.parent.parent.openingElement.tagName,t=u.getSymbolAtLocation(e);t&&(H=[t]),V=1,j=0}else if(!ce())return j?Yae(j,b,B):void 0;t("getCompletionData: Semantic work: "+(Gn()-$));const ne=S&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return vZ(e,r);case 64:switch(i.kind){case 260:return r.getContextualType(i.initializer);case 226:return r.getTypeAtLocation(i.left);case 291:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=at(i,qN);return o?TZ(o,r):void 0;case 19:return!zN(i)||PN(i.parent)||LN(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=s_e.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):xZ(e.kind)&&hF(i)&&xZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(S,i,n,u),re=at(S,q_)||L?[]:q(ne&&(ne.isUnion()?ne.types:[ne]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),ie=S&&ne&&function(e,t,n){return g(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!Sx(r)?Tse(r,e,n):void 0}))}(S,ne,u);return{kind:0,symbols:H,completionKind:V,isInSnippetScope:v,propertyAccessToConvert:C,isNewIdentifierLocation:B,location:R,keywordFilters:j,literals:re,symbolToOriginInfoMap:G,recommendedCompletion:ie,previousToken:S,contextToken:k,isJsxInitializer:O,insideJsDocTagTypeExpression:h,symbolToSortTextMap:K,isTypeOnlyLocation:Z,isJsxIdentifierExpected:L,isRightOfOpenTag:A,isRightOfDotOrQuestionDot:F||N,importStatementCompletion:D,hasUnresolvedAutoImports:W,flags:J,defaultCommitCharacters:w};function oe(e,t,n){e.getStringIndexType()&&(B=!0,w=[]),N&&X(e.getCallSignatures())&&(B=!0,w??(w=Iae));const r=205===E.kind?E:E.parent;if(_)for(const t of e.getApparentProperties())u.isValidPropertyAccessForCompletions(r,e,t)&&ae(t,!1,n);else H.push(...P(Bse(e,u),(t=>u.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=u.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())u.isValidPropertyAccessForCompletions(r,t,e)&&ae(e,!0,n)}}function ae(t,r,a){var c;const l=g(t.declarations,(e=>at(Ac(e),dE)));if(l){const r=se(l.expression),a=r&&u.getSymbolAtLocation(r),f=a&&Tse(a,k,u),m=f&&YB(f);if(m&&Ex(Q,m)){const t=H.length;H.push(f);const r=f.parent;if(r&&rd(r)&&u.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=As(Ry(r.name))?null==(c=Dd(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(U||(U=M7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:px(f,u).flags}],i,wT(R))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:l};G[t]=e}}else G[t]={kind:p(2)}}else if(o.includeCompletionsWithInsertText){if(m&&Q.has(m))return;d(t),_(t),H.push(t)}}else d(t),_(t),H.push(t);function _(e){(function(e){return!!(e.valueDeclaration&&256&Hv(e.valueDeclaration)&&yu(e.valueDeclaration.parent))})(e)&&(K[YB(e)]=Aae.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&Ex(Q,YB(e))?G[H.length]={kind:p(8)}:a&&(G[H.length]={kind:16}))}function p(e){return a?16|e:e}}function se(e){return Xw(e)?e:nF(e)?se(e.expression):void 0}function ce(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(AE(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&AE(t.parent))return t.parent}}(k);if(!e)return 0;const t=(BE(e.parent)?e.parent:void 0)||e,n=Jse(t,u);if(!n)return 0;const r=u.getTypeFromTypeNode(t),i=Bse(n,u),o=Bse(r,u),a=new Set;return o.forEach((e=>a.add(e.escapedName))),H=Y(H,P(i,(e=>!a.has(e.escapedName)))),V=0,B=!0,1}()||function(){if(26===(null==k?void 0:k.kind))return 0;const t=H.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if(tF(i)||QE(i))return i;break;case 42:return vE(i)?at(i.parent,tF):void 0;case 134:return at(i.parent,tF);case 80:if("async"===e.text&&GN(e.parent))return e.parent.parent;{if(tF(e.parent.parent)&&(KN(e.parent)||GN(e.parent)&&Ga(n,e.getEnd()).line!==Ga(n,t).line))return e.parent.parent;const r=yc(i,HN);if((null==r?void 0:r.getLastToken(n))===e&&tF(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(vE(i.parent)||SE(i.parent)||kE(i.parent))&&tF(i.parent.parent))return i.parent.parent;if(KN(i)&&tF(i.parent))return i.parent;const o=yc(i,HN);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&tF(o.parent))return o.parent}}}(k,i,n);if(!a)return 0;let l,_;if(V=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=uh(e.parent);return hF(r)&&64===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):Qu(r)?t.getContextualType(r):void 0}(a,u);if(void 0===e)return 67108864&a.flags?2:0;const t=u.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(B=!!n||!!r,l=jse(e,t,a,u),_=a.properties,0===l.length&&!r)return 0}else{gn.assert(206===a.kind),B=!1;const e=oy(a.parent);if(!Mf(e))return gn.fail("Root declaration is not variable-like.");let t=j_(e)||!!xv(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(Qu(e.parent)?t=!!u.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=Qu(e.parent.parent)&&!!u.getContextualType(e.parent.parent))),t){const e=u.getTypeAtLocation(a);if(!e)return 2;l=u.getPropertiesOfType(e).filter((t=>u.isPropertyAccessible(a,!1,!1,e,t))),_=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(303!==e.kind&&304!==e.kind&&208!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind&&305!==e.kind)continue;if(he(e))continue;let t;if(KN(e))fe(e,n);else if(ZE(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=Ac(e);t=n&&Gh(n)?Xh(n):void 0}void 0!==t&&r.add(t)}const i=e.filter((e=>!r.has(e.escapedName)));return ge(n,i),i}(l,gn.checkDefined(_));H=Y(H,n),me(),210===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t{if(!(8196&t.flags))return;const n=Ese(t,DS(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=lse(t,i,p,e,s,r,o,c);if(!a)return;const l={kind:128,...a};J|=32,G[H.length]=l,H.push(t)})))}var d,p;return 1}()||(D?(B=!0,le(),1):0)||function(){if(!k)return 0;const e=19===k.kind||28===k.kind?at(k.parent,Ix):$Q(k)?at(k.parent.parent,Ix):void 0;if(!e)return 0;$Q(k)||(j=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return B=!0,275===e.kind?2:0;const n=u.getSymbolAtLocation(t);if(!n)return B=!0,2;V=3,B=!1;const r=u.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!he(e))).map((e=>Zd(e.propertyName||e.name)))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));return H=Y(H,o),o.length||(j=0),1}()||function(){if(void 0===k)return 0;const e=19===k.kind||28===k.kind?at(k.parent,gN):59===k.kind?at(k.parent.parent,gN):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(bC));return H=P(u.getTypeAtLocation(e).getApparentProperties(),(e=>!t.has(e.escapedName))),1}()||function(){var e;const t=!k||19!==k.kind&&28!==k.kind?void 0:at(k.parent,TN);if(!t)return 0;const n=yc(t,an(QN,aN));return V=5,B=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;H.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(K[YB(e)]=Aae.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return xE(e.parent)?e.parent:void 0;default:if(_e(e))return t.parent}}}(k)?(V=5,B=!0,j=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 352:return at(n.parent,Fx);case 1:const t=at(ke(st(n.parent,QN).statements),Fx);if(t&&!RX(t,20,e))return t;break;case 81:if(at(n.parent,hE))return yc(n,yu);break;case 80:if(Tc(n))return;if(hE(n.parent)&&n.parent.initializer===n)return;if(zse(n))return yc(n,Fx)}if(t){if(137===n.kind||Xw(t)&&hE(t.parent)&&yu(n))return yc(t,yu);switch(t.kind){case 64:return;case 27:case 20:return zse(n)&&n.parent.name===n?n.parent.parent:at(n,Fx);case 19:case 28:return at(t.parent,Fx);default:if(Fx(n)){if(Ga(e,t.getEnd()).line!==Ga(e,r).line)return n;const i=yu(t.parent.parent)?Ose:Ise;return i(t.kind)||42===t.kind||Xw(t)&&i(Tc(t)??0)?t.parent.parent:void 0}return}}}(n,k,R,i);if(!e)return 0;if(V=3,B=!0,j=42===k.kind?0:yu(e)?2:3,!yu(e))return 1;const t=27===k.kind?k.parent.parent:k.parent;let r=hu(t)?Hv(t):0;if(80===k.kind&&!he(k))switch(k.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}if(bE(t)&&(r|=256),!(2&r)){const t=M(yu(e)&&16&r?ln(Ch(e)):Eh(e),(t=>{const n=u.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(n.symbol,e)):n&&u.getPropertiesOfType(n)}));H=Y(H,function(e,t,n){const r=new Set;for(const e of t){if(172!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind)continue;if(he(e))continue;if(Ov(e,2))continue;if(Rv(e)!==!!(256&n))continue;const t=Hh(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||2&dx(e)||e.valueDeclaration&&tu(e.valueDeclaration))))}(t,e.members,r)),f(H,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&hu(n)&&n.name&&dE(n.name)){const n={kind:512,symbolName:u.symbolToString(e)};G[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=tQ(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===t.kind)return t.parent.parent}}}(k),t=e&&u.getContextualType(e.attributes);if(!t)return 0;const r=e&&u.getContextualType(e.attributes,4);return H=Y(H,function(e,t){const n=new Set,r=new Set;for(const e of t)he(e)||(291===e.kind?n.add(cC(e.name)):JN(e)&&fe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return ge(r,i),i}(jse(t,r,e.attributes,u),e.attributes.properties)),me(),V=3,B=!1,1}()||(function(){j=function(e){if(e){let t;const n=yc(e.parent,(e=>yu(e)?"quit":!(!du(e)||t!==e.body)||(t=e,!1)));return n&&n}}(k)?5:1,V=1,({isNewIdentifierLocation:B,defaultCommitCharacters:w}=ue()),S!==k&&gn.assert(!!S,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=S!==k?S.getStart():i,t=function(e,t,n){let r=e;for(;r&&!PX(r,t,n);)r=r.parent;return r}(k,e,n)||n;v=function(e){switch(e.kind){case 307:case 228:case 294:case 241:return!0;default:return b_(e)}}(t);const r=2887656|(Z?0:111551),a=S&&!wT(S);H=Y(H,u.getSymbolsInScope(t,r)),gn.assertEachIsDefined(H,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n))||(K[YB(t)]=Aae.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&T(t.declarations,Wl);if(n){const t={kind:64,declaration:n};G[e]=t}}}if(o.includeCompletionsWithInsertText&&307!==t.kind){const e=u.tryGetThisTypeAt(t,!1,yu(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,u))for(const t of Bse(e,u))G[H.length]={kind:1},H.push(t),K[YB(t)]=Aae.SuggestedClassMembers}le(),Z&&(j=k&&Yu(k.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!D||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!XQ(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||GQ(e))}())return;if(gn.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;J|=1;const c=S===k&&D?"":S&&Xw(S)?S.text.toLowerCase():"",u=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),_=D0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:qZ(n,o,s);function f(t){return v0(t.isFromPackageJson?d:e,n,at(t.moduleSymbol.valueDeclaration,QN),t.moduleSymbol,o,p,te(t.isFromPackageJson),u)}qae("collectAutoImports",s,U||(U=M7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!D,wT(R),(e=>{_.search(n.path,A,((e,t)=>{if(!Ss(e,DS(s.getCompilationSettings())))return!1;if(!a&&jh(e))return!1;if(!(Z||D||111551&t))return!1;if(Z&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!A||!(n<65||n>90))&&(!!a||Yse(e,c))}),((t,n,r,i)=>{if(a&&!X(t,(e=>a.source===Ry(e.moduleSymbol.name))))return;if(!(t=P(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=YB(e);K[n]!==Aae.GlobalsOrKeywords&&(G[H.length]=t,K[n]=D?Aae.LocationPriority:Aae.AutoImportSuggestions,H.push(e))}(l&&wb(gn.checkDefined(c.symbol))||gn.checkDefined(c.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":gn.checkDefined(c.symbol).name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),W=e.skippedAny(),J|=e.resolvedAny()?8:0,J|=e.resolvedBeyondLimit()?16:0}))}function ue(){if(k){const e=k.parent.kind,t=Rse(k);switch(t){case 28:switch(e){case 213:case 214:{const e=k.parent.expression;return Ga(n,e.end).line!==Ga(n,i).line?{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0}}case 226:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0};case 176:case 184:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 209:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 21:switch(e){case 213:case 214:{const e=k.parent.expression;return Ga(n,e.end).line!==Ga(n,i).line?{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0}}case 217:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0};case 176:case 196:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 23:switch(e){case 209:case 181:case 189:case 167:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 267===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1};case 19:switch(e){case 263:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 64:switch(e){case 260:case 226:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:228===e};case 17:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:239===e};case 134:return 174===e||304===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1};case 42:return 174===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}if(Ose(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}function _e(e){return!!e.parent&&fE(e.parent)&&xE(e.parent.parent)&&(iu(e.kind)||gh(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!ex(e.end,t,n))}function pe(e){return mu(e)&&176!==e}function fe(e,t){const n=e.expression,r=u.getSymbolAtLocation(n),i=r&&u.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function me(){H.forEach((e=>{if(16777216&e.flags){const t=YB(e);K[t]=K[t]??Aae.OptionalMember}}))}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(K[YB(n)]=Aae.MemberDeclaredBySpreadAssignment)}function he(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function Dse(e,t){const n=tQ(e,t);return n&&e<=n.end&&(vl(n)||Ah(n.kind))?{contextToken:tQ(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function wse(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(gn.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&wb(s)||s,{symbol:s,origin:dse(t,e,a)}):void 0}function Ese(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return jae(e)||Mae(e)||$ae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&Gm(o.charCodeAt(0))||Yh(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(Ss(o,t,i?1:0)||e.valueDeclaration&&tu(e.valueDeclaration))return a;if(2097152&e.flags)return{name:o,needsConvertPropertyAccess:!0};switch(r){case 3:return $ae(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:gn.assertNever(r)}}var Fse=[],Nse=ht((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:Ra(t),kind:"keyword",kindModifiers:"",sortText:Aae.GlobalsOrKeywords});return e}));function Pse(e,t){if(!t)return Ase(e);const n=e+8+1;return Fse[n]||(Fse[n]=Ase(e).filter((e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(ja(e.name)))))}function Ase(e){return Fse[e]||(Fse[e]=Nse().filter((t=>{const n=ja(t.name);switch(e){case 0:return!1;case 1:return Lse(n)||138===n||144===n||156===n||145===n||128===n||JQ(n)&&157!==n;case 5:return Lse(n);case 2:return Ose(n);case 3:return Ise(n);case 4:return iu(n);case 6:return JQ(n)||87===n;case 7:return JQ(n);case 8:return 156===n;default:return gn.assertNever(e)}})))}function Ise(e){return 148===e}function Ose(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return ou(e)}}function Lse(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Lh(e)&&!Ose(e)}function Rse(e){return Xw(e)?Tc(e)??0:e.kind}function jse(e,t,n,r){const i=t&&t!==e,o=r.getUnionType(P(1048576&e.flags?e.types:[e],(e=>!r.getPromisedTypeOfPromise(e)))),a=!i||3&t.flags?o:r.getUnionType([o,t]),s=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(P(e.types,(e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Mse(e.getApparentProperties()))))):e.getApparentProperties()}(a,n,r);return a.isClass()&&Mse(s)?[]:i?P(s,(function(e){return!p(e.declarations)||X(e.declarations,(e=>e.parent!==n))})):s}function Mse(e){return X(e,(e=>!!(6&dx(e))))}function Bse(e,t){return e.isUnion()?gn.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):gn.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Jse(e,t){if(!e)return;if(wu(e)&&J_(e.parent))return t.getTypeArgumentConstraint(e);const n=Jse(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function zse(e){return e.parent&&Cu(e.parent)&&Fx(e.parent.parent)}function $se({left:e}){return Id(e)}function qse(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(uN(n)){const r=n.getLastToken(t);return Xw(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Gse(n.moduleReference)?n:void 0)}if(Wse(n,e)&&Hse(n.parent))return n;if(!bN(n)&&!yN(n))return kN(n)&&42===e.kind||TN(n)&&20===e.kind?(a=!0,void(o=161)):lE(e)&&QN(n)?(o=156,e):lE(e)&&_N(n)?(o=156,Gse(n.moduleSpecifier)?n:void 0):void 0;if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),Hse(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=at(s,_N))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=at(s,uN))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&Wse(s,e),replacementSpan:Use(s)}}function Use(e){var t;if(!e)return;const n=yc(e,an(_N,uN,JP))??e,r=n.getSourceFile();if(Wb(n,r))return AQ(n,r);gn.assert(102!==n.kind&&276!==n.kind);const i=272===n.kind||351===n.kind?Vse(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Wb(o,r)?LQ(o):void 0}function Vse(e){var t;return T(null==(t=at(e,bN))?void 0:t.elements,(t=>{var n;return!t.propertyName&&jh(t.name.text)&&28!==(null==(n=tQ(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function Wse(e,t){return xN(e)&&(e.isTypeOnly||t===e.name&&$Q(t))}function Hse(e){if(!Gse(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(bN(e)){const t=Vse(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Gse(e){var t;return!!Id(e)||!(null==(t=at(NN(e)?e.expression:e,q_))?void 0:t.text)}function Kse(e){return e.parent&&uF(e.parent)&&(e.parent.body===e||39===e.kind)}function Xse(e,t,n=new Set){return r(e)||r(px(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&Ex(n,e)&&t.getExportsOfModule(e).some((e=>Xse(e,t,n)))}}function Qse(e,t){const n=px(e,t).declarations;return!!p(n)&&k(n,o0)}function Yse(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let s=0;sice,getStringLiteralCompletions:()=>rce});var tce={directory:0,script:1,"external module name":2};function nce(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||tce[n.kind]t>=e.pos&&t<=e.end));if(!c)return;const l=e.text.slice(c.pos,t),u=wce.exec(l);if(!u)return;const[,_,d,p]=u,f=Ro(e.path),m="path"===d?hce(p,f,mce(o,0,e),n,r,i,!0,e.path):"types"===d?Dce(n,r,i,f,Sce(p),mce(o,1,e)):gn.fail();return pce(p,c.pos+_.length,Be(m.values()))}(e,t,o,i,QQ(o,i));return n&&oce(n)}if(oQ(e,t,n)){if(!n||!q_(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const u=IQ(t,c);switch(e.kind){case 0:return oce(e.paths);case 1:{const _=[];return gse(e.symbols,_,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:u,entries:_,defaultCommitCharacters:Uae(e.hasIndexSignature)}}case 2:{const n=15===t.kind?96:en(np(t),"'")?39:34,r=e.types.map((e=>({name:Ey(e.value,n),kindModifiers:"",kind:"string",sortText:Aae.LocationPriority,replacementSpan:PQ(t,c),commitCharacters:[]})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:u,entries:r,defaultCommitCharacters:Uae(e.isNewIdentifier)}}default:return gn.assertNever(e)}}(sce(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}function ice(e,t,n,r,i,o,a,s){if(!r||!q_(r))return;const c=sce(t,r,n,i,o,s);return c&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=T(n.paths,(t=>t.name===e));return t&&xse(e,ace(t.extension),t.kind,[OY(e)])}case 1:{const a=T(n.symbols,(t=>t.name===e));return a&&bse(a,a.name,i,r,t,o)}case 2:return T(n.types,(t=>t.value===e))?xse(e,"","string",[OY(e)]):void 0;default:return gn.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function oce(e){const t=!0,n=e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:ace(r),sortText:Aae.LocationPriority,replacementSpan:n})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:n,defaultCommitCharacters:Uae(t)}}function ace(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return gn.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return gn.assertNever(e)}}function sce(e,t,n,r,i,o){const a=r.getTypeChecker(),s=cce(t.parent);switch(s.kind){case 201:{const c=cce(s.parent);return 205===c.kind?{kind:0,paths:fce(e,t,r,i,o)}:function e(t){switch(t.kind){case 233:case 183:{const e=yc(s,(e=>e.parent===t));return e?{kind:2,types:uce(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:i,objectType:o}=t;if(!CX(i,n))return;return lce(a.getTypeFromTypeNode(o));case 192:{const n=e(cce(t.parent));if(!n)return;const i=(r=s,q(t.types,(e=>e!==r&&HE(e)&&Iw(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!E(i,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!E(i,e.value))),isNewIdentifier:!1}}default:return}var r}(c)}case 303:return tF(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;const r=e.getContextualType(t,4),i=jse(n,r,t,e);return{kind:1,symbols:i,hasIndexSignature:kZ(n)}}(a,s.parent):c()||c(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===ph(n)?lce(a.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return iF(e.parent)&&ve(e.parent.arguments)===e&&Xw(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!gf(s)){const r=s_e.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Set,a=w_(e)?gn.checkDefined(yc(t.parent,MN)):t,s=M(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!iJ(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(w_(e)){const e=r.getTypeOfPropertyOfType(s,lC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),uce(s,o)}));return p(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:fce(e,t,r,i,o)};case 296:const l=d0(a,s.parent.clauses),u=c();if(!u)return;return{kind:2,types:u.types.filter((e=>!l.hasValue(e.value))),isNewIdentifier:!1};case 276:case 281:const _=s;if(_.propertyName&&t!==_.propertyName)return;const d=_.parent,{moduleSpecifier:f}=275===d.kind?d.parent.parent:d.parent;if(!f)return;const m=a.getSymbolAtLocation(f);if(!m)return;const g=a.getExportsAndPropertiesOfModule(m),h=new Set(d.elements.map((e=>Zd(e.propertyName||e.name))));return{kind:1,symbols:g.filter((e=>"default"!==e.escapedName&&!h.has(e.escapedName))),hasIndexSignature:!1};default:return c()||c(0)}function c(e=4){const n=uce(vZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function cce(e){switch(e.kind){case 196:return lh(e);case 217:return uh(e);default:return e}}function lce(e){return e&&{kind:1,symbols:P(e.getApparentProperties(),(e=>!(e.valueDeclaration&&tu(e.valueDeclaration)))),hasIndexSignature:kZ(e)}}function uce(e,t=new Set){return e?(e=WQ(e)).isUnion()?M(e.types,(e=>uce(e,t))):!e.isStringLiteral()||1024&e.flags||!Ex(t,e.value)?u:[e]:u}function _ce(e,t,n){return{name:e,kind:t,extension:n}}function dce(e){return _ce(e,"directory",void 0)}function pce(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(yo),e.lastIndexOf(vo)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||Ss(e.substr(r,i),99)?void 0:Ys(t+r,i)}(e,t),i=0===e.length?void 0:Ys(t,e.length);return n.map((({name:e,kind:t,extension:n})=>e.includes(yo)||e.includes(vo)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function fce(e,t,n,r,i){return pce(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=$o(t.text),a=q_(t)?n.getModeForUsageLocation(e,t):void 0,s=e.path,c=Ro(s),l=n.getCompilerOptions(),_=n.getTypeChecker(),d=QQ(n,r),p=mce(l,1,e,_,i,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(o)||!l.baseUrl&&!l.paths&&(To(o)||ko(o))?function(e,t,n,r,i,o,a){const s=n.getCompilerOptions();return s.rootDirs?function(e,t,n,r,i,o,a,s){const c=i.getCompilerOptions(),l=c.project||o.getCurrentDirectory(),u=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),_=function(e,t,n,r){const i=g(e=e.map((e=>Yo(Go(To(e)?e:Uo(t,e))))),(e=>sa(e,n,t,r)?n.substr(e.length):void 0));return ne([...e.map((e=>Uo(e,i))),n].map((e=>Qo(e))),St,Nt)}(e,l,n,u);return ne(M(_,(e=>Be(hce(t,e,r,i,o,a,!0,s).values()))),((e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension))}(s.rootDirs,e,t,a,n,r,i,o):Be(hce(e,t,a,n,r,i,!0,o).values())}(o,c,n,r,d,s,p):function(e,t,n,r,i,o,a){const s=r.getTypeChecker(),c=r.getCompilerOptions(),{baseUrl:l,paths:_}=c,d=nce(),p=ES(c);if(l){const t=Go(Uo(i.getCurrentDirectory(),l));hce(e,t,a,r,i,o,!1,void 0,d)}if(_){const t=tv(c,i);vce(d,e,t,a,r,i,o,_)}const f=Sce(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>Ry(e.name))).filter((t=>en(t,e)&&!t.includes("*")));if(void 0!==t){const e=Yo(t);return r.map((t=>tn(t,e)))}return r}(e,f,s))d.add(_ce(t,"external module name",void 0));if(Dce(r,i,o,t,f,a,d),ZQ(p)){let n=!1;if(void 0===f)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return u;const n=[];for(const r of JZ(t,e)){const t=Ob(r,e);for(const e of Ece){const r=t[e];if(r)for(const e in r)Ie(r,e)&&!en(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=_ce(e,"external module name",void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){const n=IS(c),s=OS(c);let l=!1;const u=t=>{if(s&&!l){const n=Uo(t,"package.json");(l=RZ(i,n))&&m(Ob(n,i).imports,e,t,!1,!0)}};let _=t=>{const n=Uo(t,"node_modules");jZ(i,n)&&hce(e,n,a,r,i,o,!1,void 0,d),u(t)};if(f&&n){const t=_;_=n=>{const r=Jo(e);r.shift();let o=r.shift();if(!o)return t(n);if(en(o,"@")){const e=r.shift();if(!e)return t(n);o=Uo(o,e)}if(s&&en(o,"#"))return u(n);const a=Uo(n,"node_modules",o),c=Uo(a,"package.json");if(!RZ(i,c))return t(n);{const t=Ob(c,i),n=r.join("/")+(r.length&&Ao(e)?"/":"");m(t.exports,n,a,!0,!1)}}}SM(i,t,_)}}return Be(d.values());function m(e,t,s,l,u){if("object"!=typeof e||null===e)return;const _=Le(e),p=fj(c,n);bce(d,l,u,t,s,a,r,i,o,_,(t=>{const n=xce(e[t],p);if(void 0!==n)return ln($t(t,"/")&&$t(n,"/")?n+"*":n)}),gM)}}(o,c,a,n,r,d,p)}(e,t,n,r,i))}function mce(e,t,n,r,i,o){return{extensionsToSearch:j(gce(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function gce(e,t){const n=t?q(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...Bk(e),n];return ZQ(ES(e))?Jk(e,r):r}function hce(e,t,n,r,i,o,a,s,c=nce()){var l;void 0===e&&(e=""),Ao(e=$o(e))||(e=Ro(e)),""===e&&(e="."+yo);const u=Vo(t,e=Yo(e)),_=Ao(u)?u:Ro(u);if(!a){const e=zZ(_,i);if(e){const t=Ob(e,i).typesVersions;if("object"==typeof t){const a=null==(l=sj(t))?void 0:l.paths;if(a){const t=Ro(e);if(vce(c,u.slice(Yo(t).length),t,n,r,i,o,a))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!jZ(i,_))return c;const p=LZ(i,_,n.extensionsToSearch,void 0,["./*"]);for(let e of p){if(e=Go(e),s&&0===aa(e,s,t,d))continue;const{name:i,extension:o}=yce(jo(e),r,n,!1);c.add(_ce(i,"script",o))}const f=OZ(i,_);for(const e of f){const t=jo(Go(e));"@types"!==t&&c.add(dce(t))}return c}function yce(e,t,n,r){const i=eB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:cT(i)};if(0===n.referenceKind)return{name:e,extension:cT(e)};let o=eB.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(o=o.filter((e=>0!==e&&1!==e))),3===o[0]){if(Po(e,jk))return{name:e,extension:cT(e)};const n=eB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:Zk(e,n),extension:n}:{name:e,extension:cT(e)}}if(!r&&(0===o[0]||1===o[0])&&Po(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Xk(e),extension:cT(e)};const a=eB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return a?{name:Zk(e,a),extension:a}:{name:e,extension:cT(e)}}function vce(e,t,n,r,i,o,a,s){return bce(e,!1,!1,t,n,r,i,o,a,Le(s),(e=>s[e]),((e,t)=>{const n=eT(e),r=eT(t),i="object"==typeof n?n.prefix.length:e.length;return Tt("object"==typeof r?r.prefix.length:t.length,i)}))}function bce(e,t,n,r,i,o,a,s,c,l,u,_){let d,p=[];for(const e of l){if("."===e)continue;const l=e.replace(/^\.\//,"")+((t||n)&&$t(e,"/")?"*":""),f=u(e);if(f){const e=eT(l);if(!e)continue;const u="object"==typeof e&&rn(e,r);u&&(void 0===d||-1===_(l,d))&&(d=l,p=p.filter((e=>!e.matchedPattern))),"string"!=typeof e&&void 0!==d&&1===_(l,d)||p.push({matchedPattern:u,results:kce(l,f,r,i,o,t,n,a,s,c).map((({name:e,kind:t,extension:n})=>_ce(e,t,n)))})}}return p.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==d}function xce(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!nt(e))for(const n in e)if("default"===n||t.includes(n)||vM(t,n))return xce(e[n],t)}function Sce(e){return Fce(e)?Ao(e)?e:Ro(e):void 0}function kce(e,t,n,r,i,o,a,s,c,l){const _=eT(e);if(!_)return u;if("string"==typeof _)return p(e,"script");const d=nn(n,_.prefix);return void 0===d?$t(e,"/*")?p(_.prefix,"directory"):M(t,(e=>{var t;return null==(t=Tce("",r,e,i,o,a,s,c,l))?void 0:t.map((({name:e,...t})=>({name:_.prefix+e+_.suffix,...t})))})):M(t,(e=>Tce(d,r,e,i,o,a,s,c,l)));function p(e,t){return en(e,n)?[{name:Qo(e),kind:t,extension:void 0}]:u}}function Tce(e,t,n,r,i,o,a,s,c){if(!s.readDirectory)return;const l=eT(n);if(void 0===l||it(l))return;const u=Vo(l.prefix),_=Ao(l.prefix)?u:Ro(u),d=Ao(l.prefix)?"":jo(u),p=Fce(e),f=p?Ao(e)?e:Ro(e):void 0,m=()=>c.getCommonSourceDirectory(),h=!qy(c),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=p?Uo(_,d+f):_,x=Go(Uo(t,b)),S=o&&y&&ev(x,h,y,m),k=o&&v&&ev(x,h,v,m),T=Go(l.suffix),C=T&&Yy("_"+T),D=T?Zy("_"+T):void 0,w=[C&&Zk(T,C),...D?D.map((e=>Zk(T,e))):[],T].filter(it),E=T?w.map((e=>"**/*"+e)):["./*"],F=(i||o)&&$t(n,"/*");let N=P(x);return S&&(N=Y(N,P(S))),k&&(N=Y(N,P(k))),T||(N=Y(N,A(x)),S&&(N=Y(N,A(S))),k&&(N=Y(N,A(k)))),N;function P(e){const t=p?e:Yo(e)+d;return q(LZ(s,e,r.extensionsToSearch,void 0,E),(e=>{const n=function(e,t){return g(w,(n=>{const r=(i=Go(e),a=n,en(i,o=t)&&$t(i,a)?i.slice(o.length,i.length-a.length):void 0);var i,o,a;return void 0===r?void 0:Cce(r)}))}(e,t);if(n){if(Fce(n))return dce(Jo(Cce(n))[1]);const{name:e,extension:t}=yce(n,a,r,F);return _ce(e,"script",t)}}))}function A(e){return q(OZ(s,e),(e=>"node_modules"===e?void 0:dce(e)))}}function Cce(e){return e[0]===yo?e.slice(1):e}function Dce(e,t,n,r,i,o,a=nce()){const s=e.getCompilerOptions(),c=new Map,l=MZ((()=>cj(s,t)))||u;for(const e of l)_(e);for(const e of JZ(r,t))_(Uo(Ro(e),"node_modules/@types"));return a;function _(r){if(jZ(t,r))for(const l of OZ(t,r)){const u=PM(l);if(!s.types||E(s.types,u))if(void 0===i)c.has(u)||(a.add(_ce(u,"external module name",void 0)),c.set(u,!0));else{const s=Uo(r,l),c=ak(i,u,Uy(t));void 0!==c&&hce(c,s,o,e,t,n,!1,void 0,a)}}}}var wce=/^(\/\/\/\s*{const i=t.getSymbolAtLocation(n);if(i){const t=YB(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=qQ(),c=qQ(),l=[],u=!!r.globalExports,_=u?void 0:[];return p(r),{directImports:l,indirectUsers:d()};function d(){if(u)return e;if(r.declarations)for(const e of r.declarations)bp(e)&&t.has(e.getSourceFile().fileName)&&h(e);return _.map(Cd)}function p(e){const t=y(e);if(t)for(const e of t)if(s(e))switch(a&&a.throwIfCancellationRequested(),e.kind){case 213:if(gf(e)){f(e);break}if(!u){const t=e.parent;if(2===i&&260===t.kind){const{name:e}=t;if(80===e.kind){l.push(e);break}}}break;case 80:break;case 271:g(e,e.name,Lv(e,32),!1);break;case 272:case 351:l.push(e);const t=e.importClause&&e.importClause.namedBindings;t&&274===t.kind?g(e,t.name,!1,!0):!u&&Pg(e)&&h(zce(e));break;case 278:e.exportClause?280===e.exportClause.kind?h(zce(e),!0):l.push(e):p(Jce(e,o));break;case 205:!u&&e.isTypeOf&&!e.qualifier&&m(e)&&h(e.getSourceFile(),!0),l.push(e);break;default:gn.failBadSyntaxKind(e,"Unexpected import kind.")}}function f(e){h(yc(e,$ce)||e.getSourceFile(),!!m(e,!0))}function m(e,t=!1){return yc(e,(e=>t&&$ce(e)?"quit":mI(e)&&X(e.modifiers,Yw)))}function g(e,t,n,r){if(2===i)r||l.push(e);else if(!u){const r=zce(e);gn.assert(307===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!Rce(e,(e=>{if(!kN(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&TN(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?h(r,!0):h(r)}}function h(e,t=!1){if(gn.assert(!u),!c(e))return;if(_.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;gn.assert(!!(1536&n.flags));const r=y(n);if(r)for(const e of r)GE(e)||h(zce(e),!0)}function y(e){return n.get(YB(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...Oce(c,o,a.exportKind,n,s)}}}n(Nce,{Core:()=>Qce,DefinitionKind:()=>Uce,EntryKind:()=>Vce,ExportKind:()=>Ace,FindReferencesUse:()=>Yce,ImportExport:()=>Ice,createImportTracker:()=>Pce,findModuleReferences:()=>Lce,findReferenceOrRenameEntries:()=>nle,findReferencedSymbols:()=>Zce,getContextNode:()=>Kce,getExportInfo:()=>Bce,getImplementationsAtPosition:()=>ele,getImportOrExportSymbol:()=>Mce,getReferenceEntriesForNode:()=>rle,isContextWithStartAndEndNode:()=>Hce,isDeclarationOfSymbol:()=>gle,isWriteAccessForReference:()=>mle,toContextSpan:()=>Xce,toHighlightSpan:()=>dle,toReferenceEntry:()=>cle,toRenameLocation:()=>sle});var Ace=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Ace||{}),Ice=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Ice||{});function Oce(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(271===e.kind)return void(qce(e)&&l(e.name));if(80===e.kind)return void l(e);if(205===e.kind){if(e.qualifier){const n=mb(e.qualifier);n.escapedText===Cc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&TN(e.exportClause)&&u(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 274:l(c.name);break;case 275:0!==n&&1!==n||u(c);break;default:gn.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==sY(t)||s(o,r.getSymbolAtLocation(o))}function l(e){2!==n||i&&!_(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function u(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;_(Zd(o||e))&&(o?(a.push(o),i&&Zd(e)!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function _(e){return e===t.escapedName||0!==n&&"default"===e}}function Lce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(307===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}jce(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(sy(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function Rce(e,t){return f(307===e.kind?e.statements:e.body.statements,(e=>t(e)||$ce(e)&&f(e.body&&e.body.statements,t)))}function jce(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(Dg(n),n);else Rce(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&Iw(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;qce(n)&&t(n,n.moduleReference.expression);break}}}))}function Mce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&qce(t);case 276:return!t.propertyName;case 273:case 274:return gn.assert(t.name===e),!0;case 208:return jm(e)&&Um(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(CN(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(nF(n)&&sg(n.expression)&&!Qw(n.name))return t.getSymbolAtLocation(n);if(GN(n)&&hF(n.parent.parent)&&2===cg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=gn.checkDefined(e.valueDeclaration);return SN(i)?null==(n=at(i.expression,p_))?void 0:n.symbol:hF(i)?null==(r=at(i.right,p_))?void 0:r.symbol:QN(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=sY(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 211===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&hF(c)?u(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=ZF(e)?e:ZE(e)?lc(e):void 0;return n?e.name!==t||WN(n.parent)?void 0:LF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&Lv(i,32)){if(uN(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(vN(s))return o(t,0);if(SN(s))return l(s);if(SN(c))return l(c);if(hF(s))return u(s,!0);if(hF(c))return u(c,!0);if(OP(s)||vP(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function u(e,r){let i;switch(cg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Ax(st(e.left,Px))):t;return a&&o(a,i)}}function o(e,t){const r=Bce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Lv(e,2048)?1:0}}function Bce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return rd(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function Jce(e,t){return t.getMergedSymbol(zce(e).symbol)}function zce(e){if(213===e.kind||351===e.kind)return e.getSourceFile();const{parent:t}=e;return 307===t.kind?t:(gn.assert(268===t.kind),st(t.parent,$ce))}function $ce(e){return 267===e.kind&&11===e.name.kind}function qce(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var Uce=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Uce||{}),Vce=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Vce||{});function Wce(e,t=1){return{kind:t,node:e.name||e,context:Gce(e)}}function Hce(e){return e&&void 0===e.kind}function Gce(e){if(h_(e))return Kce(e);if(e.parent){if(!h_(e.parent)&&!SN(e.parent)){if(jm(e)){const t=hF(e.parent)?e.parent:Px(e.parent)&&hF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==cg(t))return Kce(t)}if(IN(e.parent)||ON(e.parent))return e.parent.parent;if(AN(e.parent)||KF(e.parent)||Al(e.parent))return e.parent;if(q_(e)){const t=wg(e);if(t){const e=yc(t,(e=>h_(e)||b_(e)||A_(e)));return h_(e)?Kce(e):e}}const t=yc(e,dE);return t?Kce(t.parent):void 0}return e.parent.name===e||xE(e.parent)||SN(e.parent)||(Vl(e.parent)||ZE(e.parent))&&e.parent.propertyName===e||90===e.kind&&Lv(e.parent,2080)?Kce(e.parent):void 0}}function Kce(e){if(e)switch(e.kind){case 260:return eN(e.parent)&&1===e.parent.declarations.length?LF(e.parent.parent)?e.parent.parent:i_(e.parent.parent)?Kce(e.parent.parent):e.parent:e;case 208:return Kce(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return jF(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return wQ(e.parent)?Kce(yc(e.parent,(e=>hF(e)||i_(e)))):e;case 255:return{start:T(e.getChildren(e.getSourceFile()),(e=>109===e.kind)),end:e.caseBlock};default:return e}}function Xce(e,t,n){if(!n)return;const r=Hce(n)?ple(n.start,t,n.end):ple(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Qce,Yce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Yce||{});function Zce(e,t,n,r,i){const o=GX(r,i),a={use:1},s=Qce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Qce.getAdjustedNode(o,a),u=function(e){return 90===e.kind||!!hh(e)||yh(e)||137===e.kind&&xE(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?q(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=ale(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&ve(r.declarations);return{...ole(s?Ac(s)||s:n),name:a,kind:o,displayParts:i,context:Kce(s)}}case 1:{const{node:t}=e;return{...ole(t),name:t.text,kind:"label",displayParts:[DY(t.text,17)]}}case 2:{const{node:t}=e,n=Ra(t.kind);return{...ole(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&U_e.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),vX(n),n).displayParts||[OY("this")];return{...ole(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...ole(t),name:t.text,kind:"var",displayParts:[DY(np(t),8)]}}case 5:return{textSpan:LQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[DY(`"${e.reference.fileName}"`,8)]};default:return gn.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...Xce(o,i,l)}}(e,t,o))),references:n.map((e=>function(e,t){const n=cle(e);return t?{...n,isDefinition:0!==e.kind&&gle(e.node,t)}:n}(e,u)))})):void 0}function ele(e,t,n,r,i){const o=GX(r,i);let a;const s=tle(e,t,n,o,i);if(211===o.parent.kind||208===o.parent.kind||212===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=et(s),i=new Set;for(;!r.isEmpty();){const o=r.dequeue();if(!Ex(i,QB(o.node)))continue;a=le(a,o);const s=tle(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return O(a,(e=>function(e,t){const n=lle(e);if(0!==e.kind){const{node:r}=e;return{...n,..._le(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function tle(e,t,n,r,i){if(307===r.kind)return;const o=e.getTypeChecker();if(304===r.parent.kind){const e=[];return Qce.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(Wce(t)))),e}if(108===r.kind||pm(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[Wce(e.valueDeclaration)]}return rle(i,r,e,n,t,{implementations:!0,use:1})}function nle(e,t,n,r,i,o,a){return O(ile(Qce.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function rle(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return ile(Qce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function ile(e){return e&&M(e,(e=>e.references))}function ole(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:ple(dE(e)?e.expression:e,t)}}function ale(e,t,n){const r=Qce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&ve(e.declarations)||n,{displayParts:o,symbolKind:a}=U_e.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function sle(e,t,n,r,i){return{...lle(e),...r&&ule(e,t,n,i)}}function cle(e){const t=lle(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:mle(r),isInString:2===n||void 0}}function lle(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=ple(e.node,t);return{textSpan:n,fileName:t.fileName,...Xce(n,t,e.context)}}}function ule(e,t,n,r){if(0!==e.kind&&(Xw(t)||q_(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=GN(o);if(s||lY(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return tF(n)&&hF(n.parent)&&sg(n.parent.left)?e:t}return e}if(xN(o)&&!o.propertyName)return E((CN(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:TK;if(CN(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&Pw(e.node)&&Px(e.node.parent)){const e=oY(r);return{prefixText:e,suffixText:e}}return TK}function _le(e,t){const n=t.getSymbolAtLocation(h_(e)&&e.name?e.name:e);return n?ale(n,t,e):210===e.kind?{kind:"interface",displayParts:[FY(21),OY("object literal"),FY(22)]}:231===e.kind?{kind:"local class",displayParts:[FY(21),OY("anonymous local class"),FY(22)]}:{kind:bX(e),displayParts:[]}}function dle(e){const t=lle(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=mle(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function ple(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return q_(e)&&i-r>2&&(gn.assert(void 0===n),r+=1,i-=1),269===(null==n?void 0:n.kind)&&(i=n.getFullStart()),Zs(r,i)}function fle(e){return 0===e.kind?e.textSpan:ple(e.node,e.node.getSourceFile())}function mle(e){const t=hh(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!wQ(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||WN(e.parent);case 173:case 171:case 348:case 341:return!1;default:return gn.failBadSyntaxKind(e)}}(t)||90===e.kind||gx(e)}function gle(e,t){var n;if(!t)return!1;const r=hh(e)||(90===e.kind?e.parent:yh(e)||137===e.kind&&xE(e.parent)?e.parent.parent:void 0),i=r&&hF(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}(e=>{function t(e,t){return 1===t.use?e=WX(e):2===t.use&&(e=HX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||u;for(const e of i)if(DU(e)){const t=n.getSourceFileByPath(e.file),i=EU(n,e);wU(i)&&(r=le(r,{kind:0,fileName:t.fileName,textSpan:LQ(i)}))}return r}function r(e,t,n){if(e.parent&&lN(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const c=1536&e.flags&&e.declarations&&T(e.declarations,QN);if(!c)return;const u=e.exports.get("export="),_=s(t,e,!!u,n,a);if(!u||!a.has(c.fileName))return _;const d=t.getTypeChecker();return o(t,_,l(e=px(u,d),void 0,n,a,d,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=D(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=a(e,t),i=a(e,n);if(r!==i)return Tt(r,i);const o=fle(t),s=fle(n);return o.start!==s.start?Tt(o.start,s.start):Tt(o.length,s.length)}))}}else n=r;return n}function a(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function s(e,t,n,r,i){gn.assert(!!t.valueDeclaration);const o=q(Lce(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(HE(t)){const e=st(t.parent,GE);if(n&&!e.qualifier)return}return Wce(e.literal)}return"implicit"===e.kind?Wce(e.literal.text!==X_&&UI(e.referencingFile,(e=>2&e.transformFlags?PN(e)||AN(e)||LN(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:LQ(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 307:break;case 267:i.has(e.getSourceFile().fileName)&&o.push(Wce(e.name));break;default:gn.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=t.exports.get("export=");if(null==a?void 0:a.declarations)for(const e of a.declarations){const t=e.getSourceFile();if(i.has(t.fileName)){const n=hF(e)&&nF(e.left)?e.left.expression:SN(e)?gn.checkDefined(RX(e,95,t)):Ac(e)||e;o.push(Wce(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:u}function c(e){return 148===e.kind&&UE(e.parent)&&148===e.parent.operator}function l(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;return CN(i)&&r?R(t,e,i,n):g(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;gn.fail(`Unexpected symbol at ${gn.formatSyntaxKind(t.kind)}: ${gn.formatSymbol(e)}`)}return AE(r.parent)&&ME(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!Z(a))||e,c=t?K(t,s):7,l=[],u=new y(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(yu(e.parent))return gn.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),d=Z(a)&&s.declarations?T(s.declarations,CN):void 0;if(d)L(d.name,s,d,u.createSearch(t,e,void 0),u,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)j(t,s,u),v(t,s,{exportingModuleSymbol:s.parent,exportKind:1},u);else{const e=u.createSearch(t,s,void 0,{allSearchSymbols:t?V(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});_(s,u,e)}return l}function _(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(218===i.kind||231===i.kind))return i;if(!t)return;if(8196&n){const e=T(t,(e=>Ov(e,2)||tu(e)));return e?Ph(e,263):void 0}if(t.some(lY))return;const o=r&&!(262144&e.flags);if(o&&(!rd(r)||r.globalExports))return;let a;for(const e of t){const t=vX(e);if(a&&a!==t)return;if(!t||307===t.kind&&!af(t))return;if(a=t,lF(a)){let e;for(;e=Vg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)A(r,r.getSourceFile(),n,t,!(QN(r)&&!E(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),S(e,n,t)}let d;var m;function h(e){if(!(33555968&e.flags))return;const t=e.declarations&&T(e.declarations,(e=>!QN(e)&&!aN(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,_,d,p,f={},m=new Set(d.map((e=>e.fileName)))){var h,y;if(QN(a=t(a,f))){const t=hle.getReferenceAtPosition(a,e,_);if(!(null==t?void 0:t.file))return;const r=_.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return s(_,r,!1,d,m);const i=_.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:a},references:n(t.file,i,_)||u}]}if(!f.implementations){const e=function(e,t,n){if(JQ(e.kind)){if(116===e.kind&&pF(e.parent))return;if(148===e.kind&&!c(e))return;return function(e,t,n,r){const i=M(e,(e=>(n.throwIfCancellationRequested(),q(C(e,Ra(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return Wce(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?c:void 0)}if(hf(e.parent)&&e.parent.name===e)return function(e,t){const n=M(e,(e=>(t.throwIfCancellationRequested(),q(C(e,"meta",e),(e=>{const t=e.parent;if(hf(t))return Wce(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(iE(e)&&bE(e.parent))return[{definition:{type:2,node:e},references:[Wce(e)]}];if(cX(e)){const t=aX(e.parent,e.text);return t&&F(t.parent,t)}return lX(e)?F(e.parent,e):xX(e)?function(e,t,n){let r=sm(e,!1,!1),i=256;switch(r.kind){case 174:case 173:if(Wf(r)){i&=Kv(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:i&=Kv(r),r=r.parent;break;case 307:if(XI(r)||U(e))return;case 262:case 218:break;default:return}const o=M(307===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),C(e,"this",QN(r)?e:r).filter((e=>{if(!xX(e))return!1;const t=sm(e,!1,!1);if(!p_(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return Wf(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&p_(t.parent)&&r.symbol===t.parent.symbol&&Rv(t)===!!i;case 307:return 307===t.kind&&!XI(t)&&!U(e)}}))))).map((e=>Wce(e))),a=g(o,(e=>fE(e.node.parent)?e.node:void 0));return[{definition:{type:3,node:a||e},references:o}]}(e,t,n):108===e.kind?function(e){let t=_m(e,!1);if(!t)return;let n=256;switch(t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=Kv(t),t=t.parent;break;default:return}const r=q(C(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=_m(e,!1);return r&&Rv(r)===!!n&&r.parent.symbol===t.symbol?Wce(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(a,d,p);if(e)return e}const v=_.getTypeChecker(),b=v.getSymbolAtLocation(xE(a)&&a.parent.name||a);if(!b){if(!f.implementations&&q_(a)){if(cY(a)){const e=_.getFileIncludeReasons(),t=null==(y=null==(h=_.getResolvedModuleFromModuleSpecifier(a))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,r=t?_.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:a},references:n(r,e,_)||u}]}return function(e,t,n,r){const i=zX(e,n),o=M(t,(t=>(r.throwIfCancellationRequested(),q(C(t,e.text),(r=>{if(q_(r)&&r.text===e.text){if(!i)return Rw(r)&&!Wb(r,t)?void 0:Wce(r,2);{const e=zX(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(gE(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return Wce(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(a,d,v,p)}return}if("export="===b.escapedName)return s(_,b.parent,!1,d,m);const x=i(b,_,d,p,f,m);if(x&&!(33554432&b.flags))return x;const S=r(a,b,v),k=S&&i(S,_,d,p,f,m);return o(_,x,l(b,a,d,m,v,p,f),k)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map((e=>e.fileName)))){var o,a;const c=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(c)return(null==(a=s(t,c,!1,r,i)[0])?void 0:a.references)||u;const l=t.getFileIncludeReasons(),_=t.getSourceFile(e);return _&&l&&n(_,l,t)||u},(m=d||(d={}))[m.None=0]="None",m[m.Constructor=1]="Constructor",m[m.Class=2]="Class";class y{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=qQ(),this.markSeenReExportRHS=qQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=Pce(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Ry(Cc(wb(t)||h(t)||t)),allSearchSymbols:o=[t]}=r,a=xc(i),s=this.options.implementations&&e?function(e,t,n){const r=pX(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=q(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>E(o,e)}}referenceAdder(e){const t=YB(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(Wce(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=QB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=W(r,YB(e))||i;return i}}function v(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)b(t,r)&&e(t)}for(const[e,t]of i)N(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)S(e,i,r)}}function b(e,t){return!(!I(e,t)||2===t.options.use&&(!Xw(e)&&!Vl(e.parent)||Vl(e.parent)&&ep(e)))}function x(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();N(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function S(e,t,n){void 0!==u7(e).get(t.escapedText)&&N(e,t,n)}function k(e,t,n,r,i=n){const o=ac(e.parent,e.parent.parent)?xe(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of C(n,o.name,i)){if(!Xw(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||CN(a.parent)&&R(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function C(e,t,n=e){return q(w(e,t,n),(t=>{const n=GX(e,t);return n===e?void 0:n}))}function w(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&xs(i.charCodeAt(s-1),99)||e!==o&&xs(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function F(e,t){const n=e.getSourceFile(),r=t.text,i=q(C(n,r,e),(e=>e===t||cX(e)&&aX(e,r)===t?Wce(e):void 0));return[{definition:{type:1,node:t},references:i}]}function N(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),A(e,e,t,n,r)}function A(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of w(t,n.text,e))O(t,o,n,r,i)}function I(e,t){return!!(HK(e)&t.searchMeaning)}function O(e,t,n,r,i){const o=GX(e,t);if(!function(e,t){switch(e.kind){case 81:if(tP(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return n.text.length===t.length&&(hX(n)||mX(e)||yX(e)||iF(e.parent)&&lg(e.parent)&&e.parent.arguments[1]===e||Vl(e.parent))}case 9:return hX(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&oQ(e,t)||r.options.findInComments&&FQ(e,t))&&r.addStringOrCommentReference(e.fileName,Ys(t,n.text.length)));if(!I(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(xN(s)&&s.propertyName===o)return;if(CN(s))return gn.assert(80===o.kind||11===o.kind),void L(o,a,s,n,r,i);if(Ol(s)&&s.isNameFirst&&s.typeExpression&&fP(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&p(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const i=r.referenceAdder(n.symbol);j(t,n.symbol,r),f(e,(e=>{_E(e.name)&&i(e.name.left)}))}(s.typeExpression.type.jsDocPropertyTags,o,n,r);const c=function(e,t,n,r){const{checker:i}=r;return H(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&G(t)!==G(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&_x(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>$(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&j(o,c,r);break;case 1:!function(e,t,n,r){XK(e)&&j(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(yu(e.parent))gn.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=B(e);if(r&&r.declarations)for(const e of r.declarations){const r=RX(e,137,t);gn.assert(176===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&Y(e,110,(e=>{XK(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=function(e){return lb(oX(e).parent)}(e);t&&(function(e,t){const n=B(e.symbol);if(n&&n.declarations)for(const e of n.declarations){gn.assert(176===e.kind);const n=e.body;n&&Y(n,108,(e=>{KK(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!B(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);_(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){j(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!yu(r))return;gn.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)Su(e)&&Rv(e)&&e.body&&e.body.forEachChild((function e(t){110===t.kind?i(t):uu(t)||yu(t)||t.forEachChild(e)}))}(o,n,r);break;default:gn.assertNever(r.specialSearchKind)}jm(o)&&ZE(o.parent)&&Um(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=Mce(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?Z(r.options)||x(o,r):v(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&Ac(t);33554432&e||!o||!n.includes(i)||j(o,i,r)}(a,n,r)}function L(e,t,n,r,i,o,a){gn.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,u=s.parent,_=R(e,t,n,i.checker);if(a||r.includes(_)){if(c?e===c?(u.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&j(l,gn.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&ep(l)||d(),!Z(i.options)||a){const t=ep(e)||ep(n.name)?1:0,r=gn.checkDefined(n.symbol),o=Bce(r,t,i.checker);o&&v(e,r,o,i)}if(1!==r.comingFrom&&u.moduleSpecifier&&!c&&!Z(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&x(e,i)}}function d(){o&&j(e,_,i)}}function R(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return gn.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function j(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(gh(e)&&function(e){return 33554432&e.flags?!(rN(e)||iN(e)):Mf(e)?j_(e):du(e)?!!e.body:yu(e)||d_(e)}(e.parent))return void t(e);if(80!==e.kind)return;304===e.parent.kind&&Q(e,n.checker,t);const r=J(e);if(r)return void t(r);const i=yc(e,(e=>!_E(e.parent)&&!wu(e.parent)&&!Tu(e.parent))),o=i.parent;if(R_(o)&&o.type===i&&n.markSeenContainingTypeReference(o))if(j_(o))a(o.initializer);else if(uu(o)&&o.body){const e=o.body;241===e.kind?Of(e,(e=>{e.expression&&a(e.expression)})):a(e)}else Yu(o)&&a(o.expression);function a(e){z(e)&&t(e)}}(e,o,n):o(e,r)}function B(e){return e.members&&e.members.get("__constructor")}function J(e){return Xw(e)||nF(e)?J(e.parent):TF(e)?at(e.parent.parent,an(yu,rN)):void 0}function z(e){switch(e.kind){case 217:return z(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function $(e,t,n,r){if(e===t)return!0;const i=YB(e)+","+YB(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>Eh(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&$(i.symbol,t,n,r)}))));return n.set(i,a),a}function U(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function V(e,t,n,r,i,o){const a=[];return H(e,t,n,r,!(r&&i),((t,n,r)=>{r&&G(e)!==G(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function H(e,t,n,i,o,a,s){const c=_7(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&g(d7(c,n,r,!0),(e=>d(e,4)));if(o)return o;const s=function(e,t){return wQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const u=e&&a(e,void 0,void 0,3);if(u)return u}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const u=d(e);if(u)return u;if(e.valueDeclaration&&ac(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(st(e.valueDeclaration,fE),e.name);return gn.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const _=Z_(e,281);if(!i||_&&!_.propertyName){const e=_&&n.getExportSpecifierLocalTargetSymbol(_);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?lY(t.parent)?uY(n,t.parent):void 0:p(e,n),r&&d(r,4)}if(gn.assert(i),o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return g(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Set;return o(e);function o(e){if(96&e.flags&&Ex(i,e))return g(e.declarations,(e=>g(Eh(e),(e=>{const i=n.getTypeAtLocation(e),a=i&&i.symbol&&n.getPropertyOfType(i,t);return i&&a&&(g(n.getRootSymbols(a),r)||o(i.symbol))}))))}}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function p(e,t){const n=Z_(e,208);if(n&&lY(n))return uY(t,n)}}function G(e){return!!e.valueDeclaration&&!!(256&Hv(e.valueDeclaration))}function K(e,t){let n=HK(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=WK(e);t&n&&(n|=t)}}while(n!==e)}return n}function Q(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&WK(e)&&n(e)}function Y(e,t,n){qI(e,(e=>{e.kind===t&&n(e),Y(e,t,n)}))}function Z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=Pce(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:l,indirectUsers:u,singleReferences:_}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of _)Xw(e)&&GE(e.parent)&&s(e);for(const e of u)for(const n of C(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=X(null==e?void 0:e.declarations,(e=>!!at(e,SN)));!Xw(n)||Vl(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return k(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=k,e.getTopMostDeclarationNamesInFile=function(e,t){const n=P(C(t,e),(e=>!!hh(e)));return n.reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=vX(e),t++;return t}(t);return X(e.declarationNames)&&n!==e.depth?ne===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=K,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Qce||(Qce={}));var hle={};function yle(e,t,n,r,i){var o;const a=ble(t,n,e),s=a&&[Lle(a.reference.fileName,a.fileName,a.unverified)]||u;if(null==a?void 0:a.file)return s;const c=GX(t,n);if(c===t)return;const{parent:l}=c,_=e.getTypeChecker();if(164===c.kind||Xw(c)&&TP(l)&&l.tagName===c)return function(e,t){const n=yc(t,hu);if(!n||!n.name)return;const r=yc(n,yu);if(!r)return;const i=Ch(r);if(!i)return;const o=ph(i.expression),a=SF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Sc($p(n.name)),c=jv(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);return c?Ele(e,c,t):void 0}(_,c)||u;if(cX(c)){const e=aX(c.parent,c.text);return e?[Nle(_,e,"label",c.text,void 0)]:void 0}switch(c.kind){case 107:const e=yc(c.parent,(e=>bE(e)?"quit":du(e)));return e?[Ile(_,e)]:void 0;case 90:if(!UN(c.parent))break;case 84:const n=yc(c.parent,GF);if(n)return[Ple(n,t)]}if(135===c.kind){const e=yc(c,(e=>du(e)));return e&&X(e.modifiers,(e=>134===e.kind))?[Ile(_,e)]:void 0}if(127===c.kind){const e=yc(c,(e=>du(e)));return e&&e.asteriskToken?[Ile(_,e)]:void 0}if(iE(c)&&bE(c.parent)){const e=c.parent.parent,{symbol:t,failedAliasResolution:n}=wle(e,_,i),r=P(e.members,bE),o=t?_.symbolToString(t,e):"",a=c.getSourceFile();return O(r,(e=>{let{pos:t}=Ub(e);return t=is(a.text,t),Nle(_,e,"constructor","static {}",o,!1,n,{start:t,length:6})}))}let{symbol:d,failedAliasResolution:p}=wle(c,_,i),m=c;if(r&&p){const e=f([c,...(null==d?void 0:d.declarations)||u],(e=>yc(e,Np))),t=e&&Cg(e);t&&(({symbol:d,failedAliasResolution:p}=wle(t,_,i)),m=t)}if(!d&&cY(m)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(m,t))?void 0:o.resolvedModule;if(n)return[{name:m.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Ys(0,0),failedAliasResolution:p,isAmbient:iO(n.resolvedFileName),unverified:m!==c}]}if(!d)return Y(s,function(e,t){return q(t.getIndexInfosAtLocation(e),(e=>e.declaration&&Ile(t,e.declaration)))}(c,_));if(r&&k(d.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const g=function(e,t){const n=function(e){const t=yc(e,(e=>!pX(e))),n=null==t?void 0:t.parent;return n&&$u(n)&&ym(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return at(r&&r.declaration,(e=>uu(e)&&!FE(e)))}(_,c);if(g&&(!w_(c.parent)||!function(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}(g))){const e=Ile(_,g,p);let t=e=>e!==g;if(_.getRootSymbols(d).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||_b(t.parent)||!$u(t.parent)&&e===(null==(n=at(t.parent,p_))?void 0:n.symbol)}(e,g)))){if(!xE(g))return[e];t=e=>e!==g&&(nN(e)||SF(e))}const n=Ele(_,d,c,p,t)||u;return 108===c.kind?[e,...n]:[...n,e]}if(304===c.parent.kind){const e=_.getShorthandAssignmentValueSymbol(d.valueDeclaration);return Y((null==e?void 0:e.declarations)?e.declarations.map((t=>Fle(t,_,e,c,!1,p))):u,vle(_,c))}if(cu(c)&&ZE(l)&&QE(l.parent)&&c===(l.propertyName||l.name)){const e=HQ(c),t=_.getTypeAtLocation(l.parent);return void 0===e?u:M(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&Ele(_,n,c)}))}const h=vle(_,c);return Y(s,h.length?h:Ele(_,d,c,p))}function vle(e,t){const n=_7(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return M(d7(n,e,r,!1),(n=>Ele(e,n,t)))}return u}function ble(e,t,n){var r,i;const o=Ole(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=Ole(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=Ole(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=KX(e,t);let o;if(cY(r)&&As(r.text)&&(o=n.getResolvedModuleFromModuleSpecifier(r,e))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||Vo(Ro(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}n(hle,{createDefinitionInfo:()=>Fle,getDefinitionAndBoundSpan:()=>Dle,getDefinitionAtPosition:()=>yle,getReferenceAtPosition:()=>ble,getTypeDefinitionAtPosition:()=>Tle});var xle=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Sle(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!xle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function kle(e,t,n,r){var i,o;if(4&Tx(t)&&function(e,t){const n=t.symbol.name;if(!xle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return Cle(e.getTypeArguments(t)[0],e,n,r);if(Sle(e,t)&&t.aliasTypeArguments)return Cle(t.aliasTypeArguments[0],e,n,r);if(32&Tx(t)&&t.target&&Sle(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&iN(a)&&EE(a.type)&&a.type.typeArguments)return Cle(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function Tle(e,t,n){const r=GX(t,n);if(r===t)return;if(hf(r.parent)&&r.parent.name===r)return Cle(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=wle(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&ZF(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(xe(e))}}(i,a,e),c=s&&Cle(s,e,r,o),[l,u]=c&&0!==c.length?[s,c]:[a,Cle(a,e,r,o)];return u.length?[...kle(e,l,r,o),...u]:!(111551&i.flags)&&788968&i.flags?Ele(e,px(i,e),r,o):void 0}function Cle(e,t,n,r){return M(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&Ele(t,e.symbol,n,r)))}function Dle(e,t,n){const r=yle(e,t,n);if(!r||0===r.length)return;const i=Ole(t.referencedFiles,n)||Ole(t.typeReferenceDirectives,n)||Ole(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:LQ(i)};const o=GX(t,n);return{definitions:r,textSpan:Ys(o.getStart(),o.getWidth())}}function wle(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return!!(80===e.kind||11===e.kind&&Vl(e.parent))&&(e.parent===t||274!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function Ele(e,t,n,r,i){const o=void 0!==i?P(t.declarations,i):t.declarations,a=!i&&(function(){if(32&t.flags&&!(19&t.flags)&&(XK(n)||137===n.kind)){const e=T(o,yu);return e&&c(e.members,!0)}}()||(QK(n)||gX(n)?c(o,!1):void 0));if(a)return a;const s=P(o,(e=>!function(e){if(!Xm(e))return!1;const t=yc(e,(e=>!!_b(e)||!Xm(e)&&"quit"));return!!t&&5===cg(t)}(e)));return O(X(s)?s:o,(i=>Fle(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?xE:uu),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>Fle(r,e,t,n))):[Fle(Te(a),e,t,n,!1,r)]:void 0}}function Fle(e,t,n,r,i,o){const a=t.symbolToString(n),s=U_e.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return Nle(t,e,s,a,c,i,o)}function Nle(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=AQ(Ac(t)||t,c)),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...Nce.toContextSpan(s,c,Nce.getContextNode(t)),isLocal:!Ale(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function Ple(e,t){const n=Nce.getContextNode(e),r=AQ(Hce(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Nce.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Ale(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(j_(t.parent)&&t.parent.initializer===t)return Ale(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Ov(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Ale(e,t.parent);default:return!1}}function Ile(e,t,n){return Fle(t,e,t.symbol,t,!1,n)}function Ole(e,t){return T(e,(e=>Bs(e,t)))}function Lle(e,t,n){return{fileName:t,textSpan:Zs(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}var Rle={};n(Rle,{provideInlayHints:()=>Jle});var jle=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Mle(e){return"literals"===e.includeInlayParameterNameHints}function Ble(e){return!0===e.interactiveInlayHints}function Jle(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=iY(t,o),l=n.getTypeChecker(),u=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:i.throwIfCancellationRequested()}if(Ws(r,n.pos,n.getFullWidth())&&(!wu(n)||TF(n)))return o.includeInlayVariableTypeHints&&ZF(n)||o.includeInlayPropertyDeclarationTypeHints&&hE(n)?f(n):o.includeInlayEnumMemberValueHints&&XN(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,u.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(iF(n)||oF(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=l.getResolvedSignature(e);if(void 0===n)return;let r=0;for(const e of t){const t=ph(e);if(Mle(o)&&!h(t)){r++;continue}let i=0;if(xF(t)){const e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){const{elementFlags:t,fixedLength:n}=e.target;if(0===n)continue;const r=D(t,(e=>!(1&e)));(r<0?n:r)>0&&(i=r<0?n:r)}}const a=l.getParameterIdentifierInfoAtPosition(n,r);if(r+=i||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!o.includeInlayParameterNameHintsWhenArgumentMatchesName&&m(t,r)&&!i)continue;const s=Sc(r);if(g(t,s))continue;_(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&du(n)&&$T(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(t)for(let n=0;n{const o=l.typePredicateToTypePredicateNode(e,void 0,n);gn.assertIsDefined(o,"should always get typePredicateNode"),r.writeNode(4,o,t,i)}))}(e);const n=71286784,r=l.typePredicateToTypePredicateNode(e,void 0,n);return gn.assertIsDefined(r,"should always get typenode"),x(r)}(r);if(n)return void d(n,y(e))}const i=l.getReturnTypeOfSignature(n);if(p(i))return;const a=b(i);a&&d(a,y(e))}(n)),qI(n,e)}}(t),u;function _(e,t,n,r){let i,a=`${r?"...":""}${e}`;Ble(o)?(i=[k(a,t),{text:":"}],a=""):a+=":",u.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){u.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e){if(void 0===e.initializer&&(!hE(e)||1&l.getTypeAtLocation(e).flags)||Fu(e.name)||ZF(e)&&!S(e))return;if(xv(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=b(t);if(n){const t="string"==typeof n?n:n.map((e=>e.text)).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&&xt(e.name.getText(),t))return;d(n,e.name.end)}}function m(e,t){return Xw(e)?e.text===t:!!nF(e)&&e.name.text===t}function g(e,n){if(!Ss(n,DS(s),hS(t.scriptKind)))return!1;const r=hs(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=jle(n);return X(r,(e=>i.test(a.substring(e.pos,e.end))))}function h(e){switch(e.kind){case 224:{const t=e.operand;return Jl(t)||Xw(t)&&qT(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||qT(t)}}return Jl(e)}function y(e){const n=RX(e,22,t);return n?n.end:e.parameters.end}function v(e){const t=e.valueDeclaration;if(!t||!fE(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:b(n)}function b(e){if(!Ble(o))return function(e){const n=fq();return dd((r=>{const i=l.typeToTypeNode(e,void 0,71286784);gn.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typeToTypeNode(e,void 0,71286784);return gn.assertIsDefined(n,"should always get typeNode"),x(n)}function x(e){const t=[];return n(e),t;function n(e){var a,s;if(!e)return;const c=Ra(e.kind);if(c)t.push({text:c});else if(Jl(e))t.push({text:o(e)});else switch(e.kind){case 80:gn.assertNode(e,Xw);const c=kc(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Ac(e.symbol.declarations[0]);l?t.push(k(c,l)):t.push({text:c});break;case 166:gn.assertNode(e,_E),n(e.left),t.push({text:"."}),n(e.right);break;case 182:gn.assertNode(e,wE),e.assertsModifier&&t.push({text:"asserts "}),n(e.parameterName),e.type&&(t.push({text:" is "}),n(e.type));break;case 183:gn.assertNode(e,EE),n(e.typeName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 168:gn.assertNode(e,pE),e.modifiers&&i(e.modifiers," "),n(e.name),e.constraint&&(t.push({text:" extends "}),n(e.constraint)),e.default&&(t.push({text:" = "}),n(e.default));break;case 169:gn.assertNode(e,fE),e.modifiers&&i(e.modifiers," "),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 185:gn.assertNode(e,NE),t.push({text:"new "}),r(e),t.push({text:" => "}),n(e.type);break;case 186:gn.assertNode(e,PE),t.push({text:"typeof "}),n(e.exprName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 187:gn.assertNode(e,AE),t.push({text:"{"}),e.members.length&&(t.push({text:" "}),i(e.members,"; "),t.push({text:" "})),t.push({text:"}"});break;case 188:gn.assertNode(e,IE),n(e.elementType),t.push({text:"[]"});break;case 189:gn.assertNode(e,OE),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 202:gn.assertNode(e,LE),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),t.push({text:": "}),n(e.type);break;case 190:gn.assertNode(e,RE),n(e.type),t.push({text:"?"});break;case 191:gn.assertNode(e,jE),t.push({text:"..."}),n(e.type);break;case 192:gn.assertNode(e,ME),i(e.types," | ");break;case 193:gn.assertNode(e,BE),i(e.types," & ");break;case 194:gn.assertNode(e,JE),n(e.checkType),t.push({text:" extends "}),n(e.extendsType),t.push({text:" ? "}),n(e.trueType),t.push({text:" : "}),n(e.falseType);break;case 195:gn.assertNode(e,zE),t.push({text:"infer "}),n(e.typeParameter);break;case 196:gn.assertNode(e,$E),t.push({text:"("}),n(e.type),t.push({text:")"});break;case 198:gn.assertNode(e,UE),t.push({text:`${Ra(e.operator)} `}),n(e.type);break;case 199:gn.assertNode(e,VE),n(e.objectType),t.push({text:"["}),n(e.indexType),t.push({text:"]"});break;case 200:gn.assertNode(e,WE),t.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?t.push({text:"+"}):41===e.readonlyToken.kind&&t.push({text:"-"}),t.push({text:"readonly "})),t.push({text:"["}),n(e.typeParameter),e.nameType&&(t.push({text:" as "}),n(e.nameType)),t.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?t.push({text:"+"}):41===e.questionToken.kind&&t.push({text:"-"}),t.push({text:"?"})),t.push({text:": "}),e.type&&n(e.type),t.push({text:"; }"});break;case 201:gn.assertNode(e,HE),n(e.literal);break;case 184:gn.assertNode(e,FE),r(e),t.push({text:" => "}),n(e.type);break;case 205:gn.assertNode(e,GE),e.isTypeOf&&t.push({text:"typeof "}),t.push({text:"import("}),n(e.argument),e.assertions&&(t.push({text:", { assert: "}),i(e.assertions.assertClause.elements,", "),t.push({text:" }"})),t.push({text:")"}),e.qualifier&&(t.push({text:"."}),n(e.qualifier)),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 171:gn.assertNode(e,gE),(null==(a=e.modifiers)?void 0:a.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 181:gn.assertNode(e,DE),t.push({text:"["}),i(e.parameters,", "),t.push({text:"]"}),e.type&&(t.push({text:": "}),n(e.type));break;case 173:gn.assertNode(e,yE),(null==(s=e.modifiers)?void 0:s.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 179:gn.assertNode(e,TE),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 207:gn.assertNode(e,YE),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 206:gn.assertNode(e,QE),t.push({text:"{"}),e.elements.length&&(t.push({text:" "}),i(e.elements,", "),t.push({text:" "})),t.push({text:"}"});break;case 208:gn.assertNode(e,ZE),n(e.name);break;case 224:gn.assertNode(e,mF),t.push({text:Ra(e.operator)}),n(e.operand);break;case 203:gn.assertNode(e,XE),n(e.head),e.templateSpans.forEach(n);break;case 16:gn.assertNode(e,jw),t.push({text:o(e)});break;case 204:gn.assertNode(e,KE),n(e.type),n(e.literal);break;case 17:gn.assertNode(e,Mw),t.push({text:o(e)});break;case 18:gn.assertNode(e,Bw),t.push({text:o(e)});break;case 197:gn.assertNode(e,qE),t.push({text:"this"});break;default:gn.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(t.push({text:"<"}),i(e.typeParameters,", "),t.push({text:">"})),t.push({text:"("}),i(e.parameters,", "),t.push({text:")"})}function i(e,r){e.forEach(((e,i)=>{i>0&&t.push({text:r}),n(e)}))}function o(e){switch(e.kind){case 11:return 0===c?`'${Ey(e.text,39)}'`:`"${Ey(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??vy(Ey(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return"}"+t+"${";case 18:return"}"+t+"`"}}}return e.text}}function S(e){if((iy(e)||ZF(e)&&df(e))&&e.initializer){const t=ph(e.initializer);return!(h(t)||oF(t)||tF(t)||Yu(t))}return!0}function k(e,t){const n=t.getSourceFile();return{text:e,span:AQ(t,n),file:n.fileName}}}var zle={};n(zle,{getDocCommentTemplateAtPosition:()=>iue,getJSDocParameterNameCompletionDetails:()=>rue,getJSDocParameterNameCompletions:()=>nue,getJSDocTagCompletionDetails:()=>tue,getJSDocTagCompletions:()=>eue,getJSDocTagNameCompletionDetails:()=>Zle,getJSDocTagNameCompletions:()=>Yle,getJsDocCommentsFromDeclarations:()=>Vle,getJsDocTagsFromDeclarations:()=>Hle});var $le,qle,Ule=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function Vle(e,t){const n=[];return vY(e,(e=>{for(const r of function(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(CP(e.parent))return[e.parent.parent];default:return qg(e)}}(e)){const i=pP(r)&&r.tags&&T(r.tags,(e=>327===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||pP(r)&&346!==e.kind&&338!==e.kind&&r.tags&&r.tags.some((e=>346===e.kind||338===e.kind))&&!r.tags.some((e=>341===e.kind||342===e.kind)))continue;let o=r.comment?Xle(r.comment,t):[];i&&i.comment&&(o=o.concat(Xle(i.comment,t))),E(n,o,Wle)||n.push(o)}})),j(S(n,[$Y()]))}function Wle(e,t){return ae(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function Hle(e,t){const n=[];return vY(e,(e=>{const r=dl(e);if(!r.some((e=>346===e.kind||338===e.kind))||r.some((e=>341===e.kind||342===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:Qle(e,t)}),n.push(...Gle(Kle(e),t))})),n}function Gle(e,t){return M(e,(e=>Y([{name:e.tagName.text,text:Qle(e,t)}],Gle(Kle(e),t))))}function Kle(e){return Ol(e)&&e.isNameFirst&&e.typeExpression&&fP(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Xle(e,t){return"string"==typeof e?[OY(e)]:M(e,(e=>321===e.kind?[OY(e.text)]:BY(e,t)))}function Qle(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 341:return PY;case 348:return AY;case 345:return RY;case 346:case 338:return LY;default:return OY}}(r);switch(r){case 349:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Xle(n,t);case 329:case 328:return o(e.class);case 345:const a=e,s=[];if(a.constraint&&s.push(OY(a.constraint.getText())),p(a.typeParameters)){p(s)&&s.push(wY());const e=a.typeParameters[a.typeParameters.length-1];f(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(FY(28),wY())}))}return n&&s.push(wY(),...Xle(n,t)),s;case 344:case 350:return o(e.typeExpression);case 346:case 338:case 348:case 341:case 347:const{name:c}=e;return c?o(c):void 0===n?void 0:Xle(n,t);default:return void 0===n?void 0:Xle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[OY(r),...Xle(n,t)]:[i(r),wY(),...Xle(n,t)]:[OY(r)];var r}}function Yle(){return $le||($le=O(Ule,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Fae.SortText.LocationPriority}))))}var Zle=tue;function eue(){return qle||(qle=O(Ule,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Fae.SortText.LocationPriority}))))}function tue(e){return{name:e,kind:"",kindModifiers:"",displayParts:[OY(e)],documentation:u,tags:void 0,codeActions:void 0}}function nue(e){if(!Xw(e.name))return u;const t=e.name.text,n=e.parent,r=n.parent;return uu(r)?q(r.parameters,(r=>{if(!Xw(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&FP(t)&&Xw(t.name)&&t.name.escapedText===i))||void 0!==t&&!en(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:Fae.SortText.LocationPriority}})):[]}function rue(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[OY(e)],documentation:u,tags:void 0,codeActions:void 0}}function iue(e,t,n,r){const i=XX(t,n),o=yc(i,pP);if(o&&(void 0!==o.comment||p(o.tags)))return;const a=i.getStart(t);if(!o&&aoue(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:u}=s,_=ke(L_(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t){const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(l||[],f,d,e):"")+(u?function(e,t){return`${e} * @returns${t}`}(d,e):""),g=p(dl(c))>0;if(m&&!g){const t="/**"+e+d+" * ";return{newText:t+e+m+d+" */"+(a===n?e+d:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function oue(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:aue(n,t)};case 303:return oue(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&FE(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:aue(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return T(e.members,xE)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:aue(r,t)}:{commentOwner:e}}case 307:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return oue(e.expression,t);case 226:{const n=e;return 0===cg(n)?"quit":uu(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:aue(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(lF(r)||uF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:aue(r,t)}}}function aue(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(FE(e)||uF(e)&&Qu(e.body)||du(e)&&e.body&&OF(e.body)&&!!Of(e.body,(e=>e)))}var sue={};function cue(e,t,n,r,i,o){return Z_e.ChangeTracker.with({host:r,formatContext:i,preferences:o},(r=>{const i=t.map((t=>function(e,t){const n=[{parse:()=>HI("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>HI("__mapcode_class_content_nodes.ts",`class __class {\n${t}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:e,body:t}of n){const n=e(),i=t(n);if(i.length&&0===n.parseDiagnostics.length)return i;i.length&&r.push({sourceFile:n,body:i})}r.sort(((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length));const{body:i}=r[0];return i}(e,t))),o=n&&j(n);for(const t of i)lue(e,r,t,o)}))}function lue(e,t,n,r){hu(n[0])||Tu(n[0])?function(e,t,n,r){let i;if(i=r&&r.length?f(r,(t=>yc(XX(e,t.start),an(yu,rN)))):T(e.statements,an(yu,rN)),!i)return;const o=i.members.find((e=>n.some((t=>uue(t,e)))));if(o){const r=C(i.members,(e=>n.some((t=>uue(t,e)))));return f(n,_ue),void t.replaceNodeRangeWithNodes(e,o,r,n)}f(n,_ue),t.insertNodesAfter(e,i.members[i.members.length-1],n)}(e,t,n,r):function(e,t,n,r){if(!(null==r?void 0:r.length))return void t.insertNodesAtEndOfFile(e,n,!1);for(const i of r){const r=yc(XX(e,i.start),(e=>an(OF,QN)(e)&&X(e.statements,(e=>n.some((t=>uue(t,e)))))));if(r){const i=r.statements.find((e=>n.some((t=>uue(t,e)))));if(i){const o=C(r.statements,(e=>n.some((t=>uue(t,e)))));return f(n,_ue),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const t of r){const n=yc(XX(e,t.start),OF);if(n){i=n.statements;break}}f(n,_ue),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function uue(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(176===e.kind?e.kind===t.kind:Nc(e)&&Nc(t)?e.name.getText()===t.name.getText():MF(e)&&MF(t)||JF(e)&&JF(t)?e.expression.getText()===t.expression.getText():zF(e)&&zF(t)?(null==(n=e.initializer)?void 0:n.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(i=e.incrementor)?void 0:i.getText())===(null==(o=t.incrementor)?void 0:o.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=t.condition)?void 0:s.getText()):i_(e)&&i_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():KF(e)&&KF(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function _ue(e){due(e),e.parent=void 0}function due(e){e.pos=-1,e.end=-1,e.forEachChild(due)}n(sue,{mapCode:()=>cue});var pue={};function fue(e,t,n,r,i,o){const a=Z_e.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,l="RemoveUnused"===o||"All"===o,u=e.statements.filter(_N),_=gue(e,u),{comparersToTest:d,typeOrdersToTest:f}=mue(i),m=d[0],g={moduleSpecifierComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,namedImportComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,typeOrder:i.organizeImportsTypeOrder};if("boolean"!=typeof i.organizeImportsIgnoreCase&&({comparer:g.moduleSpecifierComparer}=Eue(_,d)),!g.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=Fue(u,d,f);if(e){const{namedImportComparer:t,typeOrder:n}=e;g.namedImportComparer=g.namedImportComparer??t,g.typeOrder=g.typeOrder??n}}_.forEach((e=>y(e,g))),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=p(n);let i=0,o=0;for(;igue(e,t)))}(e).forEach((e=>v(e,g.namedImportComparer)));for(const t of e.statements.filter(fp))t.body&&(gue(e,t.body.statements.filter(_N)).forEach((e=>y(e,g))),"RemoveUnused"!==o&&v(t.body.statements.filter(kN),g.namedImportComparer));return a.getChanges();function h(r,i){if(0===p(r))return;_D(r[0],1024);const o=c?Ve(r,(e=>yue(e.moduleSpecifier))):[r],l=M(s?me(o,((e,t)=>Tue(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??m))):o,(e=>yue(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===l.length)a.deleteNodes(e,r,{leadingTriviaOption:Z_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Z_e.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:Z_e.LeadingTriviaOption.Exclude,trailingTriviaOption:Z_e.TrailingTriviaOption.Include,suffix:zY(n,t.options)};a.replaceNodeWithNodes(e,r[0],l,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:Z_e.TrailingTriviaOption.Include},o)}}function y(t,n){const i=n.moduleSpecifierComparer??m,o=n.namedImportComparer??m,a=jue({organizeImportsTypeOrder:n.typeOrder??"last"},o);h(t,(t=>(l&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(yN(o))l(o.name)||(o=void 0);else{const e=o.elements.filter((e=>l(e.name)));e.lengthzue(e,t,i)))),t)))}function v(e,t){const n=jue(i,t);h(e,(e=>xue(e,n)))}}function mue(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[Lue(e,e.organizeImportsIgnoreCase)]:[Lue(e,!0),Lue(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function gue(e,t){const n=ks(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&hue(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function hue(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function yue(e){return void 0!==e&&q_(e)?e.text:void 0}function vue(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(yN(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function bue(e,t,n,r){if(0===e.length)return e;const i=We(e,(e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of me(e.attributes.elements,((e,t)=>Nt(e.name.text,t.name.text))))t+=n.name.text+":",t+=q_(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""})),o=[];for(const e in i){const a=i[e],{importWithoutClause:s,typeOnlyImports:c,regularImports:l}=vue(a);s&&o.push(s);for(const e of[l,c]){const i=e===c,{defaultImports:a,namespaceImports:s,namedImports:l}=e;if(!i&&1===a.length&&1===s.length&&0===l.length){const e=a[0];o.push(Sue(e,e.importClause.name,s[0].importClause.namedBindings));continue}const _=me(s,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const e of _)o.push(Sue(e,void 0,e.importClause.namedBindings));const d=ve(a),p=ve(l),f=d??p;if(!f)continue;let m;const g=[];if(1===a.length)m=a[0].importClause.name;else for(const e of a)g.push(oD.createImportSpecifier(!1,oD.createIdentifier("default"),e.importClause.name));g.push(...wue(l));const h=oD.createNodeArray(me(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:oD.createNamedImports(u):p?oD.updateNamedImports(p.importClause.namedBindings,h):oD.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!Wb(p.importClause.namedBindings,r)&&_D(y,2),i&&m&&y?(o.push(Sue(f,m,void 0)),o.push(Sue(p??f,void 0,y))):o.push(Sue(f,m,y))}}return o}function xue(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const e of[r,i]){if(0===e.length)continue;const n=[];n.push(...M(e,(e=>e.exportClause&&TN(e.exportClause)?e.exportClause.elements:u)));const r=me(n,t),i=e[0];o.push(oD.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(TN(i.exportClause)?oD.updateNamedExports(i.exportClause,r):oD.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return o}function Sue(e,t,n){return oD.updateImportDeclaration(e,e.modifiers,oD.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function kue(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return Bt(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return Bt(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function Tue(e,t,n){const r=void 0===e?void 0:yue(e),i=void 0===t?void 0:yue(t);return Bt(void 0===r,void 0===i)||Bt(As(r),As(i))||n(r,i)}function Cue(e){var t;switch(e.kind){case 271:return null==(t=at(e.moduleReference,NN))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Due(e,t){const n=Iw(t)&&t.text;return it(n)&&X(e.moduleAugmentations,(e=>Iw(e)&&e.text===n))}function wue(e){return M(e,(e=>O(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&bN(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&Zd(e.name)===Zd(e.propertyName)?oD.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function Eue(e,t){const n=[];return e.forEach((e=>{n.push(e.map((e=>yue(Cue(e))||"")))})),Pue(n,t)}function Fue(e,t,n){let r=!1;const i=e.filter((e=>{var t,n;const i=null==(n=at(null==(t=e.importClause)?void 0:t.namedBindings,bN))?void 0:n.elements;return!!(null==i?void 0:i.length)&&(!r&&i.some((e=>e.isTypeOnly))&&i.some((e=>!e.isTypeOnly))&&(r=!0),!0)}));if(0===i.length)return;const o=i.map((e=>{var t,n;return null==(n=at(null==(t=e.importClause)?void 0:t.namedBindings,bN))?void 0:n.elements})).filter((e=>void 0!==e));if(!r||0===n.length){const e=Pue(o.map((e=>e.map((e=>e.name.text)))),t);return{namedImportComparer:e.comparer,typeOrder:1===n.length?n[0]:void 0,isSorted:e.isSorted}}const a={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(const e of t){const t={first:0,last:0,inline:0};for(const r of o)for(const i of n)t[i]=(t[i]??0)+Nue(r,((t,n)=>kue(t,n,e,{organizeImportsTypeOrder:i})));for(const r of n){const n=r;t[n]0&&n++;return n}function Pue(e,t){let n,r=1/0;for(const i of t){let t=0;for(const n of e)n.length<=1||(t+=Nue(n,i));tkue(t,r,n,e)}function Mue(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=mue(t),o=Fue([e],r,i);let a,s=jue(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=jue({organizeImportsTypeOrder:t},e)}else if(n){const e=Fue(n.statements.filter(_N),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=jue({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function Bue(e,t,n){const r=Fe(e,t,dt,((e,t)=>zue(e,t,n)));return r<0?~r:r}function Jue(e,t,n){const r=Fe(e,t,dt,n);return r<0?~r:r}function zue(e,t,n){return Tue(Cue(e),Cue(t),n)||function(e,t){return Tt(Aue(e),Aue(t))}(e,t)}function $ue(e,t,n,r){const i=Iue(t);return bue(e,i,jue({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function que(e,t,n){return xue(e,((e,r)=>kue(e,r,Iue(t),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"})))}function Uue(e,t,n){return Tue(e,t,Iue(!!n))}n(pue,{compareImportsOrRequireStatements:()=>zue,compareModuleSpecifiers:()=>Uue,getImportDeclarationInsertionIndex:()=>Bue,getImportSpecifierInsertionIndex:()=>Jue,getNamedImportSpecifierComparerWithDetection:()=>Mue,getOrganizeImportsStringComparerWithDetection:()=>Rue,organizeImports:()=>fue,testCoalesceExports:()=>que,testCoalesceImports:()=>$ue});var Vue={};function Wue(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i...")}function a(e){const n=Zs(e.openingFragment.getStart(t),e.closingFragment.getEnd());return Zue(n,"code",n,!1,"<>...")}function s(e){if(0!==e.properties.length)return Que(e.getStart(t),e.getEnd(),"code")}function c(e){if(15!==e.kind||0!==e.text.length)return Que(e.getStart(t),e.getEnd(),"code")}function l(e,t=19){return u(e,!1,!eF(e.parent)&&!iF(e.parent),t)}function u(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=RX(e,o,t),c=RX(e,a,t);return s&&c&&Yue(s,c,n,t,r,i)}function _(e){return e.length?Zue(LQ(e),"code"):void 0}function d(e){if(!ex(e.getStart(),e.getEnd(),t))return Zue(Zs(e.getStart(),e.getEnd()),"code",AQ(e))}}(i,e);a&&n.push(a),r--,iF(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):MF(i)&&i.elseStatement&&MF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=Gue(e.text.substring(i,r));if(o&&!mQ(e,i))if(o.isStart){const t=Zs(e.text.indexOf("//",i),r);n.push(Zue(t,"region",t,!1,o.name||"#region"))}else{const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start)),n}n(Vue,{collectElements:()=>Wue});var Hue=/^#(end)?region(.*)\r?$/;function Gue(e){if(!en(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const t=Hue.exec(e);return t?{isStart:!t[1],name:t[2].trim()}:void 0}function Kue(e,t,n,r){const i=hs(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:u}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(Gue(c.slice(t,u))){l(),s=0;break}0===s&&(o=t),a=u,s++;break;case 3:l(),r.push(Que(t,u,"comment")),s=0;break;default:gn.assertNever(e)}function l(){s>1&&r.push(Que(o,a,"comment"))}l()}function Xue(e,t,n,r){Ow(e)||Kue(e.pos,t,n,r)}function Que(e,t,n){return Zue(Zs(e,t),n)}function Yue(e,t,n,r,i=!1,o=!0){return Zue(Zs(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",AQ(n,r),i)}function Zue(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var e_e={};function t_e(e,t,n,r){const i=HX(GX(t,n));if(a_e(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(q_(e)){const r=zX(e,t);if(r&&(128&r.flags||1048576&r.flags&&k(r.types,(e=>!!(128&e.flags)))))return r_e(e.text,e.text,"string","",e,n)}else if(uX(e)){const t=np(e);return r_e(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&No(n.fileName,".d.ts")}(r,e))))return i_e(ha.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Xw(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(q_(e)&&wg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!As(e.text))return i_e(ha.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&T(n.declarations,QN);if(!r)return;const i=$t(e.text,"/index")||$t(e.text,"/index.js")?void 0:Ut(Xk(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=Ys(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&T(t.declarations,(e=>xN(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=n_e(e.path);if(void 0===o)return X(i,(e=>VZ(e.getSourceFile().path)))?ha.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=n_e(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Nt(o[n],t[n]))return ha.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return i_e(s);const c=U_e.getSymbolKind(t,o,e),l=HY(e)||qh(e)&&167===e.parent.kind?Ry(Kh(e)):void 0,u=l||t.symbolToString(o),_=l||t.getFullyQualifiedName(o);return r_e(u,_,c,U_e.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return i_e(ha.You_cannot_rename_this_element)}function n_e(e){const t=Jo(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function r_e(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:o_e(i,o)}}function i_e(e){return{canRename:!1,localizedErrorMessage:Yx(e)}}function o_e(e,t){let n=e.getStart(t),r=e.getWidth(t);return q_(e)&&(n+=1,r-=2),Ys(n,r)}function a_e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return hX(e);default:return!1}}n(e_e,{getRenameInfo:()=>t_e,nodeIsEligibleForRename:()=>a_e});var s_e={};function c_e(e,t,n,r,i){const o=e.getTypeChecker(),a=ZX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(oQ(t,n,a)||mQ(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!QN(o)&&(i||!OF(o));o=o.parent){gn.assert(ix(o.parent,o),"Not a subspan",(()=>`Child: ${gn.formatSyntaxKind(o.kind)}, parent: ${gn.formatSyntaxKind(o.parent.kind)}`));const e=p_e(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const u=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!qu(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return E(r,e);case 28:{const t=jX(e);return!!t&&E(r,t)}case 30:return l_e(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!l_e(i,r,Xw(a)?a.parent:a))return;const s=pQ(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:xe(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return gn.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),u?o.runWithCancellationToken(i,(e=>0===u.kind?D_e(u.candidates,u.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;const c=[w_e(e,s,a,T_e(r),o)];return{items:c,applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(u.symbol,l,t,e))):Rm(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=k_e(e.invocation),i=nF(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:g(t.getSourceFiles(),(t=>g(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>D_e(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function l_e(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=tQ(r,t,i,!0);if(e)return ix(n,e);i=i.parent}return gn.fail("Could not find preceding token")}function u_e(e,t,n,r){const i=d_e(e,t,n,r);return!i||i.isTypeParameterList||0!==i.invocation.kind?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function __e(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:S_e(e.parent,e,t),argumentIndex:0};{const t=jX(e);return t&&{list:t,argumentIndex:y_e(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return v_e(e,t,void 0)}(r,o),c=function(e,t){const n=e.getFullStart(),r=is(t.text,e.getEnd(),!1);return Ys(n,r-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function d_e(e,t,n,r){const{parent:i}=e;if(qu(i)){const t=i,o=__e(e,0,n,r);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(Rw(e)&&aF(i))return TQ(e,t,n)?b_e(i,0,n):void 0;if(jw(e)&&215===i.parent.kind){const r=i,o=r.parent;return gn.assert(228===r.kind),b_e(o,TQ(e,t,n)?0:1,n)}if(AF(i)&&aF(i.parent.parent)){const r=i,o=i.parent.parent;if(Bw(e)&&!TQ(e,t,n))return;const a=function(e,t,n,r){return gn.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),ql(t)?TQ(t,n,r)?0:e+2:e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return b_e(o,a,n)}if(w_(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Ys(e,is(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=fQ(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:Zs(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function p_e(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return yc(e.parent,(e=>!!fE(e)||!(ZE(e)||QE(e)||YE(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 217:case 174:case 218:case 219:const n=__e(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=vE(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 226:{const t=f_e(i),n=r.getContextualType(t),o=21===e.kind?0:m_e(i)-1,a=m_e(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:AQ(i)}}default:return}}(i,n,0,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,u=a.getNonNullableType(),_=u.symbol;if(void 0===_)return;const d=ke(u.getCallSignatures());return void 0!==d?{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:g_e(_)},argumentsSpan:l,argumentIndex:s,argumentCount:c}:void 0}(e,0,n,r)||d_e(e,t,n,r)}function f_e(e){return hF(e.parent)?f_e(e.parent):e}function m_e(e){return hF(e.left)?m_e(e.left)+1:2}function g_e(e){return"__type"===e.name&&g(e.declarations,(e=>{var t;return FE(e)?null==(t=at(e.parent,p_))?void 0:t.symbol:void 0}))||e}function h_e(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=D(e,(e=>!(1&e)));return r<0?t:r}return 0}function y_e(e,t,n){return v_e(e,t,n)}function v_e(e,t,n){const r=t.getChildren();let i=0,o=!1;for(const t of r){if(n&&t===n)return o||28!==t.kind||i++,i;xF(t)?(i+=h_e(t,e),o=!0):28===t.kind?o?o=!1:i++:(i++,o=!0)}return n?i:r.length&&28===Te(r).kind?i+1:i}function b_e(e,t,n){const r=Rw(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&gn.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:x_e(e,n),argumentIndex:t,argumentCount:r}}function x_e(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 228===n.kind&&0===Te(n.templateSpans).literal.getFullWidth()&&(i=is(t.text,i,!1)),Ys(r,i-r)}function S_e(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return gn.assert(i>=0&&r.length>i+1),r[i+1]}function k_e(e){return 0===e.kind?ym(e.node):e.called}function T_e(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}n(s_e,{getArgumentInfoForCompletions:()=>u_e,getSignatureHelpItems:()=>c_e});var C_e=70246400;function D_e(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},s,c,l){var _;const d=T_e(o),p=2===o.kind?o.symbol:c.getSymbolAtLocation(k_e(o))||l&&(null==(_=t.declaration)?void 0:_.symbol),f=p?VY(c,p,l?s:void 0,void 0):u,m=O(e,(e=>function(e,t,n,r,i,o){const a=(n?N_e:P_e)(e,r,i,o);return O(a,(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...F_e(e,i,r)],u=e.getDocumentationComment(r),_=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:E_e,parameters:o,documentation:u,tags:_}}))}(e,f,n,c,d,s)));let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of i){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=i.length}gn.assert(-1!==g);const y={items:B(m,dt),applicableSpan:i,selectedItemIndex:g,argumentIndex:a,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=D(v.parameters,(e=>!!e.isRest));-1A_e(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,FY(30)],suffixDisplayParts:[FY(32)],separatorDisplayParts:E_e,parameters:s,documentation:c,tags:l}}var E_e=[FY(28),wY()];function F_e(e,t,n){return qY((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function N_e(e,t,n,r){const i=(e.target||e).typeParameters,o=fq(),a=(i||u).map((e=>A_e(e,t,n,r,o))),s=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,C_e)]:[];return t.getExpandedParameters(e).map((e=>{const i=oD.createNodeArray([...s,...O(e,(e=>t.symbolToParameterDeclaration(e,n,C_e)))]),c=qY((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:a,prefix:[FY(30)],suffix:[FY(32),...c]}}))}function P_e(e,t,n,r){const i=fq(),o=qY((o=>{if(e.typeParameters&&e.typeParameters.length){const a=oD.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,C_e))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=at(e[e.length-1],nd))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=qY((o=>{const a=t.symbolToParameterDeclaration(e,n,C_e);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=nd(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,FY(21)],suffix:[FY(22)]})))}function A_e(e,t,n,r,i){const o=qY((o=>{const a=t.typeParameterToDeclaration(e,n,C_e);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var I_e={};function O_e(e,t){var n,r;let i={textSpan:Zs(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=j_e(o);if(!i.length)break;for(let c=0;ce)break e;const d=Ce(ys(t.text,u.end));if(d&&2===d.kind&&s(d.pos,d.end),L_e(t,e,u)){if(a_(u)&&du(o)&&!ex(u.getStart(t),u.getEnd(),t)&&a(u.getStart(t),u.getEnd()),OF(u)||AF(u)||jw(u)||Bw(u)||l&&jw(l)||eN(u)&&LF(o)||zP(u)&&eN(o)||ZF(u)&&zP(o)&&1===i.length||ZN(u)||mP(u)||fP(u)){o=u;break}AF(o)&&_&&Ul(_)&&a(u.getFullStart()-2,_.getStart()+1);const e=zP(u)&&z_e(l)&&$_e(_)&&!ex(l.getStart(),_.getStart(),t);let s=e?l.getEnd():u.getStart();const c=e?_.getStart():q_e(t,u);if(L_(u)&&(null==(n=u.jsDoc)?void 0:n.length)&&a(xe(u.jsDoc).getStart(),c),zP(u)){const e=u.getChildren()[0];e&&L_(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==u.pos&&(s=Math.min(s,xe(e.jsDoc).getStart()))}a(s,c),(Iw(u)||Uu(u))&&a(s+1,c-1),o=u;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=Zs(t,n);(!i||!gY(r,i.textSpan)&&Gs(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function L_e(e,t,n){return gn.assert(n.pos<=t),tO_e});var R_e=an(_N,uN);function j_e(e){var t;if(QN(e))return M_e(e.getChildAt(0).getChildren(),R_e);if(WE(e)){const[t,...n]=e.getChildren(),r=gn.checkDefined(n.pop());gn.assertEqual(t.kind,19),gn.assertEqual(r.kind,20);const i=M_e(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,J_e(B_e(M_e(i,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(gE(e)){const n=M_e(e.getChildren(),(t=>t===e.name||E(e.modifiers,t))),r=320===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=B_e(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,J_e(i)]:i}if(fE(e)){const t=M_e(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return B_e(M_e(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return ZE(e)?B_e(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function M_e(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(J_e(r)),r=void 0),n.push(i));return r&&n.push(J_e(r)),n}function B_e(e,t,n=!0){if(e.length<2)return e;const r=D(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=Te(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=se([i.length?J_e(i):void 0,o,c.length?J_e(c):void 0]);return s?l.concat(a):l}function J_e(e){return gn.assertGreaterThanOrEqual(e.length,1),AT(yI.createSyntaxList(e),e[0].pos,Te(e).end)}function z_e(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function $_e(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function q_e(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var U_e={};n(U_e,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Q_e,getSymbolKind:()=>W_e,getSymbolModifiers:()=>K_e});var V_e=70246400;function W_e(e,t,n){const r=H_e(e,t,n);if(""!==r)return r;const i=fx(t);return 32&i?Z_(t,231)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function H_e(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&xe(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&Qu(n)||yv(n))return"parameter";const i=fx(t);if(3&i)return TY(t)?"parameter":t.valueDeclaration&&df(t.valueDeclaration)?"const":t.valueDeclaration&&_f(t.valueDeclaration)?"using":t.valueDeclaration&&uf(t.valueDeclaration)?"await using":f(t.declarations,ff)?"let":Y_e(t)?"local var":"var";if(16&i)return Y_e(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=f(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));return r||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function G_e(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=yQ(t,p(n)&&o0(t)&&X(n,(e=>!o0(e)))?65536:0);if(r)return r.split(",")}return[]}function K_e(e,t){if(!t)return"";const n=new Set(G_e(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&f(G_e(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Be(n.values()).join(","):""}function X_e(e,t,n,r,i,o,a,s){var c;const l=[];let _=[],d=[];const p=fx(t);let m=1&a?H_e(e,t,i):"",h=!1;const y=110===i.kind&&Em(i)||yv(i);let v,b,x=!1;if(110===i.kind&&!y)return{displayParts:[EY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==m||32&p||2097152&p){if("getter"===m||"setter"===m){const e=T(t.declarations,(e=>e.name===i));if(e)switch(e.kind){case 177:m="getter";break;case 178:m="setter";break;case 172:m="accessor";break;default:gn.assertNever(e)}else m="property"}let n,a;if(o??(o=y?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&211===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(qu(i)?a=i:(KK(i)||XK(i)||i.parent&&(w_(i.parent)||aF(i.parent))&&uu(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=214===a.kind||iF(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||E(s,n.target)||E(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&p?(m="constructor",F(o.symbol,m)):2097152&p?(m="alias",N(m),l.push(wY()),i&&(4&n.flags&&(l.push(EY(128)),l.push(wY())),l.push(EY(105)),l.push(wY())),w(t)):F(t,m),m){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":l.push(FY(59)),l.push(wY()),16&Tx(o)||!o.symbol||(de(l,VY(e,o.symbol,r,void 0,5)),l.push($Y())),i&&(4&n.flags&&(l.push(EY(128)),l.push(wY())),l.push(EY(105)),l.push(wY())),P(n,s,262144);break;default:P(n,s)}h=!0,x=s.length>1}}else if(gX(i)&&!(98304&p)||137===i.kind&&176===i.parent.kind){const r=i.parent;if(t.declarations&&T(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const i=176===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),176===r.kind?(m="constructor",F(o.symbol,m)):F(179!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,m),n&&P(n,i),h=!0,x=i.length>1}}}if(32&p&&!h&&!y&&(C(),Z_(t,231)?N("local class"):l.push(EY(86)),l.push(wY()),w(t),A(t,n)),64&p&&2&a&&(k(),l.push(EY(120)),l.push(wY()),w(t),A(t,n)),524288&p&&2&a&&(k(),l.push(EY(156)),l.push(wY()),w(t),A(t,n),l.push(wY()),l.push(NY(64)),l.push(wY()),de(l,UY(e,i.parent&&Fl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608))),384&p&&(k(),X(t.declarations,(e=>oN(e)&&cf(e)))&&(l.push(EY(87)),l.push(wY())),l.push(EY(94)),l.push(wY()),w(t)),1536&p&&!y){k();const e=Z_(t,267),n=e&&e.name&&80===e.name.kind;l.push(EY(n?145:144)),l.push(wY()),w(t)}if(262144&p&&2&a)if(k(),l.push(FY(21)),l.push(OY("type parameter")),l.push(FY(22)),l.push(wY()),w(t),t.parent)D(),w(t.parent,r),A(t.parent,r);else{const r=Z_(t,168);if(void 0===r)return gn.fail();const i=r.parent;if(i)if(uu(i)){D();const t=e.getSignatureFromDeclaration(i);180===i.kind?(l.push(EY(105)),l.push(wY())):179!==i.kind&&i.name&&w(i.symbol),de(l,WY(e,t,n,32))}else iN(i)&&(D(),l.push(EY(156)),l.push(wY()),w(i.symbol),A(i.symbol,n))}if(8&p){m="enum member",F(t,"enum member");const n=null==(c=t.declarations)?void 0:c[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(l.push(wY()),l.push(NY(64)),l.push(wY()),l.push(DY(up(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(k(),!h||0===_.length&&0===d.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=Ac(i);if(s&&!h){const c=mp(i)&&Lv(i,128),u="default"!==t.name&&!c,_=X_e(e,n,Cd(i),r,s,o,a,u?t:n);l.push(..._.displayParts),l.push($Y()),v=_.documentation,b=_.tags}else v=n.getContextualDocumentationComment(i,e),b=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:l.push(EY(95)),l.push(wY()),l.push(EY(145));break;case 277:l.push(EY(95)),l.push(wY()),l.push(EY(t.declarations[0].isExportEquals?64:90));break;case 281:l.push(EY(95));break;default:l.push(EY(102))}l.push(wY()),w(t),f(t.declarations,(t=>{if(271===t.kind){const n=t;if(Pm(n))l.push(wY()),l.push(NY(64)),l.push(wY()),l.push(EY(149)),l.push(FY(21)),l.push(DY(np(Am(n)),8)),l.push(FY(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(l.push(wY()),l.push(NY(64)),l.push(wY()),w(t,r))}return!0}}))}if(!h)if(""!==m){if(o)if(y?(k(),l.push(EY(110))):F(t,m),"property"===m||"accessor"===m||"getter"===m||"setter"===m||"JSX attribute"===m||3&p||"local var"===m||"index"===m||"using"===m||"await using"===m||y){if(l.push(FY(59)),l.push(wY()),o.symbol&&262144&o.symbol.flags&&"index"!==m){const t=qY((t=>{const n=e.typeParameterToDeclaration(o,r,V_e);S().writeNode(4,n,Cd(bc(r)),t)}));de(l,t)}else de(l,UY(e,o,r));if(nd(t)&&t.links.target&&nd(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;gn.assertNode(e.name,Xw),l.push(wY()),l.push(FY(21)),l.push(OY(kc(e.name))),l.push(FY(22))}}else if(16&p||8192&p||16384&p||131072&p||98304&p||"method"===m){const e=o.getNonNullableType().getCallSignatures();e.length&&(P(e[0],e),x=e.length>1)}}else m=W_e(e,t,i);if(0!==_.length||x||(_=t.getContextualDocumentationComment(r,e)),0===_.length&&4&p&&t.parent&&t.declarations&&f(t.parent.declarations,(e=>307===e.kind)))for(const n of t.declarations){if(!n.parent||226!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(_=t.getDocumentationComment(e),d=t.getJsDocTags(e),_.length>0))break}if(0===_.length&&Xw(i)&&t.valueDeclaration&&ZE(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(Xw(i)&&QE(r)){const t=Kh(i),n=e.getTypeAtLocation(r);_=g(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||u}}return 0!==d.length||x||(d=t.getContextualJsDocTags(r,e)),0===_.length&&v&&(_=v),0===d.length&&b&&(d=b),{displayParts:l,documentation:_,symbolKind:m,tags:0===d.length?void 0:d};function S(){return fq()}function k(){l.length&&l.push($Y()),C()}function C(){s&&(N("alias"),l.push(wY()))}function D(){l.push(wY()),l.push(EY(103)),l.push(wY())}function w(r,i){let o;s&&r===t&&(r=s),"index"===m&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=VY(e,r.parent)),a.push(FY(23)),o.forEach(((t,n)=>{a.push(...UY(e,t.keyType)),n!==o.length-1&&(a.push(wY()),a.push(FY(52)),a.push(wY()))})),a.push(FY(24))):a=VY(e,r,i||n,void 0,7),de(l,a),16777216&t.flags&&l.push(FY(58))}function F(e,t){k(),t&&(N(t),e&&!X(e.declarations,(e=>uF(e)||(lF(e)||SF(e))&&!e.name))&&(l.push(wY()),w(e)))}function N(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void l.push(IY(e));default:return l.push(FY(21)),l.push(IY(e)),void l.push(FY(22))}}function P(t,n,i=0){de(l,WY(e,t,r,32|i)),n.length>1&&(l.push(wY()),l.push(FY(21)),l.push(NY(40)),l.push(DY((n.length-1).toString(),7)),l.push(wY()),l.push(OY(2===n.length?"overload":"overloads")),l.push(FY(22))),_=t.getDocumentationComment(e),d=t.getJsDocTags(),n.length>1&&0===_.length&&0===d.length&&(_=n[0].getDocumentationComment(e),d=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function A(t,n){const r=qY((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,V_e);S().writeList(53776,i,Cd(bc(n)),r)}));de(l,r)}}function Q_e(e,t,n,r,i,o=HK(i),a){return X_e(e,t,n,r,i,void 0,o,a)}function Y_e(e){return!e.parent&&f(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!Vf(t);t=t.parent)if(307===t.kind||268===t.kind)return!1;return!0}))}var Z_e={};function ede(e){const t=e.__pos;return gn.assert("number"==typeof t),t}function tde(e,t){gn.assert("number"==typeof t),e.__pos=t}function nde(e){const t=e.__end;return gn.assert("number"==typeof t),t}function rde(e,t){gn.assert("number"==typeof t),e.__end=t}n(Z_e,{ChangeTracker:()=>mde,LeadingTriviaOption:()=>ide,TrailingTriviaOption:()=>ode,applyChanges:()=>vde,assignPositionsToNode:()=>Sde,createWriter:()=>Tde,deleteNode:()=>Dde,getAdjustedEndPosition:()=>_de,isThisTypeAnnotatable:()=>pde,isValidLocationToAddComment:()=>Cde});var ide=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(ide||{}),ode=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(ode||{});function ade(e,t){return is(e,t,!1,!0)}var sde={leadingTriviaOption:0,trailingTriviaOption:0};function cde(e,t,n,r){return{pos:lde(e,t,r),end:_de(e,n,r)}}function lde(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=kX(n,e);return CX(t,r)?r:n}if(2===a){const n=Cf(t,e.text);if(null==n?void 0:n.length)return kX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=kX(s,e);if(kX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=hs(e.text,s))?void 0:i[0])||(null==(o=ys(e.text,s))?void 0:o[0]);if(t)return is(e.text,t.end,!0,!0)}const u=s>0?1:0;let _=Fd(lv(e,l)+u,e);return _=ade(e.text,_),Fd(lv(e,_),e)}function ude(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=ys(e.text,r);if(n){const r=lv(e,t.end);for(const t of n){if(2===t.kind||lv(e,t.pos)>r)break;if(lv(e,t.end)>r)return is(e.text,t.end,!0,!0)}}}}function _de(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=Y(ys(e.text,i),hs(e.text,i)),n=null==(r=null==t?void 0:t[t.length-1])?void 0:r.end;return n||i}const a=ude(e,t,n);if(a)return a;const s=is(e.text,i,!0);return s===i||2!==o&&!Qa(e.text.charCodeAt(s-1))?i:s}function dde(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function pde(e){return lF(e)||tN(e)}var fde,mde=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(zY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){gn.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:RQ(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,cde(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=lde(e,i,n,r),o=_de(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!ude(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:is(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=lde(e,t,r),o=_de(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=lde(e,t,r),o=void 0===n?e.text.length:lde(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=sde){this.replaceRange(e,cde(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=sde){this.replaceRange(e,cde(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=sde){this.replaceRangeWithNodes(e,cde(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,cde(e,t,t,sde),n)}replaceNodeRangeWithNodes(e,t,n,r,i=sde){this.replaceRangeWithNodes(e,cde(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=sde){return!!ude(e,t,n)}nextCommaToken(e,t){const n=eQ(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,Jb(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,Jb(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!vf(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=vs(r);void 0!==i&&(n=i.length,c());const o=hs(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Vd(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Ud(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),sit(e.comment)?oD.createJSDocText(e.comment):e.comment)),r=Ce(t.jsDoc);return r&&ex(r.pos,r.end,e)&&0===p(n)?void 0:oD.createNodeArray(S(n,oD.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),oD.createJSDocComment(this.createJSDocText(e,t),oD.createNodeArray(n)))}addJSDocTags(e,t,n){const r=B(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{const n=e,r=t;return Xw(n.name)&&Xw(r.name)&&n.name.escapedText===r.name.escapedText?oD.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 342:return oD.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return oD.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,P(B(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,Jb(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(uu(t)){if(r=RX(t,22,e),!r){if(!uF(t))return!1;r=xe(t.parameters)}}else r=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=RX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(RX(t,21,e)||xe(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return b_(e)||hu(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:ZF(e)?{suffix:", "}:fE(e)?fE(t)?{suffix:", "}:{}:Iw(e)&&_N(e.parent)||bN(e)?{suffix:", "}:xN(e)?{suffix:","+(n?this.newLineCharacter:" ")}:gn.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=ve(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=T(t.body.statements,(e=>jF(e)&&mf(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=ke(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,oD.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=lde(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Qa(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,yde(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of yde(t)){if(Hb(r,i,e))return;const t=i.getStart(e),o=Ede.SmartIndenter.findFirstNonWhitespaceColumn(kX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return Ede.SmartIndenter.findFirstNonWhitespaceColumn(kX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===yde(t).length,i=!this.classesWithNodesInsertedAtStart.has(QB(t));i&&this.classesWithNodesInsertedAtStart.set(QB(t),{node:t,sourceFile:e});const o=tF(t)&&(!sf(e)||!r);return{indentation:n,prefix:(tF(t)&&sf(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":rN(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,xe(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((gE(r=t)||hE(r))&&Cu(i)&&167===i.name.kind||v_(r)&&v_(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Jb(t.end),oD.createToken(27)),_de(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&b_(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return gn.assert(b_(e)||Cu(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(gn.assert(!t.name),219===t.kind){const r=RX(t,39,e),i=RX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[oD.createToken(100),oD.createIdentifier(n)],{joiner:" "}),Dde(this,e,r)):(this.insertText(e,xe(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,oD.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[oD.createToken(19),oD.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[oD.createToken(27),oD.createToken(20)],{joiner:" "}))}else{const r=RX(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,oD.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!ex(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=Ede.SmartIndenter.getContainingList(t,e)){if(!r)return void gn.fail("node is not a list element");const i=ip(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=XX(e,t.end);if(o&&dde(t,o)){const t=r[i+1],a=ade(e.text,t.getFullStart()),s=`${Ra(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=kX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=tQ(t.pos,e);c=dde(t,n)?n.kind:28,l=kX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=RX(e,19,t),r=RX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===yde(e).length,o=ex(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,Jb(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&TX(e.node,n)))||(nt(n)?this.deleteRange(t,gT(t,n)):bde.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=Ede.SmartIndenter.getContainingList(t,n);if(t!==Te(r))return;const i=w(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:gde(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=fde.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(fde.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function gde(e,t){return is(e.text,lde(e,t,{leadingTriviaOption:1}),!1,!0)}function hde(e,t,n,r){const i=gde(e,r);if(void 0===n||ex(_de(e,t,{}),i,e))return i;const o=tQ(r.getStart(e),e);if(dde(t,o)){const r=tQ(t.getStart(e),e);if(dde(n,r)){const t=is(e.text,o.getEnd(),!0,!0);if(ex(r.getStart(e),o.getStart(e),e))return Qa(e.text.charCodeAt(t-1))?t-1:t;if(Qa(e.text.charCodeAt(t)))return t}}return i}function yde(e){return tF(e)?e.properties:e.members}function vde(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Rs(r))}`}return e}(e=>{function t(e,t,r,i){const o=M(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=HI("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return vde(o,Ede.formatDocument(a,i))+r}function n(e,t,n){const r=Tde(n);return hq({newLine:s0(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:Sde(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return q(Ve(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=me(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=q(a,(e=>{const a=LQ(e.range),s=1===e.kind?Cd(hc(e.node))??e.sourceFile:2===e.kind?Cd(hc(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,u=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,u){const{node:_,text:d}=n(e,t,c);u&&u(_,d);const p=l0(l,t),f=void 0!==o?o:Ede.SmartIndenter.getIndentation(i,r,p,a===c||kX(i,t)===i);void 0===s&&(s=Ede.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return Ga(this,e)}},g=Ede.formatNodeGivenIndentation(_,m,t.languageVariant,f,s,{...l,options:p});return vde(d,g)}(e,t,r,l,c,i,o,a),_=2===e.kind?e.nodes.map((e=>qt(u(e),i))).join((null==(s=e.options)?void 0:s.joiner)||i):u(e.node),d=void 0!==c.indentation||kX(l,t)===l?_:_.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||$t(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!r0(s.text,c,a.start))return MQ(a,c)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(Ek(e),n,r,i);return{fileName:e,textChanges:[MQ(Ys(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(fde||(fde={}));var bde,xde={...J$,factory:GC(1|J$.factory.flags,J$.factory.baseFactory)};function Sde(e){const t=hJ(e,Sde,xde,kde,Sde),n=sy(t)?t:Object.create(t);return AT(n,ede(e),nde(e)),n}function kde(e,t,n,r,i){const o=cJ(e,t,n,r,i);if(!o)return o;gn.assert(e);const a=o===e?oD.createNodeArray(o.slice(0)):o;return AT(a,ede(e),nde(e)),a}function Tde(e){let t=0;const n=zy(e);function r(e,r){if(r||!function(e){return is(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;Ka(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&tde(e,t)},onAfterEmitNode:e=>{e&&rde(e,t)},onBeforeEmitNodeArray:e=>{e&&tde(e,t)},onAfterEmitNodeArray:e=>{e&&rde(e,t)},onBeforeEmitToken:e=>{e&&tde(e,t)},onAfterEmitToken:e=>{e&&rde(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function Cde(e,t){return!(mQ(e,t)||oQ(e,t)||cQ(e,t)||lQ(e,t))}function Dde(e,t,n,r={leadingTriviaOption:1}){const i=lde(t,n,r),o=_de(t,n,r);e.deleteRange(t,{pos:i,end:o})}function wde(e,t,n,r){const i=gn.checkDefined(Ede.SmartIndenter.getContainingList(r,n)),o=ip(i,r);gn.assert(-1!==o),1!==i.length?(gn.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:gde(n,r),end:o===i.length-1?_de(n,r,{}):hde(n,r,i[o-1],i[o+1])})):Dde(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=gn.checkDefined(XX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else Dde(e,t,Ph(n,272))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 169:{const t=i.parent;uF(t)&&1===t.parameters.length&&!RX(t,21,r)?e.replaceNodeWithText(r,i,"()"):wde(e,n,r,i);break}case 272:case 271:Dde(e,r,i,{leadingTriviaOption:r.imports.length&&i===xe(r.imports).parent||i===T(r.statements,Fp)?0:L_(i)?2:3});break;case 208:const o=i.parent;207===o.kind&&i!==Te(o.elements)?Dde(e,r,i):wde(e,n,r,i);break;case 260:!function(e,t,n,r){const{parent:i}=r;if(299===i.kind)return void e.deleteNodeRange(n,RX(i,21,n),RX(i,22,n));if(1!==i.declarations.length)return void wde(e,t,n,r);const o=i.parent;switch(o.kind){case 250:case 249:e.replaceNode(n,r,oD.createObjectLiteralExpression());break;case 248:Dde(e,n,i);break;case 243:Dde(e,n,o,{leadingTriviaOption:L_(o)?2:3});break;default:gn.assertNever(o)}}(e,n,r,i);break;case 168:wde(e,n,r,i);break;case 276:const a=i.parent;1===a.elements.length?t(e,r,a):wde(e,n,r,i);break;case 274:t(e,r,i);break;case 27:Dde(e,r,i,{trailingTriviaOption:0});break;case 100:Dde(e,r,i,{leadingTriviaOption:0});break;case 263:case 262:Dde(e,r,i,{leadingTriviaOption:L_(i)?2:3});break;default:i.parent?dN(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=XX(t,n.name.end);if(i&&28===i.kind){const n=is(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else Dde(e,t,n.name)}else Dde(e,t,n.parent)}(e,r,i.parent):iF(i.parent)&&E(i.parent.arguments,i)?wde(e,n,r,i):Dde(e,r,i):Dde(e,r,i)}}})(bde||(bde={}));var Ede={};n(Ede,{FormattingContext:()=>Nde,FormattingRequestKind:()=>Fde,RuleAction:()=>Rde,RuleFlags:()=>jde,SmartIndenter:()=>afe,anyContext:()=>Lde,createTextRangeWithKind:()=>dfe,formatDocument:()=>hfe,formatNodeGivenIndentation:()=>Sfe,formatOnClosingCurly:()=>gfe,formatOnEnter:()=>pfe,formatOnOpeningCurly:()=>mfe,formatOnSemicolon:()=>ffe,formatSelection:()=>yfe,getAllRules:()=>Mde,getFormatContext:()=>Ype,getFormattingScanner:()=>Ide,getIndentationString:()=>wfe,getRangeOfEnclosingComment:()=>Dfe});var Fde=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Fde||{}),Nde=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=gn.checkDefined(e),this.currentTokenParent=gn.checkDefined(t),this.nextTokenSpan=gn.checkDefined(n),this.nextTokenParent=gn.checkDefined(r),this.contextNode=gn.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=RX(e,19,this.sourceFile),n=RX(e,20,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}},Pde=ks(99,!1,0),Ade=ks(99,!1,1);function Ide(e,t,n,r,i){const o=1===t?Ade:Pde;o.setText(e),o.resetTokenState(n);let a,s,c,l,u,_=!0;const d=i({advance:function(){u=void 0,o.getTokenFullStart()!==n?_=!!s&&4===Te(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getTokenFullStart();for(;ea,lastTrailingTriviaWasNewLine:()=>_,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,u=void 0,_=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,u=void 0,_=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==u?void 0:u.token.pos)??o.getTokenStart(),getStartPos:()=>(null==u?void 0:u.token.pos)??o.getTokenStart()});return u=void 0,o.setText(void 0),d;function p(){const e=u?u.token.kind:o.getToken();return 1!==e&&!Bh(e)}function f(){return 1===(u?u.token.kind:o.getToken())}function m(e,t){return jl(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var Ode,Lde=u,Rde=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Rde||{}),jde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(jde||{});function Mde(){const e=[];for(let t=0;t<=165;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=Jde([...e,3]),i=Jde([...e,1]),o=$de(83,165),a=$de(30,79),s=[103,104,165,130,142,152],c=[80,...BQ],l=r,u=Jde([80,32,3,86,95,102]),_=Jde([22,3,92,113,98,93,85]);return[Bde("IgnoreBeforeComment",n,[2,3],Lde,1),Bde("IgnoreAfterLineComment",2,n,Lde,1),Bde("NotSpaceBeforeColon",n,59,[Tpe,Yde,Zde],16),Bde("SpaceAfterColon",59,n,[Tpe,Yde,Npe],4),Bde("NoSpaceBeforeQuestionMark",n,58,[Tpe,Yde,Zde],16),Bde("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Tpe,npe],4),Bde("NoSpaceAfterQuestionMark",58,n,[Tpe,tpe],16),Bde("NoSpaceBeforeDot",n,[25,29],[Tpe,Qpe],16),Bde("NoSpaceAfterDot",[25,29],n,[Tpe],16),Bde("NoSpaceBetweenImportParenInImportType",102,21,[Tpe,kpe],16),Bde("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[Tpe,Yde],16),Bde("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[Tpe],16),Bde("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[Tpe],16),Bde("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[Tpe,Gpe],16),Bde("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[Tpe,Gpe],16),Bde("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Tpe,Qde],4),Bde("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Tpe,Qde],4),Bde("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Tpe,Qde],4),Bde("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Tpe,Qde],4),Bde("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Tpe,Qde],4),Bde("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Tpe,Qde],4),Bde("NoSpaceAfterCloseBrace",20,[28,27],[Tpe],16),Bde("NewLineBeforeCloseBraceInBlockContext",r,20,[ape],8),Bde("SpaceAfterCloseBrace",20,t(22),[Tpe,mpe],4),Bde("SpaceBetweenCloseBraceAndElse",20,93,[Tpe],4),Bde("SpaceBetweenCloseBraceAndWhile",20,117,[Tpe],4),Bde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Tpe,hpe],16),Bde("SpaceAfterConditionalClosingParen",22,23,[gpe],4),Bde("NoSpaceBetweenFunctionKeywordAndStar",100,42,[dpe],16),Bde("SpaceAfterStarInGeneratorDeclaration",42,80,[dpe],4),Bde("SpaceAfterFunctionInFuncDecl",100,n,[upe],4),Bde("NewLineAfterOpenBraceInBlockContext",19,n,[ape],8),Bde("SpaceAfterGetSetInMember",[139,153],80,[upe],4),Bde("NoSpaceBetweenYieldKeywordAndStar",127,42,[Tpe,Wpe],16),Bde("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Tpe,Wpe],4),Bde("NoSpaceBetweenReturnAndSemicolon",107,27,[Tpe],16),Bde("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Tpe],4),Bde("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Tpe,Rpe],4),Bde("NoSpaceBeforeOpenParenInFuncCall",n,21,[Tpe,ype,vpe],16),Bde("SpaceBeforeBinaryKeywordOperator",n,s,[Tpe,Qde],4),Bde("SpaceAfterBinaryKeywordOperator",s,n,[Tpe,Qde],4),Bde("SpaceAfterVoidOperator",116,n,[Tpe,Vpe],4),Bde("SpaceBetweenAsyncAndOpenParen",134,21,[Spe,Tpe],4),Bde("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Tpe],4),Bde("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Tpe],16),Bde("SpaceBeforeJsxAttribute",n,80,[Epe,Tpe],4),Bde("SpaceBeforeSlashInJsxOpeningElement",n,44,[Ape,Tpe],4),Bde("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Ape,Tpe],16),Bde("NoSpaceBeforeEqualInJsxAttribute",n,64,[Fpe,Tpe],16),Bde("NoSpaceAfterEqualInJsxAttribute",64,n,[Fpe,Tpe],16),Bde("NoSpaceBeforeJsxNamespaceColon",80,59,[Ppe],16),Bde("NoSpaceAfterJsxNamespaceColon",59,80,[Ppe],16),Bde("NoSpaceAfterModuleImport",[144,149],21,[Tpe],16),Bde("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Tpe],4),Bde("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Tpe],4),Bde("SpaceAfterModuleName",11,19,[Mpe],4),Bde("SpaceBeforeArrow",n,39,[Tpe],4),Bde("SpaceAfterArrow",39,n,[Tpe],4),Bde("NoSpaceAfterEllipsis",26,80,[Tpe],16),Bde("NoSpaceAfterOptionalParameters",58,[22,28],[Tpe,Yde],16),Bde("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Tpe,Bpe],16),Bde("NoSpaceBeforeOpenAngularBracket",c,30,[Tpe,$pe],16),Bde("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Tpe,$pe],16),Bde("NoSpaceAfterOpenAngularBracket",30,n,[Tpe,$pe],16),Bde("NoSpaceBeforeCloseAngularBracket",n,32,[Tpe,$pe],16),Bde("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Tpe,$pe,_pe,Upe],16),Bde("SpaceBeforeAt",[22,80],60,[Tpe],4),Bde("NoSpaceAfterAt",60,n,[Tpe],16),Bde("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Ope],4),Bde("NoSpaceBeforeNonNullAssertionOperator",n,54,[Tpe,Hpe],16),Bde("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Tpe,Jpe],16),Bde("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Tpe],4),Bde("SpaceAfterConstructor",137,21,[Ude("insertSpaceAfterConstructor"),Tpe],4),Bde("NoSpaceAfterConstructor",137,21,[Wde("insertSpaceAfterConstructor"),Tpe],16),Bde("SpaceAfterComma",28,n,[Ude("insertSpaceAfterCommaDelimiter"),Tpe,Dpe,bpe,xpe],4),Bde("NoSpaceAfterComma",28,n,[Wde("insertSpaceAfterCommaDelimiter"),Tpe,Dpe],16),Bde("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Ude("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),upe],4),Bde("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Wde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),upe],16),Bde("SpaceAfterKeywordInControl",o,21,[Ude("insertSpaceAfterKeywordsInControlFlowStatements"),gpe],4),Bde("NoSpaceAfterKeywordInControl",o,21,[Wde("insertSpaceAfterKeywordsInControlFlowStatements"),gpe],16),Bde("SpaceAfterOpenParen",21,n,[Ude("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Tpe],4),Bde("SpaceBeforeCloseParen",n,22,[Ude("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Tpe],4),Bde("SpaceBetweenOpenParens",21,21,[Ude("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Tpe],4),Bde("NoSpaceBetweenParens",21,22,[Tpe],16),Bde("NoSpaceAfterOpenParen",21,n,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Tpe],16),Bde("NoSpaceBeforeCloseParen",n,22,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Tpe],16),Bde("SpaceAfterOpenBracket",23,n,[Ude("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Tpe],4),Bde("SpaceBeforeCloseBracket",n,24,[Ude("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Tpe],4),Bde("NoSpaceBetweenBrackets",23,24,[Tpe],16),Bde("NoSpaceAfterOpenBracket",23,n,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Tpe],16),Bde("NoSpaceBeforeCloseBracket",n,24,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Tpe],16),Bde("SpaceAfterOpenBrace",19,n,[Gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ipe],4),Bde("SpaceBeforeCloseBrace",n,20,[Gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ipe],4),Bde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Tpe,hpe],16),Bde("NoSpaceAfterOpenBrace",19,n,[Vde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Tpe],16),Bde("NoSpaceBeforeCloseBrace",n,20,[Vde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Tpe],16),Bde("SpaceBetweenEmptyBraceBrackets",19,20,[Ude("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Bde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Vde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Tpe],16),Bde("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Ude("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Cpe],4,1),Bde("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Ude("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Tpe],4),Bde("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Wde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Cpe],16,1),Bde("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Wde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Tpe],16),Bde("SpaceAfterOpenBraceInJsxExpression",19,n,[Ude("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Tpe,wpe],4),Bde("SpaceBeforeCloseBraceInJsxExpression",n,20,[Ude("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Tpe,wpe],4),Bde("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Wde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Tpe,wpe],16),Bde("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Wde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Tpe,wpe],16),Bde("SpaceAfterSemicolonInFor",27,n,[Ude("insertSpaceAfterSemicolonInForStatements"),Tpe,Kde],4),Bde("NoSpaceAfterSemicolonInFor",27,n,[Wde("insertSpaceAfterSemicolonInForStatements"),Tpe,Kde],16),Bde("SpaceBeforeBinaryOperator",n,a,[Ude("insertSpaceBeforeAndAfterBinaryOperators"),Tpe,Qde],4),Bde("SpaceAfterBinaryOperator",a,n,[Ude("insertSpaceBeforeAndAfterBinaryOperators"),Tpe,Qde],4),Bde("NoSpaceBeforeBinaryOperator",n,a,[Wde("insertSpaceBeforeAndAfterBinaryOperators"),Tpe,Qde],16),Bde("NoSpaceAfterBinaryOperator",a,n,[Wde("insertSpaceBeforeAndAfterBinaryOperators"),Tpe,Qde],16),Bde("SpaceBeforeOpenParenInFuncDecl",n,21,[Ude("insertSpaceBeforeFunctionParenthesis"),Tpe,upe],4),Bde("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Wde("insertSpaceBeforeFunctionParenthesis"),Tpe,upe],16),Bde("NewLineBeforeOpenBraceInControl",_,19,[Ude("placeOpenBraceOnNewLineForControlBlocks"),gpe,ope],8,1),Bde("NewLineBeforeOpenBraceInFunction",l,19,[Ude("placeOpenBraceOnNewLineForFunctions"),upe,ope],8,1),Bde("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",u,19,[Ude("placeOpenBraceOnNewLineForFunctions"),ppe,ope],8,1),Bde("SpaceAfterTypeAssertion",32,n,[Ude("insertSpaceAfterTypeAssertion"),Tpe,qpe],4),Bde("NoSpaceAfterTypeAssertion",32,n,[Wde("insertSpaceAfterTypeAssertion"),Tpe,qpe],16),Bde("SpaceBeforeTypeAnnotation",n,[58,59],[Ude("insertSpaceBeforeTypeAnnotation"),Tpe,epe],4),Bde("NoSpaceBeforeTypeAnnotation",n,[58,59],[Wde("insertSpaceBeforeTypeAnnotation"),Tpe,epe],16),Bde("NoOptionalSemicolon",27,i,[qde("semicolons","remove"),Kpe],32),Bde("OptionalSemicolon",n,i,[qde("semicolons","insert"),Xpe],64),Bde("NoSpaceBeforeSemicolon",n,27,[Tpe],16),Bde("SpaceBeforeOpenBraceInControl",_,19,[Hde("placeOpenBraceOnNewLineForControlBlocks"),gpe,jpe,rpe],4,1),Bde("SpaceBeforeOpenBraceInFunction",l,19,[Hde("placeOpenBraceOnNewLineForFunctions"),upe,cpe,jpe,rpe],4,1),Bde("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",u,19,[Hde("placeOpenBraceOnNewLineForFunctions"),ppe,jpe,rpe],4,1),Bde("NoSpaceBeforeComma",n,28,[Tpe],16),Bde("NoSpaceBeforeOpenBracket",t(134,84),23,[Tpe],16),Bde("NoSpaceAfterCloseBracket",24,n,[Tpe,Ipe],16),Bde("SpaceAfterSemicolon",27,n,[Tpe],4),Bde("SpaceBetweenForAndAwaitKeyword",99,135,[Tpe],4),Bde("SpaceBetweenDotDotDotAndTypeName",26,c,[Tpe],16),Bde("SpaceBetweenStatements",[22,92,93,84],n,[Tpe,Dpe,Xde],4),Bde("SpaceAfterTryCatchFinally",[113,85,98],19,[Tpe],4)]}function Bde(e,t,n,r,i,o=0){return{leftTokenRange:zde(t),rightTokenRange:zde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function Jde(e){return{tokens:e,isSpecific:!0}}function zde(e){return"number"==typeof e?Jde([e]):nt(e)?Jde(e):e}function $de(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)E(n,i)||r.push(i);return Jde(r)}function qde(e,t){return n=>n.options&&n.options[e]===t}function Ude(e){return t=>t.options&&Ie(t.options,e)&&!!t.options[e]}function Vde(e){return t=>t.options&&Ie(t.options,e)&&!t.options[e]}function Wde(e){return t=>!t.options||!Ie(t.options,e)||!t.options[e]}function Hde(e){return t=>!t.options||!Ie(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Gde(e){return t=>!t.options||!Ie(t.options,e)||!!t.options[e]}function Kde(e){return 248===e.contextNode.kind}function Xde(e){return!Kde(e)}function Qde(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Yde(e){return!Qde(e)}function Zde(e){return!epe(e)}function epe(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||mu(t)}function tpe(e){return!function(e){return hE(e.contextNode)&&e.contextNode.questionToken}(e)}function npe(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function rpe(e){return e.TokensAreOnSameLine()||cpe(e)}function ipe(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return spe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function ope(e){return cpe(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function ape(e){return spe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function spe(e){return lpe(e.contextNode)}function cpe(e){return lpe(e.nextTokenParent)}function lpe(e){if(fpe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function upe(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function _pe(e){return!upe(e)}function dpe(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function ppe(e){return fpe(e.contextNode)}function fpe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function mpe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function gpe(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function hpe(e){return 210===e.contextNode.kind}function ype(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function vpe(e){return 28!==e.currentTokenSpan.kind}function bpe(e){return 24!==e.nextTokenSpan.kind}function xpe(e){return 22!==e.nextTokenSpan.kind}function Spe(e){return 219===e.contextNode.kind}function kpe(e){return 205===e.contextNode.kind}function Tpe(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function Cpe(e){return 12!==e.contextNode.kind}function Dpe(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function wpe(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function Epe(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function Fpe(e){return 291===e.contextNode.kind}function Npe(e){return 295!==e.nextTokenParent.kind}function Ppe(e){return 295===e.nextTokenParent.kind}function Ape(e){return 285===e.contextNode.kind}function Ipe(e){return!upe(e)&&!cpe(e)}function Ope(e){return e.TokensAreOnSameLine()&&qv(e.contextNode)&&Lpe(e.currentTokenParent)&&!Lpe(e.nextTokenParent)}function Lpe(e){for(;e&&Qu(e);)e=e.parent;return e&&170===e.kind}function Rpe(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function jpe(e){return 2!==e.formattingRequestKind}function Mpe(e){return 267===e.contextNode.kind}function Bpe(e){return 187===e.contextNode.kind}function Jpe(e){return 180===e.contextNode.kind}function zpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function $pe(e){return zpe(e.currentTokenSpan,e.currentTokenParent)||zpe(e.nextTokenSpan,e.nextTokenParent)}function qpe(e){return 216===e.contextNode.kind}function Upe(e){return!qpe(e)}function Vpe(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function Wpe(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function Hpe(e){return 235===e.contextNode.kind}function Gpe(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function Kpe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Bh(t)){const r=e.nextTokenParent===e.currentTokenParent?eQ(e.currentTokenParent,yc(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:27===t&&27===e.currentTokenSpan.kind||240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!gE(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:hE(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function Xpe(e){return AZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Qpe(e){return!nF(e.contextNode)||!Pw(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Ype(e,t){return{options:e,getRules:Zpe(),host:t}}function Zpe(){return void 0===Ode&&(Ode=function(e){const t=function(e){const t=new Array(lfe*lfe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=tfe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),_fe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[tfe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~efe(r);i.action&n&&k(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(Mde())),Ode}function efe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function tfe(e,t){return gn.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*lfe+t}var nfe,rfe,ife,ofe,afe,sfe=5,cfe=31,lfe=166,ufe=((nfe=ufe||{})[nfe.StopRulesSpecific=0]="StopRulesSpecific",nfe[nfe.StopRulesAny=1*sfe]="StopRulesAny",nfe[nfe.ContextRulesSpecific=2*sfe]="ContextRulesSpecific",nfe[nfe.ContextRulesAny=3*sfe]="ContextRulesAny",nfe[nfe.NoContextRulesSpecific=4*sfe]="NoContextRulesSpecific",nfe[nfe.NoContextRulesAny=5*sfe]="NoContextRulesAny",nfe);function _fe(e,t,n,r,i){const o=3&t.action?n?0:ufe.StopRulesAny:t.context!==Lde?n?ufe.ContextRulesSpecific:ufe.ContextRulesAny:n?ufe.NoContextRulesSpecific:ufe.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=sfe)n+=e&cfe,e>>=sfe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&cfe);return gn.assert((n&cfe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(cfe<gn.formatSyntaxKind(n)}),r}function pfe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Pd(r,t);for(;Xa(t.text.charCodeAt(i));)i--;return Qa(t.text.charCodeAt(i))&&i--,Tfe({pos:Fd(r-1,t),end:i+1},t,n,2)}function ffe(e,t,n){return kfe(bfe(vfe(e,27,t)),t,n,3)}function mfe(e,t,n){const r=vfe(e,19,t);return r?Tfe({pos:kX(bfe(r.parent).getStart(t),t),end:e},t,n,4):[]}function gfe(e,t,n){return kfe(bfe(vfe(e,20,t)),t,n,5)}function hfe(e,t){return Tfe({pos:0,end:e.text.length},e,t,0)}function yfe(e,t,n,r){return Tfe({pos:kX(e,n),end:t},n,r,1)}function vfe(e,t,n){const r=tQ(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function bfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!xfe(t.parent,t);)t=t.parent;return t}function xfe(e,t){switch(e.kind){case 263:case 264:return ix(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&ix(n.statements,t);case 307:case 241:case 268:return ix(e.statements,t);case 299:return ix(e.block.statements,t)}return!1}function Sfe(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return Ide(t.text,n,a.pos,a.end,(n=>Cfe(a,e,r,i,n,o,1,(e=>!1),t)))}function kfe(e,t,n,r){return e?Tfe({pos:kX(e.getStart(t),t),end:e.end},t,n,r):[]}function Tfe(e,t,n,r){const i=function(e,t){return function n(r){const i=qI(r,(n=>ox(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return Ide(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=tQ(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>Cfe(e,i,afe.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(afe.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>EX(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(NX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function Cfe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,u){var _;const d=new Nde(u,c,o);let p,f,g,h,y,v=-1;const b=[];if(i.advance(),i.isOnToken()){const a=u.getLineAndCharacterOfPosition(t.getStart(u)).line;let s=a;qv(t)&&(s=u.getLineAndCharacterOfPosition(Gd(t,u)).line),function t(n,r,a,s,c,_){if(!EX(e,n.getStart(u),n.getEnd()))return;const d=S(n,a,c,_);let m=r;for(qI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(e=>{h(e,n,a,d)}));i.isOnToken()&&i.getTokenFullStart()Math.min(n.end,e.end))break;b(t,n,d,n)}function g(r,a,s,c,l,_,d,p){if(gn.assert(!sy(r)),Id(r)||Ld(s,r))return a;const f=r.getStart(u),g=u.getLineAndCharacterOfPosition(f).line;let h=g;qv(r)&&(h=u.getLineAndCharacterOfPosition(Gd(r,u)).line);let x=-1;if(d&&ix(e,s)&&(x=function(e,t,n,r,i){if(EX(r,e,t)||wX(r,e,t)){if(-1!==i)return i}else{const t=u.getLineAndCharacterOfPosition(e).line,r=kX(e,u),i=afe.findFirstNonWhitespaceColumn(r,e,u,o);if(t!==n||e===i){const e=afe.getBaseIndentation(o);return e>i?e:i}}return-1}(f,r.end,l,e,a),-1!==x&&(a=x)),!EX(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>f){t.token.pos>f&&i.skipToStartOf(r);break}b(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(jl(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return gn.assert(e.token.end===r.end,"Token end is child end"),b(e,n,c,r),a}const S=170===r.kind?g:_,k=function(e,t,n,r,i,a){const s=afe.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===y?v:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===y?{indentation:v,delta:i.getDelta(e)}:afe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,u)||afe.childIsUnindentedBranchOfConditionalExpression(r,e,t,u)||afe.argumentStartsOnSameLineAsPreviousArgument(r,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,S);return t(r,m,g,h,k.indentation,k.delta),m=n,p&&209===s.kind&&-1===a&&(a=k.indentation),a}function h(t,r,a,s){gn.assert(Ml(t)),gn.assert(!sy(t));const c=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let l=s,_=a;if(!EX(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(_=u.getLineAndCharacterOfPosition(e.token.pos).line,b(e,r,s,r),-1!==v)t=v;else{const n=kX(e.token.pos,u);t=afe.findFirstNonWhitespaceColumn(n,e.token.pos,u,o)}l=S(r,a,t,o.indentSize)}else b(e,r,s,r)}let d=-1;for(let e=0;eF(e.pos,i,!1)))}-1!==e&&n&&(F(t.token.pos,e,1===_),y=g.line,v=e)}i.advance(),m=n}}(t,t,a,s,n,r)}const x=i.getCurrentLeadingTrivia();if(x){const r=afe.nodeWillIndentChild(o,t,void 0,u,!1)?n+o.indentSize:n;k(x,r,!0,(e=>{w(e,u.getLineAndCharacterOfPosition(e.pos),t,t,void 0),F(e.pos,r,!1)})),!1!==o.trimTrailingWhitespace&&function(t){let n=f?f.end:e.pos;for(const e of t)bQ(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===p){const n=(null==(_=tQ(e.end,u,t))?void 0:_.parent)||g;E(e,u.getLineAndCharacterOfPosition(e.pos).line,n,f,h,g,n,void 0)}}return b;function S(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==i.kind)return!1}return t!==n&&!(qv(e)&&r===function(e){if(mI(e)){const t=T(e.modifiers,au,D(e.modifiers,mE));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=Ac(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{afe.shouldIndentChildNode(o,i,e,u)&&(n+=t?o.indentSize:-o.indentSize,r=afe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return afe.nodeWillIndentChild(o,e,t,u,!0)?r:0}}function k(t,n,r,i){for(const o of t){const t=ix(e,o);switch(o.kind){case 3:t&&N(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function C(t,n,r,i){for(const o of t)bQ(o.kind)&&ix(e,o)&&w(o,u.getLineAndCharacterOfPosition(o.pos),n,r,i)}function w(t,n,r,i,o){let a=0;return l(t)||(f?a=E(t,n.line,r,f,h,g,i,o):P(u.getLineAndCharacterOfPosition(e.pos).line,n.line)),f=t,p=t.end,g=r,h=n.line,a}function E(e,t,n,r,i,c,l,_){d.updateContext(r,c,e,n,l);const p=a(d);let f=!1!==d.options.trimTrailingWhitespace,g=0;return p?m(p,(a=>{if(g=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return L(t.end,r.pos-t.end,zY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==u.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,l=";",b.push(jQ(c,0,l))}var c,l;return 0}(a,r,i,e,t),_)switch(g){case 2:n.getStart(u)===e.pos&&_.recomputeIndentation(!1,l);break;case 1:n.getStart(u)===e.pos&&_.recomputeIndentation(!0,l);break;default:gn.assert(0===g)}f=f&&!(16&a.action)&&1!==a.flags})):f=f&&1!==e.kind,t!==i&&f&&P(i,t,r),g}function F(e,t,n){const r=wfe(t,o);if(n)L(e,0,r);else{const n=u.getLineAndCharacterOfPosition(e),i=Fd(n.line,u);(t!==function(e,t){let n=0;for(let r=0;r0){const e=wfe(r,o);L(t,n.character,e)}else O(t,n.character)}}function P(e,t,n){for(let r=e;rt)continue;const i=A(e,t);-1!==i&&(gn.assert(i===e||!Xa(u.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&Xa(u.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){P(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&b.push(jQ(e,t,""))}function L(e,t,n){(t||n)&&b.push(jQ(e,t,n))}}function Dfe(e,t,n,r=XX(e,t)){const i=yc(r,pP);if(i&&(r=i.parent),r.getStart(e)<=t&&tDX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function wfe(e,t){if((!rfe||rfe.tabSize!==t.tabSize||rfe.indentSize!==t.indentSize)&&(rfe={tabSize:t.tabSize,indentSize:t.indentSize},ife=ofe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return ofe||(ofe=[]),void 0===ofe[r]?(n=VQ(" ",t.indentSize*r),ofe[r]=n):n=ofe[r],i?n+VQ(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return ife||(ife=[]),void 0===ife[n]?ife[n]=i=VQ("\t",n):i=ife[n],r?i+VQ(" ",r):i}}(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&u(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=_(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!h_(e)&&!v_(e)||307!==t.kind&&r?-1:y(n,i,o)}let s;var c;function l(e,t,n,r){const i=eQ(e,t,r);return i?19===i.kind?1:20===i.kind&&n===u(i,r).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(e,t,n,r){return!(!iF(e)||!E(e.arguments,t))&&Ga(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=RX(e,93,r);return gn.assert(void 0!==t),u(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 183:return i(n.typeArguments);case 210:return i(n.properties);case 209:case 275:case 279:case 206:case 207:return i(n.elements);case 187:return i(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return i(n.typeParameters)||i(n.parameters);case 177:return i(n.parameters);case 263:case 231:case 264:case 265:case 345:return i(n.typeParameters);case 214:case 213:return i(n.typeArguments)||i(n.arguments);case 261:return i(n.declarations)}function i(i){return i&&wX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--)if(28!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=u(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=tQ(e,t,void 0,!0),s=Dfe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=Ga(e,t).line-1,o=Ga(e,r.pos).line;if(gn.assert(o>=0),i<=o)return b(Fd(o,e),t,e,n);const a=Fd(i,e),{column:s,character:c}=v(a,t,e,n);if(0===s)return s;const l=e.text.charCodeAt(a+c);return 42===l?s-1:s}(t,e,n,s);if(!a)return r(n);if(xQ(a.kind)&&a.getStart(t)<=e&&e0&&Ka(e.text.charCodeAt(r));)r--;const i=kX(r,e);return b(i,r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=OX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!ix(p,a)){const e=[218,219].includes(_.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,_=n;for(;_;){if(PX(_,t,e)&&S(s,_,c,e,!0)){const t=u(_,e),r=l(n,_,o,e);return i(_,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(_,e,s,!0);if(-1!==r)return r;c=_,_=_.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(yF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=Ga(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=u(e.whenTrue,r).line,o=Ga(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(qu(e)){if(!e.arguments)return!1;const i=T(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===Ga(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=b,e.nodeWillIndentChild=x,e.shouldIndentChildNode=S})(afe||(afe={}));var Efe={};function Ffe(e,t,n){let r=!1;return t.forEach((t=>{const i=yc(XX(e,t.pos),(e=>ix(e,t)));i&&qI(i,(function i(o){var a;if(!r){if(Xw(o)&&CX(t,o.getStart(e))){const t=n.resolveName(o.text,o,-1,!1);if(t&&t.declarations)for(const n of t.declarations)if(p3(n)||o.text&&e.symbol&&(null==(a=e.symbol.exports)?void 0:a.has(o.escapedText)))return void(r=!0)}o.forEachChild(i)}}))})),r}n(Efe,{preparePasteEdits:()=>Ffe});var Nfe={};n(Nfe,{pasteEditsProvider:()=>Afe});var Pfe="providePostPasteEdits";function Afe(e,t,n,r,i,o,a,s){const c=Z_e.ChangeTracker.with({host:i,formatContext:a,preferences:o},(c=>function(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t[0]:t.join(zY(a.host,a.options)));const u=[];let _,d=e.text;for(let e=n.length-1;e>=0;e--){const{pos:r,end:i}=n[e];d=l?d.slice(0,r)+l+d.slice(i):d.slice(0,r)+t[e]+d.slice(i)}gn.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,d,((d,p,f)=>{if(_=M7.createImportAdder(f,d,o,i),null==r?void 0:r.range){gn.assert(r.range.length===t.length),r.range.forEach((e=>{const t=r.file.statements,n=D(t,(t=>t.end>e.pos));if(-1===n)return;let i=D(t,(t=>t.end>=e.end),n);-1!==i&&e.end<=t[i].getStart()&&i--,u.push(...t.slice(n,-1===i?t.length:i+1))})),gn.assertIsDefined(p,"no original program found");const n=p.getTypeChecker(),o=function({file:e,range:t}){const n=t[0].pos,r=t[t.length-1].end,i=XX(e,n),o=ZX(e,n)??XX(e,r);return{pos:Xw(i)&&n<=i.getStart(e)?i.getFullStart():n,end:Xw(o)&&r===o.getEnd()?Z_e.getAdjustedEndPosition(e,o,{}):r}}(r),a=u3(r.file,u,n,b3(f,u,n),o),s=!p0(e.fileName,p,i,!!r.file.commonJsModuleIndicator);q6(r.file,a.targetFileImportsFromOldFile,c,s),T3(r.file,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,n,d,_)}else{const e={sourceFile:f,program:p,cancellationToken:s,host:i,preferences:o,formatContext:a};let r=0;n.forEach(((n,i)=>{const o=n.end-n.pos,a=l??t[i],s=n.pos+r,c={pos:s,end:s+a.length};r+=a.length-o;const u=yc(XX(e.sourceFile,c.pos),(e=>ix(e,c)));u&&qI(u,(function t(n){if(Xw(n)&&CX(c,n.getStart(f))&&!(null==d?void 0:d.getTypeChecker().resolveName(n.text,n,-1,!1)))return _.addImportForUnresolvedIdentifier(e,n,!0);n.forEachChild(t)}))}))}_.writeFixes(c,iY(r?r.file:e,o))})),_.hasFixes()&&n.forEach(((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])}))}(e,t,n,r,i,o,a,s,c)));return{edits:c,fixId:Pfe}}var Ife,Ofe={};function Lfe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${Kx(i,[e])}`:"",o}function Rfe(e,t={}){const n="string"==typeof t.typeScriptVersion?new Cn(t.typeScriptVersion):t.typeScriptVersion??Ife??(Ife=new Cn(c)),r="string"==typeof t.errorAfter?new Cn(t.errorAfter):t.errorAfter,i="string"==typeof t.warnAfter?new Cn(t.warnAfter):t.warnAfter,o="string"==typeof t.since?new Cn(t.since):t.since??i,a=t.error||r&&n.compareTo(r)>=0,s=!i||n.compareTo(i)>=0;return a?function(e,t,n,r){const i=Lfe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,r,o,t.message):s?function(e,t,n,r){let i=!1;return()=>{i||(gn.log.warn(Lfe(e,!1,t,n,r)),i=!0)}}(e,r,o,t.message):ct}function jfe(e,t,n,r){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),r)for(const n of Object.keys(r)){const a=+n;!isNaN(a)&&Ie(t,`${a}`)&&(t[a]=(i=t[a],function(e,t){return function(){return e(),t.apply(this,arguments)}}(Rfe((null==(o={...r[a],name:e})?void 0:o.name)??gn.getFunctionName(i),o),i)))}var i,o;const a=function(e,t){return n=>{for(let r=0;Ie(e,`${r}`)&&Ie(t,`${r}`);r++)if((0,t[r])(n))return r}}(t,n);return s;function s(...e){const n=a(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function Mfe(e){return{overload:t=>({bind:n=>({finish:()=>jfe(e,t,n),deprecate:r=>({finish:()=>jfe(e,t,n,r)})})})}}n(Ofe,{ANONYMOUS:()=>CZ,AccessFlags:()=>ti,AssertionLevel:()=>vt,AssignmentDeclarationKind:()=>_i,AssignmentKind:()=>th,Associativity:()=>cy,BreakpointResolver:()=>m7,BuilderFileEmit:()=>XU,BuilderProgramKind:()=>CV,BuilderState:()=>GU,CallHierarchy:()=>h7,CharacterCodes:()=>wi,CheckFlags:()=>Gr,CheckMode:()=>VB,ClassificationType:()=>qK,ClassificationTypeNames:()=>$K,CommentDirectiveType:()=>Fr,Comparison:()=>l,CompletionInfoFlags:()=>LK,CompletionTriggerKind:()=>wK,Completions:()=>Fae,ContainerFlags:()=>UM,ContextFlags:()=>Br,Debug:()=>gn,DiagnosticCategory:()=>di,Diagnostics:()=>ha,DocumentHighlights:()=>P0,ElementFlags:()=>ei,EmitFlags:()=>Pi,EmitHint:()=>Li,EmitOnly:()=>Ir,EndOfLineState:()=>MK,ExitStatus:()=>Lr,ExportKind:()=>h0,Extension:()=>Ei,ExternalEmitHelpers:()=>Oi,FileIncludeKind:()=>Pr,FilePreprocessingDiagnosticsKind:()=>Ar,FileSystemEntryKind:()=>uo,FileWatcherEventKind:()=>Vi,FindAllReferences:()=>Nce,FlattenLevel:()=>bz,FlowFlags:()=>Er,ForegroundColorEscapeSequences:()=>Vq,FunctionFlags:()=>Jh,GeneratedIdentifierFlags:()=>Cr,GetLiteralTextFlags:()=>cp,GoToDefinition:()=>hle,HighlightSpanKind:()=>FK,IdentifierNameMap:()=>KJ,ImportKind:()=>g0,ImportsNotUsedAsValues:()=>xi,IndentStyle:()=>NK,IndexFlags:()=>ni,IndexKind:()=>ai,InferenceFlags:()=>li,InferencePriority:()=>ci,InlayHintKind:()=>EK,InlayHints:()=>Rle,InternalEmitFlags:()=>Ai,InternalNodeBuilderFlags:()=>zr,InternalSymbolName:()=>Kr,IntersectionFlags:()=>Mr,InvalidatedProjectKind:()=>yH,JSDocParsingMode:()=>$i,JsDoc:()=>zle,JsTyping:()=>WG,JsxEmit:()=>bi,JsxFlags:()=>Sr,JsxReferenceKind:()=>ri,LanguageFeatureMinimumTarget:()=>Ii,LanguageServiceMode:()=>kK,LanguageVariant:()=>Ci,LexicalEnvironmentFlags:()=>ji,ListFormat:()=>Mi,LogLevel:()=>hn,MapCode:()=>sue,MemberOverrideStatus:()=>Rr,ModifierFlags:()=>xr,ModuleDetectionKind:()=>mi,ModuleInstanceState:()=>JM,ModuleKind:()=>vi,ModuleResolutionKind:()=>fi,ModuleSpecifierEnding:()=>Uk,NavigateTo:()=>r2,NavigationBar:()=>f2,NewLineKind:()=>Si,NodeBuilderFlags:()=>Jr,NodeCheckFlags:()=>Xr,NodeFactoryFlags:()=>VC,NodeFlags:()=>br,NodeResolutionFeatures:()=>jj,ObjectFlags:()=>Yr,OperationCanceledException:()=>Nr,OperatorPrecedence:()=>py,OrganizeImports:()=>pue,OrganizeImportsMode:()=>DK,OuterExpressionKinds:()=>Ri,OutliningElementsCollector:()=>Vue,OutliningSpanKind:()=>RK,OutputFileType:()=>jK,PackageJsonAutoImportPreference:()=>SK,PackageJsonDependencyGroup:()=>xK,PatternMatchKind:()=>i1,PollingInterval:()=>Wi,PollingWatchKind:()=>yi,PragmaKindFlags:()=>Bi,PredicateSemantics:()=>Tr,PreparePasteEdits:()=>Efe,PrivateIdentifierKind:()=>GD,ProcessLevel:()=>zz,ProgramUpdateLevel:()=>Sq,QuotePreference:()=>nY,RegularExpressionFlags:()=>Dr,RelationComparisonResult:()=>kr,Rename:()=>e_e,ScriptElementKind:()=>JK,ScriptElementKindModifier:()=>zK,ScriptKind:()=>ki,ScriptSnapshot:()=>fK,ScriptTarget:()=>Ti,SemanticClassificationFormat:()=>CK,SemanticMeaning:()=>VK,SemicolonPreference:()=>PK,SignatureCheckMode:()=>WB,SignatureFlags:()=>oi,SignatureHelp:()=>s_e,SignatureInfo:()=>KU,SignatureKind:()=>ii,SmartSelectionRange:()=>I_e,SnippetKind:()=>Ni,StatisticType:()=>iG,StructureIsReused:()=>Or,SymbolAccessibility:()=>Ur,SymbolDisplay:()=>U_e,SymbolDisplayPartKind:()=>OK,SymbolFlags:()=>Hr,SymbolFormatFlags:()=>qr,SyntaxKind:()=>vr,Ternary:()=>ui,ThrottledCancellationToken:()=>a7,TokenClass:()=>BK,TokenFlags:()=>wr,TransformFlags:()=>Fi,TypeFacts:()=>qB,TypeFlags:()=>Qr,TypeFormatFlags:()=>$r,TypeMapKind:()=>si,TypePredicateKind:()=>Vr,TypeReferenceSerializationKind:()=>Wr,UnionReduction:()=>jr,UpToDateStatusType:()=>UW,VarianceFlags:()=>Zr,Version:()=>Cn,VersionRange:()=>wn,WatchDirectoryFlags:()=>Di,WatchDirectoryKind:()=>hi,WatchFileKind:()=>gi,WatchLogLevel:()=>Nq,WatchType:()=>EW,accessPrivateIdentifier:()=>gz,addEmitFlags:()=>dD,addEmitHelper:()=>AD,addEmitHelpers:()=>ID,addInternalEmitFlags:()=>fD,addNodeFactoryPatcher:()=>HC,addObjectAllocatorPatcher:()=>Hx,addRange:()=>de,addRelatedInfo:()=>pT,addSyntheticLeadingComment:()=>CD,addSyntheticTrailingComment:()=>ED,addToSeen:()=>Ex,advancedAsyncSuperHelper:()=>Fw,affectsDeclarationPathOptionDeclarations:()=>NO,affectsEmitOptionDeclarations:()=>FO,allKeysStartWithDot:()=>fM,altDirectorySeparator:()=>vo,and:()=>on,append:()=>le,appendIfUnique:()=>fe,arrayFrom:()=>Be,arrayIsEqualTo:()=>ae,arrayIsHomogeneous:()=>FT,arrayOf:()=>Me,arrayReverseIterator:()=>ge,arrayToMap:()=>$e,arrayToMultiMap:()=>Ue,arrayToNumericMap:()=>qe,assertType:()=>cn,assign:()=>Je,asyncSuperHelper:()=>Ew,attachFileToDiagnostics:()=>nS,base64decode:()=>Ab,base64encode:()=>Pb,binarySearch:()=>Fe,binarySearchKey:()=>Ne,bindSourceFile:()=>HM,breakIntoCharacterSpans:()=>x1,breakIntoWordSpans:()=>S1,buildLinkParts:()=>BY,buildOpts:()=>JO,buildOverload:()=>Mfe,bundlerModuleNameResolver:()=>Bj,canBeConvertedToAsync:()=>W1,canHaveDecorators:()=>gI,canHaveExportModifier:()=>YT,canHaveFlowNode:()=>zg,canHaveIllegalDecorators:()=>RA,canHaveIllegalModifiers:()=>jA,canHaveIllegalType:()=>OA,canHaveIllegalTypeParameters:()=>LA,canHaveJSDoc:()=>$g,canHaveLocals:()=>f_,canHaveModifiers:()=>mI,canHaveModuleSpecifier:()=>Tg,canHaveSymbol:()=>p_,canIncludeBindAndCheckDiagnostics:()=>bT,canJsonReportNoInputFiles:()=>_R,canProduceDiagnostics:()=>b$,canUsePropertyAccess:()=>eC,canWatchAffectingLocation:()=>GV,canWatchAtTypes:()=>VV,canWatchDirectoryOrFile:()=>qV,canWatchDirectoryOrFilePath:()=>UV,cartesianProduct:()=>_n,cast:()=>st,chainBundle:()=>$J,chainDiagnosticMessages:()=>sS,changeAnyExtension:()=>ea,changeCompilerHostLikeToUseCache:()=>zq,changeExtension:()=>Zk,changeFullExtension:()=>ta,changesAffectModuleResolution:()=>od,changesAffectingProgramStructure:()=>ad,characterCodeToRegularExpressionFlag:()=>Ja,childIsDecorated:()=>Sm,classElementOrClassElementParameterIsDecorated:()=>Tm,classHasClassThisAssignment:()=>Pz,classHasDeclaredOrExplicitlyAssignedName:()=>jz,classHasExplicitlyAssignedName:()=>Rz,classOrConstructorParameterIsDecorated:()=>km,classicNameResolver:()=>IM,classifier:()=>R7,cleanExtendedConfigCache:()=>Cq,clear:()=>I,clearMap:()=>vx,clearSharedExtendedConfigFileWatcher:()=>Tq,climbPastPropertyAccess:()=>oX,clone:()=>He,cloneCompilerOptions:()=>DQ,closeFileWatcher:()=>ux,closeFileWatcherOf:()=>Iq,codefix:()=>M7,collapseTextChangeRangesAcrossMultipleVersions:()=>ic,collectExternalModuleInfo:()=>WJ,combine:()=>ue,combinePaths:()=>Uo,commandLineOptionOfCustomType:()=>jO,commentPragmas:()=>zi,commonOptionsWithBuild:()=>kO,compact:()=>se,compareBooleans:()=>Bt,compareDataObjects:()=>yx,compareDiagnostics:()=>uS,compareEmitHelpers:()=>XD,compareNumberOfDirectorySeparators:()=>Gk,comparePaths:()=>aa,comparePathsCaseInsensitive:()=>oa,comparePathsCaseSensitive:()=>ia,comparePatternKeys:()=>gM,compareProperties:()=>Mt,compareStringsCaseInsensitive:()=>Et,compareStringsCaseInsensitiveEslintCompatible:()=>Ft,compareStringsCaseSensitive:()=>Nt,compareStringsCaseSensitiveUI:()=>jt,compareTextSpans:()=>Ct,compareValues:()=>Tt,compilerOptionsAffectDeclarationPath:()=>YS,compilerOptionsAffectEmit:()=>QS,compilerOptionsAffectSemanticDiagnostics:()=>XS,compilerOptionsDidYouMeanDiagnostics:()=>tL,compilerOptionsIndicateEsModules:()=>XQ,computeCommonSourceDirectoryOfFilenames:()=>Rq,computeLineAndCharacterOfPosition:()=>Va,computeLineOfPosition:()=>Wa,computeLineStarts:()=>za,computePositionOfLineAndCharacter:()=>qa,computeSignatureWithDiagnostics:()=>EV,computeSuggestionDiagnostics:()=>R1,computedOptions:()=>TS,concatenate:()=>Y,concatenateDiagnosticMessageChains:()=>cS,consumesNodeCoreModules:()=>UZ,contains:()=>E,containsIgnoredPath:()=>JT,containsObjectRestOrSpread:()=>pI,containsParseError:()=>Td,containsPath:()=>sa,convertCompilerOptionsForTelemetry:()=>qR,convertCompilerOptionsFromJson:()=>gR,convertJsonOption:()=>TR,convertToBase64:()=>Nb,convertToJson:()=>AL,convertToObject:()=>PL,convertToOptionsWithAbsolutePaths:()=>WL,convertToRelativePath:()=>_a,convertToTSConfig:()=>LL,convertTypeAcquisitionFromJson:()=>hR,copyComments:()=>cZ,copyEntries:()=>_d,copyLeadingComments:()=>pZ,copyProperties:()=>Ke,copyTrailingAsLeadingComments:()=>mZ,copyTrailingComments:()=>fZ,couldStartTrivia:()=>rs,countWhere:()=>N,createAbstractBuilder:()=>JV,createAccessorPropertyBackingField:()=>sI,createAccessorPropertyGetRedirector:()=>cI,createAccessorPropertySetRedirector:()=>lI,createBaseNodeFactory:()=>MC,createBinaryExpressionTrampoline:()=>eI,createBuilderProgram:()=>FV,createBuilderProgramUsingIncrementalBuildInfo:()=>OV,createBuilderStatusReporter:()=>QW,createCacheableExportInfoMap:()=>y0,createCachedDirectoryStructureHost:()=>xq,createClassifier:()=>N0,createCommentDirectivesMap:()=>Wd,createCompilerDiagnostic:()=>oS,createCompilerDiagnosticForInvalidCustomType:()=>WO,createCompilerDiagnosticFromMessageChain:()=>aS,createCompilerHost:()=>jq,createCompilerHostFromProgramHost:()=>NW,createCompilerHostWorker:()=>Jq,createDetachedDiagnostic:()=>Zx,createDiagnosticCollection:()=>hy,createDiagnosticForFileFromMessageChain:()=>Qp,createDiagnosticForNode:()=>Up,createDiagnosticForNodeArray:()=>Vp,createDiagnosticForNodeArrayFromMessageChain:()=>Gp,createDiagnosticForNodeFromMessageChain:()=>Hp,createDiagnosticForNodeInSourceFile:()=>Wp,createDiagnosticForRange:()=>Zp,createDiagnosticMessageChainFromDiagnostic:()=>Yp,createDiagnosticReporter:()=>oW,createDocumentPositionMapper:()=>jJ,createDocumentRegistry:()=>W0,createDocumentRegistryInternal:()=>H0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>BV,createEmitHelperFactory:()=>KD,createEmptyExports:()=>GP,createEvaluator:()=>kC,createExpressionForJsxElement:()=>ZP,createExpressionForJsxFragment:()=>eA,createExpressionForObjectLiteralElementLike:()=>iA,createExpressionForPropertyName:()=>rA,createExpressionFromEntityName:()=>nA,createExternalHelpersImportDeclarationIfNeeded:()=>SA,createFileDiagnostic:()=>rS,createFileDiagnosticFromMessageChain:()=>Xp,createFlowNode:()=>VM,createForOfBindingStatement:()=>tA,createFutureSourceFile:()=>m0,createGetCanonicalFileName:()=>Xt,createGetIsolatedDeclarationErrors:()=>k$,createGetSourceFile:()=>Mq,createGetSymbolAccessibilityDiagnosticForNode:()=>S$,createGetSymbolAccessibilityDiagnosticForNodeName:()=>x$,createGetSymbolWalker:()=>ZM,createIncrementalCompilerHost:()=>JW,createIncrementalProgram:()=>zW,createJsxFactoryExpression:()=>YP,createLanguageService:()=>l7,createLanguageServiceSourceFile:()=>n7,createMemberAccessForPropertyName:()=>KP,createModeAwareCache:()=>Tj,createModeAwareCacheKey:()=>kj,createModeMismatchDetails:()=>vd,createModuleNotFoundChain:()=>yd,createModuleResolutionCache:()=>Fj,createModuleResolutionLoader:()=>fU,createModuleResolutionLoaderUsingGlobalCache:()=>tW,createModuleSpecifierResolutionHost:()=>QQ,createMultiMap:()=>Qe,createNameResolver:()=>DC,createNodeConverters:()=>zC,createNodeFactory:()=>GC,createOptionNameMap:()=>$O,createOverload:()=>jfe,createPackageJsonImportFilter:()=>qZ,createPackageJsonInfo:()=>$Z,createParenthesizerRules:()=>BC,createPatternMatcher:()=>a1,createPrinter:()=>hq,createPrinterWithDefaults:()=>pq,createPrinterWithRemoveComments:()=>fq,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>mq,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>gq,createProgram:()=>OU,createProgramHost:()=>IW,createPropertyNameNodeForIdentifierOrLiteral:()=>GT,createQueue:()=>et,createRange:()=>Jb,createRedirectedBuilderProgram:()=>jV,createResolutionCache:()=>nW,createRuntimeTypeSerializer:()=>Gz,createScanner:()=>ks,createSemanticDiagnosticsBuilderProgram:()=>MV,createSet:()=>tt,createSolutionBuilder:()=>tH,createSolutionBuilderHost:()=>ZW,createSolutionBuilderWithWatch:()=>nH,createSolutionBuilderWithWatchHost:()=>eH,createSortedArray:()=>re,createSourceFile:()=>HI,createSourceMapGenerator:()=>bJ,createSourceMapSource:()=>aD,createSuperAccessVariableStatement:()=>Yz,createSymbolTable:()=>td,createSymlinkCache:()=>ik,createSyntacticTypeNodeBuilder:()=>VG,createSystemWatchFunctions:()=>fo,createTextChange:()=>MQ,createTextChangeFromStartLength:()=>jQ,createTextChangeRange:()=>nc,createTextRangeFromNode:()=>OQ,createTextRangeFromSpan:()=>RQ,createTextSpan:()=>Ys,createTextSpanFromBounds:()=>Zs,createTextSpanFromNode:()=>AQ,createTextSpanFromRange:()=>LQ,createTextSpanFromStringLiteralLikeContent:()=>IQ,createTextWriter:()=>zy,createTokenRange:()=>Vb,createTypeChecker:()=>eJ,createTypeReferenceDirectiveResolutionCache:()=>Nj,createTypeReferenceResolutionLoader:()=>hU,createWatchCompilerHost:()=>$W,createWatchCompilerHostOfConfigFile:()=>RW,createWatchCompilerHostOfFilesAndCompilerOptions:()=>jW,createWatchFactory:()=>FW,createWatchHost:()=>wW,createWatchProgram:()=>qW,createWatchStatusReporter:()=>lW,createWriteFileMeasuringIO:()=>Bq,declarationNameToString:()=>Mp,decodeMappings:()=>EJ,decodedTextSpanIntersectsWith:()=>Hs,deduplicate:()=>ne,defaultInitCompilerOptions:()=>VO,defaultMaximumTruncationLength:()=>Q_,diagnosticCategoryName:()=>pi,diagnosticToString:()=>c0,diagnosticsEqualityComparer:()=>fS,directoryProbablyExists:()=>Rb,directorySeparator:()=>yo,displayPart:()=>DY,displayPartsToString:()=>Q8,disposeEmitNodes:()=>lD,documentSpansEqual:()=>hY,dumpTracingLegend:()=>yr,elementAt:()=>ye,elideNodes:()=>nI,emitDetachedComments:()=>Ev,emitFiles:()=>lq,emitFilesAndReportErrors:()=>kW,emitFilesAndReportErrorsAndGetExitStatus:()=>TW,emitModuleKindIsNonNodeESM:()=>$S,emitNewLineBeforeLeadingCommentOfPosition:()=>wv,emitResolverSkipsTypeChecking:()=>cq,emitSkippedWithNoDiagnostics:()=>BU,emptyArray:()=>u,emptyFileSystemEntries:()=>uT,emptyMap:()=>d,emptyOptions:()=>TK,endsWith:()=>$t,ensurePathIsNonModuleName:()=>Zo,ensureScriptKind:()=>wk,ensureTrailingDirectorySeparator:()=>Yo,entityNameToString:()=>qp,enumerateInsertsAndDeletes:()=>un,equalOwnProperties:()=>ze,equateStringsCaseInsensitive:()=>xt,equateStringsCaseSensitive:()=>St,equateValues:()=>bt,escapeJsxAttributeString:()=>Ly,escapeLeadingUnderscores:()=>xc,escapeNonAsciiString:()=>Ny,escapeSnippetText:()=>WT,escapeString:()=>Ey,escapeTemplateSubstitution:()=>vy,evaluatorResult:()=>SC,every:()=>k,exclusivelyPrefixedNodeCoreModules:()=>IC,executeCommandLine:()=>xG,expandPreOrPostfixIncrementOrDecrementExpression:()=>oA,explainFiles:()=>hW,explainIfFileIsRedirectAndImpliedFormat:()=>yW,exportAssignmentIsAlias:()=>Sh,expressionResultIsUnused:()=>BT,extend:()=>Ge,extensionFromPath:()=>aT,extensionIsTS:()=>iT,extensionsNotSupportingExtensionlessResolution:()=>Mk,externalHelpersModuleNameText:()=>X_,factory:()=>oD,fileExtensionIs:()=>No,fileExtensionIsOneOf:()=>Po,fileIncludeReasonToDiagnostics:()=>xW,fileShouldUseJavaScriptRequire:()=>p0,filter:()=>P,filterMutate:()=>A,filterSemanticDiagnostics:()=>zU,find:()=>T,findAncestor:()=>yc,findBestPatternMatch:()=>Zt,findChildOfKind:()=>RX,findComputedPropertyNameCacheAssignment:()=>uI,findConfigFile:()=>Oq,findConstructorDeclaration:()=>CC,findContainingList:()=>jX,findDiagnosticForNode:()=>HZ,findFirstNonJsxWhitespaceToken:()=>YX,findIndex:()=>D,findLast:()=>C,findLastIndex:()=>w,findListItemInfo:()=>OX,findModifier:()=>pY,findNextToken:()=>eQ,findPackageJson:()=>zZ,findPackageJsons:()=>JZ,findPrecedingMatchingToken:()=>_Q,findPrecedingToken:()=>tQ,findSuperStatementIndexPath:()=>rz,findTokenOnLeftOfPosition:()=>ZX,findUseStrictPrologue:()=>uA,first:()=>xe,firstDefined:()=>g,firstDefinedIterator:()=>h,firstIterator:()=>Se,firstOrOnly:()=>YZ,firstOrUndefined:()=>ve,firstOrUndefinedIterator:()=>be,fixupCompilerOptions:()=>n2,flatMap:()=>M,flatMapIterator:()=>J,flatMapToMutable:()=>B,flatten:()=>j,flattenCommaList:()=>dI,flattenDestructuringAssignment:()=>xz,flattenDestructuringBinding:()=>Tz,flattenDiagnosticMessageText:()=>rU,forEach:()=>f,forEachAncestor:()=>cd,forEachAncestorDirectory:()=>fa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>SM,forEachChild:()=>qI,forEachChildRecursively:()=>UI,forEachDynamicImportOrRequireCall:()=>LC,forEachEmittedFile:()=>q$,forEachEnclosingBlockScopeContainer:()=>jp,forEachEntry:()=>ld,forEachExternalModuleToImportFrom:()=>x0,forEachImportClauseDeclaration:()=>Ag,forEachKey:()=>ud,forEachLeadingCommentRange:()=>ds,forEachNameInAccessChainWalkingLeft:()=>Lx,forEachNameOfDefaultExport:()=>F0,forEachPropertyAssignment:()=>Xf,forEachResolvedProjectReference:()=>vU,forEachReturnStatement:()=>Of,forEachRight:()=>m,forEachTrailingCommentRange:()=>ps,forEachTsConfigPropArray:()=>em,forEachUnique:()=>vY,forEachYieldExpression:()=>Lf,formatColorAndReset:()=>Zq,formatDiagnostic:()=>Uq,formatDiagnostics:()=>qq,formatDiagnosticsWithColorAndContext:()=>nU,formatGeneratedName:()=>aI,formatGeneratedNamePart:()=>iI,formatLocation:()=>tU,formatMessage:()=>iS,formatStringFromArgs:()=>Kx,formatting:()=>Ede,generateDjb2Hash:()=>qi,generateTSConfig:()=>VL,getAdjustedReferenceLocation:()=>WX,getAdjustedRenameLocation:()=>HX,getAliasDeclarationFromName:()=>bh,getAllAccessorDeclarations:()=>bv,getAllDecoratorsOfClass:()=>uz,getAllDecoratorsOfClassElement:()=>_z,getAllJSDocTags:()=>fl,getAllJSDocTagsOfKind:()=>ml,getAllKeys:()=>Re,getAllProjectOutputs:()=>oq,getAllSuperTypeNodes:()=>Eh,getAllowImportingTsExtensions:()=>CS,getAllowJSCompilerOption:()=>JS,getAllowSyntheticDefaultImports:()=>AS,getAncestor:()=>Ph,getAnyExtensionFromPath:()=>Bo,getAreDeclarationMapsEnabled:()=>BS,getAssignedExpandoInitializer:()=>Zm,getAssignedName:()=>Ic,getAssignmentDeclarationKind:()=>cg,getAssignmentDeclarationPropertyAccessKind:()=>yg,getAssignmentTargetKind:()=>rh,getAutomaticTypeDirectiveNames:()=>gj,getBaseFileName:()=>jo,getBinaryOperatorPrecedence:()=>my,getBuildInfo:()=>_q,getBuildInfoFileVersionMap:()=>LV,getBuildInfoText:()=>uq,getBuildOrderFromAnyBuildOrder:()=>XW,getBuilderCreationParameters:()=>DV,getBuilderFileEmit:()=>YU,getCanonicalDiagnostic:()=>ef,getCheckFlags:()=>_x,getClassExtendsHeritageElement:()=>Dh,getClassLikeDeclarationOfSymbol:()=>kx,getCombinedLocalAndExportSymbolFlags:()=>fx,getCombinedModifierFlags:()=>_c,getCombinedNodeFlags:()=>pc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>dc,getCommentRange:()=>xD,getCommonSourceDirectory:()=>rq,getCommonSourceDirectoryOfConfig:()=>iq,getCompilerOptionValue:()=>ZS,getCompilerOptionsDiffValue:()=>qL,getConditions:()=>fj,getConfigFileParsingDiagnostics:()=>NU,getConstantValue:()=>ND,getContainerFlags:()=>QM,getContainerNode:()=>vX,getContainingClass:()=>rm,getContainingClassExcludingClassDecorators:()=>am,getContainingClassStaticBlock:()=>im,getContainingFunction:()=>tm,getContainingFunctionDeclaration:()=>nm,getContainingFunctionOrClassStaticBlock:()=>om,getContainingNodeArray:()=>zT,getContainingObjectLiteralElement:()=>_7,getContextualTypeFromParent:()=>vZ,getContextualTypeFromParentOrAncestorTypeNode:()=>zX,getDeclarationDiagnostics:()=>T$,getDeclarationEmitExtensionForPath:()=>Yy,getDeclarationEmitOutputFilePath:()=>Xy,getDeclarationEmitOutputFilePathWorker:()=>Qy,getDeclarationFileExtension:()=>oO,getDeclarationFromName:()=>hh,getDeclarationModifierFlagsFromSymbol:()=>dx,getDeclarationOfKind:()=>Z_,getDeclarationsOfKind:()=>ed,getDeclaredExpandoInitializer:()=>Ym,getDecorators:()=>Oc,getDefaultCompilerOptions:()=>Y8,getDefaultFormatCodeSettings:()=>AK,getDefaultLibFileName:()=>Ls,getDefaultLibFilePath:()=>p7,getDefaultLikeExportInfo:()=>w0,getDefaultLikeExportNameFromDeclaration:()=>e0,getDefaultResolutionModeForFileWorker:()=>MU,getDiagnosticText:()=>cL,getDiagnosticsWithinSpan:()=>GZ,getDirectoryPath:()=>Ro,getDirectoryToWatchFailedLookupLocation:()=>KV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>YV,getDocumentPositionMapper:()=>I1,getDocumentSpansEqualityComparer:()=>yY,getESModuleInterop:()=>PS,getEditsForFileRename:()=>X0,getEffectiveBaseTypeNode:()=>Ch,getEffectiveConstraintOfTypeParameter:()=>yl,getEffectiveContainerForJSDocTemplateTag:()=>Hg,getEffectiveImplementsTypeNodes:()=>wh,getEffectiveInitializer:()=>Qm,getEffectiveJSDocHost:()=>Xg,getEffectiveModifierFlags:()=>Hv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Gv,getEffectiveModifierFlagsNoCache:()=>Yv,getEffectiveReturnTypeNode:()=>kv,getEffectiveSetAccessorTypeAnnotationNode:()=>Cv,getEffectiveTypeAnnotationNode:()=>xv,getEffectiveTypeParameterDeclarations:()=>hl,getEffectiveTypeRoots:()=>cj,getElementOrPropertyAccessArgumentExpressionOrName:()=>gg,getElementOrPropertyAccessName:()=>hg,getElementsOfBindingOrAssignmentPattern:()=>AA,getEmitDeclarations:()=>RS,getEmitFlags:()=>op,getEmitHelpers:()=>LD,getEmitModuleDetectionKind:()=>FS,getEmitModuleFormatOfFileWorker:()=>RU,getEmitModuleKind:()=>wS,getEmitModuleResolutionKind:()=>ES,getEmitScriptTarget:()=>DS,getEmitStandardClassFields:()=>KS,getEnclosingBlockScopeContainer:()=>Rp,getEnclosingContainer:()=>Lp,getEncodedSemanticClassifications:()=>B0,getEncodedSyntacticClassifications:()=>U0,getEndLinePosition:()=>Pd,getEntityNameFromTypeNode:()=>hm,getEntrypointsFromPackageJsonInfo:()=>iM,getErrorCountForSummary:()=>_W,getErrorSpanForNode:()=>rf,getErrorSummaryText:()=>mW,getEscapedTextOfIdentifierOrLiteral:()=>Xh,getEscapedTextOfJsxAttributeName:()=>cC,getEscapedTextOfJsxNamespacedName:()=>_C,getExpandoInitializer:()=>eg,getExportAssignmentExpression:()=>kh,getExportInfoMap:()=>D0,getExportNeedsImportStarHelper:()=>qJ,getExpressionAssociativity:()=>ly,getExpressionPrecedence:()=>_y,getExternalHelpersModuleName:()=>bA,getExternalModuleImportEqualsDeclarationExpression:()=>Am,getExternalModuleName:()=>Fg,getExternalModuleNameFromDeclaration:()=>Hy,getExternalModuleNameFromPath:()=>Gy,getExternalModuleNameLiteral:()=>TA,getExternalModuleRequireArgument:()=>Im,getFallbackOptions:()=>Aq,getFileEmitOutput:()=>HU,getFileMatcherPatterns:()=>Sk,getFileNamesFromConfigSpecs:()=>PR,getFileWatcherEventKind:()=>io,getFilesInErrorForSummary:()=>dW,getFirstConstructorWithBody:()=>_v,getFirstIdentifier:()=>mb,getFirstNonSpaceCharacterPosition:()=>YY,getFirstProjectOutput:()=>sq,getFixableErrorSpanExpression:()=>XZ,getFormatCodeSettingsForWriting:()=>l0,getFullWidth:()=>pd,getFunctionFlags:()=>zh,getHeritageClause:()=>Nh,getHostSignatureFromJSDoc:()=>Kg,getIdentifierAutoGenerate:()=>VD,getIdentifierGeneratedImportReference:()=>HD,getIdentifierTypeArguments:()=>qD,getImmediatelyInvokedFunctionExpression:()=>dm,getImpliedNodeFormatForEmitWorker:()=>jU,getImpliedNodeFormatForFile:()=>PU,getImpliedNodeFormatForFileWorker:()=>AU,getImportNeedsImportDefaultHelper:()=>VJ,getImportNeedsImportStarHelper:()=>UJ,getIndentString:()=>By,getInferredLibraryNameResolveFrom:()=>SU,getInitializedVariables:()=>sx,getInitializerOfBinaryExpression:()=>vg,getInitializerOfBindingOrAssignmentElement:()=>DA,getInterfaceBaseTypeNodes:()=>Fh,getInternalEmitFlags:()=>ap,getInvokedExpression:()=>ym,getIsFileExcluded:()=>C0,getIsolatedModules:()=>NS,getJSDocAugmentsTag:()=>qc,getJSDocClassTag:()=>Vc,getJSDocCommentRanges:()=>Cf,getJSDocCommentsAndTags:()=>qg,getJSDocDeprecatedTag:()=>tl,getJSDocDeprecatedTagNoCache:()=>nl,getJSDocEnumTag:()=>rl,getJSDocHost:()=>Qg,getJSDocImplementsTags:()=>Uc,getJSDocOverloadTags:()=>Gg,getJSDocOverrideTagNoCache:()=>el,getJSDocParameterTags:()=>jc,getJSDocParameterTagsNoCache:()=>Mc,getJSDocPrivateTag:()=>Gc,getJSDocPrivateTagNoCache:()=>Kc,getJSDocProtectedTag:()=>Xc,getJSDocProtectedTagNoCache:()=>Qc,getJSDocPublicTag:()=>Wc,getJSDocPublicTagNoCache:()=>Hc,getJSDocReadonlyTag:()=>Yc,getJSDocReadonlyTagNoCache:()=>Zc,getJSDocReturnTag:()=>ol,getJSDocReturnType:()=>ul,getJSDocRoot:()=>Yg,getJSDocSatisfiesExpressionType:()=>aC,getJSDocSatisfiesTag:()=>sl,getJSDocTags:()=>dl,getJSDocTemplateTag:()=>al,getJSDocThisTag:()=>il,getJSDocType:()=>ll,getJSDocTypeAliasName:()=>IA,getJSDocTypeAssertionType:()=>mA,getJSDocTypeParameterDeclarations:()=>Tv,getJSDocTypeParameterTags:()=>Jc,getJSDocTypeParameterTagsNoCache:()=>zc,getJSDocTypeTag:()=>cl,getJSXImplicitImportBase:()=>tk,getJSXRuntimeImport:()=>nk,getJSXTransformEnabled:()=>ek,getKeyForCompilerOptions:()=>bj,getLanguageVariant:()=>hS,getLastChild:()=>wx,getLeadingCommentRanges:()=>hs,getLeadingCommentRangesOfNode:()=>Tf,getLeftmostAccessExpression:()=>Ox,getLeftmostExpression:()=>Rx,getLibraryNameFromLibFileName:()=>kU,getLineAndCharacterOfPosition:()=>Ga,getLineInfo:()=>TJ,getLineOfLocalPosition:()=>lv,getLineStartPositionForPosition:()=>kX,getLineStarts:()=>Ua,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>rx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>nx,getLinesBetweenPositions:()=>Ha,getLinesBetweenRangeEndAndRangeStart:()=>Qb,getLinesBetweenRangeEndPositions:()=>Yb,getLiteralText:()=>lp,getLocalNameForExternalImport:()=>kA,getLocalSymbolForExportDefault:()=>wb,getLocaleSpecificMessage:()=>Yx,getLocaleTimeString:()=>cW,getMappedContextSpan:()=>kY,getMappedDocumentSpan:()=>SY,getMappedLocation:()=>xY,getMatchedFileSpec:()=>vW,getMatchedIncludeSpec:()=>bW,getMeaningFromDeclaration:()=>WK,getMeaningFromLocation:()=>HK,getMembersOfDeclaration:()=>jf,getModeForFileReference:()=>iU,getModeForResolutionAtIndex:()=>oU,getModeForUsageLocation:()=>sU,getModifiedTime:()=>Gi,getModifiers:()=>Lc,getModuleInstanceState:()=>zM,getModuleNameStringLiteralAt:()=>WU,getModuleSpecifierEndingPreference:()=>Vk,getModuleSpecifierResolverHost:()=>YQ,getNameForExportedSymbol:()=>ZZ,getNameFromImportAttribute:()=>bC,getNameFromIndexInfo:()=>Bp,getNameFromPropertyName:()=>HQ,getNameOfAccessExpression:()=>Ax,getNameOfCompilerOptionValue:()=>JL,getNameOfDeclaration:()=>Ac,getNameOfExpando:()=>ng,getNameOfJSDocTypedef:()=>Fc,getNameOfScriptTarget:()=>GS,getNameOrArgument:()=>mg,getNameTable:()=>u7,getNamespaceDeclarationNode:()=>Ng,getNewLineCharacter:()=>Bb,getNewLineKind:()=>s0,getNewLineOrDefaultFromHost:()=>zY,getNewTargetContainer:()=>um,getNextJSDocCommentLocation:()=>Vg,getNodeChildren:()=>UP,getNodeForGeneratedName:()=>rI,getNodeId:()=>QB,getNodeKind:()=>bX,getNodeModifiers:()=>yQ,getNodeModulePathParts:()=>XT,getNonAssignedNameOfDeclaration:()=>Pc,getNonAssignmentOperatorForCompoundAssignment:()=>ez,getNonAugmentationDeclaration:()=>Sp,getNonDecoratorTokenPosOfNode:()=>Gd,getNonIncrementalBuildInfoRoots:()=>RV,getNonModifierTokenPosOfNode:()=>Kd,getNormalizedAbsolutePath:()=>Ho,getNormalizedAbsolutePathWithoutRoot:()=>Ko,getNormalizedPathComponents:()=>Wo,getObjectFlags:()=>Tx,getOperatorAssociativity:()=>uy,getOperatorPrecedence:()=>fy,getOptionFromName:()=>rL,getOptionsForLibraryResolution:()=>Pj,getOptionsNameMap:()=>qO,getOrCreateEmitNode:()=>cD,getOrUpdate:()=>V,getOriginalNode:()=>hc,getOriginalNodeId:()=>BJ,getOutputDeclarationFileName:()=>X$,getOutputDeclarationFileNameWorker:()=>Q$,getOutputExtension:()=>G$,getOutputFileNames:()=>aq,getOutputJSFileNameWorker:()=>Z$,getOutputPathsFor:()=>W$,getOwnEmitOutputFilePath:()=>Ky,getOwnKeys:()=>Le,getOwnValues:()=>je,getPackageJsonTypesVersionsPaths:()=>sj,getPackageNameFromTypesPackageName:()=>NM,getPackageScopeForPath:()=>sM,getParameterSymbolFromJSDoc:()=>Wg,getParentNodeInSpan:()=>_Y,getParseTreeNode:()=>bc,getParsedCommandLineOfConfigFile:()=>lL,getPathComponents:()=>Jo,getPathFromPathComponents:()=>zo,getPathUpdater:()=>Q0,getPathsBasePath:()=>tv,getPatternFromSpec:()=>vk,getPendingEmitKindWithSeen:()=>uV,getPositionOfLineAndCharacter:()=>$a,getPossibleGenericSignatures:()=>pQ,getPossibleOriginalInputExtensionForExtension:()=>Zy,getPossibleOriginalInputPathWithoutChangingExt:()=>ev,getPossibleTypeArgumentsInfo:()=>fQ,getPreEmitDiagnostics:()=>$q,getPrecedingNonSpaceCharacterPosition:()=>ZY,getPrivateIdentifier:()=>fz,getProperties:()=>iz,getProperty:()=>Oe,getPropertyArrayElementValue:()=>Qf,getPropertyAssignmentAliasLikeExpression:()=>Th,getPropertyNameForPropertyNameNode:()=>Hh,getPropertyNameFromType:()=>mC,getPropertyNameOfBindingOrAssignmentElement:()=>FA,getPropertySymbolFromBindingElement:()=>uY,getPropertySymbolsFromContextualType:()=>d7,getQuoteFromPreference:()=>oY,getQuotePreference:()=>iY,getRangesWhere:()=>Q,getRefactorContextSpan:()=>KZ,getReferencedFileLocation:()=>EU,getRegexFromPattern:()=>kk,getRegularExpressionForWildcard:()=>gk,getRegularExpressionsForWildcards:()=>hk,getRelativePathFromDirectory:()=>ua,getRelativePathFromFile:()=>da,getRelativePathToDirectoryOrUrl:()=>pa,getRenameLocation:()=>dZ,getReplacementSpanForContextToken:()=>PQ,getResolutionDiagnostic:()=>UU,getResolutionModeOverride:()=>uU,getResolveJsonModule:()=>LS,getResolvePackageJsonExports:()=>IS,getResolvePackageJsonImports:()=>OS,getResolvedExternalModuleName:()=>Vy,getResolvedModuleFromResolution:()=>gd,getResolvedTypeReferenceDirectiveFromResolution:()=>hd,getRestIndicatorOfBindingOrAssignmentElement:()=>EA,getRestParameterElementType:()=>Rf,getRightMostAssignedExpression:()=>ig,getRootDeclaration:()=>oy,getRootDirectoryOfResolutionCache:()=>ZV,getRootLength:()=>Lo,getScriptKind:()=>GY,getScriptKindFromFileName:()=>Ek,getScriptTargetFeatures:()=>sp,getSelectedEffectiveModifierFlags:()=>Uv,getSelectedSyntacticModifierFlags:()=>Vv,getSemanticClassifications:()=>j0,getSemanticJsxChildren:()=>gy,getSetAccessorTypeAnnotationNode:()=>pv,getSetAccessorValueParameter:()=>dv,getSetExternalModuleIndicator:()=>xS,getShebang:()=>vs,getSingleVariableOfVariableStatement:()=>Bg,getSnapshotText:()=>UQ,getSnippetElement:()=>jD,getSourceFileOfModule:()=>Dd,getSourceFileOfNode:()=>Cd,getSourceFilePathInNewDir:()=>iv,getSourceFileVersionAsHashFromText:()=>PW,getSourceFilesToEmit:()=>nv,getSourceMapRange:()=>mD,getSourceMapper:()=>A1,getSourceTextOfNodeFromSourceFile:()=>Xd,getSpanOfTokenAtPosition:()=>tf,getSpellingSuggestion:()=>Jt,getStartPositionOfLine:()=>Fd,getStartPositionOfRange:()=>tx,getStartsOnNewLine:()=>vD,getStaticPropertiesAndClassStaticBlock:()=>az,getStrictOptionValue:()=>HS,getStringComparer:()=>Pt,getSubPatternFromSpec:()=>bk,getSuperCallFromStatement:()=>tz,getSuperContainer:()=>_m,getSupportedCodeFixes:()=>Z8,getSupportedExtensions:()=>Bk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Jk,getSwitchedType:()=>TZ,getSymbolId:()=>YB,getSymbolNameForPrivateIdentifier:()=>Qh,getSymbolTarget:()=>KY,getSyntacticClassifications:()=>q0,getSyntacticModifierFlags:()=>Kv,getSyntacticModifierFlagsNoCache:()=>Zv,getSynthesizedDeepClone:()=>eZ,getSynthesizedDeepCloneWithReplacements:()=>tZ,getSynthesizedDeepClones:()=>rZ,getSynthesizedDeepClonesWithReplacements:()=>iZ,getSyntheticLeadingComments:()=>kD,getSyntheticTrailingComments:()=>DD,getTargetLabel:()=>aX,getTargetOfBindingOrAssignmentElement:()=>wA,getTemporaryModuleResolutionState:()=>aM,getTextOfConstantValue:()=>up,getTextOfIdentifierOrLiteral:()=>Kh,getTextOfJSDocComment:()=>gl,getTextOfJsxAttributeName:()=>lC,getTextOfJsxNamespacedName:()=>dC,getTextOfNode:()=>np,getTextOfNodeFromSourceText:()=>tp,getTextOfPropertyName:()=>$p,getThisContainer:()=>sm,getThisParameter:()=>fv,getTokenAtPosition:()=>XX,getTokenPosOfNode:()=>Hd,getTokenSourceMapRange:()=>hD,getTouchingPropertyName:()=>GX,getTouchingToken:()=>KX,getTrailingCommentRanges:()=>ys,getTrailingSemicolonDeferringWriter:()=>$y,getTransformers:()=>P$,getTsBuildInfoEmitOutputFilePath:()=>U$,getTsConfigObjectLiteralExpression:()=>Yf,getTsConfigPropArrayElementValue:()=>Zf,getTypeAnnotationNode:()=>Sv,getTypeArgumentOrTypeParameterList:()=>vQ,getTypeKeywordOfTypeOnlyImport:()=>mY,getTypeNode:()=>zD,getTypeNodeIfAccessible:()=>DZ,getTypeParameterFromJsDoc:()=>Zg,getTypeParameterOwner:()=>oc,getTypesPackageName:()=>EM,getUILocale:()=>Lt,getUniqueName:()=>_Z,getUniqueSymbolId:()=>QY,getUseDefineForClassFields:()=>zS,getWatchErrorSummaryDiagnosticMessage:()=>pW,getWatchFactory:()=>Pq,group:()=>Ve,groupBy:()=>We,guessIndentation:()=>$_,handleNoEmitOptions:()=>JU,handleWatchOptionsConfigDirTemplateSubstitution:()=>tR,hasAbstractModifier:()=>Bv,hasAccessorModifier:()=>zv,hasAmbientModifier:()=>Jv,hasChangesInResolutions:()=>kd,hasContextSensitiveParameters:()=>$T,hasDecorators:()=>qv,hasDocComment:()=>gQ,hasDynamicName:()=>Vh,hasEffectiveModifier:()=>Ov,hasEffectiveModifiers:()=>Av,hasEffectiveReadonlyModifier:()=>$v,hasExtension:()=>Fo,hasImplementationTSFileExtension:()=>qk,hasIndexSignature:()=>kZ,hasInferredType:()=>FC,hasInitializer:()=>j_,hasInvalidEscape:()=>xy,hasJSDocNodes:()=>L_,hasJSDocParameterTags:()=>$c,hasJSFileExtension:()=>zk,hasJsonModuleEmitEnabled:()=>qS,hasOnlyExpressionInitializer:()=>M_,hasOverrideModifier:()=>Mv,hasPossibleExternalModuleReference:()=>Ip,hasProperty:()=>Ie,hasPropertyAccessExpressionWithName:()=>sX,hasQuestionToken:()=>Ig,hasRecordedExternalHelpers:()=>xA,hasResolutionModeOverride:()=>hC,hasRestParameter:()=>V_,hasScopeMarker:()=>t_,hasStaticModifier:()=>jv,hasSyntacticModifier:()=>Lv,hasSyntacticModifiers:()=>Iv,hasTSFileExtension:()=>$k,hasTabstop:()=>tC,hasTrailingDirectorySeparator:()=>Ao,hasType:()=>R_,hasTypeArguments:()=>eh,hasZeroOrOneAsteriskCharacter:()=>rk,hostGetCanonicalFileName:()=>Uy,hostUsesCaseSensitiveFileNames:()=>qy,idText:()=>kc,identifierIsThisKeyword:()=>vv,identifierToKeywordKind:()=>Tc,identity:()=>dt,identitySourceMapConsumer:()=>MJ,ignoreSourceNewlines:()=>BD,ignoredPaths:()=>oo,importFromModuleSpecifier:()=>Dg,importSyntaxAffectsModuleResolution:()=>SS,indexOfAnyCharCode:()=>F,indexOfNode:()=>ip,indicesOf:()=>ee,inferredTypesContainingFile:()=>xU,injectClassNamedEvaluationHelperBlockIfMissing:()=>Mz,injectClassThisAssignmentIfMissing:()=>Az,insertImports:()=>fY,insertSorted:()=>ie,insertStatementAfterCustomPrologue:()=>qd,insertStatementAfterStandardPrologue:()=>$d,insertStatementsAfterCustomPrologue:()=>zd,insertStatementsAfterStandardPrologue:()=>Jd,intersperse:()=>S,intrinsicTagNameToString:()=>pC,introducesArgumentsExoticObject:()=>qf,inverseJsxOptionMap:()=>yO,isAbstractConstructorSymbol:()=>Sx,isAbstractModifier:()=>oE,isAccessExpression:()=>Px,isAccessibilityModifier:()=>CQ,isAccessor:()=>vu,isAccessorModifier:()=>sE,isAliasableExpression:()=>xh,isAmbientModule:()=>fp,isAmbientPropertyDeclaration:()=>Cp,isAnyDirectorySeparator:()=>So,isAnyImportOrBareOrAccessedRequire:()=>Np,isAnyImportOrReExport:()=>Op,isAnyImportOrRequireStatement:()=>Pp,isAnyImportSyntax:()=>Fp,isAnySupportedFileExtension:()=>sT,isApplicableVersionedTypesKey:()=>vM,isArgumentExpressionOfElementAccess:()=>fX,isArray:()=>nt,isArrayBindingElement:()=>Pu,isArrayBindingOrAssignmentElement:()=>Mu,isArrayBindingOrAssignmentPattern:()=>ju,isArrayBindingPattern:()=>YE,isArrayLiteralExpression:()=>eF,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>wQ,isArrayTypeNode:()=>IE,isArrowFunction:()=>uF,isAsExpression:()=>CF,isAssertClause:()=>fN,isAssertEntry:()=>mN,isAssertionExpression:()=>Yu,isAssertsKeyword:()=>tE,isAssignmentDeclaration:()=>Xm,isAssignmentExpression:()=>_b,isAssignmentOperator:()=>cb,isAssignmentPattern:()=>Nu,isAssignmentTarget:()=>ih,isAsteriskToken:()=>Uw,isAsyncFunction:()=>$h,isAsyncModifier:()=>eE,isAutoAccessorPropertyDeclaration:()=>bu,isAwaitExpression:()=>fF,isAwaitKeyword:()=>nE,isBigIntLiteral:()=>Aw,isBinaryExpression:()=>hF,isBinaryLogicalOperator:()=>nb,isBinaryOperatorToken:()=>HA,isBindableObjectDefinePropertyCall:()=>lg,isBindableStaticAccessExpression:()=>dg,isBindableStaticElementAccessExpression:()=>pg,isBindableStaticNameExpression:()=>fg,isBindingElement:()=>ZE,isBindingElementOfBareOrAccessedRequire:()=>Vm,isBindingName:()=>lu,isBindingOrAssignmentElement:()=>Iu,isBindingOrAssignmentPattern:()=>Ou,isBindingPattern:()=>Fu,isBlock:()=>OF,isBlockLike:()=>f0,isBlockOrCatchScoped:()=>dp,isBlockScope:()=>Dp,isBlockScopedContainerTopLevel:()=>yp,isBooleanLiteral:()=>pu,isBreakOrContinueStatement:()=>Al,isBreakStatement:()=>VF,isBuildCommand:()=>bG,isBuildInfoFile:()=>$$,isBuilderProgram:()=>gW,isBundle:()=>YN,isCallChain:()=>kl,isCallExpression:()=>iF,isCallExpressionTarget:()=>KK,isCallLikeExpression:()=>$u,isCallLikeOrFunctionLikeExpression:()=>zu,isCallOrNewExpression:()=>qu,isCallOrNewExpressionTarget:()=>QK,isCallSignatureDeclaration:()=>TE,isCallToHelper:()=>Nw,isCaseBlock:()=>cN,isCaseClause:()=>qN,isCaseKeyword:()=>uE,isCaseOrDefaultClause:()=>F_,isCatchClause:()=>WN,isCatchClauseVariableDeclaration:()=>UT,isCatchClauseVariableDeclarationOrBindingElement:()=>pp,isCheckJsEnabledForFile:()=>lT,isCircularBuildOrder:()=>KW,isClassDeclaration:()=>nN,isClassElement:()=>hu,isClassExpression:()=>SF,isClassInstanceProperty:()=>xu,isClassLike:()=>yu,isClassMemberModifier:()=>ou,isClassNamedEvaluationHelperBlock:()=>Lz,isClassOrTypeElement:()=>Cu,isClassStaticBlockDeclaration:()=>bE,isClassThisAssignmentBlock:()=>Nz,isColonToken:()=>Hw,isCommaExpression:()=>dA,isCommaListExpression:()=>PF,isCommaSequence:()=>pA,isCommaToken:()=>zw,isComment:()=>bQ,isCommonJsExportPropertyAssignment:()=>zf,isCommonJsExportedExpression:()=>Jf,isCompoundAssignment:()=>ZJ,isComputedNonLiteralName:()=>Jp,isComputedPropertyName:()=>dE,isConciseBody:()=>o_,isConditionalExpression:()=>yF,isConditionalTypeNode:()=>JE,isConstAssertion:()=>TC,isConstTypeReference:()=>Fl,isConstructSignatureDeclaration:()=>CE,isConstructorDeclaration:()=>xE,isConstructorTypeNode:()=>NE,isContextualKeyword:()=>Lh,isContinueStatement:()=>UF,isCustomPrologue:()=>bf,isDebuggerStatement:()=>YF,isDeclaration:()=>h_,isDeclarationBindingElement:()=>Au,isDeclarationFileName:()=>iO,isDeclarationName:()=>gh,isDeclarationNameOfEnumOrNamespace:()=>ax,isDeclarationReadonly:()=>lf,isDeclarationStatement:()=>y_,isDeclarationWithTypeParameterChildren:()=>Ep,isDeclarationWithTypeParameters:()=>wp,isDecorator:()=>mE,isDecoratorTarget:()=>ZK,isDefaultClause:()=>UN,isDefaultImport:()=>Pg,isDefaultModifier:()=>Zw,isDefaultedExpandoInitializer:()=>tg,isDeleteExpression:()=>_F,isDeleteTarget:()=>fh,isDeprecatedDeclaration:()=>o0,isDestructuringAssignment:()=>db,isDiskPathRoot:()=>Co,isDoStatement:()=>BF,isDocumentRegistryEntry:()=>V0,isDotDotDotToken:()=>Jw,isDottedName:()=>gb,isDynamicName:()=>Wh,isEffectiveExternalModule:()=>kp,isEffectiveStrictModeSourceFile:()=>Tp,isElementAccessChain:()=>Sl,isElementAccessExpression:()=>rF,isEmittedFileOfProgram:()=>Fq,isEmptyArrayLiteral:()=>Db,isEmptyBindingElement:()=>cc,isEmptyBindingPattern:()=>sc,isEmptyObjectLiteral:()=>Cb,isEmptyStatement:()=>RF,isEmptyStringLiteral:()=>Cm,isEntityName:()=>su,isEntityNameExpression:()=>fb,isEnumConst:()=>cf,isEnumDeclaration:()=>oN,isEnumMember:()=>XN,isEqualityOperatorKind:()=>xZ,isEqualsGreaterThanToken:()=>Kw,isExclamationToken:()=>Vw,isExcludedFile:()=>AR,isExclusivelyTypeOnlyImportOrExport:()=>aU,isExpandoPropertyDeclaration:()=>gC,isExportAssignment:()=>SN,isExportDeclaration:()=>kN,isExportModifier:()=>Yw,isExportName:()=>cA,isExportNamespaceAsDefaultDeclaration:()=>Qd,isExportOrDefaultModifier:()=>tI,isExportSpecifier:()=>CN,isExportsIdentifier:()=>og,isExportsOrModuleExportsOrAlias:()=>XM,isExpression:()=>Qu,isExpressionNode:()=>wm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>yX,isExpressionOfOptionalChainRoot:()=>Dl,isExpressionStatement:()=>jF,isExpressionWithTypeArguments:()=>TF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>pb,isExternalModule:()=>XI,isExternalModuleAugmentation:()=>bp,isExternalModuleImportEqualsDeclaration:()=>Pm,isExternalModuleIndicator:()=>r_,isExternalModuleNameRelative:()=>As,isExternalModuleReference:()=>NN,isExternalModuleSymbol:()=>rd,isExternalOrCommonJsModule:()=>af,isFileLevelReservedGeneratedIdentifier:()=>eu,isFileLevelUniqueName:()=>Ad,isFileProbablyExternalModule:()=>SI,isFirstDeclarationOfSymbolParameter:()=>TY,isFixablePromiseHandler:()=>z1,isForInOrOfStatement:()=>i_,isForInStatement:()=>$F,isForInitializer:()=>s_,isForOfStatement:()=>qF,isForStatement:()=>zF,isFullSourceFile:()=>Lm,isFunctionBlock:()=>Vf,isFunctionBody:()=>a_,isFunctionDeclaration:()=>tN,isFunctionExpression:()=>lF,isFunctionExpressionOrArrowFunction:()=>VT,isFunctionLike:()=>uu,isFunctionLikeDeclaration:()=>du,isFunctionLikeKind:()=>mu,isFunctionLikeOrClassStaticBlockDeclaration:()=>_u,isFunctionOrConstructorTypeNode:()=>Eu,isFunctionOrModuleBlock:()=>gu,isFunctionSymbol:()=>kg,isFunctionTypeNode:()=>FE,isGeneratedIdentifier:()=>Yl,isGeneratedPrivateIdentifier:()=>Zl,isGetAccessor:()=>O_,isGetAccessorDeclaration:()=>SE,isGetOrSetAccessorDeclaration:()=>bl,isGlobalScopeAugmentation:()=>vp,isGlobalSourceFile:()=>of,isGrammarError:()=>Ld,isHeritageClause:()=>VN,isHoistedFunction:()=>xf,isHoistedVariableStatement:()=>kf,isIdentifier:()=>Xw,isIdentifierANonContextualKeyword:()=>Mh,isIdentifierName:()=>vh,isIdentifierOrThisTypeNode:()=>BA,isIdentifierPart:()=>xs,isIdentifierStart:()=>bs,isIdentifierText:()=>Ss,isIdentifierTypePredicate:()=>Gf,isIdentifierTypeReference:()=>ET,isIfStatement:()=>MF,isIgnoredFileFromWildCardWatching:()=>Eq,isImplicitGlob:()=>yk,isImportAttribute:()=>hN,isImportAttributeName:()=>Ql,isImportAttributes:()=>gN,isImportCall:()=>gf,isImportClause:()=>dN,isImportDeclaration:()=>_N,isImportEqualsDeclaration:()=>uN,isImportKeyword:()=>lE,isImportMeta:()=>hf,isImportOrExportSpecifier:()=>Vl,isImportOrExportSpecifierName:()=>HY,isImportSpecifier:()=>xN,isImportTypeAssertionContainer:()=>pN,isImportTypeNode:()=>GE,isImportable:()=>v0,isInComment:()=>mQ,isInCompoundLikeAssignment:()=>oh,isInExpressionContext:()=>Em,isInJSDoc:()=>Jm,isInJSFile:()=>jm,isInJSXText:()=>lQ,isInJsonFile:()=>Mm,isInNonReferenceComment:()=>FQ,isInReferenceComment:()=>EQ,isInRightSideOfInternalImportEqualsDeclaration:()=>GK,isInString:()=>oQ,isInTemplateString:()=>cQ,isInTopLevelContext:()=>lm,isInTypeQuery:()=>hv,isIncrementalBuildInfo:()=>xV,isIncrementalBundleEmitBuildInfo:()=>bV,isIncrementalCompilation:()=>MS,isIndexSignatureDeclaration:()=>DE,isIndexedAccessTypeNode:()=>VE,isInferTypeNode:()=>zE,isInfinityOrNaNString:()=>qT,isInitializedProperty:()=>sz,isInitializedVariable:()=>cx,isInsideJsxElement:()=>uQ,isInsideJsxElementOrAttribute:()=>aQ,isInsideNodeModules:()=>VZ,isInsideTemplateLiteral:()=>TQ,isInstanceOfExpression:()=>kb,isInstantiatedModule:()=>ZB,isInterfaceDeclaration:()=>rN,isInternalDeclaration:()=>G_,isInternalModuleImportEqualsDeclaration:()=>Om,isInternalName:()=>aA,isIntersectionTypeNode:()=>BE,isIntrinsicJsxName:()=>jy,isIterationStatement:()=>Zu,isJSDoc:()=>pP,isJSDocAllType:()=>oP,isJSDocAugmentsTag:()=>gP,isJSDocAuthorTag:()=>hP,isJSDocCallbackTag:()=>vP,isJSDocClassTag:()=>yP,isJSDocCommentContainingNode:()=>P_,isJSDocConstructSignature:()=>Og,isJSDocDeprecatedTag:()=>DP,isJSDocEnumTag:()=>EP,isJSDocFunctionType:()=>uP,isJSDocImplementsTag:()=>jP,isJSDocImportTag:()=>JP,isJSDocIndexSignature:()=>zm,isJSDocLikeText:()=>xI,isJSDocLink:()=>nP,isJSDocLinkCode:()=>rP,isJSDocLinkLike:()=>U_,isJSDocLinkPlain:()=>iP,isJSDocMemberName:()=>tP,isJSDocNameReference:()=>eP,isJSDocNamepathType:()=>dP,isJSDocNamespaceBody:()=>u_,isJSDocNode:()=>N_,isJSDocNonNullableType:()=>cP,isJSDocNullableType:()=>sP,isJSDocOptionalParameter:()=>nC,isJSDocOptionalType:()=>lP,isJSDocOverloadTag:()=>CP,isJSDocOverrideTag:()=>TP,isJSDocParameterTag:()=>FP,isJSDocPrivateTag:()=>xP,isJSDocPropertyLikeTag:()=>Ol,isJSDocPropertyTag:()=>RP,isJSDocProtectedTag:()=>SP,isJSDocPublicTag:()=>bP,isJSDocReadonlyTag:()=>kP,isJSDocReturnTag:()=>NP,isJSDocSatisfiesExpression:()=>oC,isJSDocSatisfiesTag:()=>MP,isJSDocSeeTag:()=>wP,isJSDocSignature:()=>mP,isJSDocTag:()=>A_,isJSDocTemplateTag:()=>IP,isJSDocThisTag:()=>PP,isJSDocThrowsTag:()=>BP,isJSDocTypeAlias:()=>Lg,isJSDocTypeAssertion:()=>fA,isJSDocTypeExpression:()=>ZN,isJSDocTypeLiteral:()=>fP,isJSDocTypeTag:()=>AP,isJSDocTypedefTag:()=>OP,isJSDocUnknownTag:()=>LP,isJSDocUnknownType:()=>aP,isJSDocVariadicType:()=>_P,isJSXTagName:()=>Dm,isJsonEqual:()=>xT,isJsonSourceFile:()=>sf,isJsxAttribute:()=>MN,isJsxAttributeLike:()=>C_,isJsxAttributeName:()=>uC,isJsxAttributes:()=>BN,isJsxCallLike:()=>E_,isJsxChild:()=>T_,isJsxClosingElement:()=>ON,isJsxClosingFragment:()=>jN,isJsxElement:()=>PN,isJsxExpression:()=>zN,isJsxFragment:()=>LN,isJsxNamespacedName:()=>$N,isJsxOpeningElement:()=>IN,isJsxOpeningFragment:()=>RN,isJsxOpeningLikeElement:()=>w_,isJsxOpeningLikeElementTagName:()=>eX,isJsxSelfClosingElement:()=>AN,isJsxSpreadAttribute:()=>JN,isJsxTagNameExpression:()=>k_,isJsxText:()=>Ow,isJumpStatementTarget:()=>cX,isKeyword:()=>Ah,isKeywordOrPunctuation:()=>Oh,isKnownSymbol:()=>Yh,isLabelName:()=>uX,isLabelOfLabeledStatement:()=>lX,isLabeledStatement:()=>KF,isLateVisibilityPaintedStatement:()=>Ap,isLeftHandSideExpression:()=>Vu,isLet:()=>ff,isLineBreak:()=>Qa,isLiteralComputedPropertyDeclarationName:()=>yh,isLiteralExpression:()=>Jl,isLiteralExpressionOfObject:()=>zl,isLiteralImportTypeNode:()=>yf,isLiteralKind:()=>Bl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>hX,isLiteralTypeLiteral:()=>Xu,isLiteralTypeNode:()=>HE,isLocalName:()=>sA,isLogicalOperator:()=>rb,isLogicalOrCoalescingAssignmentExpression:()=>ob,isLogicalOrCoalescingAssignmentOperator:()=>ib,isLogicalOrCoalescingBinaryExpression:()=>sb,isLogicalOrCoalescingBinaryOperator:()=>ab,isMappedTypeNode:()=>WE,isMemberName:()=>vl,isMetaProperty:()=>EF,isMethodDeclaration:()=>vE,isMethodOrAccessor:()=>Su,isMethodSignature:()=>yE,isMinusToken:()=>qw,isMissingDeclaration:()=>wN,isMissingPackageJsonInfo:()=>yj,isModifier:()=>au,isModifierKind:()=>ru,isModifierLike:()=>ku,isModuleAugmentationExternal:()=>xp,isModuleBlock:()=>sN,isModuleBody:()=>c_,isModuleDeclaration:()=>aN,isModuleExportName:()=>DN,isModuleExportsAccessExpression:()=>sg,isModuleIdentifier:()=>ag,isModuleName:()=>$A,isModuleOrEnumDeclaration:()=>d_,isModuleReference:()=>S_,isModuleSpecifierLike:()=>cY,isModuleWithStringLiteralName:()=>mp,isNameOfFunctionDeclaration:()=>gX,isNameOfModuleDeclaration:()=>mX,isNamedDeclaration:()=>Nc,isNamedEvaluation:()=>ny,isNamedEvaluationSource:()=>ty,isNamedExportBindings:()=>Il,isNamedExports:()=>TN,isNamedImportBindings:()=>__,isNamedImports:()=>bN,isNamedImportsOrExports:()=>Ix,isNamedTupleMember:()=>LE,isNamespaceBody:()=>l_,isNamespaceExport:()=>vN,isNamespaceExportDeclaration:()=>lN,isNamespaceImport:()=>yN,isNamespaceReexportDeclaration:()=>Nm,isNewExpression:()=>oF,isNewExpressionTarget:()=>XK,isNewScopeNode:()=>jC,isNoSubstitutionTemplateLiteral:()=>Rw,isNodeArray:()=>Ml,isNodeArrayMultiLine:()=>Zb,isNodeDescendantOf:()=>mh,isNodeKind:()=>Ll,isNodeLikeSystem:()=>mn,isNodeModulesDirectory:()=>ma,isNodeWithPossibleHoistedDeclaration:()=>ah,isNonContextualKeyword:()=>Rh,isNonGlobalAmbientModule:()=>gp,isNonNullAccess:()=>iC,isNonNullChain:()=>Pl,isNonNullExpression:()=>wF,isNonStaticMethodOrAccessorWithPrivateName:()=>cz,isNotEmittedStatement:()=>EN,isNullishCoalesce:()=>El,isNumber:()=>ot,isNumericLiteral:()=>Pw,isNumericLiteralName:()=>HT,isObjectBindingElementWithoutPropertyName:()=>lY,isObjectBindingOrAssignmentElement:()=>Ru,isObjectBindingOrAssignmentPattern:()=>Lu,isObjectBindingPattern:()=>QE,isObjectLiteralElement:()=>B_,isObjectLiteralElementLike:()=>Du,isObjectLiteralExpression:()=>tF,isObjectLiteralMethod:()=>Wf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Hf,isObjectTypeDeclaration:()=>Fx,isOmittedExpression:()=>kF,isOptionalChain:()=>Tl,isOptionalChainRoot:()=>Cl,isOptionalDeclaration:()=>rC,isOptionalJSDocPropertyLikeTag:()=>ZT,isOptionalTypeNode:()=>RE,isOuterExpression:()=>gA,isOutermostOptionalChain:()=>wl,isOverrideModifier:()=>aE,isPackageJsonInfo:()=>hj,isPackedArrayLiteral:()=>MT,isParameter:()=>fE,isParameterPropertyDeclaration:()=>ac,isParameterPropertyModifier:()=>iu,isParenthesizedExpression:()=>cF,isParenthesizedTypeNode:()=>$E,isParseTreeNode:()=>vc,isPartOfParameterDeclaration:()=>iy,isPartOfTypeNode:()=>Af,isPartOfTypeOnlyImportOrExportDeclaration:()=>Kl,isPartOfTypeQuery:()=>Fm,isPartiallyEmittedExpression:()=>NF,isPatternMatch:()=>rn,isPinnedComment:()=>Vd,isPlainJsFile:()=>wd,isPlusToken:()=>$w,isPossiblyTypeArgumentPosition:()=>dQ,isPostfixUnaryExpression:()=>gF,isPrefixUnaryExpression:()=>mF,isPrimitiveLiteralValue:()=>wC,isPrivateIdentifier:()=>Qw,isPrivateIdentifierClassElementDeclaration:()=>tu,isPrivateIdentifierPropertyAccessExpression:()=>nu,isPrivateIdentifierSymbol:()=>Zh,isProgramUptoDate:()=>FU,isPrologueDirective:()=>vf,isPropertyAccessChain:()=>xl,isPropertyAccessEntityNameExpression:()=>hb,isPropertyAccessExpression:()=>nF,isPropertyAccessOrQualifiedName:()=>Ju,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Bu,isPropertyAssignment:()=>HN,isPropertyDeclaration:()=>hE,isPropertyName:()=>cu,isPropertyNameLiteral:()=>Gh,isPropertySignature:()=>gE,isPrototypeAccess:()=>vb,isPrototypePropertyAssignment:()=>bg,isPunctuation:()=>Ih,isPushOrUnshiftIdentifier:()=>ry,isQualifiedName:()=>_E,isQuestionDotToken:()=>Gw,isQuestionOrExclamationToken:()=>MA,isQuestionOrPlusOrMinusToken:()=>zA,isQuestionToken:()=>Ww,isReadonlyKeyword:()=>rE,isReadonlyKeywordOrPlusOrMinusToken:()=>JA,isRecognizedTripleSlashComment:()=>Ud,isReferenceFileLocation:()=>wU,isReferencedFile:()=>DU,isRegularExpressionLiteral:()=>Lw,isRequireCall:()=>$m,isRequireVariableStatement:()=>Hm,isRestParameter:()=>W_,isRestTypeNode:()=>jE,isReturnStatement:()=>WF,isReturnStatementWithFixablePromiseHandler:()=>J1,isRightSideOfAccessExpression:()=>xb,isRightSideOfInstanceofExpression:()=>Tb,isRightSideOfPropertyAccess:()=>pX,isRightSideOfQualifiedName:()=>dX,isRightSideOfQualifiedNameOrPropertyAccess:()=>bb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Sb,isRootedDiskPath:()=>To,isSameEntityName:()=>rg,isSatisfiesExpression:()=>DF,isSemicolonClassElement:()=>IF,isSetAccessor:()=>I_,isSetAccessorDeclaration:()=>kE,isShiftOperatorOrHigher:()=>qA,isShorthandAmbientModuleSymbol:()=>hp,isShorthandPropertyAssignment:()=>GN,isSideEffectImport:()=>NC,isSignedNumericLiteral:()=>Uh,isSimpleCopiableExpression:()=>QJ,isSimpleInlineableExpression:()=>YJ,isSimpleParameterList:()=>yz,isSingleOrDoubleQuote:()=>Gm,isSolutionConfig:()=>uR,isSourceElement:()=>xC,isSourceFile:()=>QN,isSourceFileFromLibrary:()=>_0,isSourceFileJS:()=>Rm,isSourceFileNotJson:()=>Bm,isSourceMapping:()=>NJ,isSpecialPropertyDeclaration:()=>xg,isSpreadAssignment:()=>KN,isSpreadElement:()=>xF,isStatement:()=>b_,isStatementButNotDeclaration:()=>v_,isStatementOrBlock:()=>x_,isStatementWithLocals:()=>Ed,isStatic:()=>Rv,isStaticModifier:()=>iE,isString:()=>it,isStringANonContextualKeyword:()=>jh,isStringAndEmptyAnonymousObjectIntersection:()=>kQ,isStringDoubleQuoted:()=>Km,isStringLiteral:()=>Iw,isStringLiteralLike:()=>q_,isStringLiteralOrJsxExpression:()=>D_,isStringLiteralOrTemplate:()=>SZ,isStringOrNumericLiteralLike:()=>qh,isStringOrRegularExpressionOrTemplateLiteral:()=>xQ,isStringTextContainingNode:()=>Xl,isSuperCall:()=>mf,isSuperKeyword:()=>cE,isSuperProperty:()=>pm,isSupportedSourceFileName:()=>Wk,isSwitchStatement:()=>GF,isSyntaxList:()=>zP,isSyntheticExpression:()=>FF,isSyntheticReference:()=>FN,isTagName:()=>_X,isTaggedTemplateExpression:()=>aF,isTaggedTemplateTag:()=>YK,isTemplateExpression:()=>vF,isTemplateHead:()=>jw,isTemplateLiteral:()=>Uu,isTemplateLiteralKind:()=>$l,isTemplateLiteralToken:()=>ql,isTemplateLiteralTypeNode:()=>XE,isTemplateLiteralTypeSpan:()=>KE,isTemplateMiddle:()=>Mw,isTemplateMiddleOrTemplateTail:()=>Ul,isTemplateSpan:()=>AF,isTemplateTail:()=>Bw,isTextWhiteSpaceLike:()=>bY,isThis:()=>xX,isThisContainerOrFunctionBlock:()=>cm,isThisIdentifier:()=>gv,isThisInTypeQuery:()=>yv,isThisInitializedDeclaration:()=>mm,isThisInitializedObjectBindingExpression:()=>gm,isThisProperty:()=>fm,isThisTypeNode:()=>qE,isThisTypeParameter:()=>KT,isThisTypePredicate:()=>Kf,isThrowStatement:()=>XF,isToken:()=>jl,isTokenKind:()=>Rl,isTraceEnabled:()=>HR,isTransientSymbol:()=>nd,isTrivia:()=>Bh,isTryStatement:()=>QF,isTupleTypeNode:()=>OE,isTypeAlias:()=>Rg,isTypeAliasDeclaration:()=>iN,isTypeAssertionExpression:()=>sF,isTypeDeclaration:()=>QT,isTypeElement:()=>Tu,isTypeKeyword:()=>JQ,isTypeKeywordTokenOrIdentifier:()=>$Q,isTypeLiteralNode:()=>AE,isTypeNode:()=>wu,isTypeNodeKind:()=>Nx,isTypeOfExpression:()=>dF,isTypeOnlyExportDeclaration:()=>Hl,isTypeOnlyImportDeclaration:()=>Wl,isTypeOnlyImportOrExportDeclaration:()=>Gl,isTypeOperatorNode:()=>UE,isTypeParameterDeclaration:()=>pE,isTypePredicateNode:()=>wE,isTypeQueryNode:()=>PE,isTypeReferenceNode:()=>EE,isTypeReferenceType:()=>J_,isTypeUsableAsPropertyName:()=>fC,isUMDExportSymbol:()=>Cx,isUnaryExpression:()=>Hu,isUnaryExpressionWithWrite:()=>Ku,isUnicodeIdentifierStart:()=>Ia,isUnionTypeNode:()=>ME,isUrl:()=>ko,isValidBigIntString:()=>DT,isValidESSymbolDeclaration:()=>$f,isValidTypeOnlyAliasUseSite:()=>wT,isValueSignatureDeclaration:()=>sh,isVarAwaitUsing:()=>uf,isVarConst:()=>df,isVarConstLike:()=>pf,isVarUsing:()=>_f,isVariableDeclaration:()=>ZF,isVariableDeclarationInVariableStatement:()=>Bf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Um,isVariableDeclarationInitializedToRequire:()=>qm,isVariableDeclarationList:()=>eN,isVariableLike:()=>Mf,isVariableStatement:()=>LF,isVoidExpression:()=>pF,isWatchSet:()=>lx,isWhileStatement:()=>JF,isWhiteSpaceLike:()=>Ka,isWhiteSpaceSingleLine:()=>Xa,isWithStatement:()=>HF,isWriteAccess:()=>gx,isWriteOnlyAccess:()=>mx,isYieldExpression:()=>bF,jsxModeNeedsExplicitImport:()=>u0,keywordPart:()=>EY,last:()=>Te,lastOrUndefined:()=>ke,length:()=>p,libMap:()=>xO,libs:()=>bO,lineBreakPart:()=>$Y,loadModuleFromGlobalCache:()=>RM,loadWithModeAwareCache:()=>yU,makeIdentifierFromModuleName:()=>_p,makeImport:()=>eY,makeStringLiteral:()=>tY,mangleScopedPackageName:()=>FM,map:()=>O,mapAllOrFail:()=>$,mapDefined:()=>q,mapDefinedIterator:()=>U,mapEntries:()=>K,mapIterator:()=>L,mapOneOrMany:()=>QZ,mapToDisplayParts:()=>qY,matchFiles:()=>Tk,matchPatternOrExact:()=>_T,matchedText:()=>Yt,matchesExclude:()=>OR,matchesExcludeWorker:()=>LR,maxBy:()=>Dt,maybeBind:()=>Xe,maybeSetLocalizedDiagnosticMessages:()=>Qx,memoize:()=>ht,memoizeOne:()=>yt,min:()=>wt,minAndMax:()=>fT,missingFileModifiedTime:()=>Hi,modifierToFlag:()=>tb,modifiersToFlags:()=>eb,moduleExportNameIsDefault:()=>ep,moduleExportNameTextEscaped:()=>Zd,moduleExportNameTextUnescaped:()=>Yd,moduleOptionDeclaration:()=>CO,moduleResolutionIsEqualTo:()=>md,moduleResolutionNameAndModeGetter:()=>pU,moduleResolutionOptionDeclarations:()=>PO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>WS,moduleResolutionUsesNodeModules:()=>ZQ,moduleSpecifierToValidIdentifier:()=>n0,moduleSpecifiers:()=>eB,moduleSymbolToValidIdentifier:()=>t0,moveEmitHelpers:()=>RD,moveRangeEnd:()=>zb,moveRangePastDecorators:()=>qb,moveRangePastModifiers:()=>Ub,moveRangePos:()=>$b,moveSyntheticComments:()=>FD,mutateMap:()=>xx,mutateMapSkippingNewValues:()=>bx,needsParentheses:()=>yZ,needsScopeMarker:()=>n_,newCaseClauseTracker:()=>d0,newPrivateEnvironment:()=>pz,noEmitNotification:()=>M$,noEmitSubstitution:()=>j$,noTransformers:()=>N$,noTruncationMaximumTruncationLength:()=>Y_,nodeCanBeDecorated:()=>vm,nodeCoreModules:()=>OC,nodeHasName:()=>Ec,nodeIsDecorated:()=>bm,nodeIsMissing:()=>Id,nodeIsPresent:()=>Od,nodeIsSynthesized:()=>sy,nodeModuleNameResolver:()=>Jj,nodeModulesPathPart:()=>Wj,nodeNextJsonConfigResolver:()=>zj,nodeOrChildIsDecorated:()=>xm,nodeOverlapsWithStartEnd:()=>FX,nodePosToString:()=>Nd,nodeSeenTracker:()=>qQ,nodeStartsNewLexicalEnvironment:()=>ay,noop:()=>ct,noopFileWatcher:()=>CW,normalizePath:()=>Go,normalizeSlashes:()=>$o,normalizeSpans:()=>Qs,not:()=>sn,notImplemented:()=>gt,notImplementedResolver:()=>dq,nullNodeConverters:()=>qC,nullParenthesizerRules:()=>JC,nullTransformationContext:()=>J$,objectAllocator:()=>Vx,operatorPart:()=>NY,optionDeclarations:()=>wO,optionMapToObject:()=>jL,optionsAffectingProgramStructure:()=>IO,optionsForBuild:()=>BO,optionsForWatch:()=>SO,optionsHaveChanges:()=>sd,or:()=>an,orderedRemoveItem:()=>Wt,orderedRemoveItemAt:()=>Ht,packageIdToPackageName:()=>bd,packageIdToString:()=>xd,parameterIsThisKeyword:()=>mv,parameterNamePart:()=>PY,parseBaseNodeFactory:()=>hI,parseBigInt:()=>TT,parseBuildCommand:()=>sL,parseCommandLine:()=>nL,parseCommandLineWorker:()=>YO,parseConfigFileTextToJson:()=>_L,parseConfigFileWithSystem:()=>uW,parseConfigHostFromCompilerHostLike:()=>$U,parseCustomTypeOption:()=>GO,parseIsolatedEntityName:()=>GI,parseIsolatedJSDocComment:()=>YI,parseJSDocTypeExpressionForTests:()=>ZI,parseJsonConfigFileContent:()=>GL,parseJsonSourceFileConfigFileContent:()=>KL,parseJsonText:()=>KI,parseListTypeOption:()=>KO,parseNodeFactory:()=>yI,parseNodeModuleFromPath:()=>Gj,parsePackageName:()=>pM,parsePseudoBigInt:()=>ST,parseValidBigInt:()=>CT,pasteEdits:()=>Nfe,patchWriteFileEnsuringDirectory:()=>mo,pathContainsNodeModules:()=>Hj,pathIsAbsolute:()=>Do,pathIsBareSpecifier:()=>Eo,pathIsRelative:()=>wo,patternText:()=>Qt,performIncrementalCompilation:()=>MW,performance:()=>Kn,positionBelongsToNode:()=>PX,positionIsASICandidate:()=>AZ,positionIsSynthesized:()=>rT,positionsAreOnSameLine:()=>ex,preProcessFile:()=>N1,probablyUsesSemicolons:()=>IZ,processCommentPragmas:()=>aO,processPragmasIntoFields:()=>sO,processTaggedTemplateExpression:()=>$z,programContainsEsModules:()=>KQ,programContainsModules:()=>GQ,projectReferenceIsEqualTo:()=>fd,propertyNamePart:()=>AY,pseudoBigIntToString:()=>kT,punctuationPart:()=>FY,pushIfUnique:()=>pe,quote:()=>bZ,quotePreferenceFromString:()=>rY,rangeContainsPosition:()=>CX,rangeContainsPositionExclusive:()=>DX,rangeContainsRange:()=>ix,rangeContainsRangeExclusive:()=>TX,rangeContainsStartEnd:()=>wX,rangeEndIsOnSameLineAsRangeStart:()=>Xb,rangeEndPositionsAreOnSameLine:()=>Gb,rangeEquals:()=>he,rangeIsOnSingleLine:()=>Wb,rangeOfNode:()=>mT,rangeOfTypeParameters:()=>gT,rangeOverlapsWithStartEnd:()=>EX,rangeStartIsOnSameLineAsRangeEnd:()=>Kb,rangeStartPositionsAreOnSameLine:()=>Hb,readBuilderProgram:()=>BW,readConfigFile:()=>uL,readJson:()=>Ob,readJsonConfigFile:()=>dL,readJsonOrUndefined:()=>Ib,reduceEachLeadingCommentRange:()=>fs,reduceEachTrailingCommentRange:()=>ms,reduceLeft:()=>Pe,reduceLeftIterator:()=>y,reducePathComponents:()=>qo,refactor:()=>u6,regExpEscape:()=>ck,regularExpressionFlagToCharacterCode:()=>Ba,relativeComplement:()=>ce,removeAllComments:()=>uD,removeEmitHelper:()=>OD,removeExtension:()=>Yk,removeFileExtension:()=>Xk,removeIgnoredPath:()=>zV,removeMinAndVersionNumbers:()=>Vt,removePrefix:()=>tn,removeSuffix:()=>qt,removeTrailingDirectorySeparator:()=>Qo,repeatString:()=>VQ,replaceElement:()=>Ee,replaceFirstStar:()=>vC,resolutionExtensionIsTSOrJson:()=>oT,resolveConfigFileProjectName:()=>VW,resolveJSModule:()=>Rj,resolveLibrary:()=>Aj,resolveModuleName:()=>Oj,resolveModuleNameFromCache:()=>Ij,resolvePackageNameToPackageJson:()=>mj,resolvePath:()=>Vo,resolveProjectReferencePath:()=>qU,resolveTripleslashReference:()=>Lq,resolveTypeReferenceDirective:()=>dj,resolvingEmptyArray:()=>K_,returnFalse:()=>lt,returnNoopFileWatcher:()=>DW,returnTrue:()=>ut,returnUndefined:()=>_t,returnsPromise:()=>B1,rewriteModuleSpecifier:()=>vz,sameFlatMap:()=>z,sameMap:()=>R,sameMapping:()=>FJ,scanTokenAtPosition:()=>nf,scanner:()=>UK,semanticDiagnosticsOptionDeclarations:()=>EO,serializeCompilerOptions:()=>zL,server:()=>Bfe,servicesVersion:()=>A8,setCommentRange:()=>SD,setConfigFileInOptions:()=>XL,setConstantValue:()=>PD,setEmitFlags:()=>_D,setGetSourceFileAsHashVersioned:()=>AW,setIdentifierAutoGenerate:()=>UD,setIdentifierGeneratedImportReference:()=>WD,setIdentifierTypeArguments:()=>$D,setInternalEmitFlags:()=>pD,setLocalizedDiagnosticMessages:()=>Xx,setNodeChildren:()=>VP,setNodeFlags:()=>OT,setObjectAllocator:()=>Gx,setOriginalNode:()=>sD,setParent:()=>LT,setParentRecursive:()=>RT,setPrivateIdentifier:()=>mz,setSnippetElement:()=>MD,setSourceMapRange:()=>gD,setStackTraceLimit:()=>Ui,setStartsOnNewLine:()=>bD,setSyntheticLeadingComments:()=>TD,setSyntheticTrailingComments:()=>wD,setSys:()=>ho,setSysLog:()=>co,setTextRange:()=>fI,setTextRangeEnd:()=>PT,setTextRangePos:()=>NT,setTextRangePosEnd:()=>AT,setTextRangePosWidth:()=>IT,setTokenSourceMapRange:()=>yD,setTypeNode:()=>JD,setUILocale:()=>Rt,setValueDeclaration:()=>Sg,shouldAllowImportingTsExtension:()=>LM,shouldPreserveConstEnums:()=>jS,shouldRewriteModuleSpecifier:()=>Eg,shouldUseUriStyleNodeCoreModules:()=>a0,showModuleSpecifier:()=>Dx,signatureHasRestParameter:()=>iJ,signatureToDisplayParts:()=>WY,single:()=>De,singleElementArray:()=>ln,singleIterator:()=>H,singleOrMany:()=>we,singleOrUndefined:()=>Ce,skipAlias:()=>px,skipConstraint:()=>WQ,skipOuterExpressions:()=>hA,skipParentheses:()=>ph,skipPartiallyEmittedExpressions:()=>Nl,skipTrivia:()=>is,skipTypeChecking:()=>hT,skipTypeCheckingIgnoringNoCheck:()=>yT,skipTypeParentheses:()=>dh,skipWhile:()=>fn,sliceAfter:()=>dT,some:()=>X,sortAndDeduplicate:()=>oe,sortAndDeduplicateDiagnostics:()=>Is,sourceFileAffectingCompilerOptions:()=>AO,sourceFileMayBeEmitted:()=>rv,sourceMapCommentRegExp:()=>SJ,sourceMapCommentRegExpDontCareLineStart:()=>xJ,spacePart:()=>wY,spanMap:()=>G,startEndContainsRange:()=>ox,startEndOverlapsWithStartEnd:()=>NX,startOnNewLine:()=>vA,startTracing:()=>hr,startsWith:()=>en,startsWithDirectory:()=>ca,startsWithUnderscore:()=>i0,startsWithUseStrict:()=>_A,stringContainsAt:()=>r0,stringToToken:()=>ja,stripQuotes:()=>Ry,supportedDeclarationExtensions:()=>Rk,supportedJSExtensionsFlat:()=>Ik,supportedLocaleDirectories:()=>mc,supportedTSExtensionsFlat:()=>Nk,supportedTSImplementationExtensions:()=>jk,suppressLeadingAndTrailingTrivia:()=>oZ,suppressLeadingTrivia:()=>aZ,suppressTrailingTrivia:()=>sZ,symbolEscapedNameNoDefault:()=>sY,symbolName:()=>Cc,symbolNameNoDefault:()=>aY,symbolToDisplayParts:()=>VY,sys:()=>go,sysLog:()=>so,tagNamesAreEquivalent:()=>fO,takeWhile:()=>pn,targetOptionDeclaration:()=>TO,targetToLibMap:()=>Os,testFormatSettings:()=>IK,textChangeRangeIsUnchanged:()=>tc,textChangeRangeNewSpan:()=>ec,textChanges:()=>Z_e,textOrKeywordPart:()=>IY,textPart:()=>OY,textRangeContainsPositionInclusive:()=>Bs,textRangeContainsTextSpan:()=>$s,textRangeIntersectsWithTextSpan:()=>Ks,textSpanContainsPosition:()=>Ms,textSpanContainsTextRange:()=>zs,textSpanContainsTextSpan:()=>Js,textSpanEnd:()=>Rs,textSpanIntersection:()=>Xs,textSpanIntersectsWith:()=>Ws,textSpanIntersectsWithPosition:()=>Gs,textSpanIntersectsWithTextSpan:()=>Vs,textSpanIsEmpty:()=>js,textSpanOverlap:()=>Us,textSpanOverlapsWith:()=>qs,textSpansEqual:()=>gY,textToKeywordObj:()=>ba,timestamp:()=>Gn,toArray:()=>rt,toBuilderFileEmit:()=>AV,toBuilderStateFileInfoForMultiEmit:()=>PV,toEditorSettings:()=>K8,toFileNameLowerCase:()=>mt,toPath:()=>Xo,toProgramEmitPending:()=>IV,toSorted:()=>me,tokenIsIdentifierOrKeyword:()=>ya,tokenIsIdentifierOrKeywordOrGreaterThan:()=>va,tokenToString:()=>Ra,trace:()=>WR,tracing:()=>Yn,tracingEnabled:()=>Zn,transferSourceFileChildren:()=>HP,transform:()=>f7,transformClassFields:()=>Wz,transformDeclarations:()=>w$,transformECMAScriptModule:()=>y$,transformES2015:()=>p$,transformES2016:()=>_$,transformES2017:()=>Qz,transformES2018:()=>Zz,transformES2019:()=>e$,transformES2020:()=>t$,transformES2021:()=>n$,transformESDecorators:()=>Xz,transformESNext:()=>r$,transformGenerators:()=>f$,transformImpliedNodeFormatDependentModule:()=>v$,transformJsx:()=>l$,transformLegacyDecorators:()=>Kz,transformModule:()=>m$,transformNamedEvaluation:()=>Jz,transformNodes:()=>B$,transformSystemModule:()=>h$,transformTypeScript:()=>Vz,transpile:()=>t2,transpileDeclaration:()=>K1,transpileModule:()=>G1,transpileOptionValueCompilerOptions:()=>OO,tryAddToSet:()=>W,tryAndIgnoreErrors:()=>MZ,tryCast:()=>at,tryDirectoryExists:()=>jZ,tryExtractTSExtension:()=>Eb,tryFileExists:()=>RZ,tryGetClassExtendingExpressionWithTypeArguments:()=>lb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>ub,tryGetDirectories:()=>OZ,tryGetExtensionFromPath:()=>cT,tryGetImportFromModuleSpecifier:()=>wg,tryGetJSDocSatisfiesTypeNode:()=>sC,tryGetModuleNameFromFile:()=>CA,tryGetModuleSpecifierFromDeclaration:()=>Cg,tryGetNativePerformanceHooks:()=>Vn,tryGetPropertyAccessOrIdentifierToString:()=>yb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>NA,tryGetSourceMappingURL:()=>CJ,tryGetTextOfPropertyName:()=>zp,tryParseJson:()=>Lb,tryParsePattern:()=>eT,tryParsePatterns:()=>nT,tryParseRawSourceMap:()=>wJ,tryReadDirectory:()=>LZ,tryReadFile:()=>pL,tryRemoveDirectoryPrefix:()=>ak,tryRemoveExtension:()=>Qk,tryRemovePrefix:()=>nn,tryRemoveSuffix:()=>Ut,tscBuildOption:()=>MO,typeAcquisitionDeclarations:()=>zO,typeAliasNamePart:()=>LY,typeDirectiveIsEqualTo:()=>Sd,typeKeywords:()=>BQ,typeParameterNamePart:()=>RY,typeToDisplayParts:()=>UY,unchangedPollThresholds:()=>Yi,unchangedTextChangeRange:()=>rc,unescapeLeadingUnderscores:()=>Sc,unmangleScopedPackageName:()=>PM,unorderedRemoveItem:()=>Kt,unprefixedNodeCoreModules:()=>AC,unreachableCodeIsError:()=>US,unsetNodeChildren:()=>WP,unusedLabelIsError:()=>VS,unwrapInnermostStatementOfLabel:()=>Uf,unwrapParenthesizedExpression:()=>EC,updateErrorForNoInputFiles:()=>dR,updateLanguageServiceSourceFile:()=>r7,updateMissingFilePathsWatch:()=>Dq,updateResolutionField:()=>nj,updateSharedExtendedConfigFileWatcher:()=>kq,updateSourceFile:()=>QI,updateWatchingWildcardDirectories:()=>wq,usingSingleLineStringWriter:()=>dd,utf16EncodeAsString:()=>ws,validateLocaleAndSetLanguage:()=>gc,version:()=>c,versionMajorMinor:()=>i,visitArray:()=>lJ,visitCommaListElements:()=>gJ,visitEachChild:()=>hJ,visitFunctionBody:()=>fJ,visitIterationBody:()=>mJ,visitLexicalEnvironment:()=>_J,visitNode:()=>sJ,visitNodes:()=>cJ,visitParameterList:()=>dJ,walkUpBindingElementsAndPatterns:()=>lc,walkUpOuterExpressions:()=>yA,walkUpParenthesizedExpressions:()=>uh,walkUpParenthesizedTypes:()=>lh,walkUpParenthesizedTypesAndGetParentAndChild:()=>_h,whitespaceOrMapCommentRegExp:()=>kJ,writeCommentRange:()=>Fv,writeFile:()=>av,writeFileEnsuringDirectories:()=>cv,zipWith:()=>v});var Bfe={};n(Bfe,{ActionInvalidate:()=>XG,ActionPackageInstalled:()=>QG,ActionSet:()=>KG,ActionWatchTypingLocations:()=>nK,Arguments:()=>HG,AutoImportProviderProject:()=>Mme,AuxiliaryProject:()=>Rme,CharRangeSection:()=>Nhe,CloseFileWatcherEvent:()=>ige,CommandNames:()=>ihe,ConfigFileDiagEvent:()=>Yme,ConfiguredProject:()=>Bme,ConfiguredProjectLoadKind:()=>Dge,CreateDirectoryWatcherEvent:()=>rge,CreateFileWatcherEvent:()=>nge,Errors:()=>Hfe,EventBeginInstallTypes:()=>ZG,EventEndInstallTypes:()=>eK,EventInitializationFailed:()=>tK,EventTypesRegistry:()=>YG,ExternalProject:()=>Jme,GcTimer:()=>lme,InferredProject:()=>Lme,LargeFileReferencedEvent:()=>Qme,LineIndex:()=>Rhe,LineLeaf:()=>Mhe,LineNode:()=>jhe,LogLevel:()=>Kfe,Msg:()=>Qfe,OpenFileInfoTelemetryEvent:()=>tge,Project:()=>Ome,ProjectInfoTelemetryEvent:()=>ege,ProjectKind:()=>wme,ProjectLanguageServiceStateEvent:()=>Zme,ProjectLoadingFinishEvent:()=>Xme,ProjectLoadingStartEvent:()=>Kme,ProjectService:()=>Hge,ProjectsUpdatedInBackgroundEvent:()=>Gme,ScriptInfo:()=>Tme,ScriptVersionCache:()=>Ohe,Session:()=>She,TextStorage:()=>Sme,ThrottledOperations:()=>cme,TypingsInstallerAdapter:()=>Jhe,allFilesAreJsOrDts:()=>Nme,allRootFilesAreJsOrDts:()=>Fme,asNormalizedPath:()=>tme,convertCompilerOptions:()=>dge,convertFormatOptions:()=>_ge,convertScriptKindName:()=>gge,convertTypeAcquisition:()=>fge,convertUserPreferences:()=>hge,convertWatchOptions:()=>pge,countEachFileTypes:()=>Eme,createInstallTypingsRequest:()=>Yfe,createModuleSpecifierCache:()=>Xge,createNormalizedPathMap:()=>nme,createPackageJsonCache:()=>Qge,createSortedArray:()=>sme,emptyArray:()=>Xfe,findArgument:()=>iK,formatDiagnosticToProtocol:()=>rhe,formatMessage:()=>ohe,getBaseConfigFileName:()=>ume,getDetailWatchInfo:()=>Oge,getLocationInNewDocument:()=>whe,hasArgument:()=>rK,hasNoTypeScriptSource:()=>Pme,indent:()=>sK,isBackgroundProject:()=>Ume,isConfigFile:()=>Gge,isConfiguredProject:()=>$me,isDynamicFileName:()=>kme,isExternalProject:()=>qme,isInferredProject:()=>zme,isInferredProjectName:()=>rme,isProjectDeferredClose:()=>Vme,makeAutoImportProviderProjectName:()=>ome,makeAuxiliaryProjectName:()=>ame,makeInferredProjectName:()=>ime,maxFileSize:()=>Hme,maxProgramSizeForNonTsFiles:()=>Wme,normalizedPathToPath:()=>eme,nowString:()=>oK,nullCancellationToken:()=>Yge,nullTypingsInstaller:()=>xge,protocol:()=>_me,scriptInfoIsContainedByBackgroundProject:()=>Cme,scriptInfoIsContainedByDeferredClosedProject:()=>Dme,stringifyIndented:()=>cK,toEvent:()=>she,toNormalizedPath:()=>Zfe,tryConvertScriptKindName:()=>mge,typingsInstaller:()=>Jfe,updateProjectIfDirty:()=>Rge});var Jfe={};n(Jfe,{TypingsInstaller:()=>Vfe,getNpmCommandForInstallation:()=>Ufe,installNpmPackages:()=>qfe,typingsName:()=>Wfe});var zfe={isEnabled:()=>!1,writeLine:ct};function $fe(e,t,n,r){try{const r=Oj(t,Uo(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`))}}function qfe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=Ufe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function Ufe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}var Vfe=class{constructor(e,t,n,r,i,o=zfe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach(((t,n)=>{e[n]=t}));const t={kind:YG,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:gn.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:nK,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${cK(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=WG.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:o}=e,a=fa(Ro(t),(e=>{if(this.installTypingHost.fileExists(Uo(e,"package.json")))return e}))||i;if(a)this.installWorker(-1,[n],a,(e=>{const t={kind:QG,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)}));else{const e={kind:QG,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=WG.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=WG.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=Uo(e,"package.json"),n=Uo(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${cK(r)}`),this.log.writeLine(`Loaded content of '${n}':${cK(i)}`)),r.devDependencies&&i.dependencies)for(const t in r.devDependencies){if(!Ie(i.dependencies,t))continue;const n=jo(t);if(!n)continue;const r=$fe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=Oe(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new Cn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return q(e,(e=>{const t=FM(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=WG.validatePackageName(e);if(n!==WG.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(WG.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!WG.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)}))}ensurePackageDirectoryExists(e){const t=Uo(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const o=this.filterTypings(r);if(0===o.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,n));this.ensurePackageDirectoryExists(t);const a=this.installRunCount;this.installRunCount++,this.sendResponse({kind:ZG,eventId:a,typingsInstallerVersion:c,projectName:e.projectName});const s=o.map(Wfe);this.installTypingsAsync(a,s,t,(r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(const e of o)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(s)}`);const a=[];for(const e of o){const n=$fe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),o={typingLocation:n,version:new Cn(r[`ts${i}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,o),a.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(a)}`),this.sendResponse(this.createSetTypings(e,n.concat(a)))}finally{const t={kind:eK,eventId:a,projectName:e.projectName,packagesToInstall:s,installSuccess:r,typingsInstallerVersion:c};this.sendResponse(t)}}))}ensureDirectoryExists(e,t){const n=Ro(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||ud(r,(e=>!n.has(e)))||ud(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:nK,projectName:e,files:t})):this.sendResponse({kind:nK,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:KG}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}};function Wfe(e){return`@types/${e}@ts${i}`}var Hfe,Gfe,Kfe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Kfe||{}),Xfe=[],Qfe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Qfe||{});function Yfe(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function Zfe(e){return Go(e)}function eme(e,t,n){return n(To(e)?e:Ho(e,t))}function tme(e){return e}function nme(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function rme(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function ime(e){return`/dev/null/inferredProject${e}*`}function ome(e){return`/dev/null/autoImportProviderProject${e}*`}function ame(e){return`/dev/null/auxiliaryProject${e}*`}function sme(){return[]}(Gfe=Hfe||(Hfe={})).ThrowNoProject=function(){throw new Error("No Project.")},Gfe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},Gfe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var cme=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n()}},lme=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;const t=e.logger.hasLevel(2),n=t&&e.host.getMemoryUsage();if(e.host.gc(),t){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${n}, after ${t}`)}}};function ume(e){const t=jo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}var _me={};n(_me,{ClassificationType:()=>qK,CommandTypes:()=>dme,CompletionTriggerKind:()=>wK,IndentStyle:()=>gme,JsxEmit:()=>hme,ModuleKind:()=>yme,ModuleResolutionKind:()=>vme,NewLineKind:()=>bme,OrganizeImportsMode:()=>DK,PollingWatchKind:()=>mme,ScriptTarget:()=>xme,SemicolonPreference:()=>PK,WatchDirectoryKind:()=>fme,WatchFileKind:()=>pme});var dme=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(dme||{}),pme=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(pme||{}),fme=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(fme||{}),mme=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(mme||{}),gme=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(gme||{}),hme=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(hme||{}),yme=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.NodeNext="nodenext",e.Preserve="preserve",e))(yme||{}),vme=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(vme||{}),bme=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(bme||{}),xme=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(xme||{}),Sme=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return gn.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=UQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===Hi.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Hi).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=fK.fromString(gn.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return Zs(n[e],e+1void 0===t?t=this.host.readFile(n)||"":t;if(!$k(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>Hme)return gn.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=Ohe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=Ohe.fromString(gn.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(gn.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return gn.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=za(gn.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return TJ(this.text,t)}};function kme(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===jo(e)[0]||e.includes(":^")&&!e.includes(yo)}var Tme=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=kme(t),this.textStorage=new Sme(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||Ek(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){gn.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return E(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Wt(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){$me(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!zme(e)&&e.addMissingFileRoot(t.fileName)}I(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Hfe.ThrowNoProject();case 1:return Vme(this.containingProjects[0])||Ume(this.containingProjects[0])?Hfe.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i!e.isOrphan()))}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){gn.assert("number"==typeof e,`Expected position ${e} to be a number.`),gn.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){gn.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),gn.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),gn.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),gn.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!it(this.sourceMapFilePath)&&(Iq(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function Cme(e){return X(e.containingProjects,Ume)}function Dme(e){return X(e.containingProjects,Vme)}var wme=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(wme||{});function Eme(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:iO(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function Fme(e){const t=Eme(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function Nme(e){const t=Eme(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function Pme(e){return!e.some((e=>No(e,".ts")&&!iO(e)||No(e,".tsx")))}function Ame(e){return void 0!==e.generatedFilePath}function Ime(e,t){if(e===t)return!0;if(0===(e||Xfe).length&&0===(t||Xfe).length)return!0;const n=new Map;let r=0;for(const t of e)!0!==n.get(t)&&(n.set(t,!0),r++);for(const e of t){const t=n.get(e);if(void 0===t)return!1;!0===t&&(n.set(e,!1),r--)}return 0===r}var Ome=class e{constructor(e,t,n,r,i,o,a,s,c,l){switch(this.projectKind=t,this.projectService=n,this.compilerOptions=o,this.compileOnSaveEnabled=a,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Xfe,this.moduleSpecifierCache=Xge(this),this.createHash=Xe(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=WG.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${wme[t]}Project: ${e}, currentDirectory: ${l}`),this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(l),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new a7(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||JS(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:gn.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const u=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):u.trace&&(this.trace=e=>u.trace(e)),this.realpath=Xe(u,u.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||u.preferNonRecursiveWatch,this.resolutionCache=nW(this,this.currentDirectory,!0),this.languageService=l7(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),Ume(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return Rge(this),Nme(this)}isJsOnlyProject(){return Rge(this),function(e){const t=Eme(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;gn.assertIsDefined(n.require);for(const a of t){const t=$o(n.resolvePath(Uo(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){let i,o;gn.assertIsDefined(n.importPlugin);for(const a of t){const t=Uo(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=ik(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return u;let e;return this.rootFilesMap.forEach((t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)})),de(e,this.typingFiles)||u}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return Uo(Ro(Go(this.projectService.getExecutingFilePath())),Ls(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!!this.projectService.getScriptInfoForPath(t)||!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return Xo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),EW.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),EW.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,(()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}))}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),EW.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return P(this.projectErrors,(e=>!e.file))||Xfe}getAllProjectErrors(){return this.projectErrors||Xfe}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&Rge(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(Rge(this),this.builderState=GU.create(this.program,this.builderState,!0),q(GU.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),(e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0))):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:Xfe};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i)t(Ho(e.name,this.currentDirectory),e.text,e.writeByteOrderMark);if(this.builderState&&RS(this.compilerOptions)){const t=i.filter((e=>iO(e.name)));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):qi(t[0].text);GU.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference((e=>this.detachScriptInfoFromProject(e.sourceFile.fileName))),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(gn.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e.enable&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return me(M(this.plugins,(t=>{if("function"==typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(e){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`),e.stack&&this.projectService.logger.info(e.stack)}})))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),f(this.externalFiles,(e=>this.detachScriptInfoIfNotRoot(e))),this.rootFilesMap.forEach((e=>{var t;return null==(t=e.info)?void 0:t.detachFromProject(this)})),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach((e=>{e.projects.delete(this),e.close()})),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(vx(this.missingFilesMap,ux),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Be(U(this.rootFilesMap.values(),(e=>{var t;return null==(t=e.info)?void 0:t.fileName})))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Be(U(this.rootFilesMap.values(),(e=>e.info)))}getScriptInfos(){return this.languageServiceEnabled?O(this.program.getSourceFiles(),(e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return gn.assert(!!t,"getScriptInfo",(()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`)),t})):this.getRootScriptInfos()}getExcludedFiles(){return Xfe}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=p7(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(t.fileName);if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(t)}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map((t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)})))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===n)return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t,n;return(null==(n=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:n.info)===e}addRoot(e,t){gn.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,t,n,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,n)}updateFromProject(){Rge(this)}updateGraph(){var e,t;null==(e=Yn)||e.push(Yn.Phase.Session,"updateGraph",{name:this.projectName,kind:wme[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Xfe;for(const e of i)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((n||i.length)&&(this.lastCachedUnresolvedImportsList=function(e,t){var n,r;const i=e.getSourceFiles();null==(n=Yn)||n.push(Yn.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map((e=>Ry(e.getName()))),a=oe(M(i,(n=>function(e,t,n,r){return V(r,t.path,(()=>{let r;return e.forEachResolvedModule((({resolvedModule:e},t)=>{e&&oT(e.extension)||As(t)||n.some((e=>e===t))||(r=le(r,pM(t).packageName))}),t),r||Xfe}))}(e,n,o,t))));return null==(r=Yn)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;const o=0===this.projectProgramVersion&&n;return n&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),o&&this.getPackageJsonAutoImportProvider(),null==(t=Yn)||t.pop(),!n}enqueueInstallTypingsForProject(e){const t=this.getTypeAcquisition();if(!t||!t.enable||this.projectService.typingsInstaller===xge)return;const n=this.typingsCache;var r,i,o,a;!e&&n&&(o=t,a=n.typeAcquisition,o.enable===a.enable&&Ime(o.include,a.include)&&Ime(o.exclude,a.exclude))&&!function(e,t){return JS(e)!==JS(t)}(this.getCompilationSettings(),n.compilerOptions)&&(r=this.lastCachedUnresolvedImportsList,i=n.unresolvedImports,r===i||ae(r,i))||(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:t,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,t,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,t,n,r){this.typingsCache={compilerOptions:e,typeAcquisition:t,unresolvedImports:n};const i=t&&t.enable?me(r):Xfe;un(i,this.typingFiles,Pt(!this.useCaseSensitiveFileNames()),ct,(e=>this.detachScriptInfoFromProject(e)))&&(this.typingFiles=i,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&vx(this.typingWatchers,ux),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:XG})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);if(t.delete(r),!this.typingWatchers.has(r)){const t="FileWatcher"===n?EW.TypingInstallerLocationFile:EW.TypingInstallerLocationDirectory;this.typingWatchers.set(r,UV(r)?"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,(()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke()),2e3,this.projectService.getWatchOptions(this),t,this):this.projectService.watchFactory.watchDirectory(e,(e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):No(e,".json")?aa(e,Uo(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json")),1,this.projectService.getWatchOptions(this),t,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${Oge(t,this)}`),CW))}};for(const t of e){const e=jo(t);if("package.json"!==e&&"bower.json"!==e)if(sa(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=t.indexOf(yo,this.currentDirectory.length+1);n(-1!==e?t.substr(0,e):t,"DirectoryWatcher")}else sa(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(t,"DirectoryWatcher");else n(t,"FileWatcher")}t.forEach(((e,t)=>{e.close(),this.typingWatchers.delete(t)}))}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const t=gj(this.getCompilerOptions(),this);return P(e,(e=>!t.includes(e)))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();gn.assert(n===this.program),gn.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=Gn(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(lt,lt);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=Yn)||e.push(Yn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=Yn)||t.pop(),gn.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,this.rootFilesMap.forEach(((e,t)=>{var n;const r=this.program.getSourceFileByPath(t),i=e.info;r&&(null==(n=e.info)?void 0:n.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),gn.assert(e.info.isAttached(this)),null==i||i.detachFromProject(this))})),Dq(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),((e,t)=>this.addMissingFileWatcher(e,t))),this.generatedFilesMap){const e=this.compilerOptions.outFile;Ame(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(Xk(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach(((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(Qy(n.fileName,this.compilerOptions,this.program),e)||(Iq(e),this.generatedFilesMap.delete(t))}))}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&ud(this.changedFilesForExportMapCache,(e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)}))),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||Xfe;this.externalFiles=this.getExternalFiles(),un(this.externalFiles,s,Pt(!this.useCaseSensitiveFileNames()),(e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==t||t.attachToProject(this)}),(e=>this.detachScriptInfoFromProject(e)));const c=Gn()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Or[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t){const n=this.projectService.getScriptInfo(e);n&&(n.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(n.path))}addMissingFileWatcher(e,t){var n;if($me(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return CW}const r=this.projectService.watchFactory.watchFile(Ho(t,this.currentDirectory),((t,n)=>{$me(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}),500,this.projectService.getWatchOptions(this),EW.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(Ame(this.generatedFilesMap))return void gn.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,(()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}),2e3,this.projectService.getWatchOptions(this),EW.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Ame(this.generatedFilesMap)?Iq(this.generatedFilesMap):vx(this.generatedFilesMap,Iq),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?Hfe.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.initialLoadPending)return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",hW(this.program,(e=>i+=`\t${e}\n`)))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${wme[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),od(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const i=t?e=>Be(e.entries(),(([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t}))):e=>Be(e.keys());this.initialLoadPending||Rge(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:zme(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map((e=>({fileName:Zfe(e),isSourceOfProjectReferenceRedirect:!1}))))||Xfe,s=$e(this.getFileNamesWithRedirectInfo(!!t).concat(r),(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),c=new Map,l=new Map,u=a?Be(a.keys()):[],_=[];return ld(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&_.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)})),ld(e,((e,t)=>{s.has(t)||l.set(t,e)})),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?u.map((e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)}))):u,updatedRedirects:t?_:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map((e=>({fileName:Zfe(e),isSourceOfProjectReferenceRedirect:!1}))))||Xfe,i=e.concat(n);return this.lastReportedFileNames=$e(i,(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map((e=>e.fileName)),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Uo(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const t of this.projectService.globalPlugins)t&&(e.plugins&&e.plugins.some((e=>e.name===t))||(this.projectService.logger.info(`Loading global plugin ${t}`),this.enablePlugin({name:t,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:Ofe}),i=r.create(n);for(const e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(e){this.projectService.logger.info(`Plugin activation failed: ${e}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter((t=>t.name===e)).forEach((e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)}))}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?Xfe:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(Uo(this.currentDirectory,xU),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=y0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!VZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return Rge(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=Yn)||e.push(Yn.Phase.Session,"getPackageJsonAutoImportProvider");const i=Gn();if(this.autoImportProviderHost=Mme.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Rge(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Gn()-i),null==(t=Yn)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=Yn)||n.pop()}}isDefaultProjectForOpenFiles(){return!!ld(this.projectService.openFiles,((e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this))}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return gn.assert(0===this.projectService.serverMode),this.noDtsResolutionProject??(this.noDtsResolutionProject=new Rme(this)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i,o,a;const s=this.program,c=gn.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),l=gn.checkDefined(c.getFullText());null==(i=this.getScriptInfo(e))||i.editContent(0,l.length,t),this.updateGraph();try{n(this.program,s,null==(o=this.program)?void 0:o.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,t.length,l)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:u,lib:u,noLib:!0}}},Lme=class extends Ome{constructor(e,t,n,r,i,o){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=r&&e.toCanonicalFileName(r),r||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=DQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){gn.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&k(this.getRootScriptInfos(),(e=>!e.isJavaScript()))&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){f(this.getRootScriptInfos(),(e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e))),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Fme(this),include:u,exclude:u}}},Rme=class extends Ome{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},jme=class e extends Ome{constructor(e,t,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=Xe(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Xe(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,o;if(!e)return u;const a=t.getCurrentProgram();if(!a)return u;const s=Gn();let c,l;const _=Uo(t.currentDirectory,xU),d=t.getPackageJsonsForAutoImport(Uo(t.currentDirectory,_));for(const e of d)null==(i=e.dependencies)||i.forEach(((e,t)=>y(t))),null==(o=e.peerDependencies)||o.forEach(((e,t)=>y(t)));let p=0;if(c){const i=t.getSymlinkCache();for(const o of Be(c.keys())){if(2===e&&p>=this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),u;const s=mj(o,t.currentDirectory,r,n,a.getModuleResolutionCache());if(s){const e=v(s,a,i);if(e){p+=h(e);continue}}if(!f([t.currentDirectory,t.getGlobalTypingsCacheLocation()],(e=>{if(e){const t=mj(`@types/${o}`,e,r,n,a.getModuleResolutionCache());if(t){const e=v(t,a,i);return p+=h(e),!0}}}))&&s&&r.allowJs&&r.maxNodeModuleJsDepth){const e=v(s,a,i,!0);p+=h(e)}}}const m=a.getResolvedProjectReferences();let g=0;return(null==m?void 0:m.length)&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&m.forEach((e=>{if(null==e?void 0:e.commandLine.options.outFile)g+=h(b([Zk(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=ht((()=>iq(e.commandLine,!t.useCaseSensitiveFileNames())));g+=h(b(q(e.commandLine.fileNames,(r=>iO(r)||No(r,".json")||a.getSourceFile(r)?void 0:X$(r,e.commandLine,!t.useCaseSensitiveFileNames(),n)))))}})),(null==l?void 0:l.size)&&t.log(`AutoImportProviderProject: found ${l.size} root files in ${p} dependencies ${g} referenced projects in ${Gn()-s} ms`),l?Be(l.values()):u;function h(e){return(null==e?void 0:e.length)?(l??(l=new Set),e.forEach((e=>l.add(e))),1):0}function y(e){en(e,"@types/")||(c||(c=new Set)).add(e)}function v(e,i,o,a){var s;const c=iM(e,r,n,i.getModuleResolutionCache(),a);if(c){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,a=i&&i!==t.toPath(e.packageDirectory);return a&&o.setSymlinkedDirectory(e.packageDirectory,{real:Yo(r),realPath:Yo(i)}),b(c,a?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return q(e,(e=>{const n=t?t(e):e;if(!(a.getSourceFile(n)||t&&a.getSourceFile(e)))return n}))}}static create(t,n,r){if(0===t)return;const i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},o=this.getRootFileNames(t,n,r,i);return o.length?new e(n,o,i):void 0}isEmpty(){return!X(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||u}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};jme.maxDependencies=10,jme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:u,lib:u,noLib:!0};var Mme=jme,Bme=class extends Ome{constructor(e,t,n,r,i){super(e,1,n,!1,void 0,{},!1,void 0,r,Ro(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=i}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=Zfe(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Zfe(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=gn.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!n||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){gn.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Ro(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const t of e.plugins)this.enablePlugin(t,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return P(this.projectErrors,(e=>!e.file))||Xfe}getAllProjectErrors(){return this.projectErrors||Xfe}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach(((e,t)=>this.releaseParsedConfig(t))),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return cj(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,dR(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,_R(e.raw))}},Jme=class extends Ome{constructor(e,t,n,r,i,o,a){super(e,2,t,!0,r,n,i,a,t.host,Ro(o||$o(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function zme(e){return 0===e.projectKind}function $me(e){return 1===e.projectKind}function qme(e){return 2===e.projectKind}function Ume(e){return 3===e.projectKind||4===e.projectKind}function Vme(e){return $me(e)&&!!e.deferredClose}var Wme=20971520,Hme=4194304,Gme="projectsUpdatedInBackground",Kme="projectLoadingStart",Xme="projectLoadingFinish",Qme="largeFileReferenced",Yme="configFileDiag",Zme="projectLanguageServiceState",ege="projectInfo",tge="openFileInfo",nge="createFileWatcher",rge="createDirectoryWatcher",ige="closeFileWatcher",oge="*ensureProjectForOpenFiles*";function age(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach((e=>{gn.assert("number"==typeof e)})),t.set(n.name,e)}return t}var sge=age(wO),cge=age(SO),lge=new Map(Object.entries({none:0,block:1,smart:2})),uge={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function _ge(e){return it(e.indentStyle)&&(e.indentStyle=lge.get(e.indentStyle.toLowerCase()),gn.assert(void 0!==e.indentStyle)),e}function dge(e){return sge.forEach(((t,n)=>{const r=e[n];it(r)&&(e[n]=t.get(r.toLowerCase()))})),e}function pge(e,t){let n,r;return SO.forEach((i=>{const o=e[i.name];if(void 0===o)return;const a=cge.get(i.name);(n||(n={}))[i.name]=a?it(o)?a.get(o.toLowerCase()):o:TR(i,o,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function fge(e){let t;return zO.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function mge(e){return it(e)?gge(e):e}function gge(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function hge(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var yge={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=Bo(e);r&&X(t,(e=>e.extension===r&&(n=e.scriptKind,!0)))}return n},hasMixedContent:(e,t)=>X(t,(t=>t.isMixedContent&&No(e,t.extension)))},vge={getFileName:e=>e.fileName,getScriptKind:e=>mge(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function bge(e,t){for(const n of t)if(n.getProjectName()===e)return n}var xge={isKnownTypesPackageName:lt,installPackage:gt,enqueueInstallTypingsRequest:ct,attach:ct,onProjectClosed:ct,globalTypingsCacheLocation:void 0},Sge={close:ct};function kge(e,t){if(!t)return;const n=t.get(e.path);return void 0!==n?Cge(e)?n&&!it(n)?n.get(e.fileName):void 0:it(n)||!n?n:n.get(!1):void 0}function Tge(e){return!!e.containingProjects}function Cge(e){return!!e.configFileInfo}var Dge=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(Dge||{});function wge(e){return e-1}function Ege(e,t,n,r,i,o,a,s,c){for(var l;;){if(t.parsedCommandLine&&(s&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const u=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!u)return;const _=t.projectService.findCreateOrReloadConfiguredProject(u,r,i,o,s?void 0:e.fileName,a,s,c);if(!_)return;!_.project.parsedCommandLine&&(null==(l=t.parsedCommandLine)?void 0:l.options.composite)&&_.project.setPotentialProjectReference(t.canonicalConfigFilePath);const d=n(_);if(d)return d;t=_.project}}function Fge(e,t,n,r,i,o,a,s){const c=t.options.disableReferencedProjectLoad?0:r;let l;return f(t.projectReferences,(t=>{var u;const _=Zfe(qU(t)),d=e.projectService.toCanonicalFileName(_),p=null==s?void 0:s.get(d);if(void 0!==p&&p>=c)return;const f=e.projectService.configFileExistenceInfoCache.get(d);let m=0===c?(null==f?void 0:f.exists)||(null==(u=e.resolvedChildConfigs)?void 0:u.has(d))?f.config.parsedCommandLine:void 0:e.getParsedCommandLine(_);if(m&&c!==r&&c>2&&(m=e.getParsedCommandLine(_)),!m)return;const g=e.projectService.findConfiguredProjectByProjectName(_,o);if(2!==c||f||g){switch(c){case 6:g&&g.projectService.reloadConfiguredProjectOptimized(g,i,a);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(d);case 2:case 0:if(g||0!==c){const t=n(f??e.projectService.configFileExistenceInfoCache.get(d),g,_,i,e,d);if(t)return t}break;default:gn.assertNever(c)}(s??(s=new Map)).set(d,c),(l??(l=[])).push(m)}}))||f(l,(t=>t.projectReferences&&Fge(e,t,n,c,i,o,a,s)))}function Nge(e,t,n,r,i){let o,a=!1;switch(t){case 2:case 3:Bge(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=Mge(e),o)break;case 5:a=function(e,t){if(t){if(jge(e,t,!1))return!0}else Rge(e);return!1}(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=Mge(e),o)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,i);break;case 0:case 1:break;default:gn.assertNever(t)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:o,reason:r}}function Pge(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&ud(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&ud(e.resolvedChildConfigs,t)):void 0}function Age(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function Ige(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?Pge(e,r):f(e.getProjectReferences(),n)}(e,(n=>Age(e,t,n.sourceFile.path)),(n=>Age(e,t,e.toPath(qU(n)))),(n=>Age(e,t,n)))}function Oge(e,t){return`${it(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Lge(e){return!e.isScriptOpen()&&void 0!==e.mTime}function Rge(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function jge(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return 2===r;const i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function Mge(e){const t=Zfe(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=n.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),Bge(e))return n}function Bge(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!uR(e.parsedCommandLine))}function Jge(e){return`User requested reload projects: ${e}`}function zge(e){$me(e)&&(e.projectOptions=!0)}function $ge(e){let t=1;return()=>e(t++)}function qge(){return{idToCallbacks:new Map,pathToId:new Map}}function Uge(e,t){return!!t&&!!e.eventHandler&&!!e.session}function Vge(e,t){if(!Uge(e,t))return;const n=qge(),r=qge(),i=qge();let o=1;return e.session.addProtocolHandler("watchChange",(e=>(function(e){nt(e)?e.forEach(s):s(e)}(e.arguments),{responseRequired:!1}))),{watchFile:function(e,t){return a(n,e,t,(t=>({eventName:nge,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,(t=>({eventName:rge,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}})))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:ige,data:{id:c}})))}}}function s({id:e,created:t,deleted:n,updated:r}){c(e,t,0),c(e,n,2),c(e,r,1)}function c(e,t,o){(null==t?void 0:t.length)&&(l(n,e,t,((e,t)=>e(t,o))),l(r,e,t,((e,t)=>e(t))),l(i,e,t,((e,t)=>e(t))))}function l(e,t,n,r){var i;null==(i=e.idToCallbacks.get(t))||i.forEach((e=>{n.forEach((t=>r(e,$o(t))))}))}}var Wge=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=$ge(ime),this.newAutoImportProviderProjectName=$ge(ome),this.newAuxiliaryProjectName=$ge(ame),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=uge,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=ct,this.verifyDocumentRegistry=ct,this.verifyProgram=ct,this.onProjectCreation=ct,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||xge,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Xfe,this.pluginProbeLocations=e.pluginProbeLocations||Xfe,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?Uo(Ro(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Qe()),this.currentDirectory=Zfe(this.host.getCurrentDirectory()),this.toCanonicalFileName=Xt(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Yo(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new cme(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Ro(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:AK(this.host.newLine),preferences:TK,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=H0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):ct;this.packageJsonCache=Qge(this),this.watchFactory=0!==this.serverMode?{watchFile:DW,watchDirectory:DW}:Pq(Vge(this,e.canUseWatchEvents)||this.host,n,r,Oge),this.canUseWatchEvents=Uge(this,e.canUseWatchEvents),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return Xo(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return Ho(e,this.host.getCurrentDirectory())}setDocument(e,t,n){gn.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:Zme,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,"i");this.safelist=t.typesMap;for(const e in t.simpleMap)Ie(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=uge,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case KG:return void t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case XG:return void t.enqueueInstallTypingsForProject(!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(oge,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(Vme(e))return;if(e.markAsDirty(),Ume(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&Rge(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:Gme,data:{openFiles:Be(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:Qme,data:{file:e,fileSize:t,maxFileSize:Hme}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:Kme,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:Xme,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){gn.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=dge(e),r=pge(e,t),i=fge(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const e of this.inferredProjects)(o?e.projectRootPath!==o:e.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))||(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(null==r?void 0:r.watchOptions),e.setProjectErrors(null==r?void 0:r.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return rme(e)?bge(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(Zfe(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject((t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)}))}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=it(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t;const n=it(e)?this.getScriptInfoForNormalizedPath(e):e;if(n)return(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.delete(n.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5),n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),this.tryGetDefaultProjectForFile(n)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=it(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(it(e)?e:e.fileName),Hfe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=Rge(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){gn.assert(!e.isScriptOpen()),2===t?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(it(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach(((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t)))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){gn.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,(t=>this.onWildCardDirectoryWatcherInvoke(e,n,r,o,t)),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Ro(n)),EW.WildcardDirectory,n);const o={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,null==(e=o.packageJsonWatches)||e.forEach((e=>{e.projects.delete(o),e.close()})),o.packageJsonWatches=void 0)}};return o}onWildCardDirectoryWatcherInvoke(e,t,n,r,i){const o=this.toPath(i),a=n.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(i,o);if("package.json"===jo(o)&&!VZ(o)&&(a&&a.fileExists||!a&&this.host.fileExists(i))){const e=this.getNormalizedAbsolutePath(i);this.logger.info(`Config: ${t} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,o),this.watchPackageJsonFile(e,o,r)}(null==a?void 0:a.fileExists)||this.sendSourceFileChange(o);const s=this.findConfiguredProjectByProjectName(t);Eq({watchedDirPath:this.toPath(e),fileOrDirectory:i,fileOrDirectoryPath:o,configFileName:t,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:n.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||n.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==n.updateLevel&&(n.updateLevel=1),n.projects.forEach(((e,n)=>{var r;if(!e)return;const i=this.getConfiguredProjectByCanonicalConfigFilePath(n);if(!i)return;if(s!==i&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(t);T(null==(r=i.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),(t=>(null==t?void 0:t.sourceFile.path)===e))&&i.markAutoImportProviderAsDirty()}const a=s===i?1:0;if(!(i.pendingUpdateLevel>a))if(this.openFiles.has(o))if(gn.checkDefined(this.getScriptInfoForPath(o)).isAttached(i)){const e=Math.max(a,i.openFileWatchTriggered.get(o)||0);i.openFileWatchTriggered.set(o,e)}else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i);else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i)})))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.cachedDirectoryStructureHost.clearCache(),n.config.projects.forEach(((n,i)=>{var o,a,s;const c=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(c)if(r=!0,i===e){if(c.initialLoadPending)return;c.pendingUpdateLevel=2,c.pendingUpdateReason=t,this.delayUpdateProjectGraph(c),c.markAutoImportProviderAsDirty()}else{if(c.initialLoadPending)return void(null==(a=null==(o=this.configFileExistenceInfoCache.get(i))?void 0:o.openFilesImpactedByConfigFile)||a.forEach((e=>{var t;(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.has(e))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(e,this.configFileForOpenFiles.get(e))})));const t=this.toPath(e);c.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(c),this.getHostPreferences().includeCompletionsForModuleExports&&T(null==(s=c.getCurrentProgram())?void 0:s.getResolvedProjectReferences(),(e=>(null==e?void 0:e.sourceFile.path)===t))&&c.markAutoImportProviderAsDirty()}})),r}onConfigFileChanged(e,t,n){const r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),o=null==i?void 0:i.deferredClose;2===n?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,o&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.openFiles.forEach(((e,t)=>{var n,i;const o=this.configFileForOpenFiles.get(t);if(!(null==(n=r.openFilesImpactedByConfigFile)?void 0:n.has(t)))return;this.configFileForOpenFiles.delete(t);const a=this.getScriptInfoForPath(t);this.getConfigFileNameForFile(a,!1)&&((null==(i=this.pendingOpenFileProjectUpdates)?void 0:i.has(t))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(t,o))})),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),gn.shouldAssert(1)&&this.filenameToScriptInfo.forEach((t=>gn.assert(!t.isAttached(e),"Found script Info still attached to project",(()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Be(U(this.filenameToScriptInfo.values(),(t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map((e=>e.projectName)),hasMixedContent:t.hasMixedContent}:void 0))),void 0," ")}`)))),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:Kt(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:Kt(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){gn.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Ro(To(e.fileName)?e.fileName:Ho(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(Wt(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const e of this.inferredProjects){if(e===n||e.isOrphan())continue;const t=e.getRootScriptInfos();gn.assert(1===t.length||!!e.projectRootPath),1===t.length&&f(t[0].containingProjects,(e=>e!==t[0].containingProjects[0]&&!e.isOrphan()))&&e.removeFile(t[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)}))}closeOpenFile(e,t){var n;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let o=!1;for(const t of e.containingProjects){if($me(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevelthis.onConfigFileChanged(e,t,r)),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions,Ro(e)),EW.ConfigFile,n)),this.ensureConfigFileWatcherForProject(o,n)}ensureConfigFileWatcherForProject(e,t){const n=e.config.projects;n.set(t.canonicalConfigFilePath,n.get(t.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,Tq(e,this.sharedExtendedConfigFileWatchers),gn.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?UV(Ro(e))||(o.watcher.close(),o.watcher=Sge):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,(r=>{var i,o,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(n){if(!(null==(i=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:i.has(e.path)))return}else if(!(null==(o=s.openFilesImpactedByConfigFile)?void 0:o.delete(e.path)))return;t&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(gn.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}}))}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(gn.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,((t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(e.path),r.watcher||(r.watcher=UV(Ro(t))?this.watchFactory.watchFile(n,((e,r)=>this.onConfigFileChanged(n,t,r)),2e3,this.hostConfiguration.watchOptions,EW.ConfigFileForInferredRoot):Sge)})))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;gn.assert(!Tge(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(gn.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Ro(e.fileName);const i=()=>sa(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!0,s=!0;Cge(e)&&(a=!$t(e.fileName,"tsconfig.json")&&(s=!1));do{const e=eme(r,this.currentDirectory,this.toCanonicalFileName);if(a){const n=Uo(r,"tsconfig.json");if(t(Uo(e,"tsconfig.json"),n))return n}if(s){const n=Uo(r,"jsconfig.json");if(t(Uo(e,"jsconfig.json"),n))return n}if(ma(e))break;const n=Ro(r);if(n===r)break;r=n,a=s=!0}while(o||i())}findDefaultConfiguredProject(e){var t;return null==(t=this.findDefaultConfiguredProjectWorker(e,1))?void 0:t.defaultProject}findDefaultConfiguredProjectWorker(e,t){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t):void 0}getConfigFileNameForFileFromCache(e,t){if(t){const t=kge(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return kge(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;const n=t||!1;if(Cge(e)){let t=this.configFileForOpenFiles.get(e.path);t&&!it(t)||this.configFileForOpenFiles.set(e.path,t=(new Map).set(!1,t)),t.set(e.fileName,n)}else this.configFileForOpenFiles.set(e.path,n)}getConfigFileNameForFile(e,t){const n=this.getConfigFileNameForFileFromCache(e,t);if(void 0!==n)return n||void 0;if(t)return;const r=this.forEachConfigFileLocation(e,((t,n)=>this.configFileExists(n,t,e)));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Kge),this.configuredProjects.forEach(Kge),this.inferredProjects.forEach(Kge),this.logger.info("Open files: "),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map((e=>e.getProjectName()))}`)})),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){const n=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return bge(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=Wme;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach((e=>i-=e||0));let o=0;for(const e of n){const t=r.getFileName(e);if(!$k(t)&&(o+=this.host.getFileSize(t),o>Wme||o>i)){const e=n.map((e=>r.getFileName(e))).filter((e=>!$k(e))).map((e=>({name:e,size:this.host.getFileSize(e)}))).sort(((e,t)=>t.size-e.size)).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${o}). Largest files: ${e.map((e=>`${e.name}:${e.size}`)).join(", ")}`),t}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=dge(n),a=pge(n,Ro($o(e))),s=new Jme(e,this,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,vge),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,vge,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void zge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void zge(e);const t=$me(e)?e.projectOptions:void 0;zge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:Eme(e.getScriptInfos(),!0),compilerOptions:qR(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:$me(e)&&ume(e.getConfigFilePath())||"other",projectType:e instanceof Jme?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:c};this.eventHandler({eventName:ege,data:n})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;null==(n=Yn)||n.instant(Yn.Phase.Session,"createConfiguredProject",{configFilePath:e});const r=this.toCanonicalFileName(e);let i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||(i.config={cachedDirectoryStructureHost:xq(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new Bme(e,r,this,i.config.cachedDirectoryStructureHost,t);return gn.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,o),this.createConfigFileWatcherForParsedConfig(e,r,o),o}loadConfiguredProject(e,t){var n,r;null==(n=Yn)||n.push(Yn.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=Zfe(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;gn.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.parsedCommandLine=a,e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,yge);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach(((t,n)=>this.stopWatchingWildCards(n,e)))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,yge,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=Yn)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config&&(1===n.config.updateLevel&&this.reloadFileNamesOfParsedConfig(e,n.config),!n.config.updateLevel))return this.ensureConfigFileWatcherForProject(n,r),n;if(!n.exists&&n.config)return n.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(n,r),n;const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||xq(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=pL(e,(e=>this.host.readFile(e))),l=KI(e,it(c)?c:""),u=l.parseDiagnostics;it(c)||u.push(c);const _=Ro(e),d=KL(l,s,_,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);d.errors.length&&u.push(...d.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:d.fileNames,options:d.options,watchOptions:d.watchOptions,projectReferences:d.projectReferences},void 0," ")}`);const p=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=d,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:d,cachedDirectoryStructureHost:s,projects:new Map},p||xT(this.getWatchOptionsFromProjectWatchOptions(void 0,_),this.getWatchOptionsFromProjectWatchOptions(d.watchOptions,_))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),kq(t,d.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;Cq(this.extendedConfigCache,n,(e=>this.toPath(e)));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach((e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r})),r&&this.delayEnsureProjectForOpenFiles()}),2e3,this.hostConfiguration.watchOptions,EW.ExtendedConfigFile,e)),(e=>this.toPath(e))),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,wq(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,((t,r)=>this.watchWildcardDirectory(t,r,e,n)))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;vx(n.watchedDirectories,Iq),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),ld(n.config.projects,dt)||(n.config.watchedDirectories&&(vx(n.config.watchedDirectories,Iq),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){var r;const i=e.getRootFilesMap(),o=new Map;for(const a of t){const t=n.getFileName(a),s=Zfe(t);let c;if(kme(s)||e.fileExists(t)){const t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),o=gn.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,t,r,e.directoryStructureHost,!1));c=o.path;const l=i.get(c);l&&l.info===o?l.fileName=s:(e.addRoot(o,s),o.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(o))}else{c=eme(s,this.currentDirectory,this.toCanonicalFileName);const t=i.get(c);t?((null==(r=t.info)?void 0:r.path)===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=s):i.set(c,{fileName:s})}o.set(c,!0)}i.size>o.size&&i.forEach(((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):i.delete(n))}))}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.fileNames.concat(e.getExternalFiles(1)),yge),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine;gn.assert(1===t.updateLevel);const n=PR(t.parsedCommandLine.options.configFile.configFileSpecs,Ro(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},t.updateLevel=void 0,t.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,yge)}reloadConfiguredProjectOptimized(e,t,n){n.has(e)||(n.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,t))}reloadConfiguredProjectClearingSemanticCache(e,t,n){return 7!==n.get(e)&&(n.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,Jge(t)),!0)}setProjectForReload(e,t,n){2===t&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&Jge(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),jge(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!(!n&&r.length===(e.configDiagDiagnosticsReported??0)||(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:Yme,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:t??e.getConfigFilePath()}}),0))}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const t of this.inferredProjects)t.projectRootPath&&sa(t.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>t.projectRootPath.length||(n=t));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){gn.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new Lme(this,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Zfe(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(Zfe(e))}getScriptInfoOrConfig(e){const t=Zfe(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Be(U(this.filenameToScriptInfo.entries(),(e=>e[1].deferredDelete?void 0:e)),(([e,t])=>({path:e,fileName:t.fileName})));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&f(this.realpathToScriptInfos.get(t),n),f(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?ld(t,((e,t)=>t!==n.path&&E(e,r)))||t.add(n.path,r):(t=Qe(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(gn.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&en(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,((t,n)=>this.onSourceFileChanged(e,n)),500,this.hostConfiguration.watchOptions,EW.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,(e=>{var n;const i=zV(this.toPath(e));if(!i)return;const o=jo(i);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==o&&"node_modules"!==o||r.affectedModuleSpecifierCacheProjects.forEach((e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()})),r.refreshScriptInfoRefCount)if(t===i)this.refreshScriptInfosInDirectory(t);else{const e=this.filenameToScriptInfo.get(i);e?Lge(e)&&this.refreshScriptInfo(e):Fo(i)||this.refreshScriptInfosInDirectory(i)}}),1,this.hostConfiguration.watchOptions,EW.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),i=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return gn.assert(!(null==(n=i.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=i.affectedModuleSpecifierCacheProjects)||e.delete(t),i.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||Hi).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=io(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=yo,this.filenameToScriptInfo.forEach((t=>{Lge(t)&&en(t.path,e)&&this.refreshScriptInfo(t)}))}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,o){if(To(e)||kme(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,o);const a=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e));return a||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,o,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a,s){gn.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const c=eme(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(gn.assert(!l.isDynamic),!n&&!(a||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{const r=kme(e);if(gn.assert(To(e)||r||n,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Be(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`)),gn.assert(!To(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Be(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`)),gn.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Be(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`)),!n&&!r&&!(a||this.host).fileExists(e))return;l=new Tme(this.host,e,i,o,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?To(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),o&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!To(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(eme(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const t=this.filenameToScriptInfo.get(e);return t&&t.deferredDelete?void 0:t}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),it(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;const o=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:UQ(o)};const a=e.projectName,s=I1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),o);return o=void 0,i?it(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:Ho(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,(()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!it(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())}),2e3,this.hostConfiguration.watchOptions,EW.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(i){if(n&&it(n.sourceMapFilePath)&&i!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos??(e.sourceInfos=new Set)).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||(i.sourceFileLike={get text(){return gn.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=i.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>i.lineOffsetToPosition(e+1,t+1,n)}),i.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(Zfe(e.file));t&&(t.setOptions(_ge(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,..._ge(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach((e=>e.forEach((e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})))),n===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject((e=>{e.onAutoImportProviderSettingsChanged()}))}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const n=null==(t=pge(e.watchOptions))?void 0:t.watchOptions,r=tR(n,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===n?void 0:n,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){const n=this.hostConfiguration.beforeSubstitution?tR(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?{...n,...e}:e||n}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach((t=>{if(this.openFiles.has(t.path))return;if(!t.fileWatcher)return;const n=ht((()=>this.host.fileExists(t.fileName)?t.deferredDelete?0:1:2));if(e){if(Lge(t)||!t.path.startsWith(e))return;if(2===n()&&t.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${t.fileName}:: ${n()}`)}this.onSourceFileChanged(t,n())}))}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach(((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)})),this.throttledOperations.cancel(oge),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach((e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())})),this.configFileForOpenFiles.clear(),this.externalProjects.forEach((e=>{this.clearSemanticCache(e),e.updateGraph()}));const e=new Map,t=new Set;this.externalProjectToConfiguredProjectMap.forEach(((t,n)=>{const r=`Reloading configured project in external project: ${n}`;t.forEach((t=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(t,r,e):this.reloadConfiguredProjectClearingSemanticCache(t,r,e)}))})),this.openFiles.forEach(((n,r)=>{const i=this.getScriptInfoForPath(r);T(i.containingProjects,qme)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,7,e,t)})),t.forEach((t=>e.set(t,7))),this.inferredProjects.forEach((e=>this.clearSemanticCache(e))),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){gn.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&zme(t)&&t.isRoot(e)&&f(e.containingProjects,(e=>e!==t&&!e.isOrphan()))&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach(((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),5))),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)})),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Rge),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(Zfe(e),t,n,!1,r?Zfe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:Zfe(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(a,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}const l=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(a,5,Nge(c,4),(e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`));if(!l.defaultProject)return;if(l.defaultProject===e)return r;_(l.defaultProject);const u=this.getScriptInfo(i);if(u&&u.containingProjects.length)return u.containingProjects.forEach((e=>{$me(e)&&_(e)})),r;function _(t){(e.originalConfiguredProjects??(e.originalConfiguredProjects=new Set)).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return T(this.externalProjects,(t=>(Rge(t),t.containsScriptInfo(e))))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n,r,i;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);o&&(r=o.seenProjects,i=o.sentConfigDiag,o.defaultProject&&(t=o.defaultProject.getConfigFilePath(),n=o.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(Rge),e.isOrphan()&&(null==r||r.forEach(((t,n)=>{4===t||i.has(n)||this.sendConfigFileDiagEvent(n,e.fileName,!0)})),gn.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),gn.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}findCreateOrReloadConfiguredProject(e,t,n,r,i,o,a,s,c){let l,u=c??this.findConfiguredProjectByProjectName(e,r),_=!1;switch(t){case 0:case 1:case 3:if(!u)return;break;case 2:if(!u)return;l=function(e){return Bge(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(u);break;case 4:case 5:u??(u=this.createConfiguredProject(e,n)),a||({sentConfigFileDiag:_,configFileExistenceInfo:l}=Nge(u,t,i));break;case 6:if(u??(u=this.createConfiguredProject(e,Jge(n))),u.projectService.reloadConfiguredProjectOptimized(u,n,o),l=Mge(u),l)break;case 7:u??(u=this.createConfiguredProject(e,Jge(n))),_=!s&&this.reloadConfiguredProjectClearingSemanticCache(u,n,o),!s||s.has(u)||o.has(u)||(this.setProjectForReload(u,2,n),s.add(u));break;default:gn.assertNever(t)}return{project:u,sentConfigFileDiag:_,configFileExistenceInfo:l,reason:n}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){const i=this.getConfigFileNameForFile(e,t<=3);if(!i)return;const o=wge(t),a=this.findCreateOrReloadConfiguredProject(i,o,function(e){return`Creating possible configured project for ${e.fileName} to open`}(e),n,e.fileName,r);return a&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,a,(t=>`Creating project referenced in solution ${t.projectName} to find possible configured project for ${e.fileName} to open`),n,r)}isMatchedByConfig(e,t,n){if(t.fileNames.some((e=>this.toPath(e)===n.path)))return!0;if(Wk(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:o}=t.options.configFile.configFileSpecs,a=Zfe(Ho(Ro(e),this.currentDirectory));return!!(null==r?void 0:r.some((e=>this.toPath(Ho(e,a))===n.path)))||!!(null==i?void 0:i.length)&&!LR(n.fileName,o,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==i?void 0:i.some((e=>{const t=vk(e,a,"files");return!!t&&kk(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)})))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,o){const a=Tge(e),s=wge(t),c=new Map;let l;const u=new Set;let _,d,p,f;return m(n),{defaultProject:_??d,tsconfigProject:p??f,sentConfigDiag:u,seenProjects:c,seenConfigs:l};function m(t){return function(e,t){return e.sentConfigFileDiag&&u.add(e.project),e.configFileExistenceInfo?g(e.configFileExistenceInfo,e.project,Zfe(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):h(e.project,t)}(t,t.project)??((n=t.project).parsedCommandLine&&Fge(n,n.parsedCommandLine,g,s,r(n),i,o))??function(t){return a?Ege(e,t,m,s,`Creating possible configured project for ${e.fileName} to open`,i,o,!1):void 0}(t.project);var n}function g(n,r,a,_,d,p){if(r){if(c.has(r))return;c.set(r,s)}else{if(null==l?void 0:l.has(p))return;(l??(l=new Set)).add(p)}if(!d.projectService.isMatchedByConfig(a,n.config.parsedCommandLine,e))return void(d.languageServiceEnabled&&d.projectService.watchWildcards(a,n,d));const f=r?Nge(r,t,e.fileName,_,o):d.projectService.findCreateOrReloadConfiguredProject(a,t,_,i,e.fileName,o);if(f)return c.set(f.project,s),f.sentConfigFileDiag&&u.add(f.project),h(f.project,d);gn.assert(3===t)}function h(n,r){if(c.get(n)===t)return;c.set(n,t);const i=a?e:n.projectService.getScriptInfo(e.fileName),o=i&&n.containsScriptInfo(i);if(o&&!n.isSourceOfProjectReferenceRedirect(i.path))return p=r,_=n;!d&&a&&o&&(f=r,d=n)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){const i=1===t,o=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!o)return;const{defaultProject:a,tsconfigProject:s,seenProjects:c}=o;return a&&Ege(e,s,(e=>{c.set(e.project,t)}),t,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,i,n,!0,r),o}loadAncestorProjectTree(e){e??(e=new Set(U(this.configuredProjects.entries(),(([e,t])=>t.initialLoadPending?void 0:e))));const t=new Set,n=Be(this.configuredProjects.values());for(const r of n)Pge(r,(t=>e.has(t)))&&Rge(r),this.ensureProjectChildren(r,e,t)}ensureProjectChildren(e,t,n){var r;if(!W(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const i=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(i)for(const r of i){if(!r)continue;const i=vU(r.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!i)continue;const o=Zfe(r.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);Rge(a),this.ensureProjectChildren(a,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach((e=>this.removeProject(e)))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(const e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach(((t,n)=>{var r,i;(null==(r=t.config)?void 0:r.parsedCommandLine)&&!E(t.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?St:xt)&&(null==(i=t.config.watchedDirectories)||i.forEach(((r,i)=>{sa(i,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${n}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(i,n,t.config,r.watcher,e.fileName))})))}))}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getScriptInfoForPath(eme(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,this.toCanonicalFileName)),a=this.getOrCreateOpenScriptInfo(e,t,n,r,i);o||!a||a.isDynamic||this.tryInvokeWildCardDirectories(a);const{retainProjects:s,...c}=this.assignProjectToOpenedScriptInfo(a);return this.cleanupProjectsAndScriptInfos(s,new Set([a.path]),void 0),this.telemetryOnOpenFile(a),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){const r=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!$me(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach(((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)}))};return null==e||e.forEach(((e,t)=>s(t))),r.size?(this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach(((e,t)=>{(null==n?void 0:n.has(t))||e.forEach(s)})),r.size?(ld(this.openFiles,((e,n)=>{if(null==t?void 0:t.has(n))return;const i=this.getScriptInfoForPath(n);if(T(i.containingProjects,qme))return;const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1);return(null==o?void 0:o.defaultProject)&&(null==o||o.seenProjects.forEach(((e,t)=>s(t))),!r.size)?r:void 0})),r.size?(ld(this.configuredProjects,(e=>{if(r.has(e)&&(a(e)||Ige(e,o))&&(s(e),!r.size))return r})),r):r):r):r;function o(e){return!r.has(e)||a(e)}function a(e){var t,n;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(n=null==(t=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:t.openFilesImpactedByConfigFile)?void 0:n.size)}function s(e){r.delete(e)&&(i(e),Ige(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!Dme(t)&&!Cme(t)){if(!t.sourceMapFilePath)return;let e;if(it(t.sourceMapFilePath)){const n=this.filenameToScriptInfo.get(t.sourceMapFilePath);e=null==n?void 0:n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!ud(e,(e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())})))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(it(t.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(t.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=null==r?void 0:r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach(((t,n)=>e.delete(n)))}}})),e.forEach((e=>this.deleteScriptInfo(e)))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!Ex(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:tge,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(Zfe(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=T(e,(e=>e.projectName===i.getProjectName()));r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,U(this.configuredProjects.values(),(e=>e.deferredClose?void 0:e)),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o,a=!1;if(e)for(const t of e){(r??(r=[])).push(this.getScriptInfoForPath(eme(Zfe(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(Zfe(t.fileName),t.content,mge(t.scriptKind),t.hasMixedContent,t.projectRootPath?Zfe(t.projectRootPath):void 0);(i||(i=[])).push(e)}if(t)for(const e of t){const t=this.getScriptInfo(e.fileName);gn.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(const e of n)a=this.closeClientFile(e,!0)||a;f(r,((e,t)=>e||!i[t]||i[t].isDynamic?void 0:this.tryInvokeWildCardDirectories(i[t]))),null==i||i.forEach((e=>{var t;return null==(t=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:t.forEach(((e,t)=>(o??(o=new Map)).set(t,e)))})),a&&this.assignOrphanScriptInfosToInferredProject(),i?(this.cleanupProjectsAndScriptInfos(o,new Set(i.map((e=>e.path))),void 0),i.forEach((e=>this.telemetryOnOpenFile(e))),this.printProjects()):p(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){const n=Zfe(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const t=new Set(this.externalProjects.map((e=>e.getProjectName())));this.externalProjectToConfiguredProjectMap.forEach(((e,n)=>t.add(n)));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach((e=>this.closeExternalProject(e,!1))),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=uge}applySafeList(e){const t=e.typeAcquisition;gn.assert(!!t,"proj.typeAcquisition should be set by now");const n=this.applySafeListWorker(e,e.rootFiles,t);return(null==n?void 0:n.excludedFiles)??[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const i=r.include||(r.include=[]),o=[],a=n.map((e=>$o(e.fileName)));for(const t of Object.keys(this.safelist)){const n=this.safelist[t];for(const r of a)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(const e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(const i of n.exclude){const a=r.replace(n.match,((...n)=>i.map((r=>"number"==typeof r?it(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),"\\*"):r)).join("")));o.includes(a)||o.push(a)}else{const t=e.escapeFilenameForRegex(r);o.includes(t)||o.push(t)}}}const s=o.map((e=>new RegExp(e,"i")));let c,l;for(let e=0;et.test(a[e]))))u(e);else{if(r.enable){const t=jo(mt(a[e]));if(No(t,"js")){const n=Vt(Xk(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),u(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?u(e):null==c||c.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function u(e){l||(gn.assert(!c),c=n.slice(0,e),l=[]),l.push(a[e])}}openExternalProject(e,t){const n=this.findExternalProjectByProjectName(e.projectFileName);let r,i=[];for(const t of e.rootFiles){const n=Zfe(t.fileName);if(ume(n)){if(0===this.serverMode&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??(r=new Set)).add(t),gn.assert(!t.isClosed())}}else i.push(t)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=Pme(i.map((e=>e.fileName))));const r=this.applySafeListWorker(e,i,t),o=(null==r?void 0:r.excludedFiles)??[];if(i=(null==r?void 0:r.rootFiles)??i,n){n.excludedFiles=o;const r=dge(e.options),a=pge(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,vge);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,vge,r,t,e.options.compileOnSave,null==a?void 0:a.watchOptions),n.updateGraph()}else this.createExternalProject(e.projectFileName,i,e.options,t,o).updateGraph()}t&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),!t.name||As(t.name)||/[\\/]\.\.?(?:$|[\\/])/.test(t.name))this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=Ome.importServicePluginAsync(t,n,this.host,(e=>this.logger.info(e)));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,Ome.importServicePluginSync(t,n,this.host,(e=>this.logger.info(e))))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else f(r,(e=>this.logger.info(e))),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Be(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){gn.assert(void 0===this.currentPluginEnablementPromise);let t=!1;await Promise.all(O(e,(async([e,n])=>{const r=await Promise.all(n);if(e.isClosed()||Vme(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{t=!0;for(const t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}}))),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject((t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration))),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,i=n&&this.toPath(n),o=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,t),a(e);case-1:const n=Uo(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const i=r.getInDirectory(e);i&&o.push(i)}if(i&&i===e)return!0};return SM(t,Ro(e),a),o}getNearestAncestorDirectoryWithPackageJson(e,t){return SM(t,e,(e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(Uo(e,"package.json"))?e:void 0}}))}watchPackageJsonFile(e,t,n){gn.assert(void 0!==n);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(t);if(!r){let n=this.watchFactory.watchFile(e,((e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}}),250,this.hostConfiguration.watchOptions,EW.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??(n.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach((e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)}))}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}};Wge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Hge=Wge;function Gge(e){return void 0!==e.kind}function Kge(e){e.print(!1,!1,!1)}function Xge(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l,u){if(o(n,i,a).set(r,s(c,l,u,void 0,!1)),u)for(const n of l)if(n.isInNodeModules){const r=n.path.substring(0,n.path.indexOf(Wj)+Wj.length-1),i=e.toPath(r);(null==t?void 0:t.has(i))||(t||(t=new Map)).set(i,e.watchNodeModulesForPackageJsonChanges(r))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(void 0,i,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i,a){const c=o(e,n,r),l=c.get(t);l?(l.isBlockedByPackageJsonDependencies=a,l.packageName=i):c.set(t,s(void 0,void 0,void 0,i,a))},clear(){null==t||t.forEach(ux),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return gn.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r,i){return{kind:e,modulePaths:t,moduleSpecifiers:n,packageName:r,isBlockedByPackageJsonDependencies:i}}}function Qge(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(Ro(e))},delete:e=>{t.delete(e),n.set(Ro(e),!0)},getInDirectory:n=>t.get(e.toPath(Uo(n,"package.json")))||void 0,directoryHasPackageJson:t=>i(e.toPath(t)),searchDirectoryAndAncestors:(t,o)=>{SM(o,t,(t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=Uo(t,"package.json");RZ(e,a)?r(a,Uo(o,"package.json")):n.set(o,!0)}))}};function r(r,i){const o=gn.checkDefined($Z(r,e.host));t.set(i,o),n.delete(Ro(i))}function i(e){return t.has(Uo(e,"package.json"))?-1:n.has(e)?0:3}}var Yge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Zge(e,t){if((zme(e)||qme(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function ehe(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:rU(n.messageText,"\n"),code:n.code,category:pi(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:O(n.relatedInformation,the)}}function the(e){return e.file?{span:{start:nhe(Ga(e.file,e.start)),end:nhe(Ga(e.file,e.start+e.length)),file:e.file.fileName},message:rU(e.messageText,"\n"),category:pi(e),code:e.code}:{message:rU(e.messageText,"\n"),category:pi(e),code:e.code}}function nhe(e){return{line:e.line+1,offset:e.character+1}}function rhe(e,t){const n=e.file&&nhe(Ga(e.file,e.start)),r=e.file&&nhe(Ga(e.file,e.start+e.length)),i=rU(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:pi(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:O(e.relatedInformation,the)};return t?{...s,fileName:e.file&&e.file.fileName}:s}var ihe=dme;function ohe(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);return i&&t.info(`${e.type}:${cK(e)}`),`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var ahe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){const n=this.requestId;gn.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate((()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,(()=>this.executeAction(t)),this.performanceData)}),e))}delay(e,t,n){const r=this.requestId;gn.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout((()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,(()=>this.executeAction(n)),this.performanceData)}),t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=Yn)||t.instant(Yn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=Yn)||n.push(Yn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=Yn)||r.pop())}catch(e){null==(i=Yn)||i.popAll(),s=!0,e instanceof Nr?null==(o=Yn)||o.instant(Yn.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=Yn)||a.instant(Yn.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function she(e,t){return{seq:0,type:"event",event:e,body:t}}function che(e){return tt((({textSpan:e})=>e.start+100003*e.length),yY(e))}function lhe(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&ve(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}function uhe(e,t,n){for(const r of nt(e)?e:e.projects)n(r,t);!nt(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach(((e,t)=>{for(const r of e)n(r,t)}))}function _he(e,t,n,r,i,o,a){const s=new Map,c=et();c.enqueue({project:t,location:n}),uhe(e,n.fileName,((e,t)=>{const r={fileName:t,pos:n.pos};c.enqueue({project:e,location:r})}));const l=t.projectService,u=t.getCancellationToken(),_=ht((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r))),d=ht((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetSourcePosition(r))),p=new Set;e:for(;!c.isEmpty();){for(;!c.isEmpty();){if(u.isCancellationRequested())break e;const{project:e,location:t}=c.dequeue();if(s.has(e))continue;if(fhe(e,t))continue;if(Rge(e),!e.containsFile(Zfe(t.fileName)))continue;const n=f(e,t);s.set(e,n??Xfe),p.add(mhe(e))}r&&(l.loadAncestorProjectTree(p),l.forEachEnabledProject((e=>{if(u.isCancellationRequested())return;if(s.has(e))return;const t=i(r,e,_,d);t&&c.enqueue({project:e,location:t})})))}return 1===s.size?Se(s.values()):s;function f(e,t){const n=o(e,t);if(!n||!a)return n;for(const t of n)a(t,(t=>{const n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=l.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||s.has(e)||c.enqueue({project:e,location:n});const i=l.getSymlinkedProjects(r);i&&i.forEach(((e,t)=>{for(const r of e)r.isOrphan()||s.has(r)||c.enqueue({project:r,location:{fileName:t,pos:n.pos}})}))}));return n}}function dhe(e,t){if(t.containsFile(Zfe(e.fileName))&&!fhe(t,e))return e}function phe(e,t,n,r){const i=dhe(e,t);if(i)return i;const o=n();if(o&&t.containsFile(Zfe(o.fileName)))return o;const a=r();return a&&t.containsFile(Zfe(a.fileName))?a:void 0}function fhe(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function mhe(e){return $me(e)?e.canonicalConfigFilePath:e.getProjectName()}function ghe({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function hhe(e,t){return xY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function yhe(e,t){return SY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function vhe(e,t){return kY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}var bhe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],xhe=[...bhe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],She=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const e={version:c};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some((e=>e.projectErrors&&0!==e.projectErrors.length)))return this.requiredResponse(t);const n=O(t,(e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e));return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&L(e.arguments.openFiles,(e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath}))),e.arguments.changedFiles&&L(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:U(ge(e.textChanges),(t=>{const n=gn.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0}))}))),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&L(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:ge(e.changes)}))),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(Zfe(e.arguments.file),e.arguments.fileContent,gge(e.arguments.scriptKindName),e.arguments.projectRootPath?Zfe(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew((t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files))),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew((t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file))),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired(e)},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||xge,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:t}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const n={executeWithRequestId:(e,t,n)=>this.executeWithRequestId(e,t,n),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:(e,t)=>this.sendRequestCompletedEvent(e,t),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new ahe(n);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new Hge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new lme(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:bhe.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:xhe.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}))));break;default:gn.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,t){this.event({request_seq:e,performanceData:t&&khe(t)},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}addDiagnosticsPerformanceData(e,t,n){var r,i;this.performanceData||(this.performanceData={});let o=null==(r=this.performanceData.diagnosticsDuration)?void 0:r.get(e);o||((i=this.performanceData).diagnosticsDuration??(i.diagnosticsDuration=new Map)).set(e,o={}),o[t]=n}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case Gme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Kme:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case Xme:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case Qme:case nge:case rge:case ige:this.event(e.data,e.eventName);break;case Yme:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:O(e.data.diagnostics,(e=>rhe(e,!0)))},e.eventName);break;case Zme:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case ege:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew((t=>this.updateErrorCheck(t,e,100,!0)))),this.event({openFiles:e},Gme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+sK(e.message),e.stack&&(r+="\n"+sK(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=UQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${sK(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${wme[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${cK(e)}`)}writeMessage(e){const t=ohe(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(she(t,e))}doOutput(e,t,n,r,i,o){const a={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&khe(i)};if(r){let t;if(nt(e))a.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:n,...r}=e;a.body=r,t=n}else a.body=e;else a.body=e;t&&(a.metadata=t)}else gn.assert(void 0===e);o&&(a.message=o),this.send(a)}semanticCheck(e,t){var n,r;const i=Gn();null==(n=Yn)||n.push(Yn.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const o=Zge(t,e)?Xfe:t.getLanguageService().getSemanticDiagnostics(e).filter((e=>!!e.file));this.sendDiagnosticsEvent(e,t,o,"semanticDiag",i),null==(r=Yn)||r.pop()}syntacticCheck(e,t){var n,r;const i=Gn();null==(n=Yn)||n.push(Yn.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",i),null==(r=Yn)||r.pop()}suggestionCheck(e,t){var n,r;const i=Gn();null==(n=Yn)||n.push(Yn.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",i),null==(r=Yn)||r.pop()}regionSemanticCheck(e,t,n){var r,i,o;const a=Gn();let s;null==(r=Yn)||r.push(Yn.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.shouldDoRegionCheck(e)&&(s=t.getLanguageService().getRegionSemanticDiagnostics(e,n))?(this.sendDiagnosticsEvent(e,t,s.diagnostics,"regionSemanticDiag",a,s.spans),null==(o=Yn)||o.pop()):null==(i=Yn)||i.pop()}shouldDoRegionCheck(e){var t;const n=null==(t=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:t.textStorage.getLineInfo().getLineCount();return!!(n&&n>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,o){try{const a=gn.checkDefined(t.getScriptInfo(e)),s=Gn()-i,c={file:e,diagnostics:n.map((n=>ehe(e,t,n))),spans:null==o?void 0:o.map((e=>The(e,a)))};this.event(c,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(0===t.length)return;gn.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{if(a++,t.length>a)return e.delay("checkOne",o,l)},c=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i)return this.getPreferences(t).disableSuggestions?s():void e.immediate("suggestionCheck",(()=>{this.suggestionCheck(t,n),s()}))},l=()=>{if(this.changeSeq!==i)return;let n,o=t[a];if(it(o)?o=this.toPendingErrorCheck(o):"ranges"in o&&(n=o.ranges,o=this.toPendingErrorCheck(o.file)),!o)return s();const{fileName:l,project:u}=o;return Rge(u),u.containsFile(l,r)&&(this.syntacticCheck(l,u),this.changeSeq===i)?0!==u.projectService.serverMode?s():n?e.immediate("regionSemanticCheck",(()=>{const t=this.projectService.getScriptInfoForNormalizedPath(l);t&&this.regionSemanticCheck(l,u,n.map((e=>this.getRange({file:l,...e},t)))),this.changeSeq===i&&e.immediate("semanticCheck",(()=>c(l,u)))})):void e.immediate("semanticCheck",(()=>c(l,u))):void 0};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Be(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=Zfe(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=P(Y(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),(t=>!!t.file&&t.file.fileName===e));return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):O(r,(e=>rhe(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:rU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:pi(e),code:e.code,source:e.source,startLocation:e.file&&nhe(Ga(e.file,e.start)),endLocation:e.file&&nhe(Ga(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:O(e.relatedInformation,the)})))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(P(t.getLanguageService().getCompilerOptionsDiagnostics(),(e=>!e.file)),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map((e=>({message:rU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:pi(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:O(e.relatedInformation,the)})))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&Zge(i,o))return Xfe;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>ehe(o,i,e)))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||Xfe,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=yhe(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e}))}getDefinitionAndBoundSpan(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=gn.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:Xfe,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:The(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||Xfe,r).slice();if(0===this.projectService.serverMode&&(!X(a,(e=>Zfe(e.fileName)!==n&&!e.isAmbient))||X(a,(e=>!!e.failedAliasResolution)))){const e=tt((e=>e.textSpan.start),yY(this.host.useCaseSensitiveFileNames));null==a||a.forEach((t=>e.add(t)));const o=r.getNoDtsResolutionProject(n),u=o.getLanguageService(),_=null==(t=u.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter((e=>Zfe(e.fileName)!==n));if(X(_))for(const t of _){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),u.getProgram());if(X(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter((e=>Zfe(e.fileName)!==n&&e.isAmbient));for(const a of X(t)?t:function(){const e=r.getLanguageService(),t=e.getProgram(),o=GX(t.getSourceFile(n),i);return(q_(o)||Xw(o))&&Px(o.parent)&&Lx(o,(t=>{var r;if(t===o)return;const i=null==(r=e.getDefinitionAtPosition(n,t.getStart(),!0,!1))?void 0:r.filter((e=>Zfe(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:Kh(o)})));return X(i)?i:void 0}))||Xfe}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost,!1);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=u.getProgram(),c=gn.checkDefined(i.getSourceFile(t));for(const t of l(a.name,c,i))e.add(t)}}a=Be(e.values())}return a=a.filter((e=>!e.isAmbient&&!e.failedAliasResolution)),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=XT(e);if(s&&e.lastIndexOf(Wj)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),u=r.getCompilationSettings(),_=sM(Ho(c,r.getCurrentDirectory()),aM(l,r,u));if(!_)return;const d=iM(_,{moduleResolution:2},r,r.getModuleResolutionCache()),p=NM(PM(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&X(d,(e=>r.toPath(e)===f)))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${Xk(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=GX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),u=c&&Z_(c,276);return u?l((null==(o=u.propertyName)?void 0:o.text)||u.name.text,a,r):void 0}function l(e,t,n){return q(Nce.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=hh(e);if(t&&r)return hle.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)}))}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map((e=>rhe(e,!0)))}:r}mapJSDocTagInfo(e,t,n){return e?e.map((e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map((e=>e.text)).join("")}})):[]}mapDisplayParts(e,t){return e?e.map((e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)})):[]}mapSignatureHelpItems(e,t,n){return e.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)}))),tags:this.mapJSDocTagInfo(e.tags,t,n)})))}mapDefinitionInfo(e,t){return e.map((e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}})))}static mapToOriginalLocation(e){return e.originalFileName?(gn.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,Rs(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||Xfe,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=yhe(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e}))}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||Xfe,i);return n?a.map((({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i))):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Xfe:this.getDiagnosticsWorker(e,!1,((e,t)=>e.getLanguageService().getSyntacticDiagnostics(t)),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter((e=>!!e.file))),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Xfe:this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSuggestionDiagnostics(t)),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const n=e.ranges.map((e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)})));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map((({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map((({textSpan:e,kind:t,contextSpan:r})=>({...Che(e,r,n),kind:t})))}})):o:Xfe}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map((e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map((({text:e,span:t,file:n})=>{if(t){gn.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}}))}}))}mapCode(e){var t;const n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map((e=>e.map((e=>{const t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})))),c=o.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(c)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){const{project:o}=this.getFileAndProjectWorker(e,t);return Rge(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:n?o.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;const n=this.projectService.getScriptInfo(e);if(!n)return;const r=this.projectService.findDefaultConfiguredProjectWorker(n,3);if(!r)return;let i,o;return r.seenProjects.forEach(((e,t)=>{t!==r.defaultProject&&(3!==e?(i??(i=[])).push(Zfe(t.getConfigFilePath())):(o??(o=[])).push(Zfe(t.getConfigFilePath())))})),null==(t=r.seenConfigs)||t.forEach((e=>(i??(i=[])).push(e))),{notMatchedByConfig:i,notInProject:o,defaultProject:r.defaultProject&&Zfe(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const o=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!o)return n?Xfe:(this.projectService.logErrorForScriptInfoNotFound(e.file),Hfe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(o),r=o.containingProjects,i=this.projectService.getSymlinkedProjects(o)}return r=P(r,(e=>e.languageServiceEnabled&&!e.isOrphan())),n||r&&r.length||i?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),Hfe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return Hfe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=Zfe(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),gn.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o,a){const s=_he(e,t,n,lhe(t,n,!0),phe,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o)),((e,t)=>t(ghe(e))));if(nt(s))return s;const c=[],l=che(a);return s.forEach(((e,t)=>{for(const n of e)l.has(n)||hhe(ghe(n),t)||(c.push(n),l.add(n))})),c}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:The(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:o,originalTextSpan:a,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const o=gn.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...Che(r,i,o),...c})}return Be(t.values())}getReferences(e,t){const n=Zfe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=_he(e,t,n,lhe(t,n,!1),phe,((e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos))),((e,t)=>{t(ghe(e.definition));for(const n of e.references)t(ghe(n))}));if(nt(s))return s;const c=s.get(t);if(void 0===(null==(a=null==(o=null==c?void 0:c[0])?void 0:o.references[0])?void 0:a.isDefinition))s.forEach((e=>{for(const t of e)for(const e of t.references)delete e.isDefinition}));else{const e=che(r);for(const t of c)for(const n of t.references)if(n.isDefinition){e.add(n);break}const t=new Set;for(;;){let n=!1;if(s.forEach(((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)})),!n)break}s.forEach(((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1}))}const l=[],u=che(r);return s.forEach(((e,t)=>{for(const n of e){const e=hhe(ghe(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:Ys(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:vhe(n.definition,t)};let o=T(l,(e=>hY(e.definition,i,r)));o||(o={definition:i,references:[]},l.push(o));for(const e of n.references)u.has(e)||hhe(ghe(e),t)||(u.add(e),o.references.push(e))}})),l.filter((e=>0!==e.references.length))}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),u=l?Q8(l.displayParts):"",_=l&&l.textSpan,d=_?c.positionToLineOffset(_.start).offset:0,p=_?c.getSnapshot().getText(_.start,Rs(_)):"",f=M(o,(e=>e.references.map((e=>Ehe(this.projectService,e,a)))));return{refs:f,symbolName:p,symbolStartOffset:d,symbolDisplayString:u}}getFileReferences(e,t){const n=this.getProjects(e),r=Zfe(e.file),i=this.getPreferences(r),o={fileName:r,pos:0},a=_he(n,this.getDefaultProject(e),o,o,dhe,(e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r))));let s;if(nt(a))s=a;else{s=[];const e=che(this.host.useCaseSensitiveFileNames);a.forEach((t=>{for(const n of t)e.has(n)||(s.push(n),e.add(n))}))}if(!t)return s;const c=s.map((e=>Ehe(this.projectService,e,i)));return{refs:c,symbolName:`"${e.file}"`}}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=Zfe(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map((t=>({textSpan:The(t.textSpan,e),hintSpan:The(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind})))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?_ge(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i));if(!o)return;const a=!!this.getPreferences(n).displayPartsForJSDoc;if(t){const e=Q8(o.displayParts);return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset(Rs(o.textSpan)),displayString:e,documentation:a?this.mapDisplayParts(o.documentation,r):Q8(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,a)}}return a?o:{...o,tags:this.mapJSDocTagInfo(o.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map((e=>this.convertTextChangeToCodeEdit(e,r)))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?_ge(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?_ge(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?_ge(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every((e=>Rs(e.span)({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Rs(e.span)),newText:e.newText?e.newText:""})))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,{...hge(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=q(a.entries,(e=>{if(a.isMemberCompletion||en(e.name.toLowerCase(),s.toLowerCase())){const t=e.replacementSpan?The(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}}));return"completions"===t?(a.metadata&&(c.metadata=a.metadata),c):{...a,optionalReplacementSpan:a.optionalReplacementSpan&&The(a.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=q(e.entryNames,(e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?st(s,Fhe):void 0)}));return t?s?c:c.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):c.map((e=>({...e,codeActions:O(e.codeActions,(e=>this.mapCodeAction(e))),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)})))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=B(nt(n)?n:n.projects,(t=>r(t,e)));return!nt(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach(((e,n)=>{const o=t(n);i.push(...M(e,(e=>r(e,o))))})),ne(i,bt)}(n,(e=>this.projectService.getScriptInfoForPath(e)),t,((e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||iO(t.fileName)&&!function(e){return RS(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}})):Xfe}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||Hfe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,((e,t,n)=>this.host.writeFile(e,t,n)));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map((e=>rhe(e,!0)))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})))}}toPendingErrorCheck(e){const t=Zfe(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);gn.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,H({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){const t=Zfe(e.file),n=void 0===e.tmpfile?void 0:Zfe(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=Go(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return O(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>The(e,t))),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent})))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>The(e,t))),nameSpan:e.nameSpan&&The(e.nameSpan,t),childItems:O(e.childItems,(e=>this.toLocationNavigationTree(e,t)))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){const n=this.getFullNavigateToItems(e);return M(n,t?({project:e,navigateToItems:t})=>t.map((t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Rs(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){gn.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;return e.file||i?uhe(this.getProjects(e),void 0,(e=>c(e))):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>c(e)))),a;function c(e){const t=P(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),(t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const t of n)if(l(t,e))return!1;return n.push(e),!0}(t)&&!hhe(ghe(t),e)));t.length&&a.push({project:e,navigateToItems:t})}function l(e,t){return e===t||!(!e||!t)&&e.containerKind===t.containerKind&&e.containerName===t.containerName&&e.fileName===t.fileName&&e.isCaseSensitive===t.isCaseSensitive&&e.kind===t.kind&&e.kindModifiers===t.kindModifiers&&e.matchKind===t.matchKind&&e.name===t.name&&e.textSpan.start===t.textSpan.start&&e.textSpan.length===t.textSpan.length}}getSupportedCodeFixes(e){if(!e)return Z8();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||Hfe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),gn.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map((e=>({...e,actions:e.actions.map((e=>({...e,range:e.range?{start:nhe({line:e.range.start.line,character:e.range.start.offset}),end:nhe({line:e.range.end.line,character:e.range.end.offset})}:void 0})))})))}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;return void 0!==e&&void 0!==t&&(i=whe(UQ(r.getScriptInfoForNormalizedPath(Zfe(e)).getSnapshot()),e,t,n)),{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t)))))}getPasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);if(kme(t))return;const r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map((t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(Zfe(e.copiedFrom.file)))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t)))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){gn.assert("file"===e.scope.type);const{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){const n=Zfe(e.oldFilePath),r=Zfe(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const e of t)a.has(e.fileName)||(s.push(e),c.push(e.fileName));for(const e of c)a.add(e)})),t?s.map((e=>this.mapTextChangeToCodeEdit(e))):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){const i=r.getLanguageService(),s=[...i.getSyntacticDiagnostics(n),...i.getSemanticDiagnostics(n),...i.getSuggestionDiagnostics(n)].map((e=>Hs(o,a-o,e.start,e.length)&&e.code)),c=e.errorCodes.find((e=>!s.includes(e)));throw void 0!==c&&(t.message=`BADCLIENT: Bad error code, ${c} not found in range ${o}..${a} (found: ${s.join(", ")}); could have caused this error:\n${t.message}`),t}return t?s.map((e=>this.mapCodeFixAction(e))):s}getCombinedCodeFix({scope:e,fixId:t},n){gn.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const e of rt(t)){const{file:t,project:n}=this.getFileAndProject(e);n.getLanguageService().applyCodeActionCommand(e,this.getFormatOptions(t)).then((e=>{}),(e=>{}))}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map((e=>this.mapTextChangeToCodeEdit(e)))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),gn.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map((e=>function(e,t){return{start:Dhe(t,e.span.start),end:Dhe(t,Rs(e.span)),newText:e.newText}}(e,t)))}:function(e){gn.assert(1===e.textChanges.length);const t=xe(e.textChanges);return gn.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map((e=>The(e,i))):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;const o=r.filter((e=>!e.includes("lib.d.ts")));if(0===o.length)return;const a=[],s=[],c=[],l=[],u=Zfe(n),_=this.projectService.ensureDefaultProjectForFile(u);for(const e of o)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?a.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):iO(e)?l.push(e):c.push(e);const d=[...a,...s,...c,...l].map((e=>({fileName:e,project:_})));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=gn.checkDefined(this.projectService.getScriptInfo(r));return O(n,(e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a}))}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}mapSelectionRange(e,t){const n={textSpan:The(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=Zfe(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),Hfe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:The(e.span,t),selectionSpan:The(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>The(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>The(e,t)))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&QZ(o,(e=>this.toProtocolCallHierarchyItem(e)))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyIncomingCall(e)))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyOutgoingCall(e,r)))}getCanonicalFileName(e){return Go(this.host.useCaseSensitiveFileNames?e:mt(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){gn.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){gn.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){const r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,(()=>t(e)),void 0);return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${cK(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s;let c;this.gcTimer.scheduleCollect();const l=this.performanceData;let u,_;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${sK(this.toStringMessage(e))}`));try{u=this.parseMessage(e),_=u.arguments&&u.arguments.file?u.arguments:void 0,null==(t=Yn)||t.instant(Yn.Phase.Session,"request",{seq:u.seq,command:u.command}),null==(n=Yn)||n.push(Yn.Phase.Session,"executeCommand",{seq:u.seq,command:u.command},!0);const{response:o,responseRequired:a,performanceData:s}=this.executeCommand(u);if(null==(r=Yn)||r.pop(),this.logger.hasLevel(2)){const e=(d=this.hrtime(c),(1e9*d[0]+d[1])/1e6).toFixed(4);a?this.logger.perftrc(`${u.seq}::${u.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${u.seq}::${u.command}: async elapsed time (in milliseconds) ${e}`)}null==(i=Yn)||i.instant(Yn.Phase.Session,"response",{seq:u.seq,command:u.command,success:!!o}),o?this.doOutput(o,u.command,u.seq,!0,s):a&&this.doOutput(void 0,u.command,u.seq,!1,s,"No content available.")}catch(t){if(null==(o=Yn)||o.popAll(),t instanceof Nr)return null==(a=Yn)||a.instant(Yn.Phase.Session,"commandCanceled",{seq:null==u?void 0:u.seq,command:null==u?void 0:u.command}),void this.doOutput({canceled:!0},u.command,u.seq,!0,this.performanceData);this.logErrorWorker(t,this.toStringMessage(e),_),null==(s=Yn)||s.instant(Yn.Phase.Session,"commandError",{seq:null==u?void 0:u.seq,command:null==u?void 0:u.command,message:t.message}),this.doOutput(void 0,u?u.command:"unknown",u?u.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=l}var d}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function khe(e){const t=e.diagnosticsDuration&&Be(e.diagnosticsDuration,(([e,t])=>({...t,file:e})));return{...e,diagnosticsDuration:t}}function The(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Rs(e))}}function Che(e,t,n){const r=The(e,n),i=t&&The(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function Dhe(e,t){return Gge(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function whe(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=Va(za(i),n);return{line:o+1,offset:a+1}}function Ehe(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=gn.checkDefined(e.getScriptInfo(t)),c=Che(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Rs(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function Fhe(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var Nhe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(Nhe||{}),Phe=class{constructor(){this.goSubtree=!0,this.lineIndex=new Rhe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new jhe,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const n=Rhe.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let t=1;t=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new jhe;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(o);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new Mhe(""):new jhe}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},Ahe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return nc(Ys(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Ihe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new Ahe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new Lhe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return Ys(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return ic(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new Lhe(0,n,new Rhe);n.versions[n.currentVersion]=r;const i=Rhe.linesFromText(t);return r.index.load(i.lines),n}};Ihe.changeNumberThreshold=8,Ihe.changeLengthThreshold=256,Ihe.maxVersions=8;var Ohe=Ihe,Lhe=class e{constructor(e,t,n,r=Xfe){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?rc:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},Rhe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e0&&e{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return gn.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new Phe;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());gn.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new jhe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},jhe=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(rt)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);t-=n.charCount(),e+=n.lineCount()}const n=this.lineCount();return 0===n?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:gn.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,i=++t;if(t=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})}));return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=Yfe(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${cK(r)}`),this.activeRequestCount0?this.activeRequestCount--:gn.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case nK:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout((()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${cK(t)}`),this.installer.send(t)}),e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};Bhe.requestDelayMillis=100;var Jhe=Bhe,zhe={};n(zhe,{ActionInvalidate:()=>XG,ActionPackageInstalled:()=>QG,ActionSet:()=>KG,ActionWatchTypingLocations:()=>nK,Arguments:()=>HG,AutoImportProviderProject:()=>Mme,AuxiliaryProject:()=>Rme,CharRangeSection:()=>Nhe,CloseFileWatcherEvent:()=>ige,CommandNames:()=>ihe,ConfigFileDiagEvent:()=>Yme,ConfiguredProject:()=>Bme,ConfiguredProjectLoadKind:()=>Dge,CreateDirectoryWatcherEvent:()=>rge,CreateFileWatcherEvent:()=>nge,Errors:()=>Hfe,EventBeginInstallTypes:()=>ZG,EventEndInstallTypes:()=>eK,EventInitializationFailed:()=>tK,EventTypesRegistry:()=>YG,ExternalProject:()=>Jme,GcTimer:()=>lme,InferredProject:()=>Lme,LargeFileReferencedEvent:()=>Qme,LineIndex:()=>Rhe,LineLeaf:()=>Mhe,LineNode:()=>jhe,LogLevel:()=>Kfe,Msg:()=>Qfe,OpenFileInfoTelemetryEvent:()=>tge,Project:()=>Ome,ProjectInfoTelemetryEvent:()=>ege,ProjectKind:()=>wme,ProjectLanguageServiceStateEvent:()=>Zme,ProjectLoadingFinishEvent:()=>Xme,ProjectLoadingStartEvent:()=>Kme,ProjectService:()=>Hge,ProjectsUpdatedInBackgroundEvent:()=>Gme,ScriptInfo:()=>Tme,ScriptVersionCache:()=>Ohe,Session:()=>She,TextStorage:()=>Sme,ThrottledOperations:()=>cme,TypingsInstallerAdapter:()=>Jhe,allFilesAreJsOrDts:()=>Nme,allRootFilesAreJsOrDts:()=>Fme,asNormalizedPath:()=>tme,convertCompilerOptions:()=>dge,convertFormatOptions:()=>_ge,convertScriptKindName:()=>gge,convertTypeAcquisition:()=>fge,convertUserPreferences:()=>hge,convertWatchOptions:()=>pge,countEachFileTypes:()=>Eme,createInstallTypingsRequest:()=>Yfe,createModuleSpecifierCache:()=>Xge,createNormalizedPathMap:()=>nme,createPackageJsonCache:()=>Qge,createSortedArray:()=>sme,emptyArray:()=>Xfe,findArgument:()=>iK,formatDiagnosticToProtocol:()=>rhe,formatMessage:()=>ohe,getBaseConfigFileName:()=>ume,getDetailWatchInfo:()=>Oge,getLocationInNewDocument:()=>whe,hasArgument:()=>rK,hasNoTypeScriptSource:()=>Pme,indent:()=>sK,isBackgroundProject:()=>Ume,isConfigFile:()=>Gge,isConfiguredProject:()=>$me,isDynamicFileName:()=>kme,isExternalProject:()=>qme,isInferredProject:()=>zme,isInferredProjectName:()=>rme,isProjectDeferredClose:()=>Vme,makeAutoImportProviderProjectName:()=>ome,makeAuxiliaryProjectName:()=>ame,makeInferredProjectName:()=>ime,maxFileSize:()=>Hme,maxProgramSizeForNonTsFiles:()=>Wme,normalizedPathToPath:()=>eme,nowString:()=>oK,nullCancellationToken:()=>Yge,nullTypingsInstaller:()=>xge,protocol:()=>_me,scriptInfoIsContainedByBackgroundProject:()=>Cme,scriptInfoIsContainedByDeferredClosedProject:()=>Dme,stringifyIndented:()=>cK,toEvent:()=>she,toNormalizedPath:()=>Zfe,tryConvertScriptKindName:()=>mge,typingsInstaller:()=>Jfe,updateProjectIfDirty:()=>Rge}),"undefined"!=typeof console&&(gn.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return t},set exports(n){t=n,e.exports&&(e.exports=n)}})),ri.exports;var e,t}function $i(){if(Ri)return ni;Ri=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.readTSConfig=async function(n,i="tsconfig.json"){const o=[];let u;try{u=zi()}catch{try{u=x(n+"/node_modules/typescript")}catch{}}if(!u)return void(0,r.memoizedWarn)("Could not find typescript. Please ensure that typescript is a devDependency. Falling back to compiled source.");const _=async t=>{const n=await l(t,(async t=>(await(0,e.readdir)(t)).includes("package.json")));if(n)try{const r=await(0,e.readFile)(t,"utf8"),i=u?.parseConfigFileTextToJson(t,r).config;if(o.push(i),i.extends){if(i.extends.startsWith(".")){const e=c(n,i.extends);return e?_(e):void 0}const e=c(n,i.extends);if(e)return _(e)}return i}catch(e){s(e)}};return await _((0,t.join)(n,i)),{compilerOptions:(0,a.mergeNestedObjects)(o,"compilerOptions"),"ts-node":(0,a.mergeNestedObjects)(o,"ts-node")}};const e=n,t=i,r=Zr(),o=kn(),a=C(),s=(0,o.makeDebug)("read-tsconfig");function c(e,t){try{return require.resolve(t,{paths:[e]})}catch{}}async function l(e,n){let r;try{r=await n(e)}catch{r=!1}if(r)return e;const i=(0,t.dirname)(e);return i!==e?l(i,n):void 0}return ni}var qi,Ui,Vi={};function Wi(){if(qi)return Vi;qi=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.collectUsableIds=void 0,Vi.makeDebug=function(...t){return(n,...r)=>(0,e.getLogger)(["config",...t].join(":")).debug(n,...r)},Vi.getPermutations=t,Vi.getCommandIdPermutations=function(e){return t(e.split(":")).flatMap((e=>e.join(":")))};const e=kn();function t(e){if(0===e.length)return[];if(1===e.length)return[e];const n=[],r=t(e.slice(1)),i=e[0];for(let e=0,t=r.length;enew Set(e.flatMap((e=>e.split(":").map(((e,t,n)=>n.slice(0,t+1).join(":")))))),Vi}function Hi(){return Ui||(Ui=1,function(t){var r=Qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TS_CONFIGS=void 0,t.tsPath=async function(e,n,r){const i=r?.options.isRoot?r:c.default.getInstance().get("rootPlugin");if(!n)return n;n=n.startsWith(e)?n:(0,a.join)(e,n);const h=u.settings.enableAutoTranspile??u.settings.tsnodeEnabled;if(!1===h)return f(`Skipping typescript path lookup for ${e} because enableAutoTranspile is explicitly set to false`),n;const y=(0,p.isProd)();if(void 0===h&&y&&"link"!==r?.type)return f(`Skipping typescript path lookup for ${e} because NODE_ENV is NOT "test" or "development"`),n;if(function(e,t,n){return(n||"commonjs"===e?.moduleType)&&"module"===t?.moduleType&&!t?.pjson.devDependencies?.tsx}(i,r,y)){f(`Skipping typescript path lookup for ${e} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${i?.moduleType})`);const t=process.env.OCLIF_DISABLE_LINKED_ESM_WARNING&&(0,p.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);return"link"!==r?.type||t||(0,l.memoizedWarn)(`${r?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`),n}if(function(e,t,n){if("module"!==t?.moduleType||n)return!1;const r=Number.parseInt(process.version.replace("v","").split(".")[0],10);return"ts-node"===g&&r>=20}(0,r,y))return f(`Skipping typescript path lookup for ${e} because ts-node is run in node version ${process.version}"`),(0,l.memoizedWarn)("ts-node executable cannot transpile ESM in Node 20. Existing compiled source will be used instead. See https://github.com/oclif/core/issues/817."),n;try{return await async function(e,n,r){const i=await async function(e){try{if(t.TS_CONFIGS[e])return t.TS_CONFIGS[e];const n=await(0,d.readTSConfig)(e);if(!n)return;return f("tsconfig: %O",n),t.TS_CONFIGS[e]=n,t.TS_CONFIGS[e]}catch(t){if(function(e){return"code"in e&&"ENOENT"===e.code}(t))return;f(`Could not parse tsconfig.json. Skipping typescript path lookup for ${e}.`),(0,l.memoizedWarn)(`Could not parse tsconfig.json for ${e}. Falling back to compiled source.`)}}(e);if(!i)return n;f(`Determining path for ${n}`),"bun"===g?f(`Skipping ts-node registration for ${e} because the runtime is: ${g}`):(await async function(e,t){if(m.has(e))return;try{const n="module"===t?"tsx/esm/api":"tsx/cjs/api",r=require.resolve(n,{paths:[e]});if(!r)return;f("registering tsx at",e),f("tsx path:",r);const{href:i}=(0,s.pathToFileURL)(r);f("tsx href:",i);const{register:o}=await import(i);f("Successfully imported tsx"),o(),m.add(e)}catch(t){f(`Could not find tsx. Skipping tsx registration for ${e}.`),f(t)}}(e,r?.moduleType),await async function(e,t){if(m.has(e))return;f("registering ts-node at",e);const n=require.resolve("ts-node",{paths:[e,__dirname]});let r;f("ts-node path:",n);try{r=x(n),f("Successfully required ts-node")}catch(t){return f(`Could not find ts-node at ${n}. Skipping ts-node registration for ${e}.`),f(t),void(0,l.memoizedWarn)(`Could not find ts-node at ${n}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`)}const i=[(0,a.join)(e,"node_modules","@types")],o=[];if(t.compilerOptions.rootDirs)for(const n of t.compilerOptions.rootDirs)o.push((0,a.join)(e,n));else t.compilerOptions.rootDir?o.push((0,a.join)(e,t.compilerOptions.rootDir)):t.compilerOptions.baseUrl?o.push((0,a.join)(e,t.compilerOptions.baseUrl)):o.push((0,a.join)(e,"src"));const{baseUrl:s,rootDir:c,...u}=t.compilerOptions,_={compilerOptions:{...u,rootDirs:o,typeRoots:i},...t["ts-node"],cwd:e,esm:t["ts-node"]?.esm??!0,experimentalSpecifierResolution:t["ts-node"]?.experimentalSpecifierResolution??"explicit",scope:!0,scopeDir:e,skipProject:!0,transpileOnly:!0};f("ts-node options: %O",_),r.register(_),m.add(e)}(e,i));const{baseUrl:c,outDir:u,rootDir:h,rootDirs:y}=i.compilerOptions,v=h??(y??[])[0]??c;if(!v)return f(`no rootDir, rootDirs, or baseUrl specified in tsconfig.json. Returning default path ${n}`),n;if(!u)return f(`no outDir specified in tsconfig.json. Returning default path ${n}`),n;const b=(0,a.join)(e,u),S=(0,a.join)(e,v),k=(0,a.relative)(b,n),T=(0,a.join)(S,k).replace(/\.js$/,"");if(f(`lib dir: ${b}`),f(`src dir: ${S}`),f(`src directory to find: ${T}`),(0,_.existsSync)(T))return f(`Found source directory for ${n} at ${T}`),T;const C=await Promise.all([(0,o.access)(`${T}.ts`).then((()=>`${T}.ts`)).catch((()=>!1)),(0,o.access)(`${T}.tsx`).then((()=>`${T}.tsx`)).catch((()=>!1))]);if(C.some(Boolean))return f(`Found source file for ${n} at ${T}`),T;f(`No source file found. Returning default path ${n}`),(0,p.isProd)()||(0,l.memoizedWarn)(`Could not find source for ${n} based on tsconfig. Defaulting to compiled source.`);return n}(e,n,r)}catch(e){return f(e),n}};const o=n,a=i,s=e,c=r(Mt()),l=Zr(),u=vr(),_=Ot(),d=$i(),p=C(),f=(0,Wi().makeDebug)("ts-path");t.TS_CONFIGS={};const m=new Set;const g=process.execPath.split(a.sep).includes("bun")?"bun":0===process.execArgv.length?"node":"--require"===process.execArgv[0]&&process.execArgv[1].split(a.sep).includes("ts-node")||process.execArgv[0].split(a.sep).includes("ts-node")?"ts-node":"--require"===process.execArgv[0]&&process.execArgv[1].split(a.sep).includes("tsx")?"tsx":"node"}(Qr)),Qr}var Gi,Ki,Xi,Qi,Yi,Zi,eo,to,no,ro,io={},oo={exports:{}};function ao(){if(Ki)return Gi;Ki=1;const e=a;return Gi=function(t){let n=e.basename(t);return"\\"===e.sep&&(n=n.toLowerCase()),"node_modules"===n}}function so(){return Qi?Xi:(Qi=1,Xi=new Map)}function co(){if(Zi)return Yi;Zi=1;const e=a,{promisify:t}=u,n=t(o.readFile),r=ao(),i=so(),s=new Map;async function c(t){if(i.has(t))return i.get(t);if(s.has(t))return s.get(t);const o=async function(t){if(r(t))return"commonjs";try{return JSON.parse(await n(e.resolve(t,"package.json"))).type||"commonjs"}catch(e){}const i=e.dirname(t);return i===t?"commonjs":c(i)}(t);s.set(t,o);const a=await o;return i.set(t,a),s.delete(t),a}return Yi=function(t){return c(e.resolve(e.dirname(t)))}}function lo(){if(to)return eo;to=1;const e=a,{readFileSync:t}=o,n=ao(),r=so();function i(o){if(r.has(o))return r.get(o);const a=function(r){if(n(r))return"commonjs";try{return JSON.parse(t(e.resolve(r,"package.json"))).type||"commonjs"}catch(e){}const o=e.dirname(r);return o===r?"commonjs":i(o)}(o);return r.set(o,a),a}return eo=function(t){return i(e.resolve(e.dirname(t)))}}function uo(){if(no)return oo.exports;no=1;const e=co(),t=lo();return oo.exports=t=>e(t),oo.exports.sync=t,oo.exports}function _o(){if(ro)return io;ro=1,Object.defineProperty(io,"__esModule",{value:!0}),io.load=async function(e,t){let n,r;try{return({filePath:n,isESM:r}=await f(e,t)),r?await import((0,o.pathToFileURL)(n).href):x(n)}catch(e){d(e,r,n??t)}},io.loadWithData=async function(e,t){let n,r;try{({filePath:n,isESM:r}=await f(e,t));return{filePath:n,isESM:r,module:r?await import((0,o.pathToFileURL)(n).href):x(n)}}catch(e){d(e,r,n??t)}},io.loadWithDataFromManifest=async function(e,t){const{id:n,isESM:i,relativePath:a}=e;if(!a)throw new s.ModuleLoadError(`Cached command ${n} does not have a relative path`);if(void 0===i)throw new s.ModuleLoadError(`Cached command ${n} does not have the isESM property set`);const c=(0,r.join)(t,a.join(r.sep));try{return{filePath:c,isESM:i,module:i?await import((0,o.pathToFileURL)(c).href):x(c)}}catch(e){d(e,i,c??t)}},io.isPathModule=p;const n=t,r=i,o=e,a=Hi(),s=Ur(),c=Ot(),l=uo(),u=[".ts",".js",".mjs",".cjs",".mts",".cts",".tsx",".jsx"],_=e=>void 0!==e.type;function d(e,t,n){if("MODULE_NOT_FOUND"===e.code||"ERR_MODULE_NOT_FOUND"===e.code)throw new s.ModuleLoadError(`${t?"import()":"require"} failed to load ${n}: ${e.message}`);throw e}function p(e){switch((0,r.extname)(e).toLowerCase()){case".js":case".jsx":case".ts":case".tsx":return"module"===l.sync(e);case".mjs":case".mts":return!0;default:return!1}}async function f(e,t){let i,o;try{o=require.resolve(t),i=p(o)}catch{o=(_(e)?await(0,a.tsPath)(e.root,t,e):await(0,a.tsPath)(e.root,t))??t;let s=!1,l=!1;if((0,c.existsSync)(o)){s=!0;try{(0,n.lstatSync)(o)?.isDirectory?.()&&(s=!1,l=!0)}catch{}}if(!s){let e=m(o);!e&&l&&(e=m((0,r.join)(o,"index"))),e&&(o=e)}i=p(o)}return{filePath:o,isESM:i}}function m(e){for(const t of u){const n=`${e}${t}`;if((0,c.existsSync)(n))return n}return null}return io}var po,fo={};function mo(){return po||(po=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.SINGLE_COMMAND_CLI_SYMBOL=void 0,fo.SINGLE_COMMAND_CLI_SYMBOL=Symbol("SINGLE_COMMAND_CLI").toString()),fo}var go,ho={};function yo(){if(go)return ho;go=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.cacheDefaultValue=void 0;return ho.cacheDefaultValue=async(e,t)=>{if(!t||!e.noCacheDefault){if("function"==typeof e.defaultHelp)try{return await e.defaultHelp({flags:{},options:e})}catch{return}if("function"!=typeof e.default)return e.default;try{return await e.default({flags:{},options:e})}catch{}}},ho}var vo,bo={};function xo(){if(vo)return bo;return vo=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.toStandardizedId=function(e,t){return e.replaceAll(new RegExp(t.topicSeparator,"g"),":")},bo.toConfiguredId=function(e,t){return e.replaceAll(new RegExp(":","g"),t.topicSeparator||":")},bo}var So,ko,To={},Co={},Do={};function wo(){if(So)return Do;So=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.ActionBase=void 0;const e=r,t=C();return Do.ActionBase=class{std="stderr";stdmocks;type;stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write};get output(){return this.globals.output}set output(e){this.globals.output=e}get running(){return Boolean(this.task)}get status(){return this.task?this.task.status:void 0}set status(e){const{task:t}=this;t&&t.status!==e&&(this._updateStatus(e,t.status),t.status=e)}get task(){return this.globals.action.task}set task(e){this.globals.action.task=e}pause(e,t){const{task:n}=this,r=n&&n.active;n&&r&&(this._pause(t),this._stdout(!1),n.active=!1);const i=e();return n&&r&&this._resume(),i}async pauseAsync(e,t){const{task:n}=this,r=n&&n.active;n&&r&&(this._pause(t),this._stdout(!1),n.active=!1);const i=await e();return n&&r&&this._resume(),i}start(e,t,n={}){this.std=n.stdout?"stdout":"stderr";const r={action:e,active:Boolean(this.task&&this.task.active),status:t};this.task=r,this._start(n),r.active=!0,this._stdout(!0)}stop(e="done"){const{task:t}=this;t&&(this._stop(e),t.active=!1,this.task=void 0,this._stdout(!1))}_flushStdout(){try{let e,t="";for(;this.stdmocks&&this.stdmocks.length>0;){const n=this.stdmocks.shift();e=n[0],this._write(e,n[1]),t+=n[1][0].toString("utf8")}t&&e&&"\n"!==t.at(-1)&&this._write(e,"\n")}catch(t){this._write("stderr",(0,e.inspect)(t))}}_pause(e){throw new Error("not implemented")}_resume(){this.task&&this.start(this.task.action,this.task.status)}_start(e){throw new Error("not implemented")}_stdout(t){try{if(t){if(this.stdmocks)return;this.stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write},this.stdmocks=[],process.stdout.write=(...e)=>(this.stdmocks.push(["stdout",e]),!0),process.stderr.write=(...e)=>(this.stdmocks.push(["stderr",e]),!0)}else{if(!this.stdmocks)return;delete this.stdmocks,process.stdout.write=this.stdmockOrigs.stdout,process.stderr.write=this.stdmockOrigs.stderr}}catch(t){this._write("stderr",(0,e.inspect)(t))}}_stop(e){throw new Error("not implemented")}_updateStatus(e,t){}_write(e,n){switch(e){case"stdout":this.stdmockOrigs.stdout.apply(process.stdout,(0,t.castArray)(n));break;case"stderr":this.stdmockOrigs.stderr.apply(process.stderr,(0,t.castArray)(n));break;default:throw new Error(`invalid std: ${e}`)}}get globals(){b.ux=b.ux||{};const e=b.ux;return e.action=e.action||{},e}},Do}var Eo,Fo,No={},Po={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}};var Ao,Io,Oo={exports:{}};function Lo(){return Ao||(Ao=1,function(e){const t=e.exports;e.exports.default=t;const n="[",r="]",i="",o=";",a="Apple_Terminal"===process.env.TERM_PROGRAM;t.cursorTo=(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");return"number"!=typeof t?n+(e+1)+"G":n+(t+1)+";"+(e+1)+"H"},t.cursorMove=(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");let r="";return e<0?r+=n+-e+"D":e>0&&(r+=n+e+"C"),t<0?r+=n+-t+"A":t>0&&(r+=n+t+"B"),r},t.cursorUp=(e=1)=>n+e+"A",t.cursorDown=(e=1)=>n+e+"B",t.cursorForward=(e=1)=>n+e+"C",t.cursorBackward=(e=1)=>n+e+"D",t.cursorLeft="",t.cursorSavePosition=a?"7":"",t.cursorRestorePosition=a?"8":"",t.cursorGetPosition="",t.cursorNextLine="",t.cursorPrevLine="",t.cursorHide="[?25l",t.cursorShow="[?25h",t.eraseLines=e=>{let n="";for(let r=0;r[r,"8",o,o,t,i,e,r,"8",o,o,i].join(""),t.image=(e,t={})=>{let n=`${r}1337;File=inline=1`;return t.width&&(n+=`;width=${t.width}`),t.height&&(n+=`;height=${t.height}`),!1===t.preserveAspectRatio&&(n+=";preserveAspectRatio=0"),n+":"+e.toString("base64")+i},t.iTerm={setCwd:(e=process.cwd())=>`${r}50;CurrentDir=${e}${i}`,annotation:(e,t={})=>{let n=`${r}1337;`;const o=void 0!==t.x,a=void 0!==t.y;if((o||a)&&(!o||!a||void 0===t.length))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?n+=(o?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):n+=e,n+i}}}(Oo)),Oo.exports}function Ro(){if(Io)return No;Io=1;var e=No.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(No,"__esModule",{value:!0});const t=e(Cr()),n=e(function(){if(Fo)return Eo;Fo=1;const e=Object.assign({},Po),t=Object.keys(e);return Object.defineProperty(e,"random",{get(){const n=Math.floor(Math.random()*t.length),r=t[n];return e[r]}}),Eo=e}()),r=e(Mt()),i=br(),o=Ar(),a=wo(),s=Lo();class c extends a.ActionBase{type="spinner";color="magenta";frameIndex;frames;spinner;constructor(){super(),this.frames=this.getFrames(),this.frameIndex=0}colorize(e){return(0,o.colorize)(this.color,e)}_frame(){const e=this.frames[this.frameIndex];return this.frameIndex=++this.frameIndex%this.frames.length,this.colorize(e)}_lines(e){return t.default.strip(e).split("\n").map((e=>Math.ceil(e.length/i.errtermwidth))).reduce(((e,t)=>e+t),0)}_pause(e){this.spinner&&clearInterval(this.spinner),this._reset(),e&&this._render(` ${e}`),this.output=void 0}_render(e){if(!this.task)return;this._reset(),this._flushStdout();const t="spinner"===e?` ${this._frame()}`:e||"",n=this.task.status?` ${this.task.status}`:"";this.output=`${this.task.action}...${t}${n}\n`,this._write(this.std,this.output)}_reset(){if(!this.output)return;const e=this._lines(this.output);this._write(this.std,s.cursorLeft+s.cursorUp(e)+s.eraseDown),this.output=void 0}_start(e){this.color=r.default.getInstance().get("config")?.theme?.spinner??this.color,e.style&&(this.frames=this.getFrames(e)),this._reset(),this.spinner&&clearInterval(this.spinner),this._render(),this.spinner=setInterval((e=>this._render.bind(this)(e)),"win32"===process.platform?500:100,"spinner");this.spinner.unref()}_stop(e){this.task&&(this.task.status=e),this.spinner&&clearInterval(this.spinner),this._render(),this.output=void 0}getFrames(e){return e?.style?n.default[e.style].frames:n.default["win32"===process.platform?"line":"dots2"].frames}}return No.default=c,No}var jo,Mo,Bo={};function Jo(){if(jo)return Bo;jo=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.stringifyInput=r,Bo.tokenize=i,Bo.default=function(t,n){const r={...n,pretty:n?.pretty??!0};return i(t,r).reduce(((t,r)=>t+(0,e.colorize)(n?.theme?.[r.type],r.value)),"")};const e=Ar(),t=[{regex:/^\s+/,tokenType:"whitespace"},{regex:/^[{}]/,tokenType:"brace"},{regex:/^[[\]]/,tokenType:"bracket"},{regex:/^:/,tokenType:"colon"},{regex:/^,/,tokenType:"comma"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"number"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"key"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"string"},{regex:/^true|^false/,tokenType:"boolean"},{regex:/^null/,tokenType:"null"}];function n(e,t,n){return JSON.stringify(e,function(e,t){const n=[],r=[];t||(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"});return function(i,o){if(n.length>0){const e=n.indexOf(this);~e?n.splice(e+1):n.push(this),~e?r.splice(e,Number.POSITIVE_INFINITY,i):r.push(i),n.includes(o)&&(o=t.call(this,i,o))}else n.push(o);return e?e.call(this,i,o):o}}(t,t),n)}function r(e,t){return t?.pretty?n("string"==typeof e?JSON.parse(e):e,void 0,2):"string"==typeof e?e:n(e)}function i(e,n){let i=r(e,n);const a=[];let s=!1;do{for(const e of t){const t=e.regex.exec(i);if(t){a.push({type:e.tokenType,value:t[0]}),i=i.slice(t[0].length),s=!0;break}}}while(o(i,s));return a}function o(e,t){return(e?.length??0)>0&&t}return Bo}function zo(){return Mo||(Mo=1,function(e){var t=To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ux=e.action=e.stdout=e.stderr=e.colorize=e.colorizeJson=e.warn=e.exit=e.error=void 0;const n=Mr(),r=Hr(),i=Zr(),o=t(function(){if(ko)return Co;ko=1,Object.defineProperty(Co,"__esModule",{value:!0});const e=wo();class t extends e.ActionBase{type="simple";_flush(){this._write(this.std,"\n"),this._flushStdout()}_pause(e){e?this._updateStatus(e):this._flush()}_render(e,t){this.task&&(this.task.active&&this._flush(),this._write(this.std,t?`${e}... ${t}`:`${e}...`))}_resume(){}_start(){this.task&&this._render(this.task.action,this.task.status)}_stop(e){this.task&&this._updateStatus(e,this.task.status,!0)}_updateStatus(e,t,n=!1){this.task&&(this.task.active&&!t?this._write(this.std,` ${e}`):this._write(this.std,`${this.task.action}... ${e}`),!n&&t||this._flush())}}return Co.default=t,Co}()),a=t(Ro()),s=t(Jo()),c=Ar(),l=Dn();var u=Mr();Object.defineProperty(e,"error",{enumerable:!0,get:function(){return u.error}});var _=Hr();Object.defineProperty(e,"exit",{enumerable:!0,get:function(){return _.exit}});var d=Zr();Object.defineProperty(e,"warn",{enumerable:!0,get:function(){return d.warn}});var p=Jo();Object.defineProperty(e,"colorizeJson",{enumerable:!0,get:function(){return t(p).default}});var f=Ar();Object.defineProperty(e,"colorize",{enumerable:!0,get:function(){return f.colorize}});var m=Dn();Object.defineProperty(e,"stderr",{enumerable:!0,get:function(){return m.stderr}}),Object.defineProperty(e,"stdout",{enumerable:!0,get:function(){return m.stdout}});const g=!Boolean(process.stderr.isTTY)||process.env.CI||["dumb","emacs-color"].includes(process.env.TERM)?"simple":"spinner";e.action="spinner"===g?new a.default:new o.default,e.ux={action:e.action,colorize:c.colorize,colorizeJson:s.default,error:n.error,exit:r.exit,stderr:l.stderr,stdout:l.stdout,warn:i.warn}}(To)),To}var $o,qo={},Uo={};function Vo(){if($o)return Uo;return $o=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.ensureArgObject=function(e){return Array.isArray(e)?(e??[]).reduce(((e,t)=>({...e,[t.name]:t})),{}):e??{}},Uo}var Wo,Ho={};var Go,Ko={},Xo={exports:{}};var Qo,Yo,Zo,ea={};function ta(){if(Qo)return ea;Qo=1;var e,t=ea.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=ea.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ea.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var o=e(r),a=0;ae.startsWith("-"),c=e=>e.includes("=");function l(e,t){return 0===e.length||(" "===t.topicSeparator?e=function(e,t){if(1===e.length)return e;const n=(e=>{const n=(0,o.collectUsableIds)(t.commandIDs),r=[],i=e=>n.has(e),a=e=>(e?[...r,e]:r).filter(Boolean).join(":"),l=()=>{const e=a();if(!e)return!1;const n=t.findCommand(e);return Boolean(n&&(!1===n.strict||Object.keys(n.args??{}).length>0))};for(const t of e)if(i(a(t)))r.push(t);else{if(c(t)||s(t)||l())break;r.push(t)}return a()})(e);if(n){const t=e.slice(n.split(":").length);return[n,...t]}return e}(e,t):":"!==t.topicSeparator&&(e[0]=(0,a.toStandardizedId)(e[0],t))),e}return ea}function na(){if(Yo)return Ko;Yo=1;var e=Ko.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.HelpFormatter=void 0;const t=e(Cr()),n=e(Rn()),r=e(Qn()),i=e(function(){if(Go)return Xo.exports;Go=1;const e=Qn(),t=t=>{let n=0;for(const r of t.split("\n"))n=Math.max(n,e(r));return n};return Xo.exports=t,Xo.exports.default=t,Xo.exports}()),o=e(fr()),a=br(),s=Ar(),c=ta();return Ko.HelpFormatter=class{config;indentSpacing=2;opts;render;constructor(e,t={}){this.config=e,this.opts={maxWidth:a.stdtermwidth,...t},this.render=(0,c.template)(this)}indent(e,t=this.indentSpacing){return(0,n.default)(e,t)}renderList(e,n){if(0===e.length)return"";const o=()=>{let r="";for(let[i,o]of e)(i||o)&&(i&&(n.stripAnsi&&(i=t.default.strip(i)),r+=this.wrap(i.trim(),n.indentation)),o&&(n.stripAnsi&&(o=t.default.strip(o)),r+="\n",r+=this.indent(this.wrap(o.trim(),n.indentation+2),4)),r+="\n\n");return r.trim()};if(n.multiline)return o();const a=(0,i.default)(e.map((e=>e[0])).join("\n"));let s="",c=n.spacer||"\n",l="";for(const[i,u]of e){let e=u;if(l&&(s+=c,s+=l),l=i||"",n.stripAnsi&&(l=t.default.strip(l)),!e){l=l.trim();continue}n.stripAnsi&&(e=t.default.strip(e)),e=this.wrap(e.trim(),n.indentation+a+2);const[_,...d]=e.split("\n").map((e=>e.trim()));if(l+=" ".repeat(a-(0,r.default)(l)+2),l+=_,0!==d.length){if(d.length>4)return o();n.spacer||(c="\n"),l+="\n",l+=this.indent(d.join("\n"),a+2)}}return l&&(s+=c,s+=l),s.trim()}section(e,n){let r;if("string"==typeof n)r=this.render(n);else if(Array.isArray(n))r=n.map((e=>{if("name"in e){const t=e;return[this.render(t.name),this.render(t.description)]}const[t,n]=e;return[this.render(t),n&&this.render(n)]}));else{if("header"in n)return this.section(n.header,n.body);r=n.map((e=>[e.name,e.description])).map((([e,t])=>[this.render(e),t&&this.render(t)]))}const i=[(0,s.colorize)(this.config?.theme?.sectionHeader,(0,s.colorize)("bold",e)),(0,s.colorize)(this.config?.theme?.sectionDescription,this.indent(Array.isArray(r)?this.renderList(r,{indentation:2,stripAnsi:this.opts.stripAnsi}):r))].join("\n");return this.opts.stripAnsi?t.default.strip(i):i}wrap(e,t=this.indentSpacing){return(0,o.default)(this.render(e),this.opts.maxWidth-t,{hard:!0})}},Ko}function ra(){if(Zo)return qo;Zo=1;var e=qo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qo,"__esModule",{value:!0}),qo.CommandHelp=void 0;const t=e(Cr()),n=Vo(),r=xo(),i=C(),o=Ar(),a=function(){if(Wo)return Ho;Wo=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.DocOpts=void 0;const e=Vo();class t{cmd;flagList;flagMap;constructor(e){this.cmd=e,this.flagMap={},this.flagList=Object.entries(e.flags||{}).filter((([e,t])=>!t.hidden)).map((([e,t])=>(this.flagMap[e]=t,t)))}static formatUsageType(e,t,n){if("option"!==e.type)return"";let r;return r=e.helpValue?"string"==typeof e.helpValue?[e.helpValue]:e.helpValue:e.options?[n?e.options.join("|"):"