UNPKG

prettier

Version:

Prettier is an opinionated code formatter

11 lines 895 kB
(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 gp=Object.defineProperty;var ty=Object.getOwnPropertyDescriptor;var ny=Object.getOwnPropertyNames;var ry=Object.prototype.hasOwnProperty;var yd=(e,t)=>{for(var a in t)gp(e,a,{get:t[a],enumerable:!0})},iy=(e,t,a,_)=>{if(t&&typeof t=="object"||typeof t=="function")for(let f of ny(t))!ry.call(e,f)&&f!==a&&gp(e,f,{get:()=>t[f],enumerable:!(_=ty(t,f))||_.enumerable});return e};var ay=e=>iy(gp({},"__esModule",{value:!0}),e);var K4={};yd(K4,{parsers:()=>ud});var ud={};yd(ud,{typescript:()=>Q4});var sy=()=>()=>{},Na=sy;var Ia=(e,t)=>(a,_,...f)=>a|1&&_==null?void 0:(t.call(_)??_[e]).apply(_,f);var _y=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},oy=Ia("replaceAll",function(){if(typeof this=="string")return _y}),Wr=oy;var bm="5.9";var vt=[],cy=new Map;function e_(e){return e!==void 0?e.length:0}function jn(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let _=t(e[a],a);if(_)return _}}function ly(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let _=t(e[a],a);if(_!==void 0)return _}}function gd(e,t,a){let _=[];q.assertEqual(e.length,t.length);for(let f=0;f<e.length;f++)_.push(a(e[f],t[f],f));return _}function Yp(e,t){if(e!==void 0){for(let a=0;a<e.length;a++)if(!t(e[a],a))return!1}return!0}function vm(e,t,a){if(e!==void 0)for(let _=a??0;_<e.length;_++){let f=e[_];if(t(f,_))return f}}function bp(e,t,a){if(e===void 0)return-1;for(let _=a??0;_<e.length;_++)if(t(e[_],_))return _;return-1}function uy(e,t,a=$p){if(e!==void 0){for(let _=0;_<e.length;_++)if(a(e[_],t))return!0}return!1}function Hr(e,t){if(e!==void 0){let a=e.length,_=0;for(;_<a&&t(e[_]);)_++;if(_<a){let f=e.slice(0,_);for(_++;_<a;){let h=e[_];t(h)&&f.push(h),_++}return f}}return e}function Np(e,t){let a;if(e!==void 0){a=[];for(let _=0;_<e.length;_++)a.push(t(e[_],_))}return a}function Tm(e){let t=[];for(let a=0;a<e.length;a++){let _=e[a];_&&($r(_)?En(t,_):t.push(_))}return t}function xm(e,t){let a;if(e!==void 0)for(let _=0;_<e.length;_++){let f=t(e[_],_);f&&($r(f)?a=En(a,f):a=wn(a,f))}return a??vt}function py(e,t){let a;if(e!==void 0)for(let _=0;_<e.length;_++){let f=e[_],h=t(f,_);(a||f!==h||$r(h))&&(a||(a=e.slice(0,_)),$r(h)?En(a,h):a.push(h))}return a??e}function fy(e,t){let a=[];if(e!==void 0)for(let _=0;_<e.length;_++){let f=t(e[_],_);f!==void 0&&a.push(f)}return a}function Zt(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 Hp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function dy(e,t,a=$p){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let _=0;_<e.length;_++)if(!a(e[_],t[_],_))return!1;return!0}function wn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Ip(e,t){return t<0?e.length+t:t}function En(e,t,a,_){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,_);a=a===void 0?0:Ip(t,a),_=_===void 0?t.length:Ip(t,_);for(let f=a;f<_&&f<t.length;f++)t[f]!==void 0&&e.push(t[f]);return e}function my(e,t,a){return uy(e,t,a)?!1:(e.push(t),!0)}function hy(e,t,a){return e!==void 0?(my(e,t,a),e):[t]}function yy(e,t){return e.length===0?vt:e.slice().sort(t)}var i3=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=Ip(e,t),t<e.length))return e[t]};function Xp(e){return e===void 0||e.length===0?void 0:e[0]}function Ba(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function gy(e){return q.assert(e.length!==0),e[e.length-1]}function by(e){return e!==void 0&&e.length===1?e[0]:void 0}function vy(e,t,a,_,f){return Ty(e,a(t),a,_,f)}function Ty(e,t,a,_,f){if(!Zt(e))return-1;let h=f??0,T=e.length-1;for(;h<=T;){let k=h+(T-h>>1),c=a(e[k],k);switch(_(c,t)){case-1:h=k+1;break;case 0:return k;case 1:T=k-1;break}}return~h}function xy(e,t,a,_,f){if(e&&e.length>0){let h=e.length;if(h>0){let T=_===void 0||_<0?0:_,k=f===void 0||T+f>h-1?h-1:T+f,c;for(arguments.length<=2?(c=e[T],T++):c=a;T<=k;)c=t(c,e[T],T),T++;return c}}return a}var Sm=Object.prototype.hasOwnProperty;function Dr(e,t){return Sm.call(e,t)}function Sy(e){let t=[];for(let a in e)Sm.call(e,a)&&t.push(a);return t}function wy(){let e=new Map;return e.add=ky,e.remove=Ey,e}function ky(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function Ey(e,t){let a=this.get(e);a!==void 0&&(Ly(a,t),a.length||this.delete(e))}function $r(e){return Array.isArray(e)}function vp(e){return $r(e)?e:[e]}function Ay(e,t){return e!==void 0&&t(e)?e:void 0}function Er(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 Va(e){}function Cy(){return!0}function bt(e){return e}function bd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Kn(e){let t=new Map;return a=>{let _=`${typeof a}:${a}`,f=t.get(_);return f===void 0&&!t.has(_)&&(f=e(a),t.set(_,f)),f}}function $p(e,t){return e===t}function Qp(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Dy(e,t){return $p(e,t)}function Py(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function wm(e,t){return Py(e,t)}function Ny(e,t,a){for(let _=0;_<e.length;_++)t=Math.max(t,a(e[_]));return t}function t_(e,t,a){let _=Math.max(2,Math.floor(e.length*.34)),f=Math.floor(e.length*.4)+1,h;for(let T of t){let k=a(T);if(k!==void 0&&Math.abs(k.length-e.length)<=_){if(k===e||k.length<3&&k.toLowerCase()!==e.toLowerCase())continue;let c=Iy(e,k,f-.1);if(c===void 0)continue;q.assert(c<f),f=c,h=T}}return h}function Iy(e,t,a){let _=new Array(t.length+1),f=new Array(t.length+1),h=a+.01;for(let k=0;k<=t.length;k++)_[k]=k;for(let k=1;k<=e.length;k++){let c=e.charCodeAt(k-1),W=Math.ceil(k>a?k-a:1),y=Math.floor(t.length>a+k?a+k:t.length);f[0]=k;let G=k;for(let D=1;D<W;D++)f[D]=h;for(let D=W;D<=y;D++){let R=e[k-1].toLowerCase()===t[D-1].toLowerCase()?_[D-1]+.1:_[D-1]+2,ue=c===t.charCodeAt(D-1)?_[D-1]:Math.min(_[D]+1,f[D-1]+1,R);f[D]=ue,G=Math.min(G,ue)}for(let D=y+1;D<=t.length;D++)f[D]=h;if(G>a)return;let E=_;_=f,f=E}let T=_[t.length];return T>a?void 0:T}function Oy(e,t,a){let _=e.length-t.length;return _>=0&&(a?Qp(e.slice(_),t):e.indexOf(t,_)===_)}function My(e,t){e[t]=e[e.length-1],e.pop()}function Ly(e,t){return Jy(e,a=>a===t)}function Jy(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return My(e,a),!0;return!1}function ml(e,t,a){return a?Qp(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function Op(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 _(L,se){e.loggingHost&&a(L)&&e.loggingHost.log(L,se)}function f(L){_(3,L)}e.log=f,(L=>{function se(Qe){_(1,Qe)}L.error=se;function fe(Qe){_(2,Qe)}L.warn=fe;function Te(Qe){_(3,Qe)}L.log=Te;function He(Qe){_(4,Qe)}L.trace=He})(f=e.log||(e.log={}));let h={};function T(){return t}e.getAssertionLevel=T;function k(L){let se=t;if(t=L,L>se)for(let fe of Sy(h)){let Te=h[fe];Te!==void 0&&e[fe]!==Te.assertion&&L>=Te.level&&(e[fe]=Te,h[fe]=void 0)}}e.setAssertionLevel=k;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]=Va,!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 ${Ot(L.kind)} was unexpected.`,fe||G)}e.failBadSyntaxKind=G;function E(L,se,fe,Te){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),y(se,Te||E))}e.assert=E;function D(L,se,fe,Te,He){if(L!==se){let Qe=fe?Te?`${fe} ${Te}`:fe:"";y(`Expected ${L} === ${se}. ${Qe}`,He||D)}}e.assertEqual=D;function R(L,se,fe,Te){L>=se&&y(`Expected ${L} < ${se}. ${fe||""}`,Te||R)}e.assertLessThan=R;function ue(L,se,fe){L>se&&y(`Expected ${L} <= ${se}`,fe||ue)}e.assertLessThanOrEqual=ue;function be(L,se,fe){L<se&&y(`Expected ${L} >= ${se}`,fe||be)}e.assertGreaterThanOrEqual=be;function he(L,se,fe){L==null&&y(se,fe||he)}e.assertIsDefined=he;function de(L,se,fe){return he(L,se,fe||de),L}e.checkDefined=de;function O(L,se,fe){for(let Te of L)he(Te,se,fe||O)}e.assertEachIsDefined=O;function ae(L,se,fe){return O(L,se,fe||ae),L}e.checkEachDefined=ae;function Oe(L,se="Illegal value:",fe){let Te=typeof L=="object"&&Dr(L,"kind")&&Dr(L,"pos")?"SyntaxKind: "+Ot(L.kind):JSON.stringify(L);return y(`${se} ${Te}`,fe||Oe)}e.assertNever=Oe;function V(L,se,fe,Te){W(1,"assertEachNode")&&E(se===void 0||Yp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${hn(se)}'.`,Te||V)}e.assertEachNode=V;function oe(L,se,fe,Te){W(1,"assertNode")&&E(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} did not pass test '${hn(se)}'.`,Te||oe)}e.assertNode=oe;function Y(L,se,fe,Te){W(1,"assertNotNode")&&E(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Ot(L.kind)} should not have passed test '${hn(se)}'.`,Te||Y)}e.assertNotNode=Y;function ft(L,se,fe,Te){W(1,"assertOptionalNode")&&E(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} did not pass test '${hn(se)}'.`,Te||ft)}e.assertOptionalNode=ft;function nr(L,se,fe,Te){W(1,"assertOptionalToken")&&E(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Ot(L?.kind)} was not a '${Ot(se)}' token.`,Te||nr)}e.assertOptionalToken=nr;function mn(L,se,fe){W(1,"assertMissingNode")&&E(L===void 0,se||"Unexpected node.",()=>`Node ${Ot(L.kind)} was unexpected'.`,fe||mn)}e.assertMissingNode=mn;function rr(L){}e.type=rr;function hn(L){if(typeof L!="function")return"";if(Dr(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=hn;function Dn(L){return`{ name: ${l_(L.escapedName)}; flags: ${ot(L.flags)}; declarations: ${Np(L.declarations,se=>Ot(se.kind))} }`}e.formatSymbol=Dn;function We(L=0,se,fe){let Te=Ir(se);if(L===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(fe){let He=[],Qe=L;for(let[st,Ct]of Te){if(st>L)break;st!==0&&st&L&&(He.push(Ct),Qe&=~st)}if(Qe===0)return He.join("|")}else for(let[He,Qe]of Te)if(He===L)return Qe;return L.toString()}e.formatEnum=We;let ir=new Map;function Ir(L){let se=ir.get(L);if(se)return se;let fe=[];for(let He in L){let Qe=L[He];typeof Qe=="number"&&fe.push([Qe,He])}let Te=yy(fe,(He,Qe)=>wm(He[0],Qe[0]));return ir.set(L,Te),Te}function Ot(L){return We(L,Ae,!1)}e.formatSyntaxKind=Ot;function Bn(L){return We(L,Dm,!1)}e.formatSnippetKind=Bn;function Pn(L){return We(L,Pr,!1)}e.formatScriptKind=Pn;function Mt(L){return We(L,sn,!0)}e.formatNodeFlags=Mt;function ht(L){return We(L,Em,!0)}e.formatNodeCheckFlags=ht;function $e(L){return We(L,Kp,!0)}e.formatModifierFlags=$e;function qn(L){return We(L,Cm,!0)}e.formatTransformFlags=qn;function $t(L){return We(L,Pm,!0)}e.formatEmitFlags=$t;function ot(L){return We(L,Zp,!0)}e.formatSymbolFlags=ot;function at(L){return We(L,en,!0)}e.formatTypeFlags=at;function Bt(L){return We(L,Am,!0)}e.formatSignatureFlags=Bt;function Lt(L){return We(L,ef,!0)}e.formatObjectFlags=Lt;function ct(L){return We(L,Mp,!0)}e.formatFlowFlags=ct;function ar(L){return We(L,km,!0)}e.formatRelationComparisonResult=ar;function dt(L){return We(L,CheckMode,!0)}e.formatCheckMode=dt;function yn(L){return We(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=yn;function yt(L){return We(L,TypeFacts,!0)}e.formatTypeFacts=yt;let _n=!1,tt;function qt(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?` (${ct(fe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,Mp,!0)}},__debugToString:{value(){return yr(this)}}})}function tn(L){return _n&&(typeof Object.setPrototypeOf=="function"?(tt||(tt=Object.create(Object.prototype),qt(tt)),Object.setPrototypeOf(L,tt)):qt(L)),L}e.attachFlowNodeDebugInfo=tn;let sr;function mr(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function hr(L){_n&&(typeof Object.setPrototypeOf=="function"?(sr||(sr=Object.create(Array.prototype),mr(sr)),Object.setPrototypeOf(L,sr)):mr(L))}e.attachNodeArrayDebugInfo=hr;function Fn(){if(_n)return;let L=new WeakMap,se=new WeakMap;Object.defineProperties(Et.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&33554432?"TransientSymbol":"Symbol",He=this.flags&-33554433;return`${Te} '${jp(this)}'${He?` (${ot(He)})`:""}`}},__debugFlags:{get(){return ot(this.flags)}}}),Object.defineProperties(Et.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?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",He=this.flags&524288?this.objectFlags&-1344:0;return`${Te}${this.symbol?` '${jp(this.symbol)}'`:""}${He?` (${Lt(He)})`:""}`}},__debugFlags:{get(){return at(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Lt(this.objectFlags):""}},__debugTypeToString:{value(){let Te=L.get(this);return Te===void 0&&(Te=this.checker.typeToString(this),L.set(this,Te)),Te}}}),Object.defineProperties(Et.getSignatureConstructor().prototype,{__debugFlags:{get(){return Bt(this.flags)}},__debugSignatureToString:{value(){var Te;return(Te=this.checker)==null?void 0:Te.signatureToString(this)}}});let fe=[Et.getNodeConstructor(),Et.getIdentifierConstructor(),Et.getTokenConstructor(),Et.getSourceFileConstructor()];for(let Te of fe)Dr(Te.prototype,"__debugKind")||Object.defineProperties(Te.prototype,{__tsDebuggerDisplay:{value(){return`${Ua(this)?"GeneratedIdentifier":Ke(this)?`Identifier '${An(this)}'`:gi(this)?`PrivateIdentifier '${An(this)}'`:vi(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:aa(this)?`NumericLiteral ${this.text}`:E1(this)?`BigIntLiteral ${this.text}n`:Af(this)?"TypeParameterDeclaration":m_(this)?"ParameterDeclaration":Cf(this)?"ConstructorDeclaration":Tl(this)?"GetAccessorDeclaration":y_(this)?"SetAccessorDeclaration":N1(this)?"CallSignatureDeclaration":I1(this)?"ConstructSignatureDeclaration":Df(this)?"IndexSignatureDeclaration":O1(this)?"TypePredicateNode":Pf(this)?"TypeReferenceNode":Nf(this)?"FunctionTypeNode":If(this)?"ConstructorTypeNode":Wb(this)?"TypeQueryNode":M1(this)?"TypeLiteralNode":Gb(this)?"ArrayTypeNode":Yb(this)?"TupleTypeNode":Hb(this)?"OptionalTypeNode":Xb(this)?"RestTypeNode":J1(this)?"UnionTypeNode":j1(this)?"IntersectionTypeNode":$b(this)?"ConditionalTypeNode":Qb(this)?"InferTypeNode":R1(this)?"ParenthesizedTypeNode":Kb(this)?"ThisTypeNode":U1(this)?"TypeOperatorNode":Zb(this)?"IndexedAccessTypeNode":B1(this)?"MappedTypeNode":e6(this)?"LiteralTypeNode":L1(this)?"NamedTupleMember":t6(this)?"ImportTypeNode":Ot(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return Ot(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return $e(K2(this))}},__debugTransformFlags:{get(){return qn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return gl(this)}},__debugEmitFlags:{get(){return $t(za(this))}},__debugGetText:{value(He){if(Ja(this))return"";let Qe=se.get(this);if(Qe===void 0){let st=bg(this),Ct=st&&hi(st);Qe=Ct?Md(Ct,st,He):"",se.set(this,Qe)}return Qe}}});_n=!0}e.enableDebugInfo=Fn;function zn(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=zn;class Or{__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 gd(this.sources,this.targets||Np(this.sources,()=>"any"),(fe,Te)=>`${fe.__debugTypeToString()} -> ${typeof Te=="string"?Te:Te.__debugTypeToString()}`).join(", ");case 2:return gd(this.sources,this.targets,(fe,Te)=>`${fe.__debugTypeToString()} -> ${Te().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return Oe(this)}}}e.DebugTypeMapper=Or;function Vn(L){return e.isDebugging?Object.setPrototypeOf(L,Or.prototype):L}e.attachDebugPrototypeIfDebug=Vn;function Ce(L){return console.log(yr(L))}e.printControlFlowGraph=Ce;function yr(L){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let Te;(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"})(Te||(Te={}));let He;(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"})(He||(He={}));let Qe=2032,st=882,Ct=Object.create(null),Tt=[],lt=[],Mr=Se(L,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),me(u);let gr=Ve(Mr),Nn=Ze(gr);return Ye(Mr,0),on();function Wn(u){return!!(u.flags&128)}function wi(u){return!!(u.flags&12)&&!!u.antecedent}function U(u){return!!(u.flags&Qe)}function K(u){return!!(u.flags&st)}function Z(u){let Ie=[];for(let Me of u.edges)Me.source===u&&Ie.push(Me.target);return Ie}function xe(u){let Ie=[];for(let Me of u.edges)Me.target===u&&Ie.push(Me.source);return Ie}function Se(u,Ie){let Me=fe(u),B=Ct[Me];if(B&&Ie.has(u))return B.circular=!0,B={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(B),B;if(Ie.add(u),!B)if(Ct[Me]=B={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(B),wi(u))for(let Be of u.antecedent)we(B,Be,Ie);else U(u)&&we(B,u.antecedent,Ie);return Ie.delete(u),B}function we(u,Ie,Me){let B=Se(Ie,Me),Be={source:u,target:B};lt.push(Be),u.edges.push(Be),B.edges.push(Be)}function me(u){if(u.level!==-1)return u.level;let Ie=0;for(let Me of xe(u))Ie=Math.max(Ie,me(Me)+1);return u.level=Ie}function Ve(u){let Ie=0;for(let Me of Z(u))Ie=Math.max(Ie,Ve(Me));return Ie+1}function Ze(u){let Ie=M(Array(u),0);for(let Me of Tt)Ie[Me.level]=Math.max(Ie[Me.level],Me.text.length);return Ie}function Ye(u,Ie){if(u.lane===-1){u.lane=Ie,u.endLane=Ie;let Me=Z(u);for(let B=0;B<Me.length;B++){B>0&&Ie++;let Be=Me[B];Ye(Be,Ie),Be.endLane>u.endLane&&(Ie=Be.endLane)}u.endLane=Ie}}function Ee(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 gn(u){let Ie=hi(u);return Md(Ie,u,!1)}function rt(u,Ie){let Me=Ee(u.flags);if(Ie&&(Me=`${Me}#${fe(u)}`),Wn(u)){let B=[],{switchStatement:Be,clauseStart:nn,clauseEnd:ze}=u.node;for(let Xe=nn;Xe<ze;Xe++){let Dt=Be.caseBlock.clauses[Xe];_6(Dt)?B.push("default"):B.push(gn(Dt.expression))}Me+=` (${B.join(", ")})`}else K(u)&&u.node&&(Me+=` (${gn(u.node)})`);return Ie==="circularity"?`Circular(${Me})`:Me}function on(){let u=Nn.length,Ie=Ny(Tt,0,ze=>ze.lane)+1,Me=M(Array(Ie),""),B=Nn.map(()=>Array(Ie)),Be=Nn.map(()=>M(Array(Ie),0));for(let ze of Tt){B[ze.level][ze.lane]=ze;let Xe=Z(ze);for(let wt=0;wt<Xe.length;wt++){let Pt=Xe[wt],Ft=8;Pt.lane===ze.lane&&(Ft|=4),wt>0&&(Ft|=1),wt<Xe.length-1&&(Ft|=2),Be[ze.level][Pt.lane]|=Ft}Xe.length===0&&(Be[ze.level][ze.lane]|=16);let Dt=xe(ze);for(let wt=0;wt<Dt.length;wt++){let Pt=Dt[wt],Ft=4;wt>0&&(Ft|=1),wt<Dt.length-1&&(Ft|=2),Be[ze.level-1][Pt.lane]|=Ft}}for(let ze=0;ze<u;ze++)for(let Xe=0;Xe<Ie;Xe++){let Dt=ze>0?Be[ze-1][Xe]:0,wt=Xe>0?Be[ze][Xe-1]:0,Pt=Be[ze][Xe];Pt||(Dt&8&&(Pt|=12),wt&2&&(Pt|=3),Be[ze][Xe]=Pt)}for(let ze=0;ze<u;ze++)for(let Xe=0;Xe<Me.length;Xe++){let Dt=Be[ze][Xe],wt=Dt&4?"\u2500":" ",Pt=B[ze][Xe];Pt?(nn(Xe,Pt.text),ze<u-1&&(nn(Xe," "),nn(Xe,Ue(wt,Nn[ze]-Pt.text.length)))):ze<u-1&&nn(Xe,Ue(wt,Nn[ze]+1)),nn(Xe,Zr(Dt)),nn(Xe,Dt&8&&ze<u-1&&!B[ze+1][Xe]?"\u2500":" ")}return` ${Me.join(` `)} `;function nn(ze,Xe){Me[ze]+=Xe}}function Zr(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 M(u,Ie){if(u.fill)u.fill(Ie);else for(let Me=0;Me<u.length;Me++)u[Me]=Ie;return u}function Ue(u,Ie){if(u.repeat)return Ie>0?u.repeat(Ie):"";let Me="";for(;Me.length<Ie;)Me+=u;return Me}}e.formatControlFlowGraph=yr})(q||(q={}));var a3=Date.now,vd=()=>{},jy=()=>{},ll,Ae=(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))(Ae||{}),sn=(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))(sn||{}),Kp=(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))(Kp||{});var km=(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))(km||{});var Mp=(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))(Mp||{});var Zp=(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))(Zp||{});var Em=(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))(Em||{}),en=(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]="InstantiableNonPri