prettier
Version:
Prettier is an opinionated code formatter
11 lines • 900 kB
JavaScript
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var Tp=Object.defineProperty;var dy=Object.getOwnPropertyDescriptor;var my=Object.getOwnPropertyNames;var hy=Object.prototype.hasOwnProperty;var Td=(e,t)=>{for(var a in t)Tp(e,a,{get:t[a],enumerable:!0})},yy=(e,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let f of my(t))!hy.call(e,f)&&f!==a&&Tp(e,f,{get:()=>t[f],enumerable:!(s=dy(t,f))||s.enumerable});return e};var gy=e=>yy(Tp({},"__esModule",{value:!0}),e);var b3={};Td(b3,{parsers:()=>hd});var hd={};Td(hd,{typescript:()=>g3});var by=()=>()=>{},La=by;var ja=(e,t)=>(a,s,...f)=>a|1&&s==null?void 0:(t.call(s)??s[e]).apply(s,f);var vy=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},xy=ja("replaceAll",function(){if(typeof this=="string")return vy}),mr=xy;var wm="6.0";var Tt=[],Ty=new Map;function a_(e){return e!==void 0?e.length:0}function Bn(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let s=t(e[a],a);if(s)return s}}function Sy(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let s=t(e[a],a);if(s!==void 0)return s}}function Sd(e,t,a){let s=[];q.assertEqual(e.length,t.length);for(let f=0;f<e.length;f++)s.push(a(e[f],t[f],f));return s}function Qp(e,t){if(e!==void 0){for(let a=0;a<e.length;a++)if(!t(e[a],a))return!1}return!0}function km(e,t,a){if(e!==void 0)for(let s=a??0;s<e.length;s++){let f=e[s];if(t(f,s))return f}}function Sp(e,t,a){if(e===void 0)return-1;for(let s=a??0;s<e.length;s++)if(t(e[s],s))return s;return-1}function wy(e,t,a=ef){if(e!==void 0){for(let s=0;s<e.length;s++)if(a(e[s],t))return!0}return!1}function $r(e,t){if(e!==void 0){let a=e.length,s=0;for(;s<a&&t(e[s]);)s++;if(s<a){let f=e.slice(0,s);for(s++;s<a;){let h=e[s];t(h)&&f.push(h),s++}return f}}return e}function Lp(e,t){let a;if(e!==void 0){a=[];for(let s=0;s<e.length;s++)a.push(t(e[s],s))}return a}function Em(e){let t=[];for(let a=0;a<e.length;a++){let s=e[a];s&&(Kr(s)?Dn(t,s):t.push(s))}return t}function Am(e,t){let a;if(e!==void 0)for(let s=0;s<e.length;s++){let f=t(e[s],s);f&&(Kr(f)?a=Dn(a,f):a=An(a,f))}return a??Tt}function ky(e,t){let a;if(e!==void 0)for(let s=0;s<e.length;s++){let f=e[s],h=t(f,s);(a||f!==h||Kr(h))&&(a||(a=e.slice(0,s)),Kr(h)?Dn(a,h):a.push(h))}return a??e}function Ey(e,t){let a=[];if(e!==void 0)for(let s=0;s<e.length;s++){let f=t(e[s],s);f!==void 0&&a.push(f)}return a}function nn(e,t){if(e!==void 0)if(t!==void 0){for(let a=0;a<e.length;a++)if(t(e[a]))return!0}else return e.length>0;return!1}function Kp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function Ay(e,t,a=ef){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!a(e[s],t[s],s))return!1;return!0}function An(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function jp(e,t){return t<0?e.length+t:t}function Dn(e,t,a,s){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,s);a=a===void 0?0:jp(t,a),s=s===void 0?t.length:jp(t,s);for(let f=a;f<s&&f<t.length;f++)t[f]!==void 0&&e.push(t[f]);return e}function Cy(e,t,a){return wy(e,t,a)?!1:(e.push(t),!0)}function Dy(e,t,a){return e!==void 0?(Cy(e,t,a),e):[t]}function Py(e,t){return e.length===0?Tt:e.slice().sort(t)}var k3=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=jp(e,t),t<e.length))return e[t]};function Zp(e){return e===void 0||e.length===0?void 0:e[0]}function Va(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Ny(e){return q.assert(e.length!==0),e[e.length-1]}function Iy(e){return e!==void 0&&e.length===1?e[0]:void 0}function Oy(e,t,a,s,f){return My(e,a(t),a,s,f)}function My(e,t,a,s,f){if(!nn(e))return-1;let h=f??0,b=e.length-1;for(;h<=b;){let S=h+(b-h>>1),c=a(e[S],S);switch(Math.sign(s(c,t))){case-1:h=S+1;break;case 0:return S;case 1:b=S-1;break}}return~h}function Ly(e,t,a,s,f){if(e&&e.length>0){let h=e.length;if(h>0){let b=s===void 0||s<0?0:s,S=f===void 0||b+f>h-1?h-1:b+f,c;for(arguments.length<=2?(c=e[b],b++):c=a;b<=S;)c=t(c,e[b],b),b++;return c}}return a}var Cm=Object.prototype.hasOwnProperty;function Or(e,t){return Cm.call(e,t)}function jy(e){let t=[];for(let a in e)Cm.call(e,a)&&t.push(a);return t}function Jy(){let e=new Map;return e.add=Ry,e.remove=Uy,e}function Ry(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function Uy(e,t){let a=this.get(e);a!==void 0&&(Hy(a,t),a.length||this.delete(e))}function Kr(e){return Array.isArray(e)}function wp(e){return Kr(e)?e:[e]}function By(e,t){return e!==void 0&&t(e)?e:void 0}function Pr(e,t){return e!==void 0&&t(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(t)}'.`)}function Ha(e){}function qy(){return!0}function xt(e){return e}function wd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Zn(e){let t=new Map;return a=>{let s=`${typeof a}:${a}`,f=t.get(s);return f===void 0&&!t.has(s)&&(f=e(a),t.set(s,f)),f}}function ef(e,t){return e===t}function tf(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Fy(e,t){return ef(e,t)}function zy(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Dm(e,t){return zy(e,t)}function Vy(e,t,a){for(let s=0;s<e.length;s++)t=Math.max(t,a(e[s]));return t}function s_(e,t,a){let s=Math.max(2,Math.floor(e.length*.34)),f=Math.floor(e.length*.4)+1,h;for(let b of t){let S=a(b);if(S!==void 0&&Math.abs(S.length-e.length)<=s){if(S===e||S.length<3&&S.toLowerCase()!==e.toLowerCase())continue;let c=Wy(e,S,f-.1);if(c===void 0)continue;q.assert(c<f),f=c,h=b}}return h}function Wy(e,t,a){let s=new Array(t.length+1),f=new Array(t.length+1),h=a+.01;for(let S=0;S<=t.length;S++)s[S]=S;for(let S=1;S<=e.length;S++){let c=e.charCodeAt(S-1),W=Math.ceil(S>a?S-a:1),y=Math.floor(t.length>a+S?a+S:t.length);f[0]=S;let G=S;for(let A=1;A<W;A++)f[A]=h;for(let A=W;A<=y;A++){let R=e[S-1].toLowerCase()===t[A-1].toLowerCase()?s[A-1]+.1:s[A-1]+2,ue=c===t.charCodeAt(A-1)?s[A-1]:Math.min(s[A]+1,f[A-1]+1,R);f[A]=ue,G=Math.min(G,ue)}for(let A=y+1;A<=t.length;A++)f[A]=h;if(G>a)return;let k=s;s=f,f=k}let b=s[t.length];return b>a?void 0:b}function Gy(e,t,a){let s=e.length-t.length;return s>=0&&(a?tf(e.slice(s),t):e.indexOf(t,s)===s)}function Yy(e,t){e[t]=e[e.length-1],e.pop()}function Hy(e,t){return Xy(e,a=>a===t)}function Xy(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return Yy(e,a),!0;return!1}function bl(e,t,a){return a?tf(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function Jp(e){return e===void 0?void 0:[e]}var q;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(L){return e.currentLogLevel<=L}e.shouldLog=a;function s(L,se){e.loggingHost&&a(L)&&e.loggingHost.log(L,se)}function f(L){s(3,L)}e.log=f,(L=>{function se(Ze){s(1,Ze)}L.error=se;function fe(Ze){s(2,Ze)}L.warn=fe;function Se(Ze){s(3,Ze)}L.log=Se;function $e(Ze){s(4,Ze)}L.trace=$e})(f=e.log||(e.log={}));let h={};function b(){return t}e.getAssertionLevel=b;function S(L){let se=t;if(t=L,L>se)for(let fe of jy(h)){let Se=h[fe];Se!==void 0&&e[fe]!==Se.assertion&&L>=Se.level&&(e[fe]=Se,h[fe]=void 0)}}e.setAssertionLevel=S;function c(L){return t>=L}e.shouldAssert=c;function W(L,se){return c(L)?!0:(h[se]={level:L,assertion:e[se]},e[se]=Ha,!1)}function y(L,se){debugger;let fe=new Error(L?`Debug Failure. ${L}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||y),fe}e.fail=y;function G(L,se,fe){return y(`${se||"Unexpected node."}\r
Node ${Lt(L.kind)} was unexpected.`,fe||G)}e.failBadSyntaxKind=G;function k(L,se,fe,Se){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r
Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),y(se,Se||k))}e.assert=k;function A(L,se,fe,Se,$e){if(L!==se){let Ze=fe?Se?`${fe} ${Se}`:fe:"";y(`Expected ${L} === ${se}. ${Ze}`,$e||A)}}e.assertEqual=A;function R(L,se,fe,Se){L>=se&&y(`Expected ${L} < ${se}. ${fe||""}`,Se||R)}e.assertLessThan=R;function ue(L,se,fe){L>se&&y(`Expected ${L} <= ${se}`,fe||ue)}e.assertLessThanOrEqual=ue;function ve(L,se,fe){L<se&&y(`Expected ${L} >= ${se}`,fe||ve)}e.assertGreaterThanOrEqual=ve;function ge(L,se,fe){L==null&&y(se,fe||ge)}e.assertIsDefined=ge;function me(L,se,fe){return ge(L,se,fe||me),L}e.checkDefined=me;function I(L,se,fe){for(let Se of L)ge(Se,se,fe||I)}e.assertEachIsDefined=I;function ae(L,se,fe){return I(L,se,fe||ae),L}e.checkEachDefined=ae;function Le(L,se="Illegal value:",fe){let Se=typeof L=="object"&&Or(L,"kind")&&Or(L,"pos")?"SyntaxKind: "+Lt(L.kind):JSON.stringify(L);return y(`${se} ${Se}`,fe||Le)}e.assertNever=Le;function V(L,se,fe,Se){W(1,"assertEachNode")&&k(se===void 0||Qp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${bn(se)}'.`,Se||V)}e.assertEachNode=V;function oe(L,se,fe,Se){W(1,"assertNode")&&k(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Lt(L?.kind)} did not pass test '${bn(se)}'.`,Se||oe)}e.assertNode=oe;function Y(L,se,fe,Se){W(1,"assertNotNode")&&k(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Lt(L.kind)} should not have passed test '${bn(se)}'.`,Se||Y)}e.assertNotNode=Y;function mt(L,se,fe,Se){W(1,"assertOptionalNode")&&k(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Lt(L?.kind)} did not pass test '${bn(se)}'.`,Se||mt)}e.assertOptionalNode=mt;function rr(L,se,fe,Se){W(1,"assertOptionalToken")&&k(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Lt(L?.kind)} was not a '${Lt(se)}' token.`,Se||rr)}e.assertOptionalToken=rr;function gn(L,se,fe){W(1,"assertMissingNode")&&k(L===void 0,se||"Unexpected node.",()=>`Node ${Lt(L.kind)} was unexpected'.`,fe||gn)}e.assertMissingNode=gn;function ir(L){}e.type=ir;function bn(L){if(typeof L!="function")return"";if(Or(L,"name"))return L.name;{let se=Function.prototype.toString.call(L),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=bn;function In(L){return`{ name: ${m_(L.escapedName)}; flags: ${ct(L.flags)}; declarations: ${Lp(L.declarations,se=>Lt(se.kind))} }`}e.formatSymbol=In;function He(L=0,se,fe){let Se=jr(se);if(L===0)return Se.length>0&&Se[0][0]===0?Se[0][1]:"0";if(fe){let $e=[],Ze=L;for(let[_t,Pt]of Se){if(_t>L)break;_t!==0&&_t&L&&($e.push(Pt),Ze&=~_t)}if(Ze===0)return $e.join("|")}else for(let[$e,Ze]of Se)if($e===L)return Ze;return L.toString()}e.formatEnum=He;let ar=new Map;function jr(L){let se=ar.get(L);if(se)return se;let fe=[];for(let $e in L){let Ze=L[$e];typeof Ze=="number"&&fe.push([Ze,$e])}let Se=Py(fe,($e,Ze)=>Dm($e[0],Ze[0]));return ar.set(L,Se),Se}function Lt(L){return He(L,De,!1)}e.formatSyntaxKind=Lt;function qn(L){return He(L,Mm,!1)}e.formatSnippetKind=qn;function On(L){return He(L,Mr,!1)}e.formatScriptKind=On;function jt(L){return He(L,rn,!0)}e.formatNodeFlags=jt;function gt(L){return He(L,Nm,!0)}e.formatNodeCheckFlags=gt;function Ke(L){return He(L,nf,!0)}e.formatModifierFlags=Ke;function Fn(L){return He(L,Om,!0)}e.formatTransformFlags=Fn;function Zt(L){return He(L,Lm,!0)}e.formatEmitFlags=Zt;function ct(L){return He(L,rf,!0)}e.formatSymbolFlags=ct;function st(L){return He(L,an,!0)}e.formatTypeFlags=st;function qt(L){return He(L,Im,!0)}e.formatSignatureFlags=qt;function Jt(L){return He(L,af,!0)}e.formatObjectFlags=Jt;function lt(L){return He(L,Rp,!0)}e.formatFlowFlags=lt;function sr(L){return He(L,Pm,!0)}e.formatRelationComparisonResult=sr;function ht(L){return He(L,CheckMode,!0)}e.formatCheckMode=ht;function vn(L){return He(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=vn;function bt(L){return He(L,TypeFacts,!0)}e.formatTypeFacts=bt;let ln=!1,it;function Ft(L){"__debugFlowFlags"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${lt(fe)})`:""}`}},__debugFlowFlags:{get(){return He(this.flags,Rp,!0)}},__debugToString:{value(){return xr(this)}}})}function sn(L){return ln&&(typeof Object.setPrototypeOf=="function"?(it||(it=Object.create(Object.prototype),Ft(it)),Object.setPrototypeOf(L,it)):Ft(L)),L}e.attachFlowNodeDebugInfo=sn;let _r;function br(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function vr(L){ln&&(typeof Object.setPrototypeOf=="function"?(_r||(_r=Object.create(Array.prototype),br(_r)),Object.setPrototypeOf(L,_r)):br(L))}e.attachNodeArrayDebugInfo=vr;function zn(){if(ln)return;let L=new WeakMap,se=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&33554432?"TransientSymbol":"Symbol",$e=this.flags&-33554433;return`${Se} '${qp(this)}'${$e?` (${ct($e)})`:""}`}},__debugFlags:{get(){return ct(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&402431?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&12?"NullableType":this.flags&3072?`LiteralType ${JSON.stringify(this.value)}`:this.flags&4096?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&16384?"UniqueESSymbolType":this.flags&65536?"EnumType":this.flags&134217728?"UnionType":this.flags&268435456?"IntersectionType":this.flags&2097152?"IndexType":this.flags&33554432?"IndexedAccessType":this.flags&67108864?"ConditionalType":this.flags&16777216?"SubstitutionType":this.flags&524288?"TypeParameter":this.flags&1048576?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",$e=this.flags&1048576?this.objectFlags&-142607680:0;return`${Se}${this.symbol?` '${qp(this.symbol)}'`:""}${$e?` (${Jt($e)})`:""}`}},__debugFlags:{get(){return st(this.flags)}},__debugObjectFlags:{get(){return this.flags&1048576?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let Se=L.get(this);return Se===void 0&&(Se=this.checker.typeToString(this),L.set(this,Se)),Se}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return qt(this.flags)}},__debugSignatureToString:{value(){var Se;return(Se=this.checker)==null?void 0:Se.signatureToString(this)}}});let fe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let Se of fe)Or(Se.prototype,"__debugKind")||Object.defineProperties(Se.prototype,{__tsDebuggerDisplay:{value(){return`${za(this)?"GeneratedIdentifier":et(this)?`Identifier '${Pn(this)}'`:xi(this)?`PrivateIdentifier '${Pn(this)}'`:Lr(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:sa(this)?`NumericLiteral ${this.text}`:P1(this)?`BigIntLiteral ${this.text}n`:If(this)?"TypeParameterDeclaration":v_(this)?"ParameterDeclaration":Of(this)?"ConstructorDeclaration":kl(this)?"GetAccessorDeclaration":T_(this)?"SetAccessorDeclaration":L1(this)?"CallSignatureDeclaration":j1(this)?"ConstructSignatureDeclaration":Mf(this)?"IndexSignatureDeclaration":J1(this)?"TypePredicateNode":Lf(this)?"TypeReferenceNode":jf(this)?"FunctionTypeNode":Jf(this)?"ConstructorTypeNode":iv(this)?"TypeQueryNode":R1(this)?"TypeLiteralNode":av(this)?"ArrayTypeNode":sv(this)?"TupleTypeNode":_v(this)?"OptionalTypeNode":ov(this)?"RestTypeNode":B1(this)?"UnionTypeNode":q1(this)?"IntersectionTypeNode":cv(this)?"ConditionalTypeNode":lv(this)?"InferTypeNode":F1(this)?"ParenthesizedTypeNode":uv(this)?"ThisTypeNode":z1(this)?"TypeOperatorNode":pv(this)?"IndexedAccessTypeNode":V1(this)?"MappedTypeNode":fv(this)?"LiteralTypeNode":U1(this)?"NamedTupleMember":dv(this)?"ImportTypeNode":Lt(this.kind)}${this.flags?` (${jt(this.flags)})`:""}`}},__debugKind:{get(){return Lt(this.kind)}},__debugNodeFlags:{get(){return jt(this.flags)}},__debugModifierFlags:{get(){return Ke(ub(this))}},__debugTransformFlags:{get(){return Fn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Tl(this)}},__debugEmitFlags:{get(){return Zt(Ya(this))}},__debugGetText:{value($e){if(Ba(this))return"";let Ze=se.get(this);if(Ze===void 0){let _t=Ig(this),Pt=_t&&bi(_t);Ze=Pt?Ud(Pt,_t,$e):"",se.set(this,Ze)}return Ze}}});ln=!0}e.enableDebugInfo=zn;function Vn(L){let se=L&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return L&8?fe+=" (unmeasurable)":L&16&&(fe+=" (unreliable)"),fe}e.formatVariance=Vn;class Jr{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Sd(this.sources,this.targets||Lp(this.sources,()=>"any"),(fe,Se)=>`${fe.__debugTypeToString()} -> ${typeof Se=="string"?Se:Se.__debugTypeToString()}`).join(", ");case 2:return Sd(this.sources,this.targets,(fe,Se)=>`${fe.__debugTypeToString()} -> ${Se().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return Le(this)}}}e.DebugTypeMapper=Jr;function Wn(L){return e.isDebugging?Object.setPrototypeOf(L,Jr.prototype):L}e.attachDebugPrototypeIfDebug=Wn;function Pe(L){return console.log(xr(L))}e.printControlFlowGraph=Pe;function xr(L){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let Se;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Se||(Se={}));let $e;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})($e||($e={}));let Ze=2032,_t=882,Pt=Object.create(null),St=[],ut=[],Rr=ke(L,new Set);for(let u of St)u.text=at(u.flowNode,u.circular),he(u);let Tr=Ye(Rr),Mn=tt(Tr);return Xe(Rr,0),un();function Gn(u){return!!(u.flags&128)}function Ei(u){return!!(u.flags&12)&&!!u.antecedent}function U(u){return!!(u.flags&Ze)}function K(u){return!!(u.flags&_t)}function Z(u){let Me=[];for(let je of u.edges)je.source===u&&Me.push(je.target);return Me}function we(u){let Me=[];for(let je of u.edges)je.target===u&&Me.push(je.source);return Me}function ke(u,Me){let je=fe(u),B=Pt[je];if(B&&Me.has(u))return B.circular=!0,B={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},St.push(B),B;if(Me.add(u),!B)if(Pt[je]=B={id:je,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},St.push(B),Ei(u))for(let ze of u.antecedent)Ee(B,ze,Me);else U(u)&&Ee(B,u.antecedent,Me);return Me.delete(u),B}function Ee(u,Me,je){let B=ke(Me,je),ze={source:u,target:B};ut.push(ze),u.edges.push(ze),B.edges.push(ze)}function he(u){if(u.level!==-1)return u.level;let Me=0;for(let je of we(u))Me=Math.max(Me,he(je)+1);return u.level=Me}function Ye(u){let Me=0;for(let je of Z(u))Me=Math.max(Me,Ye(je));return Me+1}function tt(u){let Me=O(Array(u),0);for(let je of St)Me[je.level]=Math.max(Me[je.level],je.text.length);return Me}function Xe(u,Me){if(u.lane===-1){u.lane=Me,u.endLane=Me;let je=Z(u);for(let B=0;B<je.length;B++){B>0&&Me++;let ze=je[B];Xe(ze,Me),ze.endLane>u.endLane&&(Me=ze.endLane)}u.endLane=Me}}function Ce(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function xn(u){let Me=bi(u);return Ud(Me,u,!1)}function at(u,Me){let je=Ce(u.flags);if(Me&&(je=`${je}#${fe(u)}`),Gn(u)){let B=[],{switchStatement:ze,clauseStart:_n,clauseEnd:Ge}=u.node;for(let Qe=_n;Qe<Ge;Qe++){let Nt=ze.caseBlock.clauses[Qe];vv(Nt)?B.push("default"):B.push(xn(Nt.expression))}je+=` (${B.join(", ")})`}else K(u)&&u.node&&(je+=` (${xn(u.node)})`);return Me==="circularity"?`Circular(${je})`:je}function un(){let u=Mn.length,Me=Vy(St,0,Ge=>Ge.lane)+1,je=O(Array(Me),""),B=Mn.map(()=>Array(Me)),ze=Mn.map(()=>O(Array(Me),0));for(let Ge of St){B[Ge.level][Ge.lane]=Ge;let Qe=Z(Ge);for(let Et=0;Et<Qe.length;Et++){let It=Qe[Et],zt=8;It.lane===Ge.lane&&(zt|=4),Et>0&&(zt|=1),Et<Qe.length-1&&(zt|=2),ze[Ge.level][It.lane]|=zt}Qe.length===0&&(ze[Ge.level][Ge.lane]|=16);let Nt=we(Ge);for(let Et=0;Et<Nt.length;Et++){let It=Nt[Et],zt=4;Et>0&&(zt|=1),Et<Nt.length-1&&(zt|=2),ze[Ge.level-1][It.lane]|=zt}}for(let Ge=0;Ge<u;Ge++)for(let Qe=0;Qe<Me;Qe++){let Nt=Ge>0?ze[Ge-1][Qe]:0,Et=Qe>0?ze[Ge][Qe-1]:0,It=ze[Ge][Qe];It||(Nt&8&&(It|=12),Et&2&&(It|=3),ze[Ge][Qe]=It)}for(let Ge=0;Ge<u;Ge++)for(let Qe=0;Qe<je.length;Qe++){let Nt=ze[Ge][Qe],Et=Nt&4?"\u2500":" ",It=B[Ge][Qe];It?(_n(Qe,It.text),Ge<u-1&&(_n(Qe," "),_n(Qe,qe(Et,Mn[Ge]-It.text.length)))):Ge<u-1&&_n(Qe,qe(Et,Mn[Ge]+1)),_n(Qe,ei(Nt)),_n(Qe,Nt&8&&Ge<u-1&&!B[Ge+1][Qe]?"\u2500":" ")}return`
${je.join(`
`)}
`;function _n(Ge,Qe){je[Ge]+=Qe}}function ei(u){switch(u){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function O(u,Me){if(u.fill)u.fill(Me);else for(let je=0;je<u.length;je++)u[je]=Me;return u}function qe(u,Me){if(u.repeat)return Me>0?u.repeat(Me):"";let je="";for(;je.length<Me;)je+=u;return je}}e.formatControlFlowGraph=xr})(q||(q={}));var E3=Date.now,kd=()=>{},$y=()=>{},dl,De=(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.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="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=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="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=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(De||{}),rn=(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.Unreachable=1073741824]="Unreachable",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))(rn||{}),nf=(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))(nf||{});var Pm=(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))(Pm||{});var Rp=(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))(Rp||{});var rf=(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))(rf||{});var Nm=(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))(Nm||{}),an=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.Undefined=4]="Undefined",e[e.Null=8]="Null",e[e.Void=16]="Void",e[e.String=32]="String",e[e.Number=64]="Number",e[e.BigInt=128]="BigInt",e[e.Boolean=256]="Boolean",e[e.ESSymbol=512]="ESSymbol",e[e.StringLiteral=1024]="StringLiteral",e[e.NumberLiteral=2048]="NumberLiteral",e[e.BigIntLiteral=4096]="BigIntLiteral",e[e.BooleanLiteral=8192]="BooleanLiteral",e[e.UniqueESSymbol=16384]="UniqueESSymbol",e[e.EnumLiteral=32768]="EnumLiteral",e[e.Enum=65536]="Enum",e[e.NonPrimitive=131072]="NonPrimitive",e[e.Never=262144]="Never",e[e.TypeParameter=524288]="TypeParameter",e[e.Object=1048576]="Object",e[e.Index=2097152]="Index",e[e.TemplateLiteral=4194304]="TemplateLiteral",e[e.StringMapping=8388608]="StringMapping",e[e.Substitution=16777216]="Substitution",e[e.IndexedAccess=33554432]="IndexedAccess",e[e.Conditional=67108864]="Conditional",e[e.Union=134217728]="Union",e[e.Intersection=268435456]="Intersection",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.Reserved3=-2147483648]="Reserved3",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=12]="Nullable",e[e.Literal=15360]="Literal",e[e.Unit=97292]="Unit",e[e.Freshable=80896]="Freshable",e[e.StringOrNumberLiteral=3072]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=19456]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=15388]="DefinitelyFalsy",e[e.PossiblyFalsy=15868]="PossiblyFalsy",e[e.Intrinsic=402431]="Intrinsic",e[e.StringLike=12583968]="StringLike",e[e.NumberLike=67648]="NumberLike",e[e.BigIntLike=4224]="BigIntLike",e[e.BooleanLike=8448]="BooleanLike",e[e.EnumLike=98304]="EnumLike",e[e.ESSymbolLike=16896]="ESSymbolLike",e[e.VoidLike=20]="VoidLike",e[e.Primitive=12713980]="Primitive",e[e.DefinitelyNonNullable=13893600]="DefinitelyNonNullable",e[e.DisjointDomains=12812284]="DisjointDomains",e[e.UnionOrIntersection=402653184]="UnionOrIntersection",e[e.StructuredType=403701760]="StructuredTyp