prettier 3.5.1 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ ${Me.join(`
14
14
  `)),o}function za(e){let t=e.emitNode;return t&&t.flags||0}function p2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function cl(e){return e.kind===244&&e.expression.kind===11}function yf(e){return!!(za(e)&2097152)}function Ud(e){return yf(e)&&Rf(e)}function f2(e){return tt(e.name)&&!e.initializer}function Bd(e){return yf(e)&&Ha(e)&&Yp(e.declarationList.declarations,f2)}function d2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Xp(ug(t,e.pos),Lp(t,e.pos)):Lp(t,e.pos);return Gr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function m2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function h2(e){return e&&e.kind===241&&hf(e.parent)}function qd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function ea(e){return!!e&&!!(e.flags&524288)}function y2(e){return!!e&&!!(e.flags&16777216)}function g2(e){for(;gl(e,!0);)e=e.right;return e}function b2(e){return tt(e)&&e.escapedText==="exports"}function v2(e){return tt(e)&&e.escapedText==="module"}function m1(e){return(Xr(e)||h1(e))&&v2(e.expression)&&ps(e)==="exports"}function gf(e){let t=x2(e);return t===5||ea(e)?t:0}function T2(e){return ts(e.arguments)===3&&Xr(e.expression)&&tt(e.expression.expression)&&Pn(e.expression.expression)==="Object"&&Pn(e.expression.name)==="defineProperty"&&El(e.arguments[1])&&us(e.arguments[0],!0)}function h1(e){return Xa(e)&&El(e.argumentExpression)}function gs(e,t){return Xr(e)&&(!t&&e.expression.kind===110||tt(e.name)&&us(e.expression,!0))||y1(e,t)}function y1(e,t){return h1(e)&&(!t&&e.expression.kind===110||Sf(e.expression)||gs(e.expression,!0))}function us(e,t){return Sf(e)||gs(e,t)}function x2(e){if(Mf(e)){if(!T2(e))return 0;let t=e.arguments[0];return b2(t)||m1(t)?8:gs(t)&&ps(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!S1(e.left)||S2(g2(e))?0:us(e.left.expression,!0)&&ps(e.left)==="prototype"&&Of(k2(e))?6:w2(e.left)}function S2(e){return t6(e)&&ta(e.expression)&&e.expression.text==="0"}function bf(e){if(Xr(e))return e.name;let t=Tf(e.argumentExpression);return ta(t)||kl(t)?t:e}function ps(e){let t=bf(e);if(t){if(tt(t))return t.escapedText;if(kl(t)||ta(t))return Ja(t.text)}}function w2(e){if(e.expression.kind===110)return 4;if(m1(e))return 2;if(us(e.expression,!0)){if(eb(e.expression))return 3;let t=e;for(;!tt(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&ps(t)==="exports")&&gs(e))return 1;if(us(e,!0)||Xa(e)&&U2(e))return 5}return 0}function k2(e){for(;Zi(e.right);)e=e.right;return e.right}function E2(e){return Dl(e)&&Zi(e.expression)&&gf(e.expression)!==0&&Zi(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function A2(e){switch(e.kind){case 243:let t=Bp(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Bp(e){return Ha(e)?Hp(e.declarationList.declarations):void 0}function C2(e){return Ti(e)&&e.body&&e.body.kind===267?e.body:void 0}function vf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function D2(e,t){let a;m2(e)&&a2(e)&&Xi(e.initializer)&&(a=Dn(a,zd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if(Xi(o)&&(a=Dn(a,zd(e,o.jsDoc))),o.kind===169){a=Dn(a,(t?Sg:xg)(o));break}if(o.kind===168){a=Dn(a,(t?kg:wg)(o));break}o=N2(o)}return a||bt}function zd(e,t){let a=dy(t);return Em(t,o=>{if(o===a){let m=Gr(o.tags,v=>P2(e,v));return o.tags===m?[o]:m}else return Gr(o.tags,d6)})}function P2(e,t){return!(Vf(t)||g6(t))||!t.parent||!_h(t.parent)||!Cl(t.parent.parent)||t.parent.parent===e}function N2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||C2(t)||gl(e))return t;if(t.parent&&(Bp(t.parent)===e||gl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Bp(t.parent.parent)||A2(t.parent.parent)===e||E2(t.parent.parent)))return t.parent.parent}function Tf(e,t){return Wf(e,t?-2147483647:1)}function I2(e){let t=O2(e);if(t&&ea(e)){let a=Eg(e);if(a)return a.class}return t}function O2(e){let t=xf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function M2(e){if(ea(e))return Ag(e).map(t=>t.class);{let t=xf(e.heritageClauses,119);return t==null?void 0:t.types}}function J2(e){return vs(e)?L2(e)||bt:vi(e)&&Xp(Op(I2(e)),M2(e))||bt}function L2(e){let t=xf(e.heritageClauses,96);return t?t.types:void 0}function xf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function di(e){return 83<=e&&e<=165}function j2(e){return 19<=e&&e<=79}function Sp(e){return di(e)||j2(e)}function El(e){return kl(e)||ta(e)}function R2(e){return G1(e)&&(e.operator===40||e.operator===41)&&ta(e.operand)}function U2(e){if(!(e.kind===167||e.kind===212))return!1;let t=Xa(e)?Tf(e.argumentExpression):e.expression;return!El(t)&&!R2(t)}function B2(e){return Rp(e)?Pn(e):eh(e)?Db(e):e.text}function La(e){return fs(e.pos)||fs(e.end)}function wp(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function kp(e){return!!((e.templateFlags||0)&2048)}function q2(e){return e&&!!(D1(e)?kp(e):kp(e.head)||Xt(e.templateSpans,t=>kp(t.literal)))}var $4=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var Q4=new Map(Object.entries({'"':"&quot;","'":"&apos;"}));function z2(e){return!!e&&e.kind===80&&F2(e)}function F2(e){return e.escapedText==="this"}function bs(e,t){return!!G2(e,t)}function V2(e){return bs(e,256)}function W2(e){return bs(e,32768)}function G2(e,t){return X2(e)&t}function Y2(e,t,a){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=v1(e)|536870912),a||t&&ea(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=g1(e)|268435456),b1(e.modifierFlagsCache)):H2(e.modifierFlagsCache))}function X2(e){return Y2(e,!1)}function g1(e){let t=0;return e.parent&&!ds(e)&&(ea(e)&&(Cg(e)&&(t|=8388608),Dg(e)&&(t|=16777216),Pg(e)&&(t|=33554432),Ng(e)&&(t|=67108864),Ig(e)&&(t|=134217728)),Og(e)&&(t|=65536)),t}function H2(e){return e&65535}function b1(e){return e&131071|(e&260046848)>>>23}function $2(e){return b1(g1(e))}function Q2(e){return v1(e)|$2(e)}function v1(e){let t=Il(e)?Rn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Rn(e){let t=0;if(e)for(let a of e)t|=T1(a.kind);return t}function T1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function K2(e){return e===76||e===77||e===78}function x1(e){return e>=64&&e<=79}function gl(e,t){return Zi(e)&&(t?e.operatorToken.kind===64:x1(e.operatorToken.kind))&&qa(e.left)}function Sf(e){return e.kind===80||Z2(e)}function Z2(e){return Xr(e)&&tt(e.name)&&Sf(e.expression)}function eb(e){return gs(e)&&ps(e)==="prototype"}function Ep(e){return e.flags&3899393?e.objectFlags:0}function tb(e){let t;return Ht(e,a=>{Up(a)&&(t=a)},a=>{for(let o=a.length-1;o>=0;o--)if(Up(a[o])){t=a[o];break}}),t}function nb(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function S1(e){return e.kind===211||e.kind===212}function rb(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function ib(e,t){this.flags=t,(B.isDebugging||sl)&&(this.checker=e)}function ab(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function Ap(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function _b(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function sb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function ob(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}var At={getNodeConstructor:()=>Ap,getTokenConstructor:()=>_b,getIdentifierConstructor:()=>sb,getPrivateIdentifierConstructor:()=>Ap,getSourceFileConstructor:()=>Ap,getSymbolConstructor:()=>rb,getTypeConstructor:()=>ib,getSignatureConstructor:()=>ab,getSourceMapSourceConstructor:()=>ob},cb=[];function lb(e){Object.assign(At,e),Un(cb,t=>t(At))}function ub(e,t){return e.replace(/\{(\d+)\}/g,(a,o)=>""+B.checkDefined(t[+o]))}var Fd;function pb(e){return Fd&&Fd[e.key]||e.message}function Oa(e,t,a,o,m,...v){a+o>t.length&&(o=t.length-a),p2(t,a,o);let A=pb(m);return Xt(v)&&(A=ub(A,v)),{file:void 0,start:a,length:o,messageText:A,category:m.category,code:m.code,reportsUnnecessary:m.reportsUnnecessary,fileName:e}}function fb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function w1(e,t){let a=t.fileName||"",o=t.text.length;B.assertEqual(e.fileName,a),B.assertLessThanOrEqual(e.start,o),B.assertLessThanOrEqual(e.start+e.length,o);let m={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){m.relatedInformation=[];for(let v of e.relatedInformation)fb(v)&&v.fileName===a?(B.assertLessThanOrEqual(v.start,o),B.assertLessThanOrEqual(v.start+v.length,o),m.relatedInformation.push(w1(v,t))):m.relatedInformation.push(v)}return m}function zi(e,t){let a=[];for(let o of e)a.push(w1(o,t));return a}function Vd(e){return e===4||e===2||e===1||e===6?1:0}var at={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:at.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(at.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(at.module.computeValue(e)===100||at.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(at.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:at.esModuleInterop.computeValue(e)||at.module.computeValue(e)===4||at.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=at.moduleResolution.computeValue(e);if(!Wd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=at.moduleResolution.computeValue(e);if(!Wd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:at.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||at.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&at.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?at.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Vr(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Vr(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Vr(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Vr(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Vr(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Vr(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Vr(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Vr(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Vr(e,"useUnknownInCatchVariables")}};var K4=at.allowImportingTsExtensions.computeValue,Z4=at.target.computeValue,e3=at.module.computeValue,t3=at.moduleResolution.computeValue,n3=at.moduleDetection.computeValue,r3=at.isolatedModules.computeValue,i3=at.esModuleInterop.computeValue,a3=at.allowSyntheticDefaultImports.computeValue,_3=at.resolvePackageJsonExports.computeValue,s3=at.resolvePackageJsonImports.computeValue,o3=at.resolveJsonModule.computeValue,c3=at.declaration.computeValue,l3=at.preserveConstEnums.computeValue,u3=at.incremental.computeValue,p3=at.declarationMap.computeValue,f3=at.allowJs.computeValue,d3=at.useDefineForClassFields.computeValue;function Wd(e){return e>=3&&e<=99||e===100}function Vr(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function db(e){return o2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var mb=["node_modules","bower_components","jspm_packages"],k1=`(?!(${mb.join("|")})(/|$))`,hb={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${k1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>E1(e,hb.singleAsteriskRegexFragment)},yb={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${k1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>E1(e,yb.singleAsteriskRegexFragment)};function E1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function gb(e,t){return t||bb(e)||3}function bb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var A1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],m3=km(A1),h3=[...A1,[".json"]];var vb=[[".js",".jsx"],[".mjs"],[".cjs"]],y3=km(vb),Tb=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],g3=[...Tb,[".json"]],xb=[".d.ts",".d.cts",".d.mts"];function fs(e){return!(e>=0)}function rl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==bt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Sb(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let Q=e.length-1,h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,Q)||"0"}let a=2,o=e.length-1,m=(o-a)*t,v=new Uint16Array((m>>>4)+(m&15?1:0));for(let Q=o-1,h=0;Q>=a;Q--,h+=t){let y=h>>>4,g=e.charCodeAt(Q),I=(g<=57?g-48:10+g-(g<=70?65:97))<<(h&15);v[y]|=I;let re=I>>>16;re&&(v[y+1]|=re)}let A="",P=v.length-1,l=!0;for(;l;){let Q=0;l=!1;for(let h=P;h>=0;h--){let y=Q<<16|v[h],g=y/10|0;v[h]=g,Q=y-g*10,g&&!l&&(P=h,l=!0)}A=Q+A}return A}function wb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function qp(e,t){return e.pos=t,e}function kb(e,t){return e.end=t,e}function yi(e,t,a){return kb(qp(e,t),a)}function Gd(e,t,a){return yi(e,t,t+a)}function wf(e,t){return e&&t&&(e.parent=t),e}function Eb(e,t){if(!e)return e;return bm(e,f1(e)?a:m),e;function a(v,A){if(t&&v.parent===A)return"skip";wf(v,A)}function o(v){if(Xi(v))for(let A of v.jsDoc)a(A,v),bm(A,a)}function m(v,A){return a(v,A)||o(v)}}function Ab(e){return!!(e.flags&262144&&e.isThisType)}function Cb(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Db(e){return`${Pn(e.namespace)}:${Pn(e.name)}`}var b3=String.prototype.replace;var zp=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],v3=new Set(zp),Pb=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),T3=new Set([...zp,...zp.map(e=>`node:${e}`),...Pb]);function Nb(){let e,t,a,o,m;return{createBaseSourceFileNode:v,createBaseIdentifierNode:A,createBasePrivateIdentifierNode:P,createBaseTokenNode:l,createBaseNode:Q};function v(h){return new(m||(m=At.getSourceFileConstructor()))(h,-1,-1)}function A(h){return new(a||(a=At.getIdentifierConstructor()))(h,-1,-1)}function P(h){return new(o||(o=At.getPrivateIdentifierConstructor()))(h,-1,-1)}function l(h){return new(t||(t=At.getTokenConstructor()))(h,-1,-1)}function Q(h){return new(e||(e=At.getNodeConstructor()))(h,-1,-1)}}var Ib={getParenthesizeLeftSideOfBinaryForOperator:e=>gt,getParenthesizeRightSideOfBinaryForOperator:e=>gt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:gt,parenthesizeConditionOfConditionalExpression:gt,parenthesizeBranchOfConditionalExpression:gt,parenthesizeExpressionOfExportDefault:gt,parenthesizeExpressionOfNew:e=>kr(e,qa),parenthesizeLeftSideOfAccess:e=>kr(e,qa),parenthesizeOperandOfPostfixUnary:e=>kr(e,qa),parenthesizeOperandOfPrefixUnary:e=>kr(e,Qg),parenthesizeExpressionsOfCommaDelimitedList:e=>kr(e,mi),parenthesizeExpressionForDisallowedComma:gt,parenthesizeExpressionOfExpressionStatement:gt,parenthesizeConciseBodyOfArrowFunction:gt,parenthesizeCheckTypeOfConditionalType:gt,parenthesizeExtendsTypeOfConditionalType:gt,parenthesizeConstituentTypesOfUnionType:e=>kr(e,mi),parenthesizeConstituentTypeOfUnionType:gt,parenthesizeConstituentTypesOfIntersectionType:e=>kr(e,mi),parenthesizeConstituentTypeOfIntersectionType:gt,parenthesizeOperandOfTypeOperator:gt,parenthesizeOperandOfReadonlyTypeOperator:gt,parenthesizeNonArrayTypeOfPostfixType:gt,parenthesizeElementTypesOfTupleType:e=>kr(e,mi),parenthesizeElementTypeOfTupleType:gt,parenthesizeTypeOfOptionalType:gt,parenthesizeTypeArguments:e=>e&&kr(e,mi),parenthesizeLeadingTypeArgument:gt},il=0;var Ob=[];function kf(e,t){let a=e&8?gt:Rb,o=Sd(()=>e&1?Ib:createParenthesizerRules(ye)),m=Sd(()=>e&2?nullNodeConverters:createNodeConverters(ye)),v=Kn(n=>(i,_)=>ua(i,n,_)),A=Kn(n=>i=>jr(n,i)),P=Kn(n=>i=>ni(i,n)),l=Kn(n=>()=>Ho(n)),Q=Kn(n=>i=>C_(n,i)),h=Kn(n=>(i,_)=>Su(n,i,_)),y=Kn(n=>(i,_)=>$o(n,i,_)),g=Kn(n=>(i,_)=>xu(n,i,_)),x=Kn(n=>(i,_)=>dc(n,i,_)),I=Kn(n=>(i,_,c)=>Mu(n,i,_,c)),re=Kn(n=>(i,_,c)=>mc(n,i,_,c)),he=Kn(n=>(i,_,c,f)=>Ju(n,i,_,c,f)),ye={get parenthesizer(){return o()},get converters(){return m()},baseFactory:t,flags:e,createNodeArray:de,createNumericLiteral:V,createBigIntLiteral:oe,createStringLiteral:dt,createStringLiteralFromNode:nr,createRegularExpressionLiteral:gn,createLiteralLikeNode:rr,createIdentifier:Ge,createTempVariable:ir,createLoopVariable:Pr,createUniqueName:Ot,getGeneratedNameForNode:Bn,createPrivateIdentifier:Mt,createUniquePrivateName:Qe,getGeneratedPrivateNameForNode:qn,createToken:ct,createSuper:_t,createThis:Ut,createNull:Jt,createTrue:lt,createFalse:ar,createModifier:mt,createModifiersFromModifierFlags:vn,createQualifiedName:yt,updateQualifiedName:cn,createComputedPropertyName:nt,updateComputedPropertyName:Bt,createTypeParameterDeclaration:rn,updateTypeParameterDeclaration:_r,createParameterDeclaration:fr,updateParameterDeclaration:dr,createDecorator:zn,updateDecorator:Fn,createPropertySignature:Nr,updatePropertySignature:Vn,createPropertyDeclaration:mr,updatePropertyDeclaration:L,createMethodSignature:se,updateMethodSignature:fe,createMethodDeclaration:Te,updateMethodDeclaration:He,createConstructorDeclaration:ut,updateConstructorDeclaration:Ir,createGetAccessorDeclaration:Mn,updateGetAccessorDeclaration:Wn,createSetAccessorDeclaration:R,updateSetAccessorDeclaration:$,createCallSignature:xe,updateCallSignature:Se,createConstructSignature:we,updateConstructSignature:be,createIndexSignature:We,updateIndexSignature:Ze,createClassStaticBlockDeclaration:st,updateClassStaticBlockDeclaration:Dt,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:Tn,createTypePredicateNode:rt,updateTypePredicateNode:ln,createTypeReferenceNode:Zr,updateTypeReferenceNode:J,createFunctionTypeNode:qe,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:an,createTypeQueryNode:Pt,updateTypeQueryNode:kt,createTypeLiteralNode:Nt,updateTypeLiteralNode:qt,createArrayTypeNode:Gn,updateArrayTypeNode:wi,createTupleTypeNode:un,updateTupleTypeNode:G,createNamedTupleMember:le,updateNamedTupleMember:Fe,createOptionalTypeNode:ve,updateOptionalTypeNode:j,createRestTypeNode:ht,updateRestTypeNode:xt,createUnionTypeNode:Bl,updateUnionTypeNode:Es,createIntersectionTypeNode:Or,updateIntersectionTypeNode:Je,createConditionalTypeNode:ft,updateConditionalTypeNode:ql,createInferTypeNode:Yn,updateInferTypeNode:zl,createImportTypeNode:sr,updateImportTypeNode:aa,createParenthesizedType:Qt,updateParenthesizedType:Ct,createThisTypeNode:D,createTypeOperatorNode:Gt,updateTypeOperatorNode:Mr,createIndexedAccessTypeNode:or,updateIndexedAccessTypeNode:Ka,createMappedTypeNode:St,updateMappedTypeNode:jt,createLiteralTypeNode:ei,updateLiteralTypeNode:yr,createTemplateLiteralType:Wt,updateTemplateLiteralType:Fl,createObjectBindingPattern:As,updateObjectBindingPattern:Vl,createArrayBindingPattern:Jr,updateArrayBindingPattern:Wl,createBindingElement:_a,updateBindingElement:ti,createArrayLiteralExpression:Za,updateArrayLiteralExpression:Cs,createObjectLiteralExpression:ki,updateObjectLiteralExpression:Gl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(cr(n,i),262144):cr,updatePropertyAccessExpression:Yl,createPropertyAccessChain:e&4?(n,i,_)=>setEmitFlags(Ei(n,i,_),262144):Ei,updatePropertyAccessChain:sa,createElementAccessExpression:Ai,updateElementAccessExpression:Xl,createElementAccessChain:Ns,updateElementAccessChain:e_,createCallExpression:Ci,updateCallExpression:oa,createCallChain:t_,updateCallChain:Os,createNewExpression:xn,updateNewExpression:n_,createTaggedTemplateExpression:ca,updateTaggedTemplateExpression:Ms,createTypeAssertion:Js,updateTypeAssertion:Ls,createParenthesizedExpression:r_,updateParenthesizedExpression:js,createFunctionExpression:i_,updateFunctionExpression:Rs,createArrowFunction:a_,updateArrowFunction:Us,createDeleteExpression:Bs,updateDeleteExpression:qs,createTypeOfExpression:la,updateTypeOfExpression:fn,createVoidExpression:__,updateVoidExpression:lr,createAwaitExpression:zs,updateAwaitExpression:Lr,createPrefixUnaryExpression:jr,updatePrefixUnaryExpression:Hl,createPostfixUnaryExpression:ni,updatePostfixUnaryExpression:$l,createBinaryExpression:ua,updateBinaryExpression:Ql,createConditionalExpression:Vs,updateConditionalExpression:Ws,createTemplateExpression:Gs,updateTemplateExpression:Xn,createTemplateHead:Xs,createTemplateMiddle:pa,createTemplateTail:s_,createNoSubstitutionTemplateLiteral:Zl,createTemplateLiteralLikeNode:ii,createYieldExpression:o_,updateYieldExpression:eu,createSpreadElement:Hs,updateSpreadElement:tu,createClassExpression:$s,updateClassExpression:c_,createOmittedExpression:l_,createExpressionWithTypeArguments:Qs,updateExpressionWithTypeArguments:Ks,createAsExpression:dn,updateAsExpression:fa,createNonNullExpression:Zs,updateNonNullExpression:eo,createSatisfiesExpression:u_,updateSatisfiesExpression:to,createNonNullChain:p_,updateNonNullChain:Jn,createMetaProperty:no,updateMetaProperty:f_,createTemplateSpan:Hn,updateTemplateSpan:da,createSemicolonClassElement:ro,createBlock:Rr,updateBlock:nu,createVariableStatement:d_,updateVariableStatement:io,createEmptyStatement:ao,createExpressionStatement:Pi,updateExpressionStatement:_o,createIfStatement:so,updateIfStatement:oo,createDoStatement:co,updateDoStatement:lo,createWhileStatement:uo,updateWhileStatement:ru,createForStatement:po,updateForStatement:fo,createForInStatement:m_,updateForInStatement:iu,createForOfStatement:mo,updateForOfStatement:au,createContinueStatement:ho,updateContinueStatement:_u,createBreakStatement:h_,updateBreakStatement:yo,createReturnStatement:y_,updateReturnStatement:su,createWithStatement:g_,updateWithStatement:go,createSwitchStatement:b_,updateSwitchStatement:ai,createLabeledStatement:bo,updateLabeledStatement:vo,createThrowStatement:To,updateThrowStatement:ou,createTryStatement:xo,updateTryStatement:cu,createDebuggerStatement:So,createVariableDeclaration:ma,updateVariableDeclaration:wo,createVariableDeclarationList:v_,updateVariableDeclarationList:lu,createFunctionDeclaration:ko,updateFunctionDeclaration:T_,createClassDeclaration:Eo,updateClassDeclaration:ha,createInterfaceDeclaration:Ao,updateInterfaceDeclaration:Co,createTypeAliasDeclaration:ot,updateTypeAliasDeclaration:gr,createEnumDeclaration:x_,updateEnumDeclaration:br,createModuleDeclaration:Do,updateModuleDeclaration:Et,createModuleBlock:vr,updateModuleBlock:zt,createCaseBlock:Po,updateCaseBlock:pu,createNamespaceExportDeclaration:No,updateNamespaceExportDeclaration:Io,createImportEqualsDeclaration:Oo,updateImportEqualsDeclaration:Mo,createImportDeclaration:Jo,updateImportDeclaration:Lo,createImportClause:jo,updateImportClause:Ro,createAssertClause:S_,updateAssertClause:du,createAssertEntry:Ni,updateAssertEntry:Uo,createImportTypeAssertionContainer:w_,updateImportTypeAssertionContainer:Bo,createImportAttributes:qo,updateImportAttributes:k_,createImportAttribute:zo,updateImportAttribute:Fo,createNamespaceImport:Vo,updateNamespaceImport:mu,createNamespaceExport:Wo,updateNamespaceExport:hu,createNamedImports:Go,updateNamedImports:Yo,createImportSpecifier:Tr,updateImportSpecifier:yu,createExportAssignment:ya,updateExportAssignment:Ii,createExportDeclaration:ga,updateExportDeclaration:Xo,createNamedExports:E_,updateNamedExports:gu,createExportSpecifier:ba,updateExportSpecifier:bu,createMissingDeclaration:vu,createExternalModuleReference:A_,updateExternalModuleReference:Tu,get createJSDocAllType(){return l(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return y(315)},get updateJSDocNonNullableType(){return g(315)},get createJSDocNullableType(){return y(314)},get updateJSDocNullableType(){return g(314)},get createJSDocOptionalType(){return Q(316)},get updateJSDocOptionalType(){return h(316)},get createJSDocVariadicType(){return Q(318)},get updateJSDocVariadicType(){return h(318)},get createJSDocNamepathType(){return Q(319)},get updateJSDocNamepathType(){return h(319)},createJSDocFunctionType:Qo,updateJSDocFunctionType:wu,createJSDocTypeLiteral:Ko,updateJSDocTypeLiteral:ku,createJSDocTypeExpression:Zo,updateJSDocTypeExpression:D_,createJSDocSignature:ec,updateJSDocSignature:Eu,createJSDocTemplateTag:P_,updateJSDocTemplateTag:tc,createJSDocTypedefTag:va,updateJSDocTypedefTag:Au,createJSDocParameterTag:N_,updateJSDocParameterTag:Cu,createJSDocPropertyTag:nc,updateJSDocPropertyTag:rc,createJSDocCallbackTag:ic,updateJSDocCallbackTag:ac,createJSDocOverloadTag:_c,updateJSDocOverloadTag:I_,createJSDocAugmentsTag:O_,updateJSDocAugmentsTag:Mi,createJSDocImplementsTag:sc,updateJSDocImplementsTag:Ou,createJSDocSeeTag:Br,updateJSDocSeeTag:Ta,createJSDocImportTag:gc,updateJSDocImportTag:bc,createJSDocNameReference:oc,updateJSDocNameReference:Du,createJSDocMemberName:cc,updateJSDocMemberName:Pu,createJSDocLink:lc,updateJSDocLink:uc,createJSDocLinkCode:pc,updateJSDocLinkCode:Nu,createJSDocLinkPlain:fc,updateJSDocLinkPlain:Iu,get createJSDocTypeTag(){return re(344)},get updateJSDocTypeTag(){return he(344)},get createJSDocReturnTag(){return re(342)},get updateJSDocReturnTag(){return he(342)},get createJSDocThisTag(){return re(343)},get updateJSDocThisTag(){return he(343)},get createJSDocAuthorTag(){return x(330)},get updateJSDocAuthorTag(){return I(330)},get createJSDocClassTag(){return x(332)},get updateJSDocClassTag(){return I(332)},get createJSDocPublicTag(){return x(333)},get updateJSDocPublicTag(){return I(333)},get createJSDocPrivateTag(){return x(334)},get updateJSDocPrivateTag(){return I(334)},get createJSDocProtectedTag(){return x(335)},get updateJSDocProtectedTag(){return I(335)},get createJSDocReadonlyTag(){return x(336)},get updateJSDocReadonlyTag(){return I(336)},get createJSDocOverrideTag(){return x(337)},get updateJSDocOverrideTag(){return I(337)},get createJSDocDeprecatedTag(){return x(331)},get updateJSDocDeprecatedTag(){return I(331)},get createJSDocThrowsTag(){return re(349)},get updateJSDocThrowsTag(){return he(349)},get createJSDocSatisfiesTag(){return re(350)},get updateJSDocSatisfiesTag(){return he(350)},createJSDocEnumTag:yc,updateJSDocEnumTag:M_,createJSDocUnknownTag:hc,updateJSDocUnknownTag:Lu,createJSDocText:J_,updateJSDocText:ju,createJSDocComment:Ji,updateJSDocComment:vc,createJsxElement:Tc,updateJsxElement:Ru,createJsxSelfClosingElement:xc,updateJsxSelfClosingElement:L_,createJsxOpeningElement:j_,updateJsxOpeningElement:Sc,createJsxClosingElement:xa,updateJsxClosingElement:Kt,createJsxFragment:R_,createJsxText:Sa,updateJsxText:kc,createJsxOpeningFragment:Uu,createJsxJsxClosingFragment:Bu,updateJsxFragment:wc,createJsxAttribute:Ec,updateJsxAttribute:wa,createJsxAttributes:Ac,updateJsxAttributes:qu,createJsxSpreadAttribute:Cc,updateJsxSpreadAttribute:zu,createJsxExpression:ka,updateJsxExpression:Li,createJsxNamespacedName:Dc,updateJsxNamespacedName:U_,createCaseClause:B_,updateCaseClause:Fu,createDefaultClause:_i,updateDefaultClause:Pc,createHeritageClause:Nc,updateHeritageClause:Vu,createCatchClause:q_,updateCatchClause:Ic,createPropertyAssignment:Ea,updatePropertyAssignment:qr,createShorthandPropertyAssignment:Oc,updateShorthandPropertyAssignment:Gu,createSpreadAssignment:z_,updateSpreadAssignment:Mc,createEnumMember:wn,updateEnumMember:Jc,createSourceFile:Xu,updateSourceFile:Qu,createRedirectedSourceFile:Lc,createBundle:F_,updateBundle:Ku,createSyntheticExpression:Zu,createSyntaxList:Ca,createNotEmittedStatement:Rc,createNotEmittedTypeElement:ep,createPartiallyEmittedExpression:Uc,updatePartiallyEmittedExpression:Bc,createCommaListExpression:V_,updateCommaListExpression:qc,createSyntheticReferenceExpression:W_,updateSyntheticReferenceExpression:zc,cloneNode:G_,get createComma(){return v(28)},get createAssignment(){return v(64)},get createLogicalOr(){return v(57)},get createLogicalAnd(){return v(56)},get createBitwiseOr(){return v(52)},get createBitwiseXor(){return v(53)},get createBitwiseAnd(){return v(51)},get createStrictEquality(){return v(37)},get createStrictInequality(){return v(38)},get createEquality(){return v(35)},get createInequality(){return v(36)},get createLessThan(){return v(30)},get createLessThanEquals(){return v(33)},get createGreaterThan(){return v(32)},get createGreaterThanEquals(){return v(34)},get createLeftShift(){return v(48)},get createRightShift(){return v(49)},get createUnsignedRightShift(){return v(50)},get createAdd(){return v(40)},get createSubtract(){return v(41)},get createMultiply(){return v(42)},get createDivide(){return v(44)},get createModulo(){return v(45)},get createExponent(){return v(43)},get createPrefixPlus(){return A(40)},get createPrefixMinus(){return A(41)},get createPrefixIncrement(){return A(46)},get createPrefixDecrement(){return A(47)},get createBitwiseNot(){return A(55)},get createLogicalNot(){return A(54)},get createPostfixIncrement(){return P(46)},get createPostfixDecrement(){return P(47)},createImmediatelyInvokedFunctionExpression:ip,createImmediatelyInvokedArrowFunction:ap,createVoidZero:si,createExportDefault:Wc,createExternalModuleExport:_p,createTypeCheck:Y_,createIsNotTypeCheck:sp,createMethodCall:zr,createGlobalMethodCall:ji,createFunctionBindCall:op,createFunctionCallCall:cp,createFunctionApplyCall:lp,createArraySliceCall:Ri,createArrayConcatCall:up,createObjectDefinePropertyCall:X_,createObjectGetOwnPropertyDescriptorCall:oi,createReflectGetCall:Gc,createReflectSetCall:pp,createPropertyDescriptor:Yc,createCallBinding:Hc,createAssignmentTargetWrapper:s,inlineExpressions:p,getInternalName:b,getLocalName:S,getExportName:N,getDeclarationName:H,getNamespaceMemberName:_e,getExternalModuleOrNamespaceExportName:Z,restoreOuterExpressions:Xc,restoreEnclosingLabel:H_,createUseStrictPrologue:Le,copyPrologue:ee,copyStandardPrologue:je,copyCustomPrologue:Ae,ensureUseStrict:Yt,liftToBlock:mn,mergeLexicalEnvironment:ur,replaceModifiers:Ln,replaceDecoratorsAndModifiers:Fr,replacePropertyName:mp};return Un(Ob,n=>n(ye)),ye;function de(n,i){if(n===void 0||n===bt)n=[];else if(mi(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&Xd(n),B.attachNodeArrayDebugInfo(n),n;let f=n.slice();return f.pos=n.pos,f.end=n.end,f.hasTrailingComma=i,f.transformFlags=n.transformFlags,B.attachNodeArrayDebugInfo(f),f}let _=n.length,c=_>=1&&_<=4?n.slice():n;return c.pos=-1,c.end=-1,c.hasTrailingComma=!!i,c.transformFlags=0,Xd(c),B.attachNodeArrayDebugInfo(c),c}function M(n){return t.createBaseNode(n)}function ae(n){let i=M(n);return i.symbol=void 0,i.localSymbol=void 0,i}function Oe(n,i){return n!==i&&(n.typeArguments=i.typeArguments),q(n,i)}function V(n,i=0){let _=typeof n=="number"?n+"":n;B.assert(_.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let c=ae(9);return c.text=_,c.numericLiteralFlags=i,i&384&&(c.transformFlags|=1024),c}function oe(n){let i=$t(10);return i.text=typeof n=="string"?n:wb(n)+"n",i.transformFlags|=32,i}function W(n,i){let _=ae(11);return _.text=n,_.singleQuote=i,_}function dt(n,i,_){let c=W(n,i);return c.hasExtendedUnicodeEscape=_,_&&(c.transformFlags|=1024),c}function nr(n){let i=W(B2(n),void 0);return i.textSourceNode=n,i}function gn(n){let i=$t(14);return i.text=n,i}function rr(n,i){switch(n){case 9:return V(i,0);case 10:return oe(i);case 11:return dt(i,void 0);case 12:return Sa(i,!1);case 13:return Sa(i,!0);case 14:return gn(i);case 15:return ii(n,i,void 0,0)}}function bn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function In(n,i,_,c){let f=bn(Ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:il,prefix:_,suffix:c}),il++,f}function Ge(n,i,_){i===void 0&&n&&(i=zm(n)),i===80&&(i=void 0);let c=bn(Ja(n));return _&&(c.flags|=256),c.escapedText==="await"&&(c.transformFlags|=67108864),c.flags&256&&(c.transformFlags|=1024),c}function ir(n,i,_,c){let f=1;i&&(f|=8);let w=In("",f,_,c);return n&&n(w),w}function Pr(n){let i=2;return n&&(i|=8),In("",i,void 0,void 0)}function Ot(n,i=0,_,c){return B.assert(!(i&7),"Argument out of range: flags"),B.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),In(n,3|i,_,c)}function Bn(n,i=0,_,c){B.assert(!(i&7),"Argument out of range: flags");let f=n?Rp(n)?Wp(!1,_,n,c,Pn):`generated@${getNodeId(n)}`:"";(_||c)&&(i|=16);let w=In(f,4|i,_,c);return w.original=n,w}function On(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Mt(n){return pl(n,"#")||B.fail("First character of private identifier must be #: "+n),On(Ja(n))}function vt(n,i,_,c){let f=On(Ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:il,prefix:_,suffix:c}),il++,f}function Qe(n,i,_){n&&!pl(n,"#")&&B.fail("First character of private identifier must be #: "+n);let c=8|(n?3:1);return vt(n??"",c,i,_)}function qn(n,i,_){let c=Rp(n)?Wp(!0,i,n,_,Pn):`#generated@${getNodeId(n)}`,w=vt(c,4|(i||_?16:0),i,_);return w.original=n,w}function $t(n){return t.createBaseTokenNode(n)}function ct(n){B.assert(n>=0&&n<=165,"Invalid token"),B.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=$t(n),_=0;switch(n){case 134:_=384;break;case 160:_=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:_=1;break;case 108:_=134218752,i.flowNode=void 0;break;case 126:_=1024;break;case 129:_=16777216;break;case 110:_=16384,i.flowNode=void 0;break}return _&&(i.transformFlags|=_),i}function _t(){return ct(108)}function Ut(){return ct(110)}function Jt(){return ct(106)}function lt(){return ct(112)}function ar(){return ct(97)}function mt(n){return ct(n)}function vn(n){let i=[];return n&32&&i.push(mt(95)),n&128&&i.push(mt(138)),n&2048&&i.push(mt(90)),n&4096&&i.push(mt(87)),n&1&&i.push(mt(125)),n&2&&i.push(mt(123)),n&4&&i.push(mt(124)),n&64&&i.push(mt(128)),n&256&&i.push(mt(126)),n&16&&i.push(mt(164)),n&8&&i.push(mt(148)),n&512&&i.push(mt(129)),n&1024&&i.push(mt(134)),n&8192&&i.push(mt(103)),n&16384&&i.push(mt(147)),i.length?i:void 0}function yt(n,i){let _=M(166);return _.left=n,_.right=et(i),_.transformFlags|=z(_.left)|ja(_.right),_.flowNode=void 0,_}function cn(n,i,_){return n.left!==i||n.right!==_?q(yt(i,_),n):n}function nt(n){let i=M(167);return i.expression=o().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=z(i.expression)|1024|131072,i}function Bt(n,i){return n.expression!==i?q(nt(i),n):n}function rn(n,i,_,c){let f=ae(168);return f.modifiers=De(n),f.name=et(i),f.constraint=_,f.default=c,f.transformFlags=1,f.expression=void 0,f.jsDoc=void 0,f}function _r(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.constraint!==c||n.default!==f?q(rn(i,_,c,f),n):n}function fr(n,i,_,c,f,w){let F=ae(169);return F.modifiers=De(n),F.dotDotDotToken=i,F.name=et(_),F.questionToken=c,F.type=f,F.initializer=Da(w),z2(F.name)?F.transformFlags=1:F.transformFlags=ke(F.modifiers)|z(F.dotDotDotToken)|jn(F.name)|z(F.questionToken)|z(F.initializer)|(F.questionToken??F.type?1:0)|(F.dotDotDotToken??F.initializer?1024:0)|(Rn(F.modifiers)&31?8192:0),F.jsDoc=void 0,F}function dr(n,i,_,c,f,w,F){return n.modifiers!==i||n.dotDotDotToken!==_||n.name!==c||n.questionToken!==f||n.type!==w||n.initializer!==F?q(fr(i,_,c,f,w,F),n):n}function zn(n){let i=M(170);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1|8192|33554432,i}function Fn(n,i){return n.expression!==i?q(zn(i),n):n}function Nr(n,i,_,c){let f=ae(171);return f.modifiers=De(n),f.name=et(i),f.type=c,f.questionToken=_,f.transformFlags=1,f.initializer=void 0,f.jsDoc=void 0,f}function Vn(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.type!==f?Ce(Nr(i,_,c,f),n):n}function Ce(n,i){return n!==i&&(n.initializer=i.initializer),q(n,i)}function mr(n,i,_,c,f){let w=ae(172);w.modifiers=De(n),w.name=et(i),w.questionToken=_&&$d(_)?_:void 0,w.exclamationToken=_&&Hd(_)?_:void 0,w.type=c,w.initializer=Da(f);let F=w.flags&33554432||Rn(w.modifiers)&128;return w.transformFlags=ke(w.modifiers)|jn(w.name)|z(w.initializer)|(F||w.questionToken||w.exclamationToken||w.type?1:0)|(Ef(w.name)||Rn(w.modifiers)&256&&w.initializer?8192:0)|16777216,w.jsDoc=void 0,w}function L(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.questionToken!==(c!==void 0&&$d(c)?c:void 0)||n.exclamationToken!==(c!==void 0&&Hd(c)?c:void 0)||n.type!==f||n.initializer!==w?q(mr(i,_,c,f,w),n):n}function se(n,i,_,c,f,w){let F=ae(173);return F.modifiers=De(n),F.name=et(i),F.questionToken=_,F.typeParameters=De(c),F.parameters=De(f),F.type=w,F.transformFlags=1,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function fe(n,i,_,c,f,w,F){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.typeParameters!==f||n.parameters!==w||n.type!==F?Oe(se(i,_,c,f,w,F),n):n}function Te(n,i,_,c,f,w,F,pe){let Re=ae(174);if(Re.modifiers=De(n),Re.asteriskToken=i,Re.name=et(_),Re.questionToken=c,Re.exclamationToken=void 0,Re.typeParameters=De(f),Re.parameters=de(w),Re.type=F,Re.body=pe,!Re.body)Re.transformFlags=1;else{let en=Rn(Re.modifiers)&1024,kn=!!Re.asteriskToken,$n=en&&kn;Re.transformFlags=ke(Re.modifiers)|z(Re.asteriskToken)|jn(Re.name)|z(Re.questionToken)|ke(Re.typeParameters)|ke(Re.parameters)|z(Re.type)|z(Re.body)&-67108865|($n?128:en?256:kn?2048:0)|(Re.questionToken||Re.typeParameters||Re.type?1:0)|1024}return Re.typeArguments=void 0,Re.jsDoc=void 0,Re.locals=void 0,Re.nextContainer=void 0,Re.flowNode=void 0,Re.endFlowNode=void 0,Re.returnFlowNode=void 0,Re}function He(n,i,_,c,f,w,F,pe,Re){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.questionToken!==f||n.typeParameters!==w||n.parameters!==F||n.type!==pe||n.body!==Re?Ke(Te(i,_,c,f,w,F,pe,Re),n):n}function Ke(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),q(n,i)}function st(n){let i=ae(175);return i.body=n,i.transformFlags=z(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Dt(n,i){return n.body!==i?Tt(st(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function ut(n,i,_){let c=ae(176);return c.modifiers=De(n),c.parameters=de(i),c.body=_,c.body?c.transformFlags=ke(c.modifiers)|ke(c.parameters)|z(c.body)&-67108865|1024:c.transformFlags=1,c.typeParameters=void 0,c.type=void 0,c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function Ir(n,i,_,c){return n.modifiers!==i||n.parameters!==_||n.body!==c?hr(ut(i,_,c),n):n}function hr(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function Mn(n,i,_,c,f){let w=ae(177);return w.modifiers=De(n),w.name=et(i),w.parameters=de(_),w.type=c,w.body=f,w.body?w.transformFlags=ke(w.modifiers)|jn(w.name)|ke(w.parameters)|z(w.type)|z(w.body)&-67108865|(w.type?1:0):w.transformFlags=1,w.typeArguments=void 0,w.typeParameters=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.flowNode=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Wn(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.type!==f||n.body!==w?Si(Mn(i,_,c,f,w),n):n}function Si(n,i){return n!==i&&(n.typeParameters=i.typeParameters),Oe(n,i)}function R(n,i,_,c){let f=ae(178);return f.modifiers=De(n),f.name=et(i),f.parameters=de(_),f.body=c,f.body?f.transformFlags=ke(f.modifiers)|jn(f.name)|ke(f.parameters)|z(f.body)&-67108865|(f.type?1:0):f.transformFlags=1,f.typeArguments=void 0,f.typeParameters=void 0,f.type=void 0,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f.endFlowNode=void 0,f.returnFlowNode=void 0,f}function $(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.body!==f?K(R(i,_,c,f),n):n}function K(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function xe(n,i,_){let c=ae(179);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Se(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(xe(i,_,c),n):n}function we(n,i,_){let c=ae(180);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function be(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(we(i,_,c),n):n}function We(n,i,_){let c=ae(181);return c.modifiers=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Ze(n,i,_,c){return n.parameters!==_||n.type!==c||n.modifiers!==i?Oe(We(i,_,c),n):n}function Ye(n,i){let _=M(204);return _.type=n,_.literal=i,_.transformFlags=1,_}function Ee(n,i,_){return n.type!==i||n.literal!==_?q(Ye(i,_),n):n}function Tn(n){return ct(n)}function rt(n,i,_){let c=M(182);return c.assertsModifier=n,c.parameterName=et(i),c.type=_,c.transformFlags=1,c}function ln(n,i,_,c){return n.assertsModifier!==i||n.parameterName!==_||n.type!==c?q(rt(i,_,c),n):n}function Zr(n,i){let _=M(183);return _.typeName=et(n),_.typeArguments=i&&o().parenthesizeTypeArguments(de(i)),_.transformFlags=1,_}function J(n,i,_){return n.typeName!==i||n.typeArguments!==_?q(Zr(i,_),n):n}function qe(n,i,_){let c=ae(184);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.modifiers=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function u(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Ne(qe(i,_,c),n):n}function Ne(n,i){return n!==i&&(n.modifiers=i.modifiers),Oe(n,i)}function Me(...n){return n.length===4?U(...n):n.length===3?ze(...n):B.fail("Incorrect number of arguments specified.")}function U(n,i,_,c){let f=ae(185);return f.modifiers=De(n),f.typeParameters=De(i),f.parameters=De(_),f.type=c,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.typeArguments=void 0,f}function ze(n,i,_){return U(void 0,n,i,_)}function an(...n){return n.length===5?Ve(...n):n.length===4?$e(...n):B.fail("Incorrect number of arguments specified.")}function Ve(n,i,_,c,f){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==f?Oe(Me(i,_,c,f),n):n}function $e(n,i,_,c){return Ve(n,n.modifiers,i,_,c)}function Pt(n,i){let _=M(186);return _.exprName=n,_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags=1,_}function kt(n,i,_){return n.exprName!==i||n.typeArguments!==_?q(Pt(i,_),n):n}function Nt(n){let i=ae(187);return i.members=de(n),i.transformFlags=1,i}function qt(n,i){return n.members!==i?q(Nt(i),n):n}function Gn(n){let i=M(188);return i.elementType=o().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function wi(n,i){return n.elementType!==i?q(Gn(i),n):n}function un(n){let i=M(189);return i.elements=de(o().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function G(n,i){return n.elements!==i?q(un(i),n):n}function le(n,i,_,c){let f=ae(202);return f.dotDotDotToken=n,f.name=i,f.questionToken=_,f.type=c,f.transformFlags=1,f.jsDoc=void 0,f}function Fe(n,i,_,c,f){return n.dotDotDotToken!==i||n.name!==_||n.questionToken!==c||n.type!==f?q(le(i,_,c,f),n):n}function ve(n){let i=M(190);return i.type=o().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function j(n,i){return n.type!==i?q(ve(i),n):n}function ht(n){let i=M(191);return i.type=n,i.transformFlags=1,i}function xt(n,i){return n.type!==i?q(ht(i),n):n}function Lt(n,i,_){let c=M(n);return c.types=ye.createNodeArray(_(i)),c.transformFlags=1,c}function pn(n,i,_){return n.types!==i?q(Lt(n.kind,i,_),n):n}function Bl(n){return Lt(192,n,o().parenthesizeConstituentTypesOfUnionType)}function Es(n,i){return pn(n,i,o().parenthesizeConstituentTypesOfUnionType)}function Or(n){return Lt(193,n,o().parenthesizeConstituentTypesOfIntersectionType)}function Je(n,i){return pn(n,i,o().parenthesizeConstituentTypesOfIntersectionType)}function ft(n,i,_,c){let f=M(194);return f.checkType=o().parenthesizeCheckTypeOfConditionalType(n),f.extendsType=o().parenthesizeExtendsTypeOfConditionalType(i),f.trueType=_,f.falseType=c,f.transformFlags=1,f.locals=void 0,f.nextContainer=void 0,f}function ql(n,i,_,c,f){return n.checkType!==i||n.extendsType!==_||n.trueType!==c||n.falseType!==f?q(ft(i,_,c,f),n):n}function Yn(n){let i=M(195);return i.typeParameter=n,i.transformFlags=1,i}function zl(n,i){return n.typeParameter!==i?q(Yn(i),n):n}function Wt(n,i){let _=M(203);return _.head=n,_.templateSpans=de(i),_.transformFlags=1,_}function Fl(n,i,_){return n.head!==i||n.templateSpans!==_?q(Wt(i,_),n):n}function sr(n,i,_,c,f=!1){let w=M(205);return w.argument=n,w.attributes=i,w.assertions&&w.assertions.assertClause&&w.attributes&&(w.assertions.assertClause=w.attributes),w.qualifier=_,w.typeArguments=c&&o().parenthesizeTypeArguments(c),w.isTypeOf=f,w.transformFlags=1,w}function aa(n,i,_,c,f,w=n.isTypeOf){return n.argument!==i||n.attributes!==_||n.qualifier!==c||n.typeArguments!==f||n.isTypeOf!==w?q(sr(i,_,c,f,w),n):n}function Qt(n){let i=M(196);return i.type=n,i.transformFlags=1,i}function Ct(n,i){return n.type!==i?q(Qt(i),n):n}function D(){let n=M(197);return n.transformFlags=1,n}function Gt(n,i){let _=M(198);return _.operator=n,_.type=n===148?o().parenthesizeOperandOfReadonlyTypeOperator(i):o().parenthesizeOperandOfTypeOperator(i),_.transformFlags=1,_}function Mr(n,i){return n.type!==i?q(Gt(n.operator,i),n):n}function or(n,i){let _=M(199);return _.objectType=o().parenthesizeNonArrayTypeOfPostfixType(n),_.indexType=i,_.transformFlags=1,_}function Ka(n,i,_){return n.objectType!==i||n.indexType!==_?q(or(i,_),n):n}function St(n,i,_,c,f,w){let F=ae(200);return F.readonlyToken=n,F.typeParameter=i,F.nameType=_,F.questionToken=c,F.type=f,F.members=w&&de(w),F.transformFlags=1,F.locals=void 0,F.nextContainer=void 0,F}function jt(n,i,_,c,f,w,F){return n.readonlyToken!==i||n.typeParameter!==_||n.nameType!==c||n.questionToken!==f||n.type!==w||n.members!==F?q(St(i,_,c,f,w,F),n):n}function ei(n){let i=M(201);return i.literal=n,i.transformFlags=1,i}function yr(n,i){return n.literal!==i?q(ei(i),n):n}function As(n){let i=M(206);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Vl(n,i){return n.elements!==i?q(As(i),n):n}function Jr(n){let i=M(207);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i}function Wl(n,i){return n.elements!==i?q(Jr(i),n):n}function _a(n,i,_,c){let f=ae(208);return f.dotDotDotToken=n,f.propertyName=et(i),f.name=et(_),f.initializer=Da(c),f.transformFlags|=z(f.dotDotDotToken)|jn(f.propertyName)|jn(f.name)|z(f.initializer)|(f.dotDotDotToken?32768:0)|1024,f.flowNode=void 0,f}function ti(n,i,_,c,f){return n.propertyName!==_||n.dotDotDotToken!==i||n.name!==c||n.initializer!==f?q(_a(i,_,c,f),n):n}function Za(n,i){let _=M(209),c=n&&Yi(n),f=de(n,c&&X1(c)?!0:void 0);return _.elements=o().parenthesizeExpressionsOfCommaDelimitedList(f),_.multiLine=i,_.transformFlags|=ke(_.elements),_}function Cs(n,i){return n.elements!==i?q(Za(i,n.multiLine),n):n}function ki(n,i){let _=ae(210);return _.properties=de(n),_.multiLine=i,_.transformFlags|=ke(_.properties),_.jsDoc=void 0,_}function Gl(n,i){return n.properties!==i?q(ki(i,n.multiLine),n):n}function Ds(n,i,_){let c=ae(211);return c.expression=n,c.questionDotToken=i,c.name=_,c.transformFlags=z(c.expression)|z(c.questionDotToken)|(tt(c.name)?ja(c.name):z(c.name)|536870912),c.jsDoc=void 0,c.flowNode=void 0,c}function cr(n,i){let _=Ds(o().parenthesizeLeftSideOfAccess(n,!1),void 0,et(i));return Cp(n)&&(_.transformFlags|=384),_}function Yl(n,i,_){return Lg(n)?sa(n,i,n.questionDotToken,kr(_,tt)):n.expression!==i||n.name!==_?q(cr(i,_),n):n}function Ei(n,i,_){let c=Ds(o().parenthesizeLeftSideOfAccess(n,!0),i,et(_));return c.flags|=64,c.transformFlags|=32,c}function sa(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==_||n.name!==c?q(Ei(i,_,c),n):n}function Ps(n,i,_){let c=ae(212);return c.expression=n,c.questionDotToken=i,c.argumentExpression=_,c.transformFlags|=z(c.expression)|z(c.questionDotToken)|z(c.argumentExpression),c.jsDoc=void 0,c.flowNode=void 0,c}function Ai(n,i){let _=Ps(o().parenthesizeLeftSideOfAccess(n,!1),void 0,pr(i));return Cp(n)&&(_.transformFlags|=384),_}function Xl(n,i,_){return jg(n)?e_(n,i,n.questionDotToken,_):n.expression!==i||n.argumentExpression!==_?q(Ai(i,_),n):n}function Ns(n,i,_){let c=Ps(o().parenthesizeLeftSideOfAccess(n,!0),i,pr(_));return c.flags|=64,c.transformFlags|=32,c}function e_(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==_||n.argumentExpression!==c?q(Ns(i,_,c),n):n}function Is(n,i,_,c){let f=ae(213);return f.expression=n,f.questionDotToken=i,f.typeArguments=_,f.arguments=c,f.transformFlags|=z(f.expression)|z(f.questionDotToken)|ke(f.typeArguments)|ke(f.arguments),f.typeArguments&&(f.transformFlags|=1),qd(f.expression)&&(f.transformFlags|=16384),f}function Ci(n,i,_){let c=Is(o().parenthesizeLeftSideOfAccess(n,!1),void 0,De(i),o().parenthesizeExpressionsOfCommaDelimitedList(de(_)));return Fb(c.expression)&&(c.transformFlags|=8388608),c}function oa(n,i,_,c){return Md(n)?Os(n,i,n.questionDotToken,_,c):n.expression!==i||n.typeArguments!==_||n.arguments!==c?q(Ci(i,_,c),n):n}function t_(n,i,_,c){let f=Is(o().parenthesizeLeftSideOfAccess(n,!0),i,De(_),o().parenthesizeExpressionsOfCommaDelimitedList(de(c)));return f.flags|=64,f.transformFlags|=32,f}function Os(n,i,_,c,f){return B.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==_||n.typeArguments!==c||n.arguments!==f?q(t_(i,_,c,f),n):n}function xn(n,i,_){let c=ae(214);return c.expression=o().parenthesizeExpressionOfNew(n),c.typeArguments=De(i),c.arguments=_?o().parenthesizeExpressionsOfCommaDelimitedList(_):void 0,c.transformFlags|=z(c.expression)|ke(c.typeArguments)|ke(c.arguments)|32,c.typeArguments&&(c.transformFlags|=1),c}function n_(n,i,_,c){return n.expression!==i||n.typeArguments!==_||n.arguments!==c?q(xn(i,_,c),n):n}function ca(n,i,_){let c=M(215);return c.tag=o().parenthesizeLeftSideOfAccess(n,!1),c.typeArguments=De(i),c.template=_,c.transformFlags|=z(c.tag)|ke(c.typeArguments)|z(c.template)|1024,c.typeArguments&&(c.transformFlags|=1),q2(c.template)&&(c.transformFlags|=128),c}function Ms(n,i,_,c){return n.tag!==i||n.typeArguments!==_||n.template!==c?q(ca(i,_,c),n):n}function Js(n,i){let _=M(216);return _.expression=o().parenthesizeOperandOfPrefixUnary(i),_.type=n,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function Ls(n,i,_){return n.type!==i||n.expression!==_?q(Js(i,_),n):n}function r_(n){let i=M(217);return i.expression=n,i.transformFlags=z(i.expression),i.jsDoc=void 0,i}function js(n,i){return n.expression!==i?q(r_(i),n):n}function i_(n,i,_,c,f,w,F){let pe=ae(218);pe.modifiers=De(n),pe.asteriskToken=i,pe.name=et(_),pe.typeParameters=De(c),pe.parameters=de(f),pe.type=w,pe.body=F;let Re=Rn(pe.modifiers)&1024,en=!!pe.asteriskToken,kn=Re&&en;return pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|jn(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(kn?128:Re?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Rs(n,i,_,c,f,w,F,pe){return n.name!==c||n.modifiers!==i||n.asteriskToken!==_||n.typeParameters!==f||n.parameters!==w||n.type!==F||n.body!==pe?Oe(i_(i,_,c,f,w,F,pe),n):n}function a_(n,i,_,c,f,w){let F=ae(219);F.modifiers=De(n),F.typeParameters=De(i),F.parameters=de(_),F.type=c,F.equalsGreaterThanToken=f??ct(39),F.body=o().parenthesizeConciseBodyOfArrowFunction(w);let pe=Rn(F.modifiers)&1024;return F.transformFlags=ke(F.modifiers)|ke(F.typeParameters)|ke(F.parameters)|z(F.type)|z(F.equalsGreaterThanToken)|z(F.body)&-67108865|(F.typeParameters||F.type?1:0)|(pe?16640:0)|1024,F.typeArguments=void 0,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.flowNode=void 0,F.endFlowNode=void 0,F.returnFlowNode=void 0,F}function Us(n,i,_,c,f,w,F){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==f||n.equalsGreaterThanToken!==w||n.body!==F?Oe(a_(i,_,c,f,w,F),n):n}function Bs(n){let i=M(220);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function qs(n,i){return n.expression!==i?q(Bs(i),n):n}function la(n){let i=M(221);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function fn(n,i){return n.expression!==i?q(la(i),n):n}function __(n){let i=M(222);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function lr(n,i){return n.expression!==i?q(__(i),n):n}function zs(n){let i=M(223);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression)|256|128|2097152,i}function Lr(n,i){return n.expression!==i?q(zs(i),n):n}function jr(n,i){let _=M(224);return _.operator=n,_.operand=o().parenthesizeOperandOfPrefixUnary(i),_.transformFlags|=z(_.operand),(n===46||n===47)&&tt(_.operand)&&!Ua(_.operand)&&!Kd(_.operand)&&(_.transformFlags|=268435456),_}function Hl(n,i){return n.operand!==i?q(jr(n.operator,i),n):n}function ni(n,i){let _=M(225);return _.operator=i,_.operand=o().parenthesizeOperandOfPostfixUnary(n),_.transformFlags|=z(_.operand),tt(_.operand)&&!Ua(_.operand)&&!Kd(_.operand)&&(_.transformFlags|=268435456),_}function $l(n,i){return n.operand!==i?q(ni(i,n.operator),n):n}function ua(n,i,_){let c=ae(226),f=$c(i),w=f.kind;return c.left=o().parenthesizeLeftSideOfBinary(w,n),c.operatorToken=f,c.right=o().parenthesizeRightSideOfBinary(w,c.left,_),c.transformFlags|=z(c.left)|z(c.operatorToken)|z(c.right),w===61?c.transformFlags|=32:w===64?Of(c.left)?c.transformFlags|=5248|Fs(c.left):V1(c.left)&&(c.transformFlags|=5120|Fs(c.left)):w===43||w===68?c.transformFlags|=512:K2(w)&&(c.transformFlags|=16),w===103&&gi(c.left)&&(c.transformFlags|=536870912),c.jsDoc=void 0,c}function Fs(n){return lh(n)?65536:0}function Ql(n,i,_,c){return n.left!==i||n.operatorToken!==_||n.right!==c?q(ua(i,_,c),n):n}function Vs(n,i,_,c,f){let w=M(227);return w.condition=o().parenthesizeConditionOfConditionalExpression(n),w.questionToken=i??ct(58),w.whenTrue=o().parenthesizeBranchOfConditionalExpression(_),w.colonToken=c??ct(59),w.whenFalse=o().parenthesizeBranchOfConditionalExpression(f),w.transformFlags|=z(w.condition)|z(w.questionToken)|z(w.whenTrue)|z(w.colonToken)|z(w.whenFalse),w}function Ws(n,i,_,c,f,w){return n.condition!==i||n.questionToken!==_||n.whenTrue!==c||n.colonToken!==f||n.whenFalse!==w?q(Vs(i,_,c,f,w),n):n}function Gs(n,i){let _=M(228);return _.head=n,_.templateSpans=de(i),_.transformFlags|=z(_.head)|ke(_.templateSpans)|1024,_}function Xn(n,i,_){return n.head!==i||n.templateSpans!==_?q(Gs(i,_),n):n}function Di(n,i,_,c=0){B.assert(!(c&-7177),"Unsupported template flags.");let f;if(_!==void 0&&_!==i&&(f=Mb(n,_),typeof f=="object"))return B.fail("Invalid raw text");if(i===void 0){if(f===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=f}else f!==void 0&&B.assert(i===f,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function Ys(n){let i=1024;return n&&(i|=128),i}function Kl(n,i,_,c){let f=$t(n);return f.text=i,f.rawText=_,f.templateFlags=c&7176,f.transformFlags=Ys(f.templateFlags),f}function ri(n,i,_,c){let f=ae(n);return f.text=i,f.rawText=_,f.templateFlags=c&7176,f.transformFlags=Ys(f.templateFlags),f}function ii(n,i,_,c){return n===15?ri(n,i,_,c):Kl(n,i,_,c)}function Xs(n,i,_){return n=Di(16,n,i,_),ii(16,n,i,_)}function pa(n,i,_){return n=Di(16,n,i,_),ii(17,n,i,_)}function s_(n,i,_){return n=Di(16,n,i,_),ii(18,n,i,_)}function Zl(n,i,_){return n=Di(16,n,i,_),ri(15,n,i,_)}function o_(n,i){B.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let _=M(229);return _.expression=i&&o().parenthesizeExpressionForDisallowedComma(i),_.asteriskToken=n,_.transformFlags|=z(_.expression)|z(_.asteriskToken)|1024|128|1048576,_}function eu(n,i,_){return n.expression!==_||n.asteriskToken!==i?q(o_(i,_),n):n}function Hs(n){let i=M(230);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|1024|32768,i}function tu(n,i){return n.expression!==i?q(Hs(i),n):n}function $s(n,i,_,c,f){let w=ae(231);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),w.transformFlags|=ke(w.modifiers)|jn(w.name)|ke(w.typeParameters)|ke(w.heritageClauses)|ke(w.members)|(w.typeParameters?1:0)|1024,w.jsDoc=void 0,w}function c_(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q($s(i,_,c,f,w),n):n}function l_(){return M(232)}function Qs(n,i){let _=M(233);return _.expression=o().parenthesizeLeftSideOfAccess(n,!1),_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags|=z(_.expression)|ke(_.typeArguments)|1024,_}function Ks(n,i,_){return n.expression!==i||n.typeArguments!==_?q(Qs(i,_),n):n}function dn(n,i){let _=M(234);return _.expression=n,_.type=i,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function fa(n,i,_){return n.expression!==i||n.type!==_?q(dn(i,_),n):n}function Zs(n){let i=M(235);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1,i}function eo(n,i){return Rg(n)?Jn(n,i):n.expression!==i?q(Zs(i),n):n}function u_(n,i){let _=M(238);return _.expression=n,_.type=i,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function to(n,i,_){return n.expression!==i||n.type!==_?q(u_(i,_),n):n}function p_(n){let i=M(235);return i.flags|=64,i.expression=o().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=z(i.expression)|1,i}function Jn(n,i){return B.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?q(p_(i),n):n}function no(n,i){let _=M(236);switch(_.keywordToken=n,_.name=i,_.transformFlags|=z(_.name),n){case 105:_.transformFlags|=1024;break;case 102:_.transformFlags|=32;break;default:return B.assertNever(n)}return _.flowNode=void 0,_}function f_(n,i){return n.name!==i?q(no(n.keywordToken,i),n):n}function Hn(n,i){let _=M(239);return _.expression=n,_.literal=i,_.transformFlags|=z(_.expression)|z(_.literal)|1024,_}function da(n,i,_){return n.expression!==i||n.literal!==_?q(Hn(i,_),n):n}function ro(){let n=M(240);return n.transformFlags|=1024,n}function Rr(n,i){let _=M(241);return _.statements=de(n),_.multiLine=i,_.transformFlags|=ke(_.statements),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function nu(n,i){return n.statements!==i?q(Rr(i,n.multiLine),n):n}function d_(n,i){let _=M(243);return _.modifiers=De(n),_.declarationList=Yr(i)?v_(i):i,_.transformFlags|=ke(_.modifiers)|z(_.declarationList),Rn(_.modifiers)&128&&(_.transformFlags=1),_.jsDoc=void 0,_.flowNode=void 0,_}function io(n,i,_){return n.modifiers!==i||n.declarationList!==_?q(d_(i,_),n):n}function ao(){let n=M(242);return n.jsDoc=void 0,n}function Pi(n){let i=M(244);return i.expression=o().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function _o(n,i){return n.expression!==i?q(Pi(i),n):n}function so(n,i,_){let c=M(245);return c.expression=n,c.thenStatement=It(i),c.elseStatement=It(_),c.transformFlags|=z(c.expression)|z(c.thenStatement)|z(c.elseStatement),c.jsDoc=void 0,c.flowNode=void 0,c}function oo(n,i,_,c){return n.expression!==i||n.thenStatement!==_||n.elseStatement!==c?q(so(i,_,c),n):n}function co(n,i){let _=M(246);return _.statement=It(n),_.expression=i,_.transformFlags|=z(_.statement)|z(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function lo(n,i,_){return n.statement!==i||n.expression!==_?q(co(i,_),n):n}function uo(n,i){let _=M(247);return _.expression=n,_.statement=It(i),_.transformFlags|=z(_.expression)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function ru(n,i,_){return n.expression!==i||n.statement!==_?q(uo(i,_),n):n}function po(n,i,_,c){let f=M(248);return f.initializer=n,f.condition=i,f.incrementor=_,f.statement=It(c),f.transformFlags|=z(f.initializer)|z(f.condition)|z(f.incrementor)|z(f.statement),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function fo(n,i,_,c,f){return n.initializer!==i||n.condition!==_||n.incrementor!==c||n.statement!==f?q(po(i,_,c,f),n):n}function m_(n,i,_){let c=M(249);return c.initializer=n,c.expression=i,c.statement=It(_),c.transformFlags|=z(c.initializer)|z(c.expression)|z(c.statement),c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c}function iu(n,i,_,c){return n.initializer!==i||n.expression!==_||n.statement!==c?q(m_(i,_,c),n):n}function mo(n,i,_,c){let f=M(250);return f.awaitModifier=n,f.initializer=i,f.expression=o().parenthesizeExpressionForDisallowedComma(_),f.statement=It(c),f.transformFlags|=z(f.awaitModifier)|z(f.initializer)|z(f.expression)|z(f.statement)|1024,n&&(f.transformFlags|=128),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function au(n,i,_,c,f){return n.awaitModifier!==i||n.initializer!==_||n.expression!==c||n.statement!==f?q(mo(i,_,c,f),n):n}function ho(n){let i=M(251);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function _u(n,i){return n.label!==i?q(ho(i),n):n}function h_(n){let i=M(252);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function yo(n,i){return n.label!==i?q(h_(i),n):n}function y_(n){let i=M(253);return i.expression=n,i.transformFlags|=z(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function su(n,i){return n.expression!==i?q(y_(i),n):n}function g_(n,i){let _=M(254);return _.expression=n,_.statement=It(i),_.transformFlags|=z(_.expression)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function go(n,i,_){return n.expression!==i||n.statement!==_?q(g_(i,_),n):n}function b_(n,i){let _=M(255);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.caseBlock=i,_.transformFlags|=z(_.expression)|z(_.caseBlock),_.jsDoc=void 0,_.flowNode=void 0,_.possiblyExhaustive=!1,_}function ai(n,i,_){return n.expression!==i||n.caseBlock!==_?q(b_(i,_),n):n}function bo(n,i){let _=M(256);return _.label=et(n),_.statement=It(i),_.transformFlags|=z(_.label)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function vo(n,i,_){return n.label!==i||n.statement!==_?q(bo(i,_),n):n}function To(n){let i=M(257);return i.expression=n,i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function ou(n,i){return n.expression!==i?q(To(i),n):n}function xo(n,i,_){let c=M(258);return c.tryBlock=n,c.catchClause=i,c.finallyBlock=_,c.transformFlags|=z(c.tryBlock)|z(c.catchClause)|z(c.finallyBlock),c.jsDoc=void 0,c.flowNode=void 0,c}function cu(n,i,_,c){return n.tryBlock!==i||n.catchClause!==_||n.finallyBlock!==c?q(xo(i,_,c),n):n}function So(){let n=M(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function ma(n,i,_,c){let f=ae(260);return f.name=et(n),f.exclamationToken=i,f.type=_,f.initializer=Da(c),f.transformFlags|=jn(f.name)|z(f.initializer)|(f.exclamationToken??f.type?1:0),f.jsDoc=void 0,f}function wo(n,i,_,c,f){return n.name!==i||n.type!==c||n.exclamationToken!==_||n.initializer!==f?q(ma(i,_,c,f),n):n}function v_(n,i=0){let _=M(261);return _.flags|=i&7,_.declarations=de(n),_.transformFlags|=ke(_.declarations)|4194304,i&7&&(_.transformFlags|=263168),i&4&&(_.transformFlags|=4),_}function lu(n,i){return n.declarations!==i?q(v_(i,n.flags),n):n}function ko(n,i,_,c,f,w,F){let pe=ae(262);if(pe.modifiers=De(n),pe.asteriskToken=i,pe.name=et(_),pe.typeParameters=De(c),pe.parameters=de(f),pe.type=w,pe.body=F,!pe.body||Rn(pe.modifiers)&128)pe.transformFlags=1;else{let Re=Rn(pe.modifiers)&1024,en=!!pe.asteriskToken,kn=Re&&en;pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|jn(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(kn?128:Re?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304}return pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function T_(n,i,_,c,f,w,F,pe){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.typeParameters!==f||n.parameters!==w||n.type!==F||n.body!==pe?uu(ko(i,_,c,f,w,F,pe),n):n}function uu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),Oe(n,i)}function Eo(n,i,_,c,f){let w=ae(263);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),Rn(w.modifiers)&128?w.transformFlags=1:(w.transformFlags|=ke(w.modifiers)|jn(w.name)|ke(w.typeParameters)|ke(w.heritageClauses)|ke(w.members)|(w.typeParameters?1:0)|1024,w.transformFlags&8192&&(w.transformFlags|=1)),w.jsDoc=void 0,w}function ha(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q(Eo(i,_,c,f,w),n):n}function Ao(n,i,_,c,f){let w=ae(264);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),w.transformFlags=1,w.jsDoc=void 0,w}function Co(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q(Ao(i,_,c,f,w),n):n}function ot(n,i,_,c){let f=ae(265);return f.modifiers=De(n),f.name=et(i),f.typeParameters=De(_),f.type=c,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function gr(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.type!==f?q(ot(i,_,c,f),n):n}function x_(n,i,_){let c=ae(266);return c.modifiers=De(n),c.name=et(i),c.members=de(_),c.transformFlags|=ke(c.modifiers)|z(c.name)|ke(c.members)|1,c.transformFlags&=-67108865,c.jsDoc=void 0,c}function br(n,i,_,c){return n.modifiers!==i||n.name!==_||n.members!==c?q(x_(i,_,c),n):n}function Do(n,i,_,c=0){let f=ae(267);return f.modifiers=De(n),f.flags|=c&2088,f.name=i,f.body=_,Rn(f.modifiers)&128?f.transformFlags=1:f.transformFlags|=ke(f.modifiers)|z(f.name)|z(f.body)|1,f.transformFlags&=-67108865,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Et(n,i,_,c){return n.modifiers!==i||n.name!==_||n.body!==c?q(Do(i,_,c,n.flags),n):n}function vr(n){let i=M(268);return i.statements=de(n),i.transformFlags|=ke(i.statements),i.jsDoc=void 0,i}function zt(n,i){return n.statements!==i?q(vr(i),n):n}function Po(n){let i=M(269);return i.clauses=de(n),i.transformFlags|=ke(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function pu(n,i){return n.clauses!==i?q(Po(i),n):n}function No(n){let i=ae(270);return i.name=et(n),i.transformFlags|=ja(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Io(n,i){return n.name!==i?fu(No(i),n):n}function fu(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function Oo(n,i,_,c){let f=ae(271);return f.modifiers=De(n),f.name=et(_),f.isTypeOnly=i,f.moduleReference=c,f.transformFlags|=ke(f.modifiers)|ja(f.name)|z(f.moduleReference),Ff(f.moduleReference)||(f.transformFlags|=1),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Mo(n,i,_,c,f){return n.modifiers!==i||n.isTypeOnly!==_||n.name!==c||n.moduleReference!==f?q(Oo(i,_,c,f),n):n}function Jo(n,i,_,c){let f=M(272);return f.modifiers=De(n),f.importClause=i,f.moduleSpecifier=_,f.attributes=f.assertClause=c,f.transformFlags|=z(f.importClause)|z(f.moduleSpecifier),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Lo(n,i,_,c,f){return n.modifiers!==i||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==f?q(Jo(i,_,c,f),n):n}function jo(n,i,_){let c=ae(273);return c.isTypeOnly=n,c.name=i,c.namedBindings=_,c.transformFlags|=z(c.name)|z(c.namedBindings),n&&(c.transformFlags|=1),c.transformFlags&=-67108865,c}function Ro(n,i,_,c){return n.isTypeOnly!==i||n.name!==_||n.namedBindings!==c?q(jo(i,_,c),n):n}function S_(n,i){let _=M(300);return _.elements=de(n),_.multiLine=i,_.token=132,_.transformFlags|=4,_}function du(n,i,_){return n.elements!==i||n.multiLine!==_?q(S_(i,_),n):n}function Ni(n,i){let _=M(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Uo(n,i,_){return n.name!==i||n.value!==_?q(Ni(i,_),n):n}function w_(n,i){let _=M(302);return _.assertClause=n,_.multiLine=i,_}function Bo(n,i,_){return n.assertClause!==i||n.multiLine!==_?q(w_(i,_),n):n}function qo(n,i,_){let c=M(300);return c.token=_??118,c.elements=de(n),c.multiLine=i,c.transformFlags|=4,c}function k_(n,i,_){return n.elements!==i||n.multiLine!==_?q(qo(i,_,n.token),n):n}function zo(n,i){let _=M(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Fo(n,i,_){return n.name!==i||n.value!==_?q(zo(i,_),n):n}function Vo(n){let i=ae(274);return i.name=n,i.transformFlags|=z(i.name),i.transformFlags&=-67108865,i}function mu(n,i){return n.name!==i?q(Vo(i),n):n}function Wo(n){let i=ae(280);return i.name=n,i.transformFlags|=z(i.name)|32,i.transformFlags&=-67108865,i}function hu(n,i){return n.name!==i?q(Wo(i),n):n}function Go(n){let i=M(275);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function Yo(n,i){return n.elements!==i?q(Go(i),n):n}function Tr(n,i,_){let c=ae(276);return c.isTypeOnly=n,c.propertyName=i,c.name=_,c.transformFlags|=z(c.propertyName)|z(c.name),c.transformFlags&=-67108865,c}function yu(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?q(Tr(i,_,c),n):n}function ya(n,i,_){let c=ae(277);return c.modifiers=De(n),c.isExportEquals=i,c.expression=i?o().parenthesizeRightSideOfBinary(64,void 0,_):o().parenthesizeExpressionOfExportDefault(_),c.transformFlags|=ke(c.modifiers)|z(c.expression),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function Ii(n,i,_){return n.modifiers!==i||n.expression!==_?q(ya(i,n.isExportEquals,_),n):n}function ga(n,i,_,c,f){let w=ae(278);return w.modifiers=De(n),w.isTypeOnly=i,w.exportClause=_,w.moduleSpecifier=c,w.attributes=w.assertClause=f,w.transformFlags|=ke(w.modifiers)|z(w.exportClause)|z(w.moduleSpecifier),w.transformFlags&=-67108865,w.jsDoc=void 0,w}function Xo(n,i,_,c,f,w){return n.modifiers!==i||n.isTypeOnly!==_||n.exportClause!==c||n.moduleSpecifier!==f||n.attributes!==w?Oi(ga(i,_,c,f,w),n):n}function Oi(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),q(n,i)}function E_(n){let i=M(279);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function gu(n,i){return n.elements!==i?q(E_(i),n):n}function ba(n,i,_){let c=M(281);return c.isTypeOnly=n,c.propertyName=et(i),c.name=et(_),c.transformFlags|=z(c.propertyName)|z(c.name),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function bu(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?q(ba(i,_,c),n):n}function vu(){let n=ae(282);return n.jsDoc=void 0,n}function A_(n){let i=M(283);return i.expression=n,i.transformFlags|=z(i.expression),i.transformFlags&=-67108865,i}function Tu(n,i){return n.expression!==i?q(A_(i),n):n}function Ho(n){return M(n)}function $o(n,i,_=!1){let c=C_(n,_?i&&o().parenthesizeNonArrayTypeOfPostfixType(i):i);return c.postfix=_,c}function C_(n,i){let _=M(n);return _.type=i,_}function xu(n,i,_){return i.type!==_?q($o(n,_,i.postfix),i):i}function Su(n,i,_){return i.type!==_?q(C_(n,_),i):i}function Qo(n,i){let _=ae(317);return _.parameters=De(n),_.type=i,_.transformFlags=ke(_.parameters)|(_.type?1:0),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function wu(n,i,_){return n.parameters!==i||n.type!==_?q(Qo(i,_),n):n}function Ko(n,i=!1){let _=ae(322);return _.jsDocPropertyTags=De(n),_.isArrayType=i,_}function ku(n,i,_){return n.jsDocPropertyTags!==i||n.isArrayType!==_?q(Ko(i,_),n):n}function Zo(n){let i=M(309);return i.type=n,i}function D_(n,i){return n.type!==i?q(Zo(i),n):n}function ec(n,i,_){let c=ae(323);return c.typeParameters=De(n),c.parameters=de(i),c.type=_,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c}function Eu(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?q(ec(i,_,c),n):n}function _n(n){let i=al(n.kind);return n.tagName.escapedText===Ja(i)?n.tagName:Ge(i)}function Sn(n,i,_){let c=M(n);return c.tagName=i,c.comment=_,c}function Ur(n,i,_){let c=ae(n);return c.tagName=i,c.comment=_,c}function P_(n,i,_,c){let f=Sn(345,n??Ge("template"),c);return f.constraint=i,f.typeParameters=de(_),f}function tc(n,i=_n(n),_,c,f){return n.tagName!==i||n.constraint!==_||n.typeParameters!==c||n.comment!==f?q(P_(i,_,c,f),n):n}function va(n,i,_,c){let f=Ur(346,n??Ge("typedef"),c);return f.typeExpression=i,f.fullName=_,f.name=Zd(_),f.locals=void 0,f.nextContainer=void 0,f}function Au(n,i=_n(n),_,c,f){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==f?q(va(i,_,c,f),n):n}function N_(n,i,_,c,f,w){let F=Ur(341,n??Ge("param"),w);return F.typeExpression=c,F.name=i,F.isNameFirst=!!f,F.isBracketed=_,F}function Cu(n,i=_n(n),_,c,f,w,F){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==f||n.isNameFirst!==w||n.comment!==F?q(N_(i,_,c,f,w,F),n):n}function nc(n,i,_,c,f,w){let F=Ur(348,n??Ge("prop"),w);return F.typeExpression=c,F.name=i,F.isNameFirst=!!f,F.isBracketed=_,F}function rc(n,i=_n(n),_,c,f,w,F){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==f||n.isNameFirst!==w||n.comment!==F?q(nc(i,_,c,f,w,F),n):n}function ic(n,i,_,c){let f=Ur(338,n??Ge("callback"),c);return f.typeExpression=i,f.fullName=_,f.name=Zd(_),f.locals=void 0,f.nextContainer=void 0,f}function ac(n,i=_n(n),_,c,f){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==f?q(ic(i,_,c,f),n):n}function _c(n,i,_){let c=Sn(339,n??Ge("overload"),_);return c.typeExpression=i,c}function I_(n,i=_n(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?q(_c(i,_,c),n):n}function O_(n,i,_){let c=Sn(328,n??Ge("augments"),_);return c.class=i,c}function Mi(n,i=_n(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?q(O_(i,_,c),n):n}function sc(n,i,_){let c=Sn(329,n??Ge("implements"),_);return c.class=i,c}function Br(n,i,_){let c=Sn(347,n??Ge("see"),_);return c.name=i,c}function Ta(n,i,_,c){return n.tagName!==i||n.name!==_||n.comment!==c?q(Br(i,_,c),n):n}function oc(n){let i=M(310);return i.name=n,i}function Du(n,i){return n.name!==i?q(oc(i),n):n}function cc(n,i){let _=M(311);return _.left=n,_.right=i,_.transformFlags|=z(_.left)|z(_.right),_}function Pu(n,i,_){return n.left!==i||n.right!==_?q(cc(i,_),n):n}function lc(n,i){let _=M(324);return _.name=n,_.text=i,_}function uc(n,i,_){return n.name!==i?q(lc(i,_),n):n}function pc(n,i){let _=M(325);return _.name=n,_.text=i,_}function Nu(n,i,_){return n.name!==i?q(pc(i,_),n):n}function fc(n,i){let _=M(326);return _.name=n,_.text=i,_}function Iu(n,i,_){return n.name!==i?q(fc(i,_),n):n}function Ou(n,i=_n(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?q(sc(i,_,c),n):n}function dc(n,i,_){return Sn(n,i??Ge(al(n)),_)}function Mu(n,i,_=_n(i),c){return i.tagName!==_||i.comment!==c?q(dc(n,_,c),i):i}function mc(n,i,_,c){let f=Sn(n,i??Ge(al(n)),c);return f.typeExpression=_,f}function Ju(n,i,_=_n(i),c,f){return i.tagName!==_||i.typeExpression!==c||i.comment!==f?q(mc(n,_,c,f),i):i}function hc(n,i){return Sn(327,n,i)}function Lu(n,i,_){return n.tagName!==i||n.comment!==_?q(hc(i,_),n):n}function yc(n,i,_){let c=Ur(340,n??Ge(al(340)),_);return c.typeExpression=i,c.locals=void 0,c.nextContainer=void 0,c}function M_(n,i=_n(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?q(yc(i,_,c),n):n}function gc(n,i,_,c,f){let w=Sn(351,n??Ge("import"),f);return w.importClause=i,w.moduleSpecifier=_,w.attributes=c,w.comment=f,w}function bc(n,i,_,c,f,w){return n.tagName!==i||n.comment!==w||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==f?q(gc(i,_,c,f,w),n):n}function J_(n){let i=M(321);return i.text=n,i}function ju(n,i){return n.text!==i?q(J_(i),n):n}function Ji(n,i){let _=M(320);return _.comment=n,_.tags=De(i),_}function vc(n,i,_){return n.comment!==i||n.tags!==_?q(Ji(i,_),n):n}function Tc(n,i,_){let c=M(284);return c.openingElement=n,c.children=de(i),c.closingElement=_,c.transformFlags|=z(c.openingElement)|ke(c.children)|z(c.closingElement)|2,c}function Ru(n,i,_,c){return n.openingElement!==i||n.children!==_||n.closingElement!==c?q(Tc(i,_,c),n):n}function xc(n,i,_){let c=M(285);return c.tagName=n,c.typeArguments=De(i),c.attributes=_,c.transformFlags|=z(c.tagName)|ke(c.typeArguments)|z(c.attributes)|2,c.typeArguments&&(c.transformFlags|=1),c}function L_(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?q(xc(i,_,c),n):n}function j_(n,i,_){let c=M(286);return c.tagName=n,c.typeArguments=De(i),c.attributes=_,c.transformFlags|=z(c.tagName)|ke(c.typeArguments)|z(c.attributes)|2,i&&(c.transformFlags|=1),c}function Sc(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?q(j_(i,_,c),n):n}function xa(n){let i=M(287);return i.tagName=n,i.transformFlags|=z(i.tagName)|2,i}function Kt(n,i){return n.tagName!==i?q(xa(i),n):n}function R_(n,i,_){let c=M(288);return c.openingFragment=n,c.children=de(i),c.closingFragment=_,c.transformFlags|=z(c.openingFragment)|ke(c.children)|z(c.closingFragment)|2,c}function wc(n,i,_,c){return n.openingFragment!==i||n.children!==_||n.closingFragment!==c?q(R_(i,_,c),n):n}function Sa(n,i){let _=M(12);return _.text=n,_.containsOnlyTriviaWhiteSpaces=!!i,_.transformFlags|=2,_}function kc(n,i,_){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==_?q(Sa(i,_),n):n}function Uu(){let n=M(289);return n.transformFlags|=2,n}function Bu(){let n=M(290);return n.transformFlags|=2,n}function Ec(n,i){let _=ae(291);return _.name=n,_.initializer=i,_.transformFlags|=z(_.name)|z(_.initializer)|2,_}function wa(n,i,_){return n.name!==i||n.initializer!==_?q(Ec(i,_),n):n}function Ac(n){let i=ae(292);return i.properties=de(n),i.transformFlags|=ke(i.properties)|2,i}function qu(n,i){return n.properties!==i?q(Ac(i),n):n}function Cc(n){let i=M(293);return i.expression=n,i.transformFlags|=z(i.expression)|2,i}function zu(n,i){return n.expression!==i?q(Cc(i),n):n}function ka(n,i){let _=M(294);return _.dotDotDotToken=n,_.expression=i,_.transformFlags|=z(_.dotDotDotToken)|z(_.expression)|2,_}function Li(n,i){return n.expression!==i?q(ka(n.dotDotDotToken,i),n):n}function Dc(n,i){let _=M(295);return _.namespace=n,_.name=i,_.transformFlags|=z(_.namespace)|z(_.name)|2,_}function U_(n,i,_){return n.namespace!==i||n.name!==_?q(Dc(i,_),n):n}function B_(n,i){let _=M(296);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.statements=de(i),_.transformFlags|=z(_.expression)|ke(_.statements),_.jsDoc=void 0,_}function Fu(n,i,_){return n.expression!==i||n.statements!==_?q(B_(i,_),n):n}function _i(n){let i=M(297);return i.statements=de(n),i.transformFlags=ke(i.statements),i}function Pc(n,i){return n.statements!==i?q(_i(i),n):n}function Nc(n,i){let _=M(298);switch(_.token=n,_.types=de(i),_.transformFlags|=ke(_.types),n){case 96:_.transformFlags|=1024;break;case 119:_.transformFlags|=1;break;default:return B.assertNever(n)}return _}function Vu(n,i){return n.types!==i?q(Nc(n.token,i),n):n}function q_(n,i){let _=M(299);return _.variableDeclaration=xr(n),_.block=i,_.transformFlags|=z(_.variableDeclaration)|z(_.block)|(n?0:64),_.locals=void 0,_.nextContainer=void 0,_}function Ic(n,i,_){return n.variableDeclaration!==i||n.block!==_?q(q_(i,_),n):n}function Ea(n,i){let _=ae(303);return _.name=et(n),_.initializer=o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=jn(_.name)|z(_.initializer),_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function qr(n,i,_){return n.name!==i||n.initializer!==_?Wu(Ea(i,_),n):n}function Wu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),q(n,i)}function Oc(n,i){let _=ae(304);return _.name=et(n),_.objectAssignmentInitializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=ja(_.name)|z(_.objectAssignmentInitializer)|1024,_.equalsToken=void 0,_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function Gu(n,i,_){return n.name!==i||n.objectAssignmentInitializer!==_?Yu(Oc(i,_),n):n}function Yu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),q(n,i)}function z_(n){let i=ae(305);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|128|65536,i.jsDoc=void 0,i}function Mc(n,i){return n.expression!==i?q(z_(i),n):n}function wn(n,i){let _=ae(306);return _.name=et(n),_.initializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=z(_.name)|z(_.initializer)|1,_.jsDoc=void 0,_}function Jc(n,i,_){return n.name!==i||n.initializer!==_?q(wn(i,_),n):n}function Xu(n,i,_){let c=t.createBaseSourceFileNode(307);return c.statements=de(n),c.endOfFileToken=i,c.flags|=_,c.text="",c.fileName="",c.path="",c.resolvedPath="",c.originalFileName="",c.languageVersion=1,c.languageVariant=0,c.scriptKind=0,c.isDeclarationFile=!1,c.hasNoDefaultLib=!1,c.transformFlags|=ke(c.statements)|z(c.endOfFileToken),c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.nodeCount=0,c.identifierCount=0,c.symbolCount=0,c.parseDiagnostics=void 0,c.bindDiagnostics=void 0,c.bindSuggestionDiagnostics=void 0,c.lineMap=void 0,c.externalModuleIndicator=void 0,c.setExternalModuleIndicator=void 0,c.pragmas=void 0,c.checkJsDirective=void 0,c.referencedFiles=void 0,c.typeReferenceDirectives=void 0,c.libReferenceDirectives=void 0,c.amdDependencies=void 0,c.commentDirectives=void 0,c.identifiers=void 0,c.packageJsonLocations=void 0,c.packageJsonScope=void 0,c.imports=void 0,c.moduleAugmentations=void 0,c.ambientModuleNames=void 0,c.classifiableNames=void 0,c.impliedNodeFormat=void 0,c}function Lc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(_){this.redirectInfo.redirectTarget.id=_}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(_){this.redirectInfo.redirectTarget.symbol=_}}}),i.redirectInfo=n,i}function Hu(n){let i=Lc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function jc(n){let i=t.createBaseSourceFileNode(307);i.flags|=n.flags&-17;for(let _ in n)if(!(Cr(i,_)||!Cr(n,_))){if(_==="emitNode"){i.emitNode=void 0;continue}i[_]=n[_]}return i}function Aa(n){let i=n.redirectInfo?Hu(n):jc(n);return a(i,n),i}function $u(n,i,_,c,f,w,F){let pe=Aa(n);return pe.statements=de(i),pe.isDeclarationFile=_,pe.referencedFiles=c,pe.typeReferenceDirectives=f,pe.hasNoDefaultLib=w,pe.libReferenceDirectives=F,pe.transformFlags=ke(pe.statements)|z(pe.endOfFileToken),pe}function Qu(n,i,_=n.isDeclarationFile,c=n.referencedFiles,f=n.typeReferenceDirectives,w=n.hasNoDefaultLib,F=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==_||n.referencedFiles!==c||n.typeReferenceDirectives!==f||n.hasNoDefaultLib!==w||n.libReferenceDirectives!==F?q($u(n,i,_,c,f,w,F),n):n}function F_(n){let i=M(308);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function Ku(n,i){return n.sourceFiles!==i?q(F_(i),n):n}function Zu(n,i=!1,_){let c=M(237);return c.type=n,c.isSpread=i,c.tupleNameSource=_,c}function Ca(n){let i=M(352);return i._children=n,i}function Rc(n){let i=M(353);return i.original=n,yn(i,n),i}function Uc(n,i){let _=M(355);return _.expression=n,_.original=i,_.transformFlags|=z(_.expression)|1,yn(_,i),_}function Bc(n,i){return n.expression!==i?q(Uc(i,n.original),n):n}function ep(){return M(354)}function tp(n){if(La(n)&&!hl(n)&&!n.original&&!n.emitNode&&!n.id){if(r6(n))return n.elements;if(Zi(n)&&qb(n.operatorToken))return[n.left,n.right]}return n}function V_(n){let i=M(356);return i.elements=de(oy(n,tp)),i.transformFlags|=ke(i.elements),i}function qc(n,i){return n.elements!==i?q(V_(i),n):n}function W_(n,i){let _=M(357);return _.expression=n,_.thisArg=i,_.transformFlags|=z(_.expression)|z(_.thisArg),_}function zc(n,i,_){return n.expression!==i||n.thisArg!==_?q(W_(i,_),n):n}function np(n){let i=bn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function rp(n){let i=bn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let _=getIdentifierTypeArguments(n);return _&&setIdentifierTypeArguments(i,_),i}function Fc(n){let i=On(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function Vc(n){let i=On(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function G_(n){if(n===void 0)return n;if(nh(n))return Aa(n);if(Ua(n))return np(n);if(tt(n))return rp(n);if(a1(n))return Fc(n);if(gi(n))return Vc(n);let i=df(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let _ in n)Cr(i,_)||!Cr(n,_)||(i[_]=n[_]);return i}function ip(n,i,_){return Ci(i_(void 0,void 0,void 0,void 0,i?[i]:[],void 0,Rr(n,!0)),void 0,_?[_]:[])}function ap(n,i,_){return Ci(a_(void 0,void 0,i?[i]:[],void 0,void 0,Rr(n,!0)),void 0,_?[_]:[])}function si(){return __(V("0"))}function Wc(n){return ya(void 0,!1,n)}function _p(n){return ga(void 0,!1,E_([ba(!1,void 0,n)]))}function Y_(n,i){return i==="null"?ye.createStrictEquality(n,Jt()):i==="undefined"?ye.createStrictEquality(n,si()):ye.createStrictEquality(la(n),dt(i))}function sp(n,i){return i==="null"?ye.createStrictInequality(n,Jt()):i==="undefined"?ye.createStrictInequality(n,si()):ye.createStrictInequality(la(n),dt(i))}function zr(n,i,_){return Md(n)?t_(Ei(n,void 0,i),void 0,void 0,_):Ci(cr(n,i),void 0,_)}function op(n,i,_){return zr(n,"bind",[i,..._])}function cp(n,i,_){return zr(n,"call",[i,..._])}function lp(n,i,_){return zr(n,"apply",[i,_])}function ji(n,i,_){return zr(Ge(n),i,_)}function Ri(n,i){return zr(n,"slice",i===void 0?[]:[pr(i)])}function up(n,i){return zr(n,"concat",i)}function X_(n,i,_){return ji("Object","defineProperty",[n,pr(i),_])}function oi(n,i){return ji("Object","getOwnPropertyDescriptor",[n,pr(i)])}function Gc(n,i,_){return ji("Reflect","get",_?[n,i,_]:[n,i])}function pp(n,i,_,c){return ji("Reflect","set",c?[n,i,_,c]:[n,i,_])}function ci(n,i,_){return _?(n.push(Ea(i,_)),!0):!1}function Yc(n,i){let _=[];ci(_,"enumerable",pr(n.enumerable)),ci(_,"configurable",pr(n.configurable));let c=ci(_,"writable",pr(n.writable));c=ci(_,"value",n.value)||c;let f=ci(_,"get",n.get);return f=ci(_,"set",n.set)||f,B.assert(!(c&&f),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ki(_,!i)}function fp(n,i){switch(n.kind){case 217:return js(n,i);case 216:return Ls(n,n.type,i);case 234:return fa(n,i,n.type);case 238:return to(n,i,n.type);case 235:return eo(n,i);case 233:return Ks(n,i,n.typeArguments);case 355:return Bc(n,i)}}function dp(n){return Cl(n)&&La(n)&&La(getSourceMapRange(n))&&La(getCommentRange(n))&&!Xt(getSyntheticLeadingComments(n))&&!Xt(getSyntheticTrailingComments(n))}function Xc(n,i,_=31){return n&&ch(n,_)&&!dp(n)?fp(n,Xc(n.expression,i)):i}function H_(n,i,_){if(!i)return n;let c=vo(i,i.label,$1(i.statement)?H_(n,i.statement):n);return _&&_(i),c}function $_(n,i){let _=Tf(n);switch(_.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 209:return _.elements.length!==0;case 210:return _.properties.length>0;default:return!0}}function Hc(n,i,_,c=!1){let f=Wf(n,31),w,F;return qd(f)?(w=Ut(),F=f):Cp(f)?(w=Ut(),F=_!==void 0&&_<2?yn(Ge("_super"),f):f):za(f)&8192?(w=si(),F=o().parenthesizeLeftSideOfAccess(f,!1)):Xr(f)?$_(f.expression,c)?(w=ir(i),F=cr(yn(ye.createAssignment(w,f.expression),f.expression),f.name),yn(F,f)):(w=f.expression,F=f):Xa(f)?$_(f.expression,c)?(w=ir(i),F=Ai(yn(ye.createAssignment(w,f.expression),f.expression),f.argumentExpression),yn(F,f)):(w=f.expression,F=f):(w=si(),F=o().parenthesizeLeftSideOfAccess(n,!1)),{target:F,thisArg:w}}function s(n,i){return cr(r_(ki([R(void 0,"value",[fr(void 0,void 0,n,void 0,void 0,void 0)],Rr([Pi(i)]))])),"value")}function p(n){return n.length>10?V_(n):gy(n,ye.createComma)}function d(n,i,_,c=0,f){let w=f?n&&uf(n):Zm(n);if(w&&tt(w)&&!Ua(w)){let F=wf(yn(G_(w),w),w.parent);return c|=za(w),_||(c|=96),i||(c|=3072),c&&setEmitFlags(F,c),F}return Bn(n)}function b(n,i,_){return d(n,i,_,98304)}function S(n,i,_,c){return d(n,i,_,32768,c)}function N(n,i,_){return d(n,i,_,16384)}function H(n,i,_){return d(n,i,_)}function _e(n,i,_,c){let f=cr(n,La(i)?i:G_(i));yn(f,i);let w=0;return c||(w|=96),_||(w|=3072),w&&setEmitFlags(f,w),f}function Z(n,i,_,c){return n&&bs(i,32)?_e(n,d(i),_,c):N(i,_,c)}function ee(n,i,_,c){let f=je(n,i,0,_);return Ae(n,i,f,c)}function ce(n){return Ya(n.expression)&&n.expression.text==="use strict"}function Le(){return w6(Pi(dt("use strict")))}function je(n,i,_=0,c){B.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let f=!1,w=n.length;for(;_<w;){let F=n[_];if(cl(F))ce(F)&&(f=!0),i.push(F);else break;_++}return c&&!f&&i.push(Le()),_}function Ae(n,i,_,c,f=wy){let w=n.length;for(;_!==void 0&&_<w;){let F=n[_];if(za(F)&2097152&&f(F))An(i,c?visitNode(F,c,e2):F);else break;_++}return _}function Yt(n){return x6(n)?n:yn(de([Le(),...n]),n)}function mn(n){return B.assert(Yp(n,n2),"Cannot lift nodes to a Block."),my(n)||Rr(n)}function Zt(n,i,_){let c=_;for(;c<n.length&&i(n[c]);)c++;return c}function ur(n,i){if(!Xt(i))return n;let _=Zt(n,cl,0),c=Zt(n,Ud,_),f=Zt(n,Bd,c),w=Zt(i,cl,0),F=Zt(i,Ud,w),pe=Zt(i,Bd,F),Re=Zt(i,yf,pe);B.assert(Re===i.length,"Expected declarations to be valid standard or custom prologues");let en=mi(n)?n.slice():n;if(Re>pe&&en.splice(f,0,...i.slice(pe,Re)),pe>F&&en.splice(c,0,...i.slice(F,pe)),F>w&&en.splice(_,0,...i.slice(w,F)),w>0)if(_===0)en.splice(0,0,...i.slice(0,w));else{let kn=new Map;for(let $n=0;$n<_;$n++){let Pa=n[$n];kn.set(Pa.expression.text,!0)}for(let $n=w-1;$n>=0;$n--){let Pa=i[$n];kn.has(Pa.expression.text)||en.unshift(Pa)}}return mi(n)?yn(de(en,n.hasTrailingComma),n):n}function Ln(n,i){let _;return typeof i=="number"?_=vn(i):_=i,Af(n)?_r(n,_,n.name,n.constraint,n.default):ds(n)?dr(n,_,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):If(n)?Ve(n,_,n.typeParameters,n.parameters,n.type):N1(n)?Vn(n,_,n.name,n.questionToken,n.type):Va(n)?L(n,_,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):I1(n)?fe(n,_,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):ms(n)?He(n,_,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Cf(n)?Ir(n,_,n.parameters,n.body):bl(n)?Wn(n,_,n.name,n.parameters,n.type,n.body):hs(n)?$(n,_,n.name,n.parameters,n.body):Df(n)?Ze(n,_,n.parameters,n.type):Jf(n)?Rs(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Lf(n)?Us(n,_,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):vl(n)?c_(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Ha(n)?io(n,_,n.declarationList):Rf(n)?T_(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Wa(n)?ha(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):vs(n)?Co(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Pl(n)?gr(n,_,n.name,n.typeParameters,n.type):K1(n)?br(n,_,n.name,n.members):Ti(n)?Et(n,_,n.name,n.body):Uf(n)?Mo(n,_,n.isTypeOnly,n.name,n.moduleReference):Bf(n)?Lo(n,_,n.importClause,n.moduleSpecifier,n.attributes):qf(n)?Ii(n,_,n.expression):zf(n)?Xo(n,_,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):B.assertNever(n)}function Fr(n,i){return ds(n)?dr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Va(n)?L(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):ms(n)?He(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):bl(n)?Wn(n,i,n.name,n.parameters,n.type,n.body):hs(n)?$(n,i,n.name,n.parameters,n.body):vl(n)?c_(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Wa(n)?ha(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):B.assertNever(n)}function mp(n,i){switch(n.kind){case 177:return Wn(n,n.modifiers,i,n.parameters,n.type,n.body);case 178:return $(n,n.modifiers,i,n.parameters,n.body);case 174:return He(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 173:return fe(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 172:return L(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 171:return Vn(n,n.modifiers,i,n.questionToken,n.type);case 303:return qr(n,i,n.initializer)}}function De(n){return n?de(n):void 0}function et(n){return typeof n=="string"?Ge(n):n}function pr(n){return typeof n=="string"?dt(n):typeof n=="number"?V(n):typeof n=="boolean"?n?lt():ar():n}function Da(n){return n&&o().parenthesizeExpressionForDisallowedComma(n)}function $c(n){return typeof n=="number"?ct(n):n}function It(n){return n&&i6(n)?yn(a(ao(),n),n):n}function xr(n){return typeof n=="string"||n&&!jf(n)?ma(n,void 0,void 0,void 0):n}function q(n,i){return n!==i&&(a(n,i),yn(n,i)),n}}function al(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var En,Yd={};function Mb(e,t){switch(En||(En=of(99,!1,0)),e){case 15:En.setText("`"+t+"`");break;case 16:En.setText("`"+t+"${");break;case 17:En.setText("}"+t+"${");break;case 18:En.setText("}"+t+"`");break}let a=En.scan();if(a===20&&(a=En.reScanTemplateToken(!1)),En.isUnterminated())return En.setText(void 0),Yd;let o;switch(a){case 15:case 16:case 17:case 18:o=En.getTokenValue();break}return o===void 0||En.scan()!==1?(En.setText(void 0),Yd):(En.setText(void 0),o)}function jn(e){return e&&tt(e)?ja(e):z(e)}function ja(e){return z(e)&-67108865}function Jb(e,t){return t|e.transformFlags&134234112}function z(e){if(!e)return 0;let t=e.transformFlags&~Lb(e.kind);return vg(e)&&_1(e.name)?Jb(e.name,t):t}function ke(e){return e?e.transformFlags:0}function Xd(e){let t=0;for(let a of e)t|=z(a);e.transformFlags=t}function Lb(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var Z_=Nb();function es(e){return e.flags|=16,e}var jb={createBaseSourceFileNode:e=>es(Z_.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>es(Z_.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>es(Z_.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>es(Z_.createBaseTokenNode(e)),createBaseNode:e=>es(Z_.createBaseNode(e))},x3=kf(4,jb);function Rb(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=Ub(a,e.emitNode))}return e}function Ub(e,t){let{flags:a,internalFlags:o,leadingComments:m,trailingComments:v,commentRange:A,sourceMapRange:P,tokenSourceMapRanges:l,constantValue:Q,helpers:h,startsOnNewLine:y,snippetElement:g,classThis:x,assignedName:I}=e;if(t||(t={}),a&&(t.flags=a),o&&(t.internalFlags=o&-9),m&&(t.leadingComments=Dn(m.slice(),t.leadingComments)),v&&(t.trailingComments=Dn(v.slice(),t.trailingComments)),A&&(t.commentRange=A),P&&(t.sourceMapRange=P),l&&(t.tokenSourceMapRanges=Bb(l,t.tokenSourceMapRanges)),Q!==void 0&&(t.constantValue=Q),h)for(let re of h)t.helpers=py(t.helpers,re);return y!==void 0&&(t.startsOnNewLine=y),g!==void 0&&(t.snippetElement=g),x&&(t.classThis=x),I&&(t.assignedName=I),t}function Bb(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function ta(e){return e.kind===9}function C1(e){return e.kind===10}function Ya(e){return e.kind===11}function D1(e){return e.kind===15}function qb(e){return e.kind===28}function Hd(e){return e.kind===54}function $d(e){return e.kind===58}function tt(e){return e.kind===80}function gi(e){return e.kind===81}function zb(e){return e.kind===95}function _l(e){return e.kind===134}function Cp(e){return e.kind===108}function Fb(e){return e.kind===102}function P1(e){return e.kind===166}function Ef(e){return e.kind===167}function Af(e){return e.kind===168}function ds(e){return e.kind===169}function Al(e){return e.kind===170}function N1(e){return e.kind===171}function Va(e){return e.kind===172}function I1(e){return e.kind===173}function ms(e){return e.kind===174}function Cf(e){return e.kind===176}function bl(e){return e.kind===177}function hs(e){return e.kind===178}function O1(e){return e.kind===179}function M1(e){return e.kind===180}function Df(e){return e.kind===181}function J1(e){return e.kind===182}function Pf(e){return e.kind===183}function Nf(e){return e.kind===184}function If(e){return e.kind===185}function Vb(e){return e.kind===186}function L1(e){return e.kind===187}function Wb(e){return e.kind===188}function Gb(e){return e.kind===189}function j1(e){return e.kind===202}function Yb(e){return e.kind===190}function Xb(e){return e.kind===191}function R1(e){return e.kind===192}function U1(e){return e.kind===193}function Hb(e){return e.kind===194}function $b(e){return e.kind===195}function B1(e){return e.kind===196}function Qb(e){return e.kind===197}function q1(e){return e.kind===198}function Kb(e){return e.kind===199}function z1(e){return e.kind===200}function Zb(e){return e.kind===201}function e6(e){return e.kind===205}function F1(e){return e.kind===208}function V1(e){return e.kind===209}function Of(e){return e.kind===210}function Xr(e){return e.kind===211}function Xa(e){return e.kind===212}function Mf(e){return e.kind===213}function W1(e){return e.kind===215}function Cl(e){return e.kind===217}function Jf(e){return e.kind===218}function Lf(e){return e.kind===219}function t6(e){return e.kind===222}function G1(e){return e.kind===224}function Zi(e){return e.kind===226}function Y1(e){return e.kind===230}function vl(e){return e.kind===231}function X1(e){return e.kind===232}function H1(e){return e.kind===233}function ll(e){return e.kind===235}function n6(e){return e.kind===236}function r6(e){return e.kind===356}function Ha(e){return e.kind===243}function Dl(e){return e.kind===244}function $1(e){return e.kind===256}function jf(e){return e.kind===260}function Q1(e){return e.kind===261}function Rf(e){return e.kind===262}function Wa(e){return e.kind===263}function vs(e){return e.kind===264}function Pl(e){return e.kind===265}function K1(e){return e.kind===266}function Ti(e){return e.kind===267}function Uf(e){return e.kind===271}function Bf(e){return e.kind===272}function qf(e){return e.kind===277}function zf(e){return e.kind===278}function Z1(e){return e.kind===279}function i6(e){return e.kind===353}function Ff(e){return e.kind===283}function Fp(e){return e.kind===286}function a6(e){return e.kind===289}function eh(e){return e.kind===295}function _6(e){return e.kind===297}function th(e){return e.kind===303}function nh(e){return e.kind===307}function rh(e){return e.kind===309}function ih(e){return e.kind===314}function ah(e){return e.kind===317}function _h(e){return e.kind===320}function s6(e){return e.kind===322}function Nl(e){return e.kind===323}function o6(e){return e.kind===328}function c6(e){return e.kind===333}function l6(e){return e.kind===334}function u6(e){return e.kind===335}function p6(e){return e.kind===336}function f6(e){return e.kind===337}function d6(e){return e.kind===339}function m6(e){return e.kind===331}function Vp(e){return e.kind===341}function h6(e){return e.kind===342}function Vf(e){return e.kind===344}function sh(e){return e.kind===345}function y6(e){return e.kind===329}function g6(e){return e.kind===350}var $i=new WeakMap;function oh(e,t){var a;let o=e.kind;return df(o)?o===352?e._children:(a=$i.get(t))==null?void 0:a.get(e):bt}function b6(e,t,a){e.kind===352&&B.fail("Should not need to re-set the children of a SyntaxList.");let o=$i.get(t);return o===void 0&&(o=new WeakMap,$i.set(t,o)),o.set(e,a),a}function Qd(e,t){var a;e.kind===352&&B.fail("Did not expect to unset the children of a SyntaxList."),(a=$i.get(t))==null||a.delete(e)}function v6(e,t){let a=$i.get(e);a!==void 0&&($i.delete(e),$i.set(t,a))}function Kd(e){return(za(e)&32768)!==0}function T6(e){return Ya(e.expression)&&e.expression.text==="use strict"}function x6(e){for(let t of e)if(cl(t)){if(T6(t))return t}else break}function S6(e){return Cl(e)&&ea(e)&&!!Mg(e)}function ch(e,t=31){switch(e.kind){case 217:return t&-2147483648&&S6(e)?!1:(t&1)!==0;case 216:case 234:case 238:return(t&2)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function Wf(e,t=31){for(;ch(e,t);)e=e.expression;return e}function w6(e){return setStartsOnNewLine(e,!0)}function as(e){if($g(e))return e.name;if(Yg(e)){switch(e.kind){case 303:return as(e.initializer);case 304:return e.name;case 305:return as(e.expression)}return}return gl(e,!0)?as(e.left):Y1(e)?as(e.expression):e}function k6(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function Zd(e){if(e){let t=e;for(;;){if(tt(t)||!t.body)return tt(t)?t:t.name;t=t.body}}}var em;(e=>{function t(h,y,g,x,I,re,he){let ye=y>0?I[y-1]:void 0;return B.assertEqual(g[y],t),I[y]=h.onEnter(x[y],ye,he),g[y]=P(h,t),y}e.enter=t;function a(h,y,g,x,I,re,he){B.assertEqual(g[y],a),B.assertIsDefined(h.onLeft),g[y]=P(h,a);let ye=h.onLeft(x[y].left,I[y],x[y]);return ye?(Q(y,x,ye),l(y,g,x,I,ye)):y}e.left=a;function o(h,y,g,x,I,re,he){return B.assertEqual(g[y],o),B.assertIsDefined(h.onOperator),g[y]=P(h,o),h.onOperator(x[y].operatorToken,I[y],x[y]),y}e.operator=o;function m(h,y,g,x,I,re,he){B.assertEqual(g[y],m),B.assertIsDefined(h.onRight),g[y]=P(h,m);let ye=h.onRight(x[y].right,I[y],x[y]);return ye?(Q(y,x,ye),l(y,g,x,I,ye)):y}e.right=m;function v(h,y,g,x,I,re,he){B.assertEqual(g[y],v),g[y]=P(h,v);let ye=h.onExit(x[y],I[y]);if(y>0){if(y--,h.foldState){let de=g[y]===v?"right":"left";I[y]=h.foldState(I[y],ye,de)}}else re.value=ye;return y}e.exit=v;function A(h,y,g,x,I,re,he){return B.assertEqual(g[y],A),y}e.done=A;function P(h,y){switch(y){case t:if(h.onLeft)return a;case a:if(h.onOperator)return o;case o:if(h.onRight)return m;case m:return v;case v:return A;case A:return A;default:B.fail("Invalid state")}}e.nextState=P;function l(h,y,g,x,I){return h++,y[h]=t,g[h]=I,x[h]=void 0,h}function Q(h,y,g){if(B.shouldAssert(2))for(;h>=0;)B.assert(y[h]!==g,"Circular traversal detected."),h--}})(em||(em={}));function tm(e,t){return typeof e=="object"?Wp(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function E6(e,t){return typeof e=="string"?e:A6(e,B.checkDefined(t))}function A6(e,t){return a1(e)?t(e).slice(1):Ua(e)?t(e):gi(e)?e.escapedText.slice(1):Pn(e)}function Wp(e,t,a,o,m){return t=tm(t,m),o=tm(o,m),a=E6(a,m),`${e?"#":""}${t}${a}${o}`}function lh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of k6(e)){let a=as(t);if(a&&Hg(a)&&(a.transformFlags&65536||a.transformFlags&128&&lh(a)))return!0}return!1}function yn(e,t){return t?yi(e,t.pos,t.end):e}function Il(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Gf(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var nm,rm,im,am,_m,C6={createBaseSourceFileNode:e=>new(_m||(_m=At.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(im||(im=At.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(am||(am=At.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(rm||(rm=At.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(nm||(nm=At.getNodeConstructor()))(e,-1,-1)},S3=kf(1,C6);function k(e,t){return t&&e(t)}function ie(e,t,a){if(a){if(t)return t(a);for(let o of a){let m=e(o);if(m)return m}}}function D6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function P6(e){return Un(e.statements,N6)||I6(e)}function N6(e){return Il(e)&&O6(e,95)||Uf(e)&&Ff(e.moduleReference)||Bf(e)||qf(e)||zf(e)?e:void 0}function I6(e){return e.flags&8388608?uh(e):void 0}function uh(e){return M6(e)?e:Ht(e,uh)}function O6(e,t){return Xt(e.modifiers,a=>a.kind===t)}function M6(e){return n6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var J6={166:function(t,a,o){return k(a,t.left)||k(a,t.right)},168:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.constraint)||k(a,t.default)||k(a,t.expression)},304:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.equalsToken)||k(a,t.objectAssignmentInitializer)},305:function(t,a,o){return k(a,t.expression)},169:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},172:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},171:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},303:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.initializer)},260:function(t,a,o){return k(a,t.name)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},208:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.propertyName)||k(a,t.name)||k(a,t.initializer)},181:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},185:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},184:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},179:sm,180:sm,174:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},173:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},176:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},177:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},178:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},262:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},218:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},219:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.equalsGreaterThanToken)||k(a,t.body)},175:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.body)},183:function(t,a,o){return k(a,t.typeName)||ie(a,o,t.typeArguments)},182:function(t,a,o){return k(a,t.assertsModifier)||k(a,t.parameterName)||k(a,t.type)},186:function(t,a,o){return k(a,t.exprName)||ie(a,o,t.typeArguments)},187:function(t,a,o){return ie(a,o,t.members)},188:function(t,a,o){return k(a,t.elementType)},189:function(t,a,o){return ie(a,o,t.elements)},192:om,193:om,194:function(t,a,o){return k(a,t.checkType)||k(a,t.extendsType)||k(a,t.trueType)||k(a,t.falseType)},195:function(t,a,o){return k(a,t.typeParameter)},205:function(t,a,o){return k(a,t.argument)||k(a,t.attributes)||k(a,t.qualifier)||ie(a,o,t.typeArguments)},302:function(t,a,o){return k(a,t.assertClause)},196:cm,198:cm,199:function(t,a,o){return k(a,t.objectType)||k(a,t.indexType)},200:function(t,a,o){return k(a,t.readonlyToken)||k(a,t.typeParameter)||k(a,t.nameType)||k(a,t.questionToken)||k(a,t.type)||ie(a,o,t.members)},201:function(t,a,o){return k(a,t.literal)},202:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)},206:lm,207:lm,209:function(t,a,o){return ie(a,o,t.elements)},210:function(t,a,o){return ie(a,o,t.properties)},211:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.name)},212:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.argumentExpression)},213:um,214:um,215:function(t,a,o){return k(a,t.tag)||k(a,t.questionDotToken)||ie(a,o,t.typeArguments)||k(a,t.template)},216:function(t,a,o){return k(a,t.type)||k(a,t.expression)},217:function(t,a,o){return k(a,t.expression)},220:function(t,a,o){return k(a,t.expression)},221:function(t,a,o){return k(a,t.expression)},222:function(t,a,o){return k(a,t.expression)},224:function(t,a,o){return k(a,t.operand)},229:function(t,a,o){return k(a,t.asteriskToken)||k(a,t.expression)},223:function(t,a,o){return k(a,t.expression)},225:function(t,a,o){return k(a,t.operand)},226:function(t,a,o){return k(a,t.left)||k(a,t.operatorToken)||k(a,t.right)},234:function(t,a,o){return k(a,t.expression)||k(a,t.type)},235:function(t,a,o){return k(a,t.expression)},238:function(t,a,o){return k(a,t.expression)||k(a,t.type)},236:function(t,a,o){return k(a,t.name)},227:function(t,a,o){return k(a,t.condition)||k(a,t.questionToken)||k(a,t.whenTrue)||k(a,t.colonToken)||k(a,t.whenFalse)},230:function(t,a,o){return k(a,t.expression)},241:pm,268:pm,307:function(t,a,o){return ie(a,o,t.statements)||k(a,t.endOfFileToken)},243:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.declarationList)},261:function(t,a,o){return ie(a,o,t.declarations)},244:function(t,a,o){return k(a,t.expression)},245:function(t,a,o){return k(a,t.expression)||k(a,t.thenStatement)||k(a,t.elseStatement)},246:function(t,a,o){return k(a,t.statement)||k(a,t.expression)},247:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},248:function(t,a,o){return k(a,t.initializer)||k(a,t.condition)||k(a,t.incrementor)||k(a,t.statement)},249:function(t,a,o){return k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},250:function(t,a,o){return k(a,t.awaitModifier)||k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},251:fm,252:fm,253:function(t,a,o){return k(a,t.expression)},254:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},255:function(t,a,o){return k(a,t.expression)||k(a,t.caseBlock)},269:function(t,a,o){return ie(a,o,t.clauses)},296:function(t,a,o){return k(a,t.expression)||ie(a,o,t.statements)},297:function(t,a,o){return ie(a,o,t.statements)},256:function(t,a,o){return k(a,t.label)||k(a,t.statement)},257:function(t,a,o){return k(a,t.expression)},258:function(t,a,o){return k(a,t.tryBlock)||k(a,t.catchClause)||k(a,t.finallyBlock)},299:function(t,a,o){return k(a,t.variableDeclaration)||k(a,t.block)},170:function(t,a,o){return k(a,t.expression)},263:dm,231:dm,264:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.heritageClauses)||ie(a,o,t.members)},265:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||k(a,t.type)},266:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.members)},306:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},267:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.body)},271:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.moduleReference)},272:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.importClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},273:function(t,a,o){return k(a,t.name)||k(a,t.namedBindings)},300:function(t,a,o){return ie(a,o,t.elements)},301:function(t,a,o){return k(a,t.name)||k(a,t.value)},270:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)},274:function(t,a,o){return k(a,t.name)},280:function(t,a,o){return k(a,t.name)},275:mm,279:mm,278:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.exportClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},276:hm,281:hm,277:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.expression)},228:function(t,a,o){return k(a,t.head)||ie(a,o,t.templateSpans)},239:function(t,a,o){return k(a,t.expression)||k(a,t.literal)},203:function(t,a,o){return k(a,t.head)||ie(a,o,t.templateSpans)},204:function(t,a,o){return k(a,t.type)||k(a,t.literal)},167:function(t,a,o){return k(a,t.expression)},298:function(t,a,o){return ie(a,o,t.types)},233:function(t,a,o){return k(a,t.expression)||ie(a,o,t.typeArguments)},283:function(t,a,o){return k(a,t.expression)},282:function(t,a,o){return ie(a,o,t.modifiers)},356:function(t,a,o){return ie(a,o,t.elements)},284:function(t,a,o){return k(a,t.openingElement)||ie(a,o,t.children)||k(a,t.closingElement)},288:function(t,a,o){return k(a,t.openingFragment)||ie(a,o,t.children)||k(a,t.closingFragment)},285:ym,286:ym,292:function(t,a,o){return ie(a,o,t.properties)},291:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},293:function(t,a,o){return k(a,t.expression)},294:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.expression)},287:function(t,a,o){return k(a,t.tagName)},295:function(t,a,o){return k(a,t.namespace)||k(a,t.name)},190:Fi,191:Fi,309:Fi,315:Fi,314:Fi,316:Fi,318:Fi,317:function(t,a,o){return ie(a,o,t.parameters)||k(a,t.type)},320:function(t,a,o){return(typeof t.comment=="string"?void 0:ie(a,o,t.comment))||ie(a,o,t.tags)},347:function(t,a,o){return k(a,t.tagName)||k(a,t.name)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},310:function(t,a,o){return k(a,t.name)},311:function(t,a,o){return k(a,t.left)||k(a,t.right)},341:gm,348:gm,330:function(t,a,o){return k(a,t.tagName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},329:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},328:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},345:function(t,a,o){return k(a,t.tagName)||k(a,t.constraint)||ie(a,o,t.typeParameters)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},346:function(t,a,o){return k(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?k(a,t.typeExpression)||k(a,t.fullName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)):k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)))},338:function(t,a,o){return k(a,t.tagName)||k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},342:Vi,344:Vi,343:Vi,340:Vi,350:Vi,349:Vi,339:Vi,323:function(t,a,o){return Un(t.typeParameters,a)||Un(t.parameters,a)||k(a,t.type)},324:Dp,325:Dp,326:Dp,322:function(t,a,o){return Un(t.jsDocPropertyTags,a)},327:ui,332:ui,333:ui,334:ui,335:ui,336:ui,331:ui,337:ui,351:L6,355:j6};function sm(e,t,a){return ie(t,a,e.typeParameters)||ie(t,a,e.parameters)||k(t,e.type)}function om(e,t,a){return ie(t,a,e.types)}function cm(e,t,a){return k(t,e.type)}function lm(e,t,a){return ie(t,a,e.elements)}function um(e,t,a){return k(t,e.expression)||k(t,e.questionDotToken)||ie(t,a,e.typeArguments)||ie(t,a,e.arguments)}function pm(e,t,a){return ie(t,a,e.statements)}function fm(e,t,a){return k(t,e.label)}function dm(e,t,a){return ie(t,a,e.modifiers)||k(t,e.name)||ie(t,a,e.typeParameters)||ie(t,a,e.heritageClauses)||ie(t,a,e.members)}function mm(e,t,a){return ie(t,a,e.elements)}function hm(e,t,a){return k(t,e.propertyName)||k(t,e.name)}function ym(e,t,a){return k(t,e.tagName)||ie(t,a,e.typeArguments)||k(t,e.attributes)}function Fi(e,t,a){return k(t,e.type)}function gm(e,t,a){return k(t,e.tagName)||(e.isNameFirst?k(t,e.name)||k(t,e.typeExpression):k(t,e.typeExpression)||k(t,e.name))||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Vi(e,t,a){return k(t,e.tagName)||k(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Dp(e,t,a){return k(t,e.name)}function ui(e,t,a){return k(t,e.tagName)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function L6(e,t,a){return k(t,e.tagName)||k(t,e.importClause)||k(t,e.moduleSpecifier)||k(t,e.attributes)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function j6(e,t,a){return k(t,e.expression)}function Ht(e,t,a){if(e===void 0||e.kind<=165)return;let o=J6[e.kind];return o===void 0?void 0:o(e,t,a)}function bm(e,t,a){let o=vm(e),m=[];for(;m.length<o.length;)m.push(e);for(;o.length!==0;){let v=o.pop(),A=m.pop();if(Yr(v)){if(a){let P=a(v,A);if(P){if(P==="skip")continue;return P}}for(let P=v.length-1;P>=0;--P)o.push(v[P]),m.push(A)}else{let P=t(v,A);if(P){if(P==="skip")continue;return P}if(v.kind>=166)for(let l of vm(v))o.push(l),m.push(v)}}}function vm(e){let t=[];return Ht(e,a,a),t;function a(o){t.unshift(o)}}function ph(e){e.externalModuleIndicator=P6(e)}function fh(e,t,a,o=!1,m){var v,A;(v=sl)==null||v.push(sl.Phase.Parse,"createSourceFile",{path:e},!0),wd("beforeParse");let P,{languageVersion:l,setExternalModuleIndicator:Q,impliedNodeFormat:h,jsDocParsingMode:y}=typeof a=="object"?a:{languageVersion:a};if(l===100)P=Qi.parseSourceFile(e,t,l,void 0,o,6,Fa,y);else{let g=h===void 0?Q:x=>(x.impliedNodeFormat=h,(Q||ph)(x));P=Qi.parseSourceFile(e,t,l,void 0,o,m,g,y)}return wd("afterParse"),Oy("Parse","beforeParse","afterParse"),(A=sl)==null||A.pop(),P}function dh(e){return e.externalModuleIndicator!==void 0}function R6(e,t,a,o=!1){let m=Tl.updateSourceFile(e,t,a,o);return m.flags|=e.flags&12582912,m}var Qi;(e=>{var t=of(99,!0),a=40960,o,m,v,A,P;function l(s){return ar++,s}var Q={createBaseSourceFileNode:s=>l(new P(s,0,0)),createBaseIdentifierNode:s=>l(new v(s,0,0)),createBasePrivateIdentifierNode:s=>l(new A(s,0,0)),createBaseTokenNode:s=>l(new m(s,0,0)),createBaseNode:s=>l(new o(s,0,0))},h=kf(11,Q),{createNodeArray:y,createNumericLiteral:g,createStringLiteral:x,createLiteralLikeNode:I,createIdentifier:re,createPrivateIdentifier:he,createToken:ye,createArrayLiteralExpression:de,createObjectLiteralExpression:M,createPropertyAccessExpression:ae,createPropertyAccessChain:Oe,createElementAccessExpression:V,createElementAccessChain:oe,createCallExpression:W,createCallChain:dt,createNewExpression:nr,createParenthesizedExpression:gn,createBlock:rr,createVariableStatement:bn,createExpressionStatement:In,createIfStatement:Ge,createWhileStatement:ir,createForStatement:Pr,createForOfStatement:Ot,createVariableDeclaration:Bn,createVariableDeclarationList:On}=h,Mt,vt,Qe,qn,$t,ct,_t,Ut,Jt,lt,ar,mt,vn,yt,cn,nt,Bt=!0,rn=!1;function _r(s,p,d,b,S=!1,N,H,_e=0){var Z;if(N=gb(s,N),N===6){let ce=dr(s,p,d,b,S);return convertToJson(ce,(Z=ce.statements[0])==null?void 0:Z.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=bt,ce.typeReferenceDirectives=bt,ce.libReferenceDirectives=bt,ce.amdDependencies=bt,ce.hasNoDefaultLib=!1,ce.pragmas=ay,ce}zn(s,p,d,b,N,_e);let ee=Nr(d,S,N,H||ph,_e);return Fn(),ee}e.parseSourceFile=_r;function fr(s,p){zn("",s,p,void 0,1,0),U();let d=jr(!0),b=u()===1&&!_t.length;return Fn(),b?d:void 0}e.parseIsolatedEntityName=fr;function dr(s,p,d=2,b,S=!1){zn(s,p,d,b,6,0),vt=nt,U();let N=J(),H,_e;if(u()===1)H=Ct([],N,N),_e=Wt();else{let ce;for(;u()!==1;){let Ae;switch(u()){case 23:Ae=ac();break;case 112:case 97:case 106:Ae=Wt();break;case 41:G(()=>U()===9&&U()!==59)?Ae=Fo():Ae=I_();break;case 9:case 11:if(G(()=>U()!==59)){Ae=Xn();break}default:Ae=I_();break}ce&&Yr(ce)?ce.push(Ae):ce?ce=[ce,Ae]:(ce=Ae,u()!==1&&Ee(E.Unexpected_token))}let Le=Yr(ce)?D(de(ce),N):B.checkDefined(ce),je=In(Le);D(je,N),H=Ct([je],N),_e=Yn(1,E.Unexpected_token)}let Z=se(s,2,6,!1,H,_e,vt,Fa);S&&L(Z),Z.nodeCount=ar,Z.identifierCount=vn,Z.identifiers=mt,Z.parseDiagnostics=zi(_t,Z),Ut&&(Z.jsDocDiagnostics=zi(Ut,Z));let ee=Z;return Fn(),ee}e.parseJsonText=dr;function zn(s,p,d,b,S,N){switch(o=At.getNodeConstructor(),m=At.getTokenConstructor(),v=At.getIdentifierConstructor(),A=At.getPrivateIdentifierConstructor(),P=At.getSourceFileConstructor(),Mt=Gy(s),Qe=p,qn=d,Jt=b,$t=S,ct=Vd(S),_t=[],yt=0,mt=new Map,vn=0,ar=0,vt=0,Bt=!0,$t){case 1:case 2:nt=524288;break;case 6:nt=134742016;break;default:nt=0;break}rn=!1,t.setText(Qe),t.setOnError(Zr),t.setScriptTarget(qn),t.setLanguageVariant(ct),t.setScriptKind($t),t.setJSDocParsingMode(N)}function Fn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Qe=void 0,qn=void 0,Jt=void 0,$t=void 0,ct=void 0,vt=0,_t=void 0,Ut=void 0,yt=0,mt=void 0,cn=void 0,Bt=!0}function Nr(s,p,d,b,S){let N=q6(Mt);N&&(nt|=33554432),vt=nt,U();let H=xn(0,Kt);B.assert(u()===1);let _e=qe(),Z=Ce(Wt(),_e),ee=se(Mt,s,d,N,H,Z,vt,b);return V6(ee,Qe),W6(ee,ce),ee.commentDirectives=t.getCommentDirectives(),ee.nodeCount=ar,ee.identifierCount=vn,ee.identifiers=mt,ee.parseDiagnostics=zi(_t,ee),ee.jsDocParsingMode=S,Ut&&(ee.jsDocDiagnostics=zi(Ut,ee)),p&&L(ee),ee;function ce(Le,je,Ae){_t.push(Oa(Mt,Qe,Le,je,Ae))}}let Vn=!1;function Ce(s,p){if(!p)return s;B.assert(!s.jsDoc);let d=cy(d2(s,Qe),b=>Hc.parseJSDocComment(s,b.pos,b.end-b.pos));return d.length&&(s.jsDoc=d),Vn&&(Vn=!1,s.flags|=536870912),s}function mr(s){let p=Jt,d=Tl.createSyntaxCursor(s);Jt={currentNode:ce};let b=[],S=_t;_t=[];let N=0,H=Z(s.statements,0);for(;H!==-1;){let Le=s.statements[N],je=s.statements[H];Dn(b,s.statements,N,H),N=ee(s.statements,H);let Ae=bp(S,mn=>mn.start>=Le.pos),Yt=Ae>=0?bp(S,mn=>mn.start>=je.pos,Ae):-1;Ae>=0&&Dn(_t,S,Ae,Yt>=0?Yt:void 0),un(()=>{let mn=nt;for(nt|=65536,t.resetTokenState(je.pos),U();u()!==1;){let Zt=t.getTokenFullStart(),ur=n_(0,Kt);if(b.push(ur),Zt===t.getTokenFullStart()&&U(),N>=0){let Ln=s.statements[N];if(ur.end===Ln.pos)break;ur.end>Ln.pos&&(N=ee(s.statements,N+1))}}nt=mn},2),H=N>=0?Z(s.statements,N):-1}if(N>=0){let Le=s.statements[N];Dn(b,s.statements,N);let je=bp(S,Ae=>Ae.start>=Le.pos);je>=0&&Dn(_t,S,je)}return Jt=p,h.updateSourceFile(s,yn(y(b),s.statements));function _e(Le){return!(Le.flags&65536)&&!!(Le.transformFlags&67108864)}function Z(Le,je){for(let Ae=je;Ae<Le.length;Ae++)if(_e(Le[Ae]))return Ae;return-1}function ee(Le,je){for(let Ae=je;Ae<Le.length;Ae++)if(!_e(Le[Ae]))return Ae;return-1}function ce(Le){let je=d.currentNode(Le);return Bt&&je&&_e(je)&&Gp(je),je}}function L(s){Eb(s,!0)}e.fixupParentReferences=L;function se(s,p,d,b,S,N,H,_e){let Z=h.createSourceFile(S,N,H);if(Gd(Z,0,Qe.length),ee(Z),!b&&dh(Z)&&Z.transformFlags&67108864){let ce=Z;Z=mr(Z),ce!==Z&&ee(Z)}return Z;function ee(ce){ce.text=Qe,ce.bindDiagnostics=[],ce.bindSuggestionDiagnostics=void 0,ce.languageVersion=p,ce.fileName=s,ce.languageVariant=Vd(d),ce.isDeclarationFile=b,ce.scriptKind=d,_e(ce),ce.setExternalModuleIndicator=_e}}function fe(s,p){s?nt|=p:nt&=~p}function Te(s){fe(s,8192)}function He(s){fe(s,16384)}function Ke(s){fe(s,32768)}function st(s){fe(s,65536)}function Dt(s,p){let d=s&nt;if(d){fe(!1,d);let b=p();return fe(!0,d),b}return p()}function Tt(s,p){let d=s&~nt;if(d){fe(!0,d);let b=p();return fe(!1,d),b}return p()}function ut(s){return Dt(8192,s)}function Ir(s){return Tt(8192,s)}function hr(s){return Dt(131072,s)}function Mn(s){return Tt(131072,s)}function Wn(s){return Tt(16384,s)}function Si(s){return Tt(32768,s)}function R(s){return Tt(65536,s)}function $(s){return Dt(65536,s)}function K(s){return Tt(81920,s)}function xe(s){return Dt(81920,s)}function Se(s){return(nt&s)!==0}function we(){return Se(16384)}function be(){return Se(8192)}function We(){return Se(131072)}function Ze(){return Se(32768)}function Ye(){return Se(65536)}function Ee(s,...p){return rt(t.getTokenStart(),t.getTokenEnd(),s,...p)}function Tn(s,p,d,...b){let S=Yi(_t),N;return(!S||s!==S.start)&&(N=Oa(Mt,Qe,s,p,d,...b),_t.push(N)),rn=!0,N}function rt(s,p,d,...b){return Tn(s,p-s,d,...b)}function ln(s,p,...d){rt(s.pos,s.end,p,...d)}function Zr(s,p,d){Tn(t.getTokenEnd(),p,s,d)}function J(){return t.getTokenFullStart()}function qe(){return t.hasPrecedingJSDocComment()}function u(){return lt}function Ne(){return lt=t.scan()}function Me(s){return U(),s()}function U(){return di(lt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&rt(t.getTokenStart(),t.getTokenEnd(),E.Keywords_cannot_contain_escape_characters),Ne()}function ze(){return lt=t.scanJsDocToken()}function an(s){return lt=t.scanJSDocCommentTextToken(s)}function Ve(){return lt=t.reScanGreaterToken()}function $e(){return lt=t.reScanSlashToken()}function Pt(s){return lt=t.reScanTemplateToken(s)}function kt(){return lt=t.reScanLessThanToken()}function Nt(){return lt=t.reScanHashToken()}function qt(){return lt=t.scanJsxIdentifier()}function Gn(){return lt=t.scanJsxToken()}function wi(){return lt=t.scanJsxAttributeValue()}function un(s,p){let d=lt,b=_t.length,S=rn,N=nt,H=p!==0?t.lookAhead(s):t.tryScan(s);return B.assert(N===nt),(!H||p!==0)&&(lt=d,p!==2&&(_t.length=b),rn=S),H}function G(s){return un(s,1)}function le(s){return un(s,0)}function Fe(){return u()===80?!0:u()>118}function ve(){return u()===80?!0:u()===127&&we()||u()===135&&Ye()?!1:u()>118}function j(s,p,d=!0){return u()===s?(d&&U(),!0):(p?Ee(p):Ee(E._0_expected,it(s)),!1)}let ht=Object.keys(rf).filter(s=>s.length>2);function xt(s){if(W1(s)){rt(Ar(Qe,s.template.pos),s.template.end,E.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=tt(s)?Pn(s):void 0;if(!p||!pg(p,qn)){Ee(E._0_expected,it(27));return}let d=Ar(Qe,s.pos);switch(p){case"const":case"let":case"var":rt(d,s.end,E.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Lt(E.Interface_name_cannot_be_0,E.Interface_must_be_given_a_name,19);return;case"is":rt(d,t.getTokenStart(),E.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Lt(E.Namespace_name_cannot_be_0,E.Namespace_must_be_given_a_name,19);return;case"type":Lt(E.Type_alias_name_cannot_be_0,E.Type_alias_must_be_given_a_name,64);return}let b=ns(p,ht,gt)??pn(p);if(b){rt(d,s.end,E.Unknown_keyword_or_identifier_Did_you_mean_0,b);return}u()!==0&&rt(d,s.end,E.Unexpected_keyword_or_identifier)}function Lt(s,p,d){u()===d?Ee(p):Ee(s,t.getTokenValue())}function pn(s){for(let p of ht)if(s.length>p.length+2&&pl(s,p))return`${p} ${s.slice(p.length)}`}function Bl(s,p,d){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(E.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(E.Cannot_start_a_function_call_in_a_type_annotation),U();return}if(p&&!sr()){d?Ee(E._0_expected,it(27)):Ee(E.Expected_for_property_initializer);return}if(!aa()){if(d){Ee(E._0_expected,it(27));return}xt(s)}}function Es(s){return u()===s?(ze(),!0):(B.assert(Sp(s)),Ee(E._0_expected,it(s)),!1)}function Or(s,p,d,b){if(u()===p){U();return}let S=Ee(E._0_expected,it(p));d&&S&&rl(S,Oa(Mt,Qe,b,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,it(s),it(p)))}function Je(s){return u()===s?(U(),!0):!1}function ft(s){if(u()===s)return Wt()}function ql(s){if(u()===s)return Fl()}function Yn(s,p,d){return ft(s)||Gt(s,!1,p||E._0_expected,d||it(s))}function zl(s){let p=ql(s);return p||(B.assert(Sp(s)),Gt(s,!1,E._0_expected,it(s)))}function Wt(){let s=J(),p=u();return U(),D(ye(p),s)}function Fl(){let s=J(),p=u();return ze(),D(ye(p),s)}function sr(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function aa(){return sr()?(u()===27&&U(),!0):!1}function Qt(){return aa()||j(27)}function Ct(s,p,d,b){let S=y(s,b);return yi(S,p,d??t.getTokenFullStart()),S}function D(s,p,d){return yi(s,p,d??t.getTokenFullStart()),nt&&(s.flags|=nt),rn&&(rn=!1,s.flags|=262144),s}function Gt(s,p,d,...b){p?Tn(t.getTokenFullStart(),0,d,...b):d&&Ee(d,...b);let S=J(),N=s===80?re("",void 0):Jd(s)?h.createTemplateLiteralLikeNode(s,"","",void 0):s===9?g("",void 0):s===11?x("",void 0):s===282?h.createMissingDeclaration():ye(s);return D(N,S)}function Mr(s){let p=mt.get(s);return p===void 0&&mt.set(s,p=s),p}function or(s,p,d){if(s){vn++;let _e=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():J(),Z=u(),ee=Mr(t.getTokenValue()),ce=t.hasExtendedUnicodeEscape();return Ne(),D(re(ee,Z,ce),_e)}if(u()===81)return Ee(d||E.Private_identifiers_are_not_allowed_outside_class_bodies),or(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return or(!0);vn++;let b=u()===1,S=t.isReservedWord(),N=t.getTokenText(),H=S?E.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:E.Identifier_expected;return Gt(80,b,p||H,N)}function Ka(s){return or(Fe(),void 0,s)}function St(s,p){return or(ve(),s,p)}function jt(s){return or(wt(u()),s)}function ei(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(E.Unicode_escape_sequence_cannot_appear_here),or(wt(u()))}function yr(){return wt(u())||u()===11||u()===9||u()===10}function As(){return wt(u())||u()===11}function Vl(s){if(u()===11||u()===9||u()===10){let p=Xn();return p.text=Mr(p.text),p}return s&&u()===23?Wl():u()===81?_a():jt()}function Jr(){return Vl(!0)}function Wl(){let s=J();j(23);let p=ut(Et);return j(24),D(h.createComputedPropertyName(p),s)}function _a(){let s=J(),p=he(Mr(t.getTokenValue()));return U(),D(p,s)}function ti(s){return u()===s&&le(Cs)}function Za(){return U(),t.hasPrecedingLineBreak()?!1:cr()}function Cs(){switch(u()){case 87:return U()===94;case 95:return U(),u()===90?G(Ei):u()===156?G(Gl):ki();case 90:return Ei();case 126:return U(),cr();case 139:case 153:return U(),Yl();default:return Za()}}function ki(){return u()===60||u()!==42&&u()!==130&&u()!==19&&cr()}function Gl(){return U(),ki()}function Ds(){return Wr(u())&&le(Cs)}function cr(){return u()===23||u()===19||u()===42||u()===26||yr()}function Yl(){return u()===23||yr()}function Ei(){return U(),u()===86||u()===100||u()===120||u()===60||u()===128&&G(gc)||u()===134&&G(bc)}function sa(s,p){if(ca(s))return!0;switch(s){case 0:case 1:case 3:return!(u()===27&&p)&&vc();case 2:return u()===84||u()===90;case 4:return G(ao);case 5:return G(Wu)||u()===27&&!p;case 6:return u()===23||yr();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return yr()}case 18:return yr();case 9:return u()===23||u()===26||yr();case 24:return As();case 7:return u()===19?G(Ps):p?ve()&&!e_():x_()&&!e_();case 8:return ka();case 10:return u()===28||u()===26||ka();case 19:return u()===103||u()===87||ve();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||br();case 16:return fa(!1);case 17:return fa(!0);case 20:case 21:return u()===28||ai();case 22:return Rc();case 23:return u()===161&&G(Uu)?!1:u()===11?!0:wt(u());case 13:return wt(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(s,"Non-exhaustive case in 'isListElement'.")}}function Ps(){if(B.assert(u()===19),U()===20){let s=U();return s===28||s===19||s===96||s===119}return!0}function Ai(){return U(),ve()}function Xl(){return U(),wt(u())}function Ns(){return U(),Yy(u())}function e_(){return u()===119||u()===96?G(Is):!1}function Is(){return U(),br()}function Ci(){return U(),ai()}function oa(s){if(u()===1)return!0;switch(s){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return t_();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&G(G_);default:return!1}}function t_(){return!!(sr()||Uo(u())||u()===39)}function Os(){B.assert(yt,"Missing parsing context");for(let s=0;s<26;s++)if(yt&1<<s&&(sa(s,!0)||oa(s)))return!0;return!1}function xn(s,p){let d=yt;yt|=1<<s;let b=[],S=J();for(;!oa(s);){if(sa(s,!1)){b.push(n_(s,p));continue}if(qs(s))break}return yt=d,Ct(b,S)}function n_(s,p){let d=ca(s);return d?Ms(d):p()}function ca(s,p){var d;if(!Jt||!Js(s)||rn)return;let b=Jt.currentNode(p??t.getTokenFullStart());if(!(Hi(b)||B6(b)||d1(b)||(b.flags&101441536)!==nt)&&Ls(b,s))return vf(b)&&((d=b.jsDoc)!=null&&d.jsDocCache)&&(b.jsDoc.jsDocCache=void 0),b}function Ms(s){return t.resetTokenState(s.end),U(),s}function Js(s){switch(s){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Ls(s,p){switch(p){case 5:return r_(s);case 2:return js(s);case 0:case 1:case 3:return i_(s);case 6:return Rs(s);case 4:return a_(s);case 8:return Us(s);case 17:case 16:return Bs(s)}return!1}function r_(s){if(s)switch(s.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:let p=s;return!(p.name.kind===80&&p.name.escapedText==="constructor")}return!1}function js(s){if(s)switch(s.kind){case 296:case 297:return!0}return!1}function i_(s){if(s)switch(s.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function Rs(s){return s.kind===306}function a_(s){if(s)switch(s.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function Us(s){return s.kind!==260?!1:s.initializer===void 0}function Bs(s){return s.kind!==169?!1:s.initializer===void 0}function qs(s){return la(s),Os()?!0:(U(),!1)}function la(s){switch(s){case 0:return u()===90?Ee(E._0_expected,it(95)):Ee(E.Declaration_or_statement_expected);case 1:return Ee(E.Declaration_or_statement_expected);case 2:return Ee(E.case_or_default_expected);case 3:return Ee(E.Statement_expected);case 18:case 4:return Ee(E.Property_or_signature_expected);case 5:return Ee(E.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Ee(E.Enum_member_expected);case 7:return Ee(E.Expression_expected);case 8:return di(u())?Ee(E._0_is_not_allowed_as_a_variable_declaration_name,it(u())):Ee(E.Variable_declaration_expected);case 9:return Ee(E.Property_destructuring_pattern_expected);case 10:return Ee(E.Array_element_destructuring_pattern_expected);case 11:return Ee(E.Argument_expression_expected);case 12:return Ee(E.Property_assignment_expected);case 15:return Ee(E.Expression_or_comma_expected);case 17:return Ee(E.Parameter_declaration_expected);case 16:return di(u())?Ee(E._0_is_not_allowed_as_a_parameter_name,it(u())):Ee(E.Parameter_declaration_expected);case 19:return Ee(E.Type_parameter_declaration_expected);case 20:return Ee(E.Type_argument_expected);case 21:return Ee(E.Type_expected);case 22:return Ee(E.Unexpected_token_expected);case 23:return u()===161?Ee(E._0_expected,"}"):Ee(E.Identifier_expected);case 13:return Ee(E.Identifier_expected);case 14:return Ee(E.Identifier_expected);case 24:return Ee(E.Identifier_or_string_literal_expected);case 25:return Ee(E.Identifier_expected);case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(s)}}function fn(s,p,d){let b=yt;yt|=1<<s;let S=[],N=J(),H=-1;for(;;){if(sa(s,!1)){let _e=t.getTokenFullStart(),Z=n_(s,p);if(!Z){yt=b;return}if(S.push(Z),H=t.getTokenStart(),Je(28))continue;if(H=-1,oa(s))break;j(28,__(s)),d&&u()===27&&!t.hasPrecedingLineBreak()&&U(),_e===t.getTokenFullStart()&&U();continue}if(oa(s)||qs(s))break}return yt=b,Ct(S,N,void 0,H>=0)}function __(s){return s===6?E.An_enum_member_name_must_be_followed_by_a_or:void 0}function lr(){let s=Ct([],J());return s.isMissingList=!0,s}function zs(s){return!!s.isMissingList}function Lr(s,p,d,b){if(j(d)){let S=fn(s,p);return j(b),S}return lr()}function jr(s,p){let d=J(),b=s?jt(p):St(p);for(;Je(25)&&u()!==30;)b=D(h.createQualifiedName(b,ni(s,!1,!0)),d);return b}function Hl(s,p){return D(h.createQualifiedName(s,p),s.pos)}function ni(s,p,d){if(t.hasPrecedingLineBreak()&&wt(u())&&G(M_))return Gt(80,!0,E.Identifier_expected);if(u()===81){let b=_a();return p?b:Gt(80,!0,E.Identifier_expected)}return s?d?jt():ei():St()}function $l(s){let p=J(),d=[],b;do b=Gs(s),d.push(b);while(b.literal.kind===17);return Ct(d,p)}function ua(s){let p=J();return D(h.createTemplateExpression(Di(s),$l(s)),p)}function Fs(){let s=J();return D(h.createTemplateLiteralType(Di(!1),Ql()),s)}function Ql(){let s=J(),p=[],d;do d=Vs(),p.push(d);while(d.literal.kind===17);return Ct(p,s)}function Vs(){let s=J();return D(h.createTemplateLiteralTypeSpan(ot(),Ws(!1)),s)}function Ws(s){return u()===20?(Pt(s),Ys()):Yn(18,E._0_expected,it(20))}function Gs(s){let p=J();return D(h.createTemplateSpan(ut(Et),Ws(s)),p)}function Xn(){return ri(u())}function Di(s){!s&&t.getTokenFlags()&26656&&Pt(!1);let p=ri(u());return B.assert(p.kind===16,"Template head has wrong token kind"),p}function Ys(){let s=ri(u());return B.assert(s.kind===17||s.kind===18,"Template fragment has wrong token kind"),s}function Kl(s){let p=s===15||s===18,d=t.getTokenText();return d.substring(1,d.length-(t.isUnterminated()?0:p?1:2))}function ri(s){let p=J(),d=Jd(s)?h.createTemplateLiteralLikeNode(s,t.getTokenValue(),Kl(s),t.getTokenFlags()&7176):s===9?g(t.getTokenValue(),t.getNumericLiteralFlags()):s===11?x(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Ug(s)?I(s,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(d.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(d.isUnterminated=!0),U(),D(d,p)}function ii(){return jr(!0,E.Type_expected)}function Xs(){if(!t.hasPrecedingLineBreak()&&kt()===30)return Lr(20,ot,30,32)}function pa(){let s=J();return D(h.createTypeReferenceNode(ii(),Xs()),s)}function s_(s){switch(s.kind){case 183:return Hi(s.typeName);case 184:case 185:{let{parameters:p,type:d}=s;return zs(p)||s_(d)}case 196:return s_(s.type);default:return!1}}function Zl(s){return U(),D(h.createTypePredicateNode(void 0,s,ot()),s.pos)}function o_(){let s=J();return U(),D(h.createThisTypeNode(),s)}function eu(){let s=J();return U(),D(h.createJSDocAllType(),s)}function Hs(){let s=J();return U(),D(h.createJSDocNonNullableType(b_(),!1),s)}function tu(){let s=J();return U(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?D(h.createJSDocUnknownType(),s):D(h.createJSDocNullableType(ot(),!1),s)}function $s(){let s=J(),p=qe();if(le(Fc)){let d=Hn(36),b=Jn(59,!1);return Ce(D(h.createJSDocFunctionType(d,b),s),p)}return D(h.createTypeReferenceNode(jt(),void 0),s)}function c_(){let s=J(),p;return(u()===110||u()===105)&&(p=jt(),j(59)),D(h.createParameterDeclaration(void 0,void 0,p,void 0,l_(),void 0),s)}function l_(){t.setSkipJsDocLeadingAsterisks(!0);let s=J();if(Je(144)){let b=h.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:ze()}return t.setSkipJsDocLeadingAsterisks(!1),D(b,s)}let p=Je(26),d=ha();return t.setSkipJsDocLeadingAsterisks(!1),p&&(d=D(h.createJSDocVariadicType(d),s)),u()===64?(U(),D(h.createJSDocOptionalType(d),s)):d}function Qs(){let s=J();j(114);let p=jr(!0),d=t.hasPrecedingLineBreak()?void 0:Ca();return D(h.createTypeQueryNode(p,d),s)}function Ks(){let s=J(),p=wn(!1,!0),d=St(),b,S;Je(96)&&(ai()||!br()?b=ot():S=Yo());let N=Je(64)?ot():void 0,H=h.createTypeParameterDeclaration(p,d,b,N);return H.expression=S,D(H,s)}function dn(){if(u()===30)return Lr(19,Ks,30,32)}function fa(s){return u()===26||ka()||Wr(u())||u()===60||ai(!s)}function Zs(s){let p=Li(E.Private_identifiers_cannot_be_used_as_parameters);return c2(p)===0&&!Xt(s)&&Wr(u())&&U(),p}function eo(){return Fe()||u()===23||u()===19}function u_(s){return p_(s)}function to(s){return p_(s,!1)}function p_(s,p=!0){let d=J(),b=qe(),S=s?R(()=>wn(!0)):$(()=>wn(!0));if(u()===110){let Z=h.createParameterDeclaration(S,void 0,or(!0),void 0,gr(),void 0),ee=Hp(S);return ee&&ln(ee,E.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ce(D(Z,d),b)}let N=Bt;Bt=!1;let H=ft(26);if(!p&&!eo())return;let _e=Ce(D(h.createParameterDeclaration(S,H,Zs(S),ft(58),gr(),vr()),d),b);return Bt=N,_e}function Jn(s,p){if(no(s,p))return hr(ha)}function no(s,p){return s===39?(j(s),!0):Je(59)?!0:p&&u()===39?(Ee(E._0_expected,it(59)),U(),!0):!1}function f_(s,p){let d=we(),b=Ye();He(!!(s&1)),st(!!(s&2));let S=s&32?fn(17,c_):fn(16,()=>p?u_(b):to(b));return He(d),st(b),S}function Hn(s){if(!j(21))return lr();let p=f_(s,!0);return j(22),p}function da(){Je(28)||Qt()}function ro(s){let p=J(),d=qe();s===180&&j(105);let b=dn(),S=Hn(4),N=Jn(59,!0);da();let H=s===179?h.createCallSignature(b,S,N):h.createConstructSignature(b,S,N);return Ce(D(H,p),d)}function Rr(){return u()===23&&G(nu)}function nu(){if(U(),u()===26||u()===24)return!0;if(Wr(u())){if(U(),ve())return!0}else if(ve())U();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(U(),u()===59||u()===28||u()===24)}function d_(s,p,d){let b=Lr(16,()=>u_(!1),23,24),S=gr();da();let N=h.createIndexSignature(d,b,S);return Ce(D(N,s),p)}function io(s,p,d){let b=Jr(),S=ft(58),N;if(u()===21||u()===30){let H=dn(),_e=Hn(4),Z=Jn(59,!0);N=h.createMethodSignature(d,b,S,H,_e,Z)}else{let H=gr();N=h.createPropertySignature(d,b,S,H),u()===64&&(N.initializer=vr())}return da(),Ce(D(N,s),p)}function ao(){if(u()===21||u()===30||u()===139||u()===153)return!0;let s=!1;for(;Wr(u());)s=!0,U();return u()===23?!0:(yr()&&(s=!0,U()),s?u()===21||u()===30||u()===58||u()===59||u()===28||sr():!1)}function Pi(){if(u()===21||u()===30)return ro(179);if(u()===105&&G(_o))return ro(180);let s=J(),p=qe(),d=wn(!1);return ti(139)?qr(s,p,d,177,4):ti(153)?qr(s,p,d,178,4):Rr()?d_(s,p,d):io(s,p,d)}function _o(){return U(),u()===21||u()===30}function so(){return U()===25}function oo(){switch(U()){case 21:case 30:case 25:return!0}return!1}function co(){let s=J();return D(h.createTypeLiteralNode(lo()),s)}function lo(){let s;return j(19)?(s=xn(4,Pi),j(20)):s=lr(),s}function uo(){return U(),u()===40||u()===41?U()===148:(u()===148&&U(),u()===23&&Ai()&&U()===103)}function ru(){let s=J(),p=jt();j(103);let d=ot();return D(h.createTypeParameterDeclaration(void 0,p,d,void 0),s)}function po(){let s=J();j(19);let p;(u()===148||u()===40||u()===41)&&(p=Wt(),p.kind!==148&&j(148)),j(23);let d=ru(),b=Je(130)?ot():void 0;j(24);let S;(u()===58||u()===40||u()===41)&&(S=Wt(),S.kind!==58&&j(58));let N=gr();Qt();let H=xn(4,Pi);return j(20),D(h.createMappedTypeNode(p,d,b,S,N,H),s)}function fo(){let s=J();if(Je(26))return D(h.createRestTypeNode(ot()),s);let p=ot();if(ih(p)&&p.pos===p.type.pos){let d=h.createOptionalTypeNode(p.type);return yn(d,p),d.flags=p.flags,d}return p}function m_(){return U()===59||u()===58&&U()===59}function iu(){return u()===26?wt(U())&&m_():wt(u())&&m_()}function mo(){if(G(iu)){let s=J(),p=qe(),d=ft(26),b=jt(),S=ft(58);j(59);let N=fo(),H=h.createNamedTupleMember(d,b,S,N);return Ce(D(H,s),p)}return fo()}function au(){let s=J();return D(h.createTupleTypeNode(Lr(21,mo,23,24)),s)}function ho(){let s=J();j(21);let p=ot();return j(22),D(h.createParenthesizedType(p),s)}function _u(){let s;if(u()===128){let p=J();U();let d=D(ye(128),p);s=Ct([d],p)}return s}function h_(){let s=J(),p=qe(),d=_u(),b=Je(105);B.assert(!d||b,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let S=dn(),N=Hn(4),H=Jn(39,!1),_e=b?h.createConstructorTypeNode(d,S,N,H):h.createFunctionTypeNode(S,N,H);return Ce(D(_e,s),p)}function yo(){let s=Wt();return u()===25?void 0:s}function y_(s){let p=J();s&&U();let d=u()===112||u()===97||u()===106?Wt():ri(u());return s&&(d=D(h.createPrefixUnaryExpression(41,d),p)),D(h.createLiteralTypeNode(d),p)}function su(){return U(),u()===102}function g_(){vt|=4194304;let s=J(),p=Je(114);j(102),j(21);let d=ot(),b;if(Je(28)){let H=t.getTokenStart();j(19);let _e=u();if(_e===118||_e===132?U():Ee(E._0_expected,it(118)),j(59),b=Y_(_e,!0),!j(20)){let Z=Yi(_t);Z&&Z.code===E._0_expected.code&&rl(Z,Oa(Mt,Qe,H,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}j(22);let S=Je(25)?ii():void 0,N=Xs();return D(h.createImportTypeNode(d,b,S,N,p),s)}function go(){return U(),u()===9||u()===10}function b_(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return le(yo)||pa();case 67:t.reScanAsteriskEqualsToken();case 42:return eu();case 61:t.reScanQuestionToken();case 58:return tu();case 100:return $s();case 54:return Hs();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return y_();case 41:return G(go)?y_(!0):pa();case 116:return Wt();case 110:{let s=o_();return u()===142&&!t.hasPrecedingLineBreak()?Zl(s):s}case 114:return G(su)?g_():Qs();case 19:return G(uo)?po():co();case 23:return au();case 21:return ho();case 102:return g_();case 131:return G(M_)?Co():pa();case 16:return Fs();default:return pa()}}function ai(s){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!s;case 41:return!s&&G(go);case 21:return!s&&G(bo);default:return ve()}}function bo(){return U(),u()===22||fa(!1)||ai()}function vo(){let s=J(),p=b_();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:U(),p=D(h.createJSDocNonNullableType(p,!0),s);break;case 58:if(G(Ci))return p;U(),p=D(h.createJSDocNullableType(p,!0),s);break;case 23:if(j(23),ai()){let d=ot();j(24),p=D(h.createIndexedAccessTypeNode(p,d),s)}else j(24),p=D(h.createArrayTypeNode(p),s);break;default:return p}return p}function To(s){let p=J();return j(s),D(h.createTypeOperatorNode(s,So()),p)}function ou(){if(Je(96)){let s=Mn(ot);if(We()||u()!==58)return s}}function xo(){let s=J(),p=St(),d=le(ou),b=h.createTypeParameterDeclaration(void 0,p,d);return D(b,s)}function cu(){let s=J();return j(140),D(h.createInferTypeNode(xo()),s)}function So(){let s=u();switch(s){case 143:case 158:case 148:return To(s);case 140:return cu()}return hr(vo)}function ma(s){if(T_()){let p=h_(),d;return Nf(p)?d=s?E.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:E.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:d=s?E.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:E.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,ln(p,d),p}}function wo(s,p,d){let b=J(),S=s===52,N=Je(s),H=N&&ma(S)||p();if(u()===s||N){let _e=[H];for(;Je(s);)_e.push(ma(S)||p());H=D(d(Ct(_e,b)),b)}return H}function v_(){return wo(51,So,h.createIntersectionTypeNode)}function lu(){return wo(52,v_,h.createUnionTypeNode)}function ko(){return U(),u()===105}function T_(){return u()===30||u()===21&&G(Eo)?!0:u()===105||u()===128&&G(ko)}function uu(){if(Wr(u())&&wn(!1),ve()||u()===110)return U(),!0;if(u()===23||u()===19){let s=_t.length;return Li(),s===_t.length}return!1}function Eo(){return U(),!!(u()===22||u()===26||uu()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(U(),u()===39)))}function ha(){let s=J(),p=ve()&&le(Ao),d=ot();return p?D(h.createTypePredicateNode(void 0,p,d),s):d}function Ao(){let s=St();if(u()===142&&!t.hasPrecedingLineBreak())return U(),s}function Co(){let s=J(),p=Yn(131),d=u()===110?o_():St(),b=Je(142)?ot():void 0;return D(h.createTypePredicateNode(p,d,b),s)}function ot(){if(nt&81920)return Dt(81920,ot);if(T_())return h_();let s=J(),p=lu();if(!We()&&!t.hasPrecedingLineBreak()&&Je(96)){let d=Mn(ot);j(58);let b=hr(ot);j(59);let S=hr(ot);return D(h.createConditionalTypeNode(p,d,b,S),s)}return p}function gr(){return Je(59)?ot():void 0}function x_(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return G(oo);default:return ve()}}function br(){if(x_())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Bo()?!0:ve()}}function Do(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&br()}function Et(){let s=Ze();s&&Ke(!1);let p=J(),d=zt(!0),b;for(;b=ft(28);)d=k_(d,b,zt(!0),p);return s&&Ke(!0),d}function vr(){return Je(64)?zt(!0):void 0}function zt(s){if(Po())return No();let p=fu(s)||Lo(s);if(p)return p;let d=J(),b=qe(),S=Ni(0);return S.kind===80&&u()===39?Io(d,S,s,b,void 0):qa(S)&&x1(Ve())?k_(S,Wt(),zt(s),d):du(S,d,s)}function Po(){return u()===127?we()?!0:G(J_):!1}function pu(){return U(),!t.hasPrecedingLineBreak()&&ve()}function No(){let s=J();return U(),!t.hasPrecedingLineBreak()&&(u()===42||br())?D(h.createYieldExpression(ft(42),zt(!0)),s):D(h.createYieldExpression(void 0,void 0),s)}function Io(s,p,d,b,S){B.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let N=h.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);D(N,p.pos);let H=Ct([N],N.pos,N.end),_e=Yn(39),Z=S_(!!S,d),ee=h.createArrowFunction(S,void 0,H,void 0,_e,Z);return Ce(D(ee,s),b)}function fu(s){let p=Oo();if(p!==0)return p===1?Ro(!0,!0):le(()=>Jo(s))}function Oo(){return u()===21||u()===30||u()===134?G(Mo):u()===39?1:0}function Mo(){if(u()===134&&(U(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let s=u(),p=U();if(s===21){if(p===22)switch(U()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if(Wr(p)&&p!==134&&G(Ai))return U()===130?0:1;if(!ve()&&p!==110)return 0;switch(U()){case 59:return 1;case 58:return U(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(s===30),!ve()&&u()!==87?0:ct===1?G(()=>{Je(87);let b=U();if(b===96)switch(U()){case 64:case 32:case 44:return!1;default:return!0}else if(b===28||b===64)return!0;return!1})?1:0:2}function Jo(s){let p=t.getTokenStart();if(cn!=null&&cn.has(p))return;let d=Ro(!1,s);return d||(cn||(cn=new Set)).add(p),d}function Lo(s){if(u()===134&&G(jo)===1){let p=J(),d=qe(),b=Jc(),S=Ni(0);return Io(p,S,s,d,b)}}function jo(){if(u()===134){if(U(),t.hasPrecedingLineBreak()||u()===39)return 0;let s=Ni(0);if(!t.hasPrecedingLineBreak()&&s.kind===80&&u()===39)return 1}return 0}function Ro(s,p){let d=J(),b=qe(),S=Jc(),N=Xt(S,_l)?2:0,H=dn(),_e;if(j(21)){if(s)_e=f_(N,s);else{let Zt=f_(N,s);if(!Zt)return;_e=Zt}if(!j(22)&&!s)return}else{if(!s)return;_e=lr()}let Z=u()===59,ee=Jn(59,!1);if(ee&&!s&&s_(ee))return;let ce=ee;for(;(ce==null?void 0:ce.kind)===196;)ce=ce.type;let Le=ce&&ah(ce);if(!s&&u()!==39&&(Le||u()!==19))return;let je=u(),Ae=Yn(39),Yt=je===39||je===19?S_(Xt(S,_l),p):St();if(!p&&Z&&u()!==59)return;let mn=h.createArrowFunction(S,H,_e,ee,Ae,Yt);return Ce(D(mn,d),b)}function S_(s,p){if(u()===19)return Ta(s?2:0);if(u()!==27&&u()!==100&&u()!==86&&vc()&&!Do())return Ta(16|(s?2:0));let d=Bt;Bt=!1;let b=s?R(()=>zt(p)):$(()=>zt(p));return Bt=d,b}function du(s,p,d){let b=ft(58);if(!b)return s;let S;return D(h.createConditionalExpression(s,b,Dt(a,()=>zt(!1)),S=Yn(59),Up(S)?zt(d):Gt(80,!1,E._0_expected,it(59))),p)}function Ni(s){let p=J(),d=Yo();return w_(s,d,p)}function Uo(s){return s===103||s===165}function w_(s,p,d){for(;;){Ve();let b=wp(u());if(!(u()===43?b>=s:b>s)||u()===103&&be())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let N=u();U(),p=N===152?qo(p,ot()):zo(p,ot())}}else p=k_(p,Wt(),Ni(b),d)}return p}function Bo(){return be()&&u()===103?!1:wp(u())>0}function qo(s,p){return D(h.createSatisfiesExpression(s,p),s.pos)}function k_(s,p,d,b){return D(h.createBinaryExpression(s,p,d),b)}function zo(s,p){return D(h.createAsExpression(s,p),s.pos)}function Fo(){let s=J();return D(h.createPrefixUnaryExpression(u(),Me(Tr)),s)}function Vo(){let s=J();return D(h.createDeleteExpression(Me(Tr)),s)}function mu(){let s=J();return D(h.createTypeOfExpression(Me(Tr)),s)}function Wo(){let s=J();return D(h.createVoidExpression(Me(Tr)),s)}function hu(){return u()===135?Ye()?!0:G(J_):!1}function Go(){let s=J();return D(h.createAwaitExpression(Me(Tr)),s)}function Yo(){if(yu()){let d=J(),b=ya();return u()===43?w_(wp(u()),b,d):b}let s=u(),p=Tr();if(u()===43){let d=Ar(Qe,p.pos),{end:b}=p;p.kind===216?rt(d,b,E.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(Sp(s)),rt(d,b,E.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,it(s)))}return p}function Tr(){switch(u()){case 40:case 41:case 55:case 54:return Fo();case 91:return Vo();case 114:return mu();case 116:return Wo();case 30:return ct===1?Oi(!0,void 0,void 0,!0):Ko();case 135:if(hu())return Go();default:return ya()}}function yu(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ct!==1)return!1;default:return!0}}function ya(){if(u()===46||u()===47){let p=J();return D(h.createPrefixUnaryExpression(u(),Me(Ii)),p)}else if(ct===1&&u()===30&&G(Ns))return Oi(!0);let s=Ii();if(B.assert(qa(s)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return U(),D(h.createPostfixUnaryExpression(s,p),s.pos)}return s}function Ii(){let s=J(),p;return u()===102?G(_o)?(vt|=4194304,p=Wt()):G(so)?(U(),U(),p=D(h.createMetaProperty(102,jt()),s),vt|=8388608):p=ga():p=u()===108?Xo():ga(),P_(s,p)}function ga(){let s=J(),p=N_();return _n(s,p,!0)}function Xo(){let s=J(),p=Wt();if(u()===30){let d=J(),b=le(va);b!==void 0&&(rt(d,J(),E.super_may_not_use_type_arguments),Sn()||(p=h.createExpressionWithTypeArguments(p,b)))}return u()===21||u()===25||u()===23?p:(Yn(25,E.super_must_be_followed_by_an_argument_list_or_member_access),D(ae(p,ni(!0,!0,!0)),s))}function Oi(s,p,d,b=!1){let S=J(),N=vu(s),H;if(N.kind===286){let _e=ba(N),Z,ee=_e[_e.length-1];if((ee==null?void 0:ee.kind)===284&&!pi(ee.openingElement.tagName,ee.closingElement.tagName)&&pi(N.tagName,ee.closingElement.tagName)){let ce=ee.children.end,Le=D(h.createJsxElement(ee.openingElement,ee.children,D(h.createJsxClosingElement(D(re(""),ce,ce)),ce,ce)),ee.openingElement.pos,ce);_e=Ct([..._e.slice(0,_e.length-1),Le],_e.pos,ce),Z=ee.closingElement}else Z=Qo(N,s),pi(N.tagName,Z.tagName)||(d&&Fp(d)&&pi(Z.tagName,d.tagName)?ln(N.tagName,E.JSX_element_0_has_no_corresponding_closing_tag,is(Qe,N.tagName)):ln(Z.tagName,E.Expected_corresponding_JSX_closing_tag_for_0,is(Qe,N.tagName)));H=D(h.createJsxElement(N,_e,Z),S)}else N.kind===289?H=D(h.createJsxFragment(N,ba(N),wu(s)),S):(B.assert(N.kind===285),H=N);if(!b&&s&&u()===30){let _e=typeof p>"u"?H.pos:p,Z=le(()=>Oi(!0,_e));if(Z){let ee=Gt(28,!1);return Gd(ee,Z.pos,0),rt(Ar(Qe,_e),Z.end,E.JSX_expressions_must_have_one_parent_element),D(h.createBinaryExpression(H,ee,Z),S)}}return H}function E_(){let s=J(),p=h.createJsxText(t.getTokenValue(),lt===13);return lt=t.scanJsxToken(),D(p,s)}function gu(s,p){switch(p){case 1:if(a6(s))ln(s,E.JSX_fragment_has_no_corresponding_closing_tag);else{let d=s.tagName,b=Math.min(Ar(Qe,d.pos),d.end);rt(b,d.end,E.JSX_element_0_has_no_corresponding_closing_tag,is(Qe,s.tagName))}return;case 31:case 7:return;case 12:case 13:return E_();case 19:return Ho(!1);case 30:return Oi(!1,void 0,s);default:return B.assertNever(p)}}function ba(s){let p=[],d=J(),b=yt;for(yt|=16384;;){let S=gu(s,lt=t.reScanJsxToken());if(!S||(p.push(S),Fp(s)&&(S==null?void 0:S.kind)===284&&!pi(S.openingElement.tagName,S.closingElement.tagName)&&pi(s.tagName,S.closingElement.tagName)))break}return yt=b,Ct(p,d)}function bu(){let s=J();return D(h.createJsxAttributes(xn(13,$o)),s)}function vu(s){let p=J();if(j(30),u()===32)return Gn(),D(h.createJsxOpeningFragment(),p);let d=A_(),b=(nt&524288)===0?Ca():void 0,S=bu(),N;return u()===32?(Gn(),N=h.createJsxOpeningElement(d,b,S)):(j(44),j(32,void 0,!1)&&(s?U():Gn()),N=h.createJsxSelfClosingElement(d,b,S)),D(N,p)}function A_(){let s=J(),p=Tu();if(eh(p))return p;let d=p;for(;Je(25);)d=D(ae(d,ni(!0,!1,!1)),s);return d}function Tu(){let s=J();qt();let p=u()===110,d=ei();return Je(59)?(qt(),D(h.createJsxNamespacedName(d,ei()),s)):p?D(h.createToken(110),s):d}function Ho(s){let p=J();if(!j(19))return;let d,b;return u()!==20&&(s||(d=ft(26)),b=Et()),s?j(20):j(20,void 0,!1)&&Gn(),D(h.createJsxExpression(d,b),p)}function $o(){if(u()===19)return Su();let s=J();return D(h.createJsxAttribute(xu(),C_()),s)}function C_(){if(u()===64){if(wi()===11)return Xn();if(u()===19)return Ho(!0);if(u()===30)return Oi(!0);Ee(E.or_JSX_element_expected)}}function xu(){let s=J();qt();let p=ei();return Je(59)?(qt(),D(h.createJsxNamespacedName(p,ei()),s)):p}function Su(){let s=J();j(19),j(26);let p=Et();return j(20),D(h.createJsxSpreadAttribute(p),s)}function Qo(s,p){let d=J();j(31);let b=A_();return j(32,void 0,!1)&&(p||!pi(s.tagName,b)?U():Gn()),D(h.createJsxClosingElement(b),d)}function wu(s){let p=J();return j(31),j(32,E.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(s?U():Gn()),D(h.createJsxJsxClosingFragment(),p)}function Ko(){B.assert(ct!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let s=J();j(30);let p=ot();j(32);let d=Tr();return D(h.createTypeAssertion(p,d),s)}function ku(){return U(),wt(u())||u()===23||Sn()}function Zo(){return u()===29&&G(ku)}function D_(s){if(s.flags&64)return!0;if(ll(s)){let p=s.expression;for(;ll(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;ll(s);)s.flags|=64,s=s.expression;return!0}}return!1}function ec(s,p,d){let b=ni(!0,!0,!0),S=d||D_(p),N=S?Oe(p,d,b):ae(p,b);if(S&&gi(N.name)&&ln(N.name,E.An_optional_chain_cannot_contain_private_identifiers),H1(p)&&p.typeArguments){let H=p.typeArguments.pos-1,_e=Ar(Qe,p.typeArguments.end)+1;rt(H,_e,E.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return D(N,s)}function Eu(s,p,d){let b;if(u()===24)b=Gt(80,!0,E.An_element_access_expression_should_take_an_argument);else{let N=ut(Et);El(N)&&(N.text=Mr(N.text)),b=N}j(24);let S=d||D_(p)?oe(p,d,b):V(p,b);return D(S,s)}function _n(s,p,d){for(;;){let b,S=!1;if(d&&Zo()?(b=Yn(29),S=wt(u())):S=Je(25),S){p=ec(s,p,b);continue}if((b||!Ze())&&Je(23)){p=Eu(s,p,b);continue}if(Sn()){p=!b&&p.kind===233?Ur(s,p.expression,b,p.typeArguments):Ur(s,p,b,void 0);continue}if(!b){if(u()===54&&!t.hasPrecedingLineBreak()){U(),p=D(h.createNonNullExpression(p),s);continue}let N=le(va);if(N){p=D(h.createExpressionWithTypeArguments(p,N),s);continue}}return p}}function Sn(){return u()===15||u()===16}function Ur(s,p,d,b){let S=h.createTaggedTemplateExpression(p,b,u()===15?(Pt(!0),Xn()):ua(!0));return(d||p.flags&64)&&(S.flags|=64),S.questionDotToken=d,D(S,s)}function P_(s,p){for(;;){p=_n(s,p,!0);let d,b=ft(29);if(b&&(d=le(va),Sn())){p=Ur(s,p,b,d);continue}if(d||u()===21){!b&&p.kind===233&&(d=p.typeArguments,p=p.expression);let S=tc(),N=b||D_(p)?dt(p,b,d,S):W(p,d,S);p=D(N,s);continue}if(b){let S=Gt(80,!1,E.Identifier_expected);p=D(Oe(p,b,S),s)}break}return p}function tc(){j(21);let s=fn(11,ic);return j(22),s}function va(){if((nt&524288)!==0||kt()!==30)return;U();let s=fn(20,ot);if(Ve()===32)return U(),s&&Au()?s:void 0}function Au(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Bo()||!br()}function N_(){switch(u()){case 15:t.getTokenFlags()&26656&&Pt(!1);case 9:case 10:case 11:return Xn();case 110:case 108:case 106:case 112:case 97:return Wt();case 21:return Cu();case 23:return ac();case 19:return I_();case 134:if(!G(bc))break;return O_();case 60:return Lc();case 86:return Hu();case 100:return O_();case 105:return sc();case 44:case 69:if($e()===14)return Xn();break;case 16:return ua(!1);case 81:return _a()}return St(E.Expression_expected)}function Cu(){let s=J(),p=qe();j(21);let d=ut(Et);return j(22),Ce(D(gn(d),s),p)}function nc(){let s=J();j(26);let p=zt(!0);return D(h.createSpreadElement(p),s)}function rc(){return u()===26?nc():u()===28?D(h.createOmittedExpression(),J()):zt(!0)}function ic(){return Dt(a,rc)}function ac(){let s=J(),p=t.getTokenStart(),d=j(23),b=t.hasPrecedingLineBreak(),S=fn(15,rc);return Or(23,24,d,p),D(de(S,b),s)}function _c(){let s=J(),p=qe();if(ft(26)){let ce=zt(!0);return Ce(D(h.createSpreadAssignment(ce),s),p)}let d=wn(!0);if(ti(139))return qr(s,p,d,177,0);if(ti(153))return qr(s,p,d,178,0);let b=ft(42),S=ve(),N=Jr(),H=ft(58),_e=ft(54);if(b||u()===21||u()===30)return q_(s,p,d,b,N,H,_e);let Z;if(S&&u()!==59){let ce=ft(64),Le=ce?ut(()=>zt(!0)):void 0;Z=h.createShorthandPropertyAssignment(N,Le),Z.equalsToken=ce}else{j(59);let ce=ut(()=>zt(!0));Z=h.createPropertyAssignment(N,ce)}return Z.modifiers=d,Z.questionToken=H,Z.exclamationToken=_e,Ce(D(Z,s),p)}function I_(){let s=J(),p=t.getTokenStart(),d=j(19),b=t.hasPrecedingLineBreak(),S=fn(12,_c,!0);return Or(19,20,d,p),D(M(S,b),s)}function O_(){let s=Ze();Ke(!1);let p=J(),d=qe(),b=wn(!1);j(100);let S=ft(42),N=S?1:0,H=Xt(b,_l)?2:0,_e=N&&H?K(Mi):N?Wn(Mi):H?R(Mi):Mi(),Z=dn(),ee=Hn(N|H),ce=Jn(59,!1),Le=Ta(N|H);Ke(s);let je=h.createFunctionExpression(b,S,_e,Z,ee,ce,Le);return Ce(D(je,p),d)}function Mi(){return Fe()?Ka():void 0}function sc(){let s=J();if(j(105),Je(25)){let N=jt();return D(h.createMetaProperty(105,N),s)}let p=J(),d=_n(p,N_(),!1),b;d.kind===233&&(b=d.typeArguments,d=d.expression),u()===29&&Ee(E.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,is(Qe,d));let S=u()===21?tc():void 0;return D(nr(d,b,S),s)}function Br(s,p){let d=J(),b=qe(),S=t.getTokenStart(),N=j(19,p);if(N||s){let H=t.hasPrecedingLineBreak(),_e=xn(1,Kt);Or(19,20,N,S);let Z=Ce(D(rr(_e,H),d),b);return u()===64&&(Ee(E.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),U()),Z}else{let H=lr();return Ce(D(rr(H,void 0),d),b)}}function Ta(s,p){let d=we();He(!!(s&1));let b=Ye();st(!!(s&2));let S=Bt;Bt=!1;let N=Ze();N&&Ke(!1);let H=Br(!!(s&16),p);return N&&Ke(!0),Bt=S,He(d),st(b),H}function oc(){let s=J(),p=qe();return j(27),Ce(D(h.createEmptyStatement(),s),p)}function Du(){let s=J(),p=qe();j(101);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Kt(),H=Je(93)?Kt():void 0;return Ce(D(Ge(S,N,H),s),p)}function cc(){let s=J(),p=qe();j(92);let d=Kt();j(117);let b=t.getTokenStart(),S=j(21),N=ut(Et);return Or(21,22,S,b),Je(27),Ce(D(h.createDoStatement(d,N),s),p)}function Pu(){let s=J(),p=qe();j(117);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Kt();return Ce(D(ir(S,N),s),p)}function lc(){let s=J(),p=qe();j(99);let d=ft(135);j(21);let b;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&G(xc)||u()===135&&G(Sc)?b=B_(!0):b=Ir(Et));let S;if(d?j(165):Je(165)){let N=ut(()=>zt(!0));j(22),S=Ot(d,b,N,Kt())}else if(Je(103)){let N=ut(Et);j(22),S=h.createForInStatement(b,N,Kt())}else{j(27);let N=u()!==27&&u()!==22?ut(Et):void 0;j(27);let H=u()!==22?ut(Et):void 0;j(22),S=Pr(b,N,H,Kt())}return Ce(D(S,s),p)}function uc(s){let p=J(),d=qe();j(s===252?83:88);let b=sr()?void 0:St();Qt();let S=s===252?h.createBreakStatement(b):h.createContinueStatement(b);return Ce(D(S,p),d)}function pc(){let s=J(),p=qe();j(107);let d=sr()?void 0:ut(Et);return Qt(),Ce(D(h.createReturnStatement(d),s),p)}function Nu(){let s=J(),p=qe();j(118);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Tt(67108864,Kt);return Ce(D(h.createWithStatement(S,N),s),p)}function fc(){let s=J(),p=qe();j(84);let d=ut(Et);j(59);let b=xn(3,Kt);return Ce(D(h.createCaseClause(d,b),s),p)}function Iu(){let s=J();j(90),j(59);let p=xn(3,Kt);return D(h.createDefaultClause(p),s)}function Ou(){return u()===84?fc():Iu()}function dc(){let s=J();j(19);let p=xn(2,Ou);return j(20),D(h.createCaseBlock(p),s)}function Mu(){let s=J(),p=qe();j(109),j(21);let d=ut(Et);j(22);let b=dc();return Ce(D(h.createSwitchStatement(d,b),s),p)}function mc(){let s=J(),p=qe();j(111);let d=t.hasPrecedingLineBreak()?void 0:ut(Et);return d===void 0&&(vn++,d=D(re(""),J())),aa()||xt(d),Ce(D(h.createThrowStatement(d),s),p)}function Ju(){let s=J(),p=qe();j(113);let d=Br(!1),b=u()===85?hc():void 0,S;return(!b||u()===98)&&(j(98,E.catch_or_finally_expected),S=Br(!1)),Ce(D(h.createTryStatement(d,b,S),s),p)}function hc(){let s=J();j(85);let p;Je(21)?(p=U_(),j(22)):p=void 0;let d=Br(!1);return D(h.createCatchClause(p,d),s)}function Lu(){let s=J(),p=qe();return j(89),Qt(),Ce(D(h.createDebuggerStatement(),s),p)}function yc(){let s=J(),p=qe(),d,b=u()===21,S=ut(Et);return tt(S)&&Je(59)?d=h.createLabeledStatement(S,Kt()):(aa()||xt(S),d=In(S),b&&(p=!1)),Ce(D(d,s),p)}function M_(){return U(),wt(u())&&!t.hasPrecedingLineBreak()}function gc(){return U(),u()===86&&!t.hasPrecedingLineBreak()}function bc(){return U(),u()===100&&!t.hasPrecedingLineBreak()}function J_(){return U(),(wt(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function ju(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return j_();case 135:return xa();case 120:case 156:return pu();case 144:case 145:return Ec();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let s=u();if(U(),t.hasPrecedingLineBreak())return!1;if(s===138&&u()===156)return!0;continue;case 162:return U(),u()===19||u()===80||u()===95;case 102:return U(),u()===11||u()===42||u()===19||wt(u());case 95:let p=U();if(p===156&&(p=G(U)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:U();continue;default:return!1}}function Ji(){return G(ju)}function vc(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Ji()||G(oo);case 87:case 95:return Ji();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Ji()||!G(M_);default:return br()}}function Tc(){return U(),Fe()||u()===19||u()===23}function Ru(){return G(Tc)}function xc(){return L_(!0)}function L_(s){return U(),s&&u()===165?!1:(Fe()||u()===19)&&!t.hasPrecedingLineBreak()}function j_(){return G(L_)}function Sc(s){return U()===160?L_(s):!1}function xa(){return G(Sc)}function Kt(){switch(u()){case 27:return oc();case 19:return Br(!1);case 115:return _i(J(),qe(),void 0);case 121:if(Ru())return _i(J(),qe(),void 0);break;case 135:if(xa())return _i(J(),qe(),void 0);break;case 160:if(j_())return _i(J(),qe(),void 0);break;case 100:return Pc(J(),qe(),void 0);case 86:return jc(J(),qe(),void 0);case 101:return Du();case 92:return cc();case 117:return Pu();case 99:return lc();case 88:return uc(251);case 83:return uc(252);case 107:return pc();case 118:return Nu();case 109:return Mu();case 111:return mc();case 113:case 85:case 98:return Ju();case 89:return Lu();case 60:return wc();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Ji())return wc();break}return yc()}function R_(s){return s.kind===138}function wc(){let s=J(),p=qe(),d=wn(!0);if(Xt(d,R_)){let S=Sa(s);if(S)return S;for(let N of d)N.flags|=33554432;return Tt(33554432,()=>kc(s,p,d))}else return kc(s,p,d)}function Sa(s){return Tt(33554432,()=>{let p=ca(yt,s);if(p)return Ms(p)})}function kc(s,p,d){switch(u()){case 115:case 121:case 87:case 160:case 135:return _i(s,p,d);case 100:return Pc(s,p,d);case 86:return jc(s,p,d);case 120:return Bc(s,p,d);case 156:return ep(s,p,d);case 94:return V_(s,p,d);case 162:case 144:case 145:return np(s,p,d);case 102:return ap(s,p,d);case 95:switch(U(),u()){case 90:case 64:return Xc(s,p,d);case 130:return ip(s,p,d);default:return dp(s,p,d)}default:if(d){let b=Gt(282,!0,E.Declaration_expected);return qp(b,s),b.modifiers=d,b}return}}function Uu(){return U()===11}function Bu(){return U(),u()===161||u()===64}function Ec(){return U(),!t.hasPrecedingLineBreak()&&(ve()||u()===11)}function wa(s,p){if(u()!==19){if(s&4){da();return}if(sr()){Qt();return}}return Ta(s,p)}function Ac(){let s=J();if(u()===28)return D(h.createOmittedExpression(),s);let p=ft(26),d=Li(),b=vr();return D(h.createBindingElement(p,void 0,d,b),s)}function qu(){let s=J(),p=ft(26),d=Fe(),b=Jr(),S;d&&u()!==59?(S=b,b=void 0):(j(59),S=Li());let N=vr();return D(h.createBindingElement(p,b,S,N),s)}function Cc(){let s=J();j(19);let p=ut(()=>fn(9,qu));return j(20),D(h.createObjectBindingPattern(p),s)}function zu(){let s=J();j(23);let p=ut(()=>fn(10,Ac));return j(24),D(h.createArrayBindingPattern(p),s)}function ka(){return u()===19||u()===23||u()===81||Fe()}function Li(s){return u()===23?zu():u()===19?Cc():Ka(s)}function Dc(){return U_(!0)}function U_(s){let p=J(),d=qe(),b=Li(E.Private_identifiers_are_not_allowed_in_variable_declarations),S;s&&b.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(S=Wt());let N=gr(),H=Uo(u())?void 0:vr(),_e=Bn(b,S,N,H);return Ce(D(_e,p),d)}function B_(s){let p=J(),d=0;switch(u()){case 115:break;case 121:d|=1;break;case 87:d|=2;break;case 160:d|=4;break;case 135:B.assert(xa()),d|=6,U();break;default:B.fail()}U();let b;if(u()===165&&G(Fu))b=lr();else{let S=be();Te(s),b=fn(8,s?U_:Dc),Te(S)}return D(On(b,d),p)}function Fu(){return Ai()&&U()===22}function _i(s,p,d){let b=B_(!1);Qt();let S=bn(d,b);return Ce(D(S,s),p)}function Pc(s,p,d){let b=Ye(),S=Rn(d);j(100);let N=ft(42),H=S&2048?Mi():Ka(),_e=N?1:0,Z=S&1024?2:0,ee=dn();S&32&&st(!0);let ce=Hn(_e|Z),Le=Jn(59,!1),je=wa(_e|Z,E.or_expected);st(b);let Ae=h.createFunctionDeclaration(d,N,H,ee,ce,Le,je);return Ce(D(Ae,s),p)}function Nc(){if(u()===137)return j(137);if(u()===11&&G(U)===21)return le(()=>{let s=Xn();return s.text==="constructor"?s:void 0})}function Vu(s,p,d){return le(()=>{if(Nc()){let b=dn(),S=Hn(0),N=Jn(59,!1),H=wa(0,E.or_expected),_e=h.createConstructorDeclaration(d,S,H);return _e.typeParameters=b,_e.type=N,Ce(D(_e,s),p)}})}function q_(s,p,d,b,S,N,H,_e){let Z=b?1:0,ee=Xt(d,_l)?2:0,ce=dn(),Le=Hn(Z|ee),je=Jn(59,!1),Ae=wa(Z|ee,_e),Yt=h.createMethodDeclaration(d,b,S,N,ce,Le,je,Ae);return Yt.exclamationToken=H,Ce(D(Yt,s),p)}function Ic(s,p,d,b,S){let N=!S&&!t.hasPrecedingLineBreak()?ft(54):void 0,H=gr(),_e=Dt(90112,vr);Bl(b,H,_e);let Z=h.createPropertyDeclaration(d,b,S||N,H,_e);return Ce(D(Z,s),p)}function Ea(s,p,d){let b=ft(42),S=Jr(),N=ft(58);return b||u()===21||u()===30?q_(s,p,d,b,S,N,void 0,E.or_expected):Ic(s,p,d,S,N)}function qr(s,p,d,b,S){let N=Jr(),H=dn(),_e=Hn(0),Z=Jn(59,!1),ee=wa(S),ce=b===177?h.createGetAccessorDeclaration(d,N,_e,Z,ee):h.createSetAccessorDeclaration(d,N,_e,ee);return ce.typeParameters=H,hs(ce)&&(ce.type=Z),Ce(D(ce,s),p)}function Wu(){let s;if(u()===60)return!0;for(;Wr(u());){if(s=u(),zg(s))return!0;U()}if(u()===42||(yr()&&(s=u(),U()),u()===23))return!0;if(s!==void 0){if(!di(s)||s===153||s===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return sr()}}return!1}function Oc(s,p,d){Yn(126);let b=Gu(),S=Ce(D(h.createClassStaticBlockDeclaration(b),s),p);return S.modifiers=d,S}function Gu(){let s=we(),p=Ye();He(!1),st(!0);let d=Br(!1);return He(s),st(p),d}function Yu(){if(Ye()&&u()===135){let s=J(),p=St(E.Expression_expected);U();let d=_n(s,p,!0);return P_(s,d)}return Ii()}function z_(){let s=J();if(!Je(60))return;let p=Si(Yu);return D(h.createDecorator(p),s)}function Mc(s,p,d){let b=J(),S=u();if(u()===87&&p){if(!le(Za))return}else{if(d&&u()===126&&G(Vc))return;if(s&&u()===126)return;if(!Ds())return}return D(ye(S),b)}function wn(s,p,d){let b=J(),S,N,H,_e=!1,Z=!1,ee=!1;if(s&&u()===60)for(;N=z_();)S=An(S,N);for(;H=Mc(_e,p,d);)H.kind===126&&(_e=!0),S=An(S,H),Z=!0;if(Z&&s&&u()===60)for(;N=z_();)S=An(S,N),ee=!0;if(ee)for(;H=Mc(_e,p,d);)H.kind===126&&(_e=!0),S=An(S,H);return S&&Ct(S,b)}function Jc(){let s;if(u()===134){let p=J();U();let d=D(ye(134),p);s=Ct([d],p)}return s}function Xu(){let s=J(),p=qe();if(u()===27)return U(),Ce(D(h.createSemicolonClassElement(),s),p);let d=wn(!0,!0,!0);if(u()===126&&G(Vc))return Oc(s,p,d);if(ti(139))return qr(s,p,d,177,0);if(ti(153))return qr(s,p,d,178,0);if(u()===137||u()===11){let b=Vu(s,p,d);if(b)return b}if(Rr())return d_(s,p,d);if(wt(u())||u()===11||u()===9||u()===10||u()===42||u()===23)if(Xt(d,R_)){for(let S of d)S.flags|=33554432;return Tt(33554432,()=>Ea(s,p,d))}else return Ea(s,p,d);if(d){let b=Gt(80,!0,E.Declaration_expected);return Ic(s,p,d,b,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function Lc(){let s=J(),p=qe(),d=wn(!0);if(u()===86)return Aa(s,p,d,231);let b=Gt(282,!0,E.Expression_expected);return qp(b,s),b.modifiers=d,b}function Hu(){return Aa(J(),qe(),void 0,231)}function jc(s,p,d){return Aa(s,p,d,263)}function Aa(s,p,d,b){let S=Ye();j(86);let N=$u(),H=dn();Xt(d,zb)&&st(!0);let _e=F_(),Z;j(19)?(Z=Uc(),j(20)):Z=lr(),st(S);let ee=b===263?h.createClassDeclaration(d,N,H,_e,Z):h.createClassExpression(d,N,H,_e,Z);return Ce(D(ee,s),p)}function $u(){return Fe()&&!Qu()?or(Fe()):void 0}function Qu(){return u()===119&&G(Xl)}function F_(){if(Rc())return xn(22,Ku)}function Ku(){let s=J(),p=u();B.assert(p===96||p===119),U();let d=fn(7,Zu);return D(h.createHeritageClause(p,d),s)}function Zu(){let s=J(),p=Ii();if(p.kind===233)return p;let d=Ca();return D(h.createExpressionWithTypeArguments(p,d),s)}function Ca(){return u()===30?Lr(20,ot,30,32):void 0}function Rc(){return u()===96||u()===119}function Uc(){return xn(5,Xu)}function Bc(s,p,d){j(120);let b=St(),S=dn(),N=F_(),H=lo(),_e=h.createInterfaceDeclaration(d,b,S,N,H);return Ce(D(_e,s),p)}function ep(s,p,d){j(156),t.hasPrecedingLineBreak()&&Ee(E.Line_break_not_permitted_here);let b=St(),S=dn();j(64);let N=u()===141&&le(yo)||ot();Qt();let H=h.createTypeAliasDeclaration(d,b,S,N);return Ce(D(H,s),p)}function tp(){let s=J(),p=qe(),d=Jr(),b=ut(vr);return Ce(D(h.createEnumMember(d,b),s),p)}function V_(s,p,d){j(94);let b=St(),S;j(19)?(S=xe(()=>fn(6,tp)),j(20)):S=lr();let N=h.createEnumDeclaration(d,b,S);return Ce(D(N,s),p)}function qc(){let s=J(),p;return j(19)?(p=xn(1,Kt),j(20)):p=lr(),D(h.createModuleBlock(p),s)}function W_(s,p,d,b){let S=b&32,N=b&8?jt():St(),H=Je(25)?W_(J(),!1,void 0,8|S):qc(),_e=h.createModuleDeclaration(d,N,H,b);return Ce(D(_e,s),p)}function zc(s,p,d){let b=0,S;u()===162?(S=St(),b|=2048):(S=Xn(),S.text=Mr(S.text));let N;u()===19?N=qc():Qt();let H=h.createModuleDeclaration(d,S,N,b);return Ce(D(H,s),p)}function np(s,p,d){let b=0;if(u()===162)return zc(s,p,d);if(Je(145))b|=32;else if(j(144),u()===11)return zc(s,p,d);return W_(s,p,d,b)}function rp(){return u()===149&&G(Fc)}function Fc(){return U()===21}function Vc(){return U()===19}function G_(){return U()===44}function ip(s,p,d){j(130),j(145);let b=St();Qt();let S=h.createNamespaceExportDeclaration(b);return S.modifiers=d,Ce(D(S,s),p)}function ap(s,p,d){j(102);let b=t.getTokenFullStart(),S;ve()&&(S=St());let N=!1;if((S==null?void 0:S.escapedText)==="type"&&(u()!==161||ve()&&G(Bu))&&(ve()||sp())&&(N=!0,S=ve()?St():void 0),S&&!zr())return op(s,p,d,S,N);let H=si(S,b,N),_e=Ri(),Z=Wc();Qt();let ee=h.createImportDeclaration(d,H,_e,Z);return Ce(D(ee,s),p)}function si(s,p,d,b=!1){let S;return(s||u()===42||u()===19)&&(S=cp(s,p,d,b),j(161)),S}function Wc(){let s=u();if((s===118||s===132)&&!t.hasPrecedingLineBreak())return Y_(s)}function _p(){let s=J(),p=wt(u())?jt():ri(11);j(59);let d=zt(!0);return D(h.createImportAttribute(p,d),s)}function Y_(s,p){let d=J();p||j(s);let b=t.getTokenStart();if(j(19)){let S=t.hasPrecedingLineBreak(),N=fn(24,_p,!0);if(!j(20)){let H=Yi(_t);H&&H.code===E._0_expected.code&&rl(H,Oa(Mt,Qe,b,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return D(h.createImportAttributes(N,S,s),d)}else{let S=Ct([],J(),void 0,!1);return D(h.createImportAttributes(S,!1,s),d)}}function sp(){return u()===42||u()===19}function zr(){return u()===28||u()===161}function op(s,p,d,b,S){j(64);let N=lp();Qt();let H=h.createImportEqualsDeclaration(d,S,b,N);return Ce(D(H,s),p)}function cp(s,p,d,b){let S;return(!s||Je(28))&&(b&&t.setSkipJsDocLeadingAsterisks(!0),S=u()===42?up():Gc(275),b&&t.setSkipJsDocLeadingAsterisks(!1)),D(h.createImportClause(d,s,S),p)}function lp(){return rp()?ji():jr(!1)}function ji(){let s=J();j(149),j(21);let p=Ri();return j(22),D(h.createExternalModuleReference(p),s)}function Ri(){if(u()===11){let s=Xn();return s.text=Mr(s.text),s}else return Et()}function up(){let s=J();j(42),j(130);let p=St();return D(h.createNamespaceImport(p),s)}function X_(){return wt(u())||u()===11}function oi(s){return u()===11?Xn():s()}function Gc(s){let p=J(),d=s===275?h.createNamedImports(Lr(23,ci,19,20)):h.createNamedExports(Lr(23,pp,19,20));return D(d,p)}function pp(){let s=qe();return Ce(Yc(281),s)}function ci(){return Yc(276)}function Yc(s){let p=J(),d=di(u())&&!ve(),b=t.getTokenStart(),S=t.getTokenEnd(),N=!1,H,_e=!0,Z=oi(jt);if(Z.kind===80&&Z.escapedText==="type")if(u()===130){let Le=jt();if(u()===130){let je=jt();X_()?(N=!0,H=Le,Z=oi(ce),_e=!1):(H=Z,Z=je,_e=!1)}else X_()?(H=Z,_e=!1,Z=oi(ce)):(N=!0,Z=Le)}else X_()&&(N=!0,Z=oi(ce));_e&&u()===130&&(H=Z,j(130),Z=oi(ce)),s===276&&(Z.kind!==80?(rt(Ar(Qe,Z.pos),Z.end,E.Identifier_expected),Z=yi(Gt(80,!1),Z.pos,Z.pos)):d&&rt(b,S,E.Identifier_expected));let ee=s===276?h.createImportSpecifier(N,H,Z):h.createExportSpecifier(N,H,Z);return D(ee,p);function ce(){return d=di(u())&&!ve(),b=t.getTokenStart(),S=t.getTokenEnd(),jt()}}function fp(s){return D(h.createNamespaceExport(oi(jt)),s)}function dp(s,p,d){let b=Ye();st(!0);let S,N,H,_e=Je(156),Z=J();Je(42)?(Je(130)&&(S=fp(Z)),j(161),N=Ri()):(S=Gc(279),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(j(161),N=Ri()));let ee=u();N&&(ee===118||ee===132)&&!t.hasPrecedingLineBreak()&&(H=Y_(ee)),Qt(),st(b);let ce=h.createExportDeclaration(d,_e,S,N,H);return Ce(D(ce,s),p)}function Xc(s,p,d){let b=Ye();st(!0);let S;Je(64)?S=!0:j(90);let N=zt(!0);Qt(),st(b);let H=h.createExportAssignment(d,S,N);return Ce(D(H,s),p)}let H_;(s=>{s[s.SourceElements=0]="SourceElements",s[s.BlockStatements=1]="BlockStatements",s[s.SwitchClauses=2]="SwitchClauses",s[s.SwitchClauseStatements=3]="SwitchClauseStatements",s[s.TypeMembers=4]="TypeMembers",s[s.ClassMembers=5]="ClassMembers",s[s.EnumMembers=6]="EnumMembers",s[s.HeritageClauseElement=7]="HeritageClauseElement",s[s.VariableDeclarations=8]="VariableDeclarations",s[s.ObjectBindingElements=9]="ObjectBindingElements",s[s.ArrayBindingElements=10]="ArrayBindingElements",s[s.ArgumentExpressions=11]="ArgumentExpressions",s[s.ObjectLiteralMembers=12]="ObjectLiteralMembers",s[s.JsxAttributes=13]="JsxAttributes",s[s.JsxChildren=14]="JsxChildren",s[s.ArrayLiteralMembers=15]="ArrayLiteralMembers",s[s.Parameters=16]="Parameters",s[s.JSDocParameters=17]="JSDocParameters",s[s.RestProperties=18]="RestProperties",s[s.TypeParameters=19]="TypeParameters",s[s.TypeArguments=20]="TypeArguments",s[s.TupleElementTypes=21]="TupleElementTypes",s[s.HeritageClauses=22]="HeritageClauses",s[s.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",s[s.ImportAttributes=24]="ImportAttributes",s[s.JSDocComment=25]="JSDocComment",s[s.Count=26]="Count"})(H_||(H_={}));let $_;(s=>{s[s.False=0]="False",s[s.True=1]="True",s[s.Unknown=2]="Unknown"})($_||($_={}));let Hc;(s=>{function p(ee,ce,Le){zn("file.js",ee,99,void 0,1,0),t.setText(ee,ce,Le),lt=t.scan();let je=d(),Ae=se("file.js",99,1,!1,[],ye(1),0,Fa),Yt=zi(_t,Ae);return Ut&&(Ae.jsDocDiagnostics=zi(Ut,Ae)),Fn(),je?{jsDocTypeExpression:je,diagnostics:Yt}:void 0}s.parseJSDocTypeExpressionForTests=p;function d(ee){let ce=J(),Le=(ee?Je:j)(19),je=Tt(16777216,l_);(!ee||Le)&&Es(20);let Ae=h.createJSDocTypeExpression(je);return L(Ae),D(Ae,ce)}s.parseJSDocTypeExpression=d;function b(){let ee=J(),ce=Je(19),Le=J(),je=jr(!1);for(;u()===81;)Nt(),ze(),je=D(h.createJSDocMemberName(je,St()),Le);ce&&Es(20);let Ae=h.createJSDocNameReference(je);return L(Ae),D(Ae,ee)}s.parseJSDocNameReference=b;function S(ee,ce,Le){zn("",ee,99,void 0,1,0);let je=Tt(16777216,()=>Z(ce,Le)),Yt=zi(_t,{languageVariant:0,text:ee});return Fn(),je?{jsDoc:je,diagnostics:Yt}:void 0}s.parseIsolatedJSDocComment=S;function N(ee,ce,Le){let je=lt,Ae=_t.length,Yt=rn,mn=Tt(16777216,()=>Z(ce,Le));return wf(mn,ee),nt&524288&&(Ut||(Ut=[]),Dn(Ut,_t,Ae)),lt=je,_t.length=Ae,rn=Yt,mn}s.parseJSDocComment=N;let H;(ee=>{ee[ee.BeginningOfLine=0]="BeginningOfLine",ee[ee.SawAsterisk=1]="SawAsterisk",ee[ee.SavingComments=2]="SavingComments",ee[ee.SavingBackticks=3]="SavingBackticks"})(H||(H={}));let _e;(ee=>{ee[ee.Property=1]="Property",ee[ee.Parameter=2]="Parameter",ee[ee.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function Z(ee=0,ce){let Le=Qe,je=ce===void 0?Le.length:ee+ce;if(ce=je-ee,B.assert(ee>=0),B.assert(ee<=je),B.assert(je<=Le.length),!D6(Le,ee))return;let Ae,Yt,mn,Zt,ur,Ln=[],Fr=[],mp=yt;yt|=1<<25;let De=t.scanRange(ee+3,ce-5,et);return yt=mp,De;function et(){let O=1,Y,X=ee-(Le.lastIndexOf(`
15
15
  `,ee)+1)+4;function te(Ue){Y||(Y=X),Ln.push(Ue),X+=Ue.length}for(ze();Bi(5););Bi(4)&&(O=0,X=0);e:for(;;){switch(u()){case 60:Da(Ln),ur||(ur=J()),pe(q(X)),O=0,Y=void 0;break;case 4:Ln.push(t.getTokenText()),O=0,X=0;break;case 42:let Ue=t.getTokenText();O===1?(O=2,te(Ue)):(B.assert(O===0),O=1,X+=Ue.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();Y!==void 0&&X+pt.length>Y&&Ln.push(pt.slice(Y-X)),X+=pt.length;break;case 1:break e;case 82:O=2,te(t.getTokenValue());break;case 19:O=2;let hn=t.getTokenFullStart(),sn=t.getTokenEnd()-1,tn=_(sn);if(tn){Zt||pr(Ln),Fr.push(D(h.createJSDocText(Ln.join("")),Zt??ee,hn)),Fr.push(tn),Ln=[],Zt=t.getTokenEnd();break}default:O=2,te(t.getTokenText());break}O===2?an(!1):ze()}let ne=Ln.join("").trimEnd();Fr.length&&ne.length&&Fr.push(D(h.createJSDocText(ne),Zt??ee,ur)),Fr.length&&Ae&&B.assertIsDefined(ur,"having parsed tags implies that the end of the comment span should be set");let Pe=Ae&&Ct(Ae,Yt,mn);return D(h.createJSDocComment(Fr.length?Ct(Fr,ee,ur):ne.length?ne:void 0,Pe),ee,je)}function pr(O){for(;O.length&&(O[0]===`
16
16
  `||O[0]==="\r");)O.shift()}function Da(O){for(;O.length;){let Y=O[O.length-1].trimEnd();if(Y==="")O.pop();else if(Y.length<O[O.length-1].length){O[O.length-1]=Y;break}else break}}function $c(){for(;;){if(ze(),u()===1)return!0;if(!(u()===5||u()===4))return!1}}function It(){if(!((u()===5||u()===4)&&G($c)))for(;u()===5||u()===4;)ze()}function xr(){if((u()===5||u()===4)&&G($c))return"";let O=t.hasPrecedingLineBreak(),Y=!1,X="";for(;O&&u()===42||u()===5||u()===4;)X+=t.getTokenText(),u()===4?(O=!0,Y=!0,X=""):u()===42&&(O=!1),ze();return Y?X:""}function q(O){B.assert(u()===60);let Y=t.getTokenStart();ze();let X=li(void 0),te=xr(),ne;switch(X.escapedText){case"author":ne=I0(Y,X,O,te);break;case"implements":ne=M0(Y,X,O,te);break;case"augments":case"extends":ne=J0(Y,X,O,te);break;case"class":case"constructor":ne=Ui(Y,h.createJSDocClassTag,X,O,te);break;case"public":ne=Ui(Y,h.createJSDocPublicTag,X,O,te);break;case"private":ne=Ui(Y,h.createJSDocPrivateTag,X,O,te);break;case"protected":ne=Ui(Y,h.createJSDocProtectedTag,X,O,te);break;case"readonly":ne=Ui(Y,h.createJSDocReadonlyTag,X,O,te);break;case"override":ne=Ui(Y,h.createJSDocOverrideTag,X,O,te);break;case"deprecated":Vn=!0,ne=Ui(Y,h.createJSDocDeprecatedTag,X,O,te);break;case"this":ne=yd(Y,X,O,te);break;case"enum":ne=U0(Y,X,O,te);break;case"arg":case"argument":case"param":return $n(Y,X,2,O);case"return":case"returns":ne=D0(Y,X,O,te);break;case"template":ne=bd(Y,X,O,te);break;case"type":ne=md(Y,X,O,te);break;case"typedef":ne=B0(Y,X,O,te);break;case"callback":ne=z0(Y,X,O,te);break;case"overload":ne=F0(Y,X,O,te);break;case"satisfies":ne=L0(Y,X,O,te);break;case"see":ne=P0(Y,X,O,te);break;case"exception":case"throws":ne=N0(Y,X,O,te);break;case"import":ne=j0(Y,X,O,te);break;default:ne=F(Y,X,O,te);break}return ne}function n(O,Y,X,te){return te||(X+=Y-O),i(X,te.slice(X))}function i(O,Y){let X=J(),te=[],ne=[],Pe,Ue=0,pt;function hn(Qn){pt||(pt=O),te.push(Qn),O+=Qn.length}Y!==void 0&&(Y!==""&&hn(Y),Ue=1);let sn=u();e:for(;;){switch(sn){case 4:Ue=0,te.push(t.getTokenText()),O=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:B.assert(Ue!==2&&Ue!==3,"whitespace shouldn't come from the scanner while saving comment text");let Qn=t.getTokenText();pt!==void 0&&O+Qn.length>pt&&(te.push(Qn.slice(pt-O)),Ue=2),O+=Qn.length;break;case 19:Ue=2;let Qc=t.getTokenFullStart(),Na=t.getTokenEnd()-1,Kc=_(Na);Kc?(ne.push(D(h.createJSDocText(te.join("")),Pe??X,Qc)),ne.push(Kc),te=[],Pe=t.getTokenEnd()):hn(t.getTokenText());break;case 62:Ue===3?Ue=2:Ue=3,hn(t.getTokenText());break;case 82:Ue!==3&&(Ue=2),hn(t.getTokenValue());break;case 42:if(Ue===0){Ue=1,O+=1;break}default:Ue!==3&&(Ue=2),hn(t.getTokenText());break}Ue===2||Ue===3?sn=an(Ue===3):sn=ze()}pr(te);let tn=te.join("").trimEnd();if(ne.length)return tn.length&&ne.push(D(h.createJSDocText(tn),Pe??X)),Ct(ne,X,t.getTokenEnd());if(tn.length)return tn}function _(O){let Y=le(f);if(!Y)return;ze(),It();let X=c(),te=[];for(;u()!==20&&u()!==4&&u()!==1;)te.push(t.getTokenText()),ze();let ne=Y==="link"?h.createJSDocLink:Y==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return D(ne(X,te.join("")),O,t.getTokenEnd())}function c(){if(wt(u())){let O=J(),Y=jt();for(;Je(25);)Y=D(h.createQualifiedName(Y,u()===81?Gt(80,!1):jt()),O);for(;u()===81;)Nt(),ze(),Y=D(h.createJSDocMemberName(Y,St()),O);return Y}}function f(){if(xr(),u()===19&&ze()===60&&wt(ze())){let O=t.getTokenValue();if(w(O))return O}}function w(O){return O==="link"||O==="linkcode"||O==="linkplain"}function F(O,Y,X,te){return D(h.createJSDocUnknownTag(Y,n(O,J(),X,te)),O)}function pe(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),mn=O.end)}function Re(){return xr(),u()===19?d():void 0}function en(){let O=Bi(23);O&&It();let Y=Bi(62),X=H0();return Y&&zl(62),O&&(It(),ft(64)&&Et(),j(24)),{name:X,isBracketed:O}}function kn(O){switch(O.kind){case 151:return!0;case 188:return kn(O.elementType);default:return Pf(O)&&tt(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function $n(O,Y,X,te){let ne=Re(),Pe=!ne;xr();let{name:Ue,isBracketed:pt}=en(),hn=xr();Pe&&!G(f)&&(ne=Re());let sn=n(O,J(),te,hn),tn=Pa(ne,Ue,X,te);tn&&(ne=tn,Pe=!0);let Qn=X===1?h.createJSDocPropertyTag(Y,Ue,pt,ne,Pe,sn):h.createJSDocParameterTag(Y,Ue,pt,ne,Pe,sn);return D(Qn,O)}function Pa(O,Y,X,te){if(O&&kn(O.type)){let ne=J(),Pe,Ue;for(;Pe=le(()=>yp(X,te,Y));)Pe.kind===341||Pe.kind===348?Ue=An(Ue,Pe):Pe.kind===345&&ln(Pe.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ue){let pt=D(h.createJSDocTypeLiteral(Ue,O.type.kind===188),ne);return D(h.createJSDocTypeExpression(pt),ne)}}}function D0(O,Y,X,te){Xt(Ae,h6)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=Re();return D(h.createJSDocReturnTag(Y,ne,n(O,J(),X,te)),O)}function md(O,Y,X,te){Xt(Ae,Vf)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=d(!0),Pe=X!==void 0&&te!==void 0?n(O,J(),X,te):void 0;return D(h.createJSDocTypeTag(Y,ne,Pe),O)}function P0(O,Y,X,te){let Pe=u()===23||G(()=>ze()===60&&wt(ze())&&w(t.getTokenValue()))?void 0:b(),Ue=X!==void 0&&te!==void 0?n(O,J(),X,te):void 0;return D(h.createJSDocSeeTag(Y,Pe,Ue),O)}function N0(O,Y,X,te){let ne=Re(),Pe=n(O,J(),X,te);return D(h.createJSDocThrowsTag(Y,ne,Pe),O)}function I0(O,Y,X,te){let ne=J(),Pe=O0(),Ue=t.getTokenFullStart(),pt=n(O,Ue,X,te);pt||(Ue=t.getTokenFullStart());let hn=typeof pt!="string"?Ct(Xp([D(Pe,ne,Ue)],pt),ne):Pe.text+pt;return D(h.createJSDocAuthorTag(Y,hn),O)}function O0(){let O=[],Y=!1,X=t.getToken();for(;X!==1&&X!==4;){if(X===30)Y=!0;else{if(X===60&&!Y)break;if(X===32&&Y){O.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}O.push(t.getTokenText()),X=ze()}return h.createJSDocText(O.join(""))}function M0(O,Y,X,te){let ne=hd();return D(h.createJSDocImplementsTag(Y,ne,n(O,J(),X,te)),O)}function J0(O,Y,X,te){let ne=hd();return D(h.createJSDocAugmentsTag(Y,ne,n(O,J(),X,te)),O)}function L0(O,Y,X,te){let ne=d(!1),Pe=X!==void 0&&te!==void 0?n(O,J(),X,te):void 0;return D(h.createJSDocSatisfiesTag(Y,ne,Pe),O)}function j0(O,Y,X,te){let ne=t.getTokenFullStart(),Pe;ve()&&(Pe=St());let Ue=si(Pe,ne,!0,!0),pt=Ri(),hn=Wc(),sn=X!==void 0&&te!==void 0?n(O,J(),X,te):void 0;return D(h.createJSDocImportTag(Y,Ue,pt,hn,sn),O)}function hd(){let O=Je(19),Y=J(),X=R0();t.setSkipJsDocLeadingAsterisks(!0);let te=Ca();t.setSkipJsDocLeadingAsterisks(!1);let ne=h.createExpressionWithTypeArguments(X,te),Pe=D(ne,Y);return O&&j(20),Pe}function R0(){let O=J(),Y=li();for(;Je(25);){let X=li();Y=D(ae(Y,X),O)}return Y}function Ui(O,Y,X,te,ne){return D(Y(X,n(O,J(),te,ne)),O)}function yd(O,Y,X,te){let ne=d(!0);return It(),D(h.createJSDocThisTag(Y,ne,n(O,J(),X,te)),O)}function U0(O,Y,X,te){let ne=d(!0);return It(),D(h.createJSDocEnumTag(Y,ne,n(O,J(),X,te)),O)}function B0(O,Y,X,te){let ne=Re();xr();let Pe=hp();It();let Ue=i(X),pt;if(!ne||kn(ne.type)){let sn,tn,Qn,Qc=!1;for(;(sn=le(()=>W0(X)))&&sn.kind!==345;)if(Qc=!0,sn.kind===344)if(tn){let Na=Ee(E.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Na&&rl(Na,Oa(Mt,Qe,0,0,E.The_tag_was_first_specified_here));break}else tn=sn;else Qn=An(Qn,sn);if(Qc){let Na=ne&&ne.type.kind===188,Kc=h.createJSDocTypeLiteral(Qn,Na);ne=tn&&tn.typeExpression&&!kn(tn.typeExpression.type)?tn.typeExpression:D(Kc,O),pt=ne.end}}pt=pt||Ue!==void 0?J():(Pe??ne??Y).end,Ue||(Ue=n(O,pt,X,te));let hn=h.createJSDocTypedefTag(Y,ne,Pe,Ue);return D(hn,O,pt)}function hp(O){let Y=t.getTokenStart();if(!wt(u()))return;let X=li();if(Je(25)){let te=hp(!0),ne=h.createModuleDeclaration(void 0,X,te,O?8:void 0);return D(ne,Y)}return O&&(X.flags|=4096),X}function q0(O){let Y=J(),X,te;for(;X=le(()=>yp(4,O));){if(X.kind===345){ln(X.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}te=An(te,X)}return Ct(te||[],Y)}function gd(O,Y){let X=q0(Y),te=le(()=>{if(Bi(60)){let ne=q(Y);if(ne&&ne.kind===342)return ne}});return D(h.createJSDocSignature(void 0,X,te),O)}function z0(O,Y,X,te){let ne=hp();It();let Pe=i(X),Ue=gd(O,X);Pe||(Pe=n(O,J(),X,te));let pt=Pe!==void 0?J():Ue.end;return D(h.createJSDocCallbackTag(Y,Ue,ne,Pe),O,pt)}function F0(O,Y,X,te){It();let ne=i(X),Pe=gd(O,X);ne||(ne=n(O,J(),X,te));let Ue=ne!==void 0?J():Pe.end;return D(h.createJSDocOverloadTag(Y,Pe,ne),O,Ue)}function V0(O,Y){for(;!tt(O)||!tt(Y);)if(!tt(O)&&!tt(Y)&&O.right.escapedText===Y.right.escapedText)O=O.left,Y=Y.left;else return!1;return O.escapedText===Y.escapedText}function W0(O){return yp(1,O)}function yp(O,Y,X){let te=!0,ne=!1;for(;;)switch(ze()){case 60:if(te){let Pe=G0(O,Y);return Pe&&(Pe.kind===341||Pe.kind===348)&&X&&(tt(Pe.name)||!V0(X,Pe.name.left))?!1:Pe}ne=!1;break;case 4:te=!0,ne=!1;break;case 42:ne&&(te=!1),ne=!0;break;case 80:te=!1;break;case 1:return!1}}function G0(O,Y){B.assert(u()===60);let X=t.getTokenFullStart();ze();let te=li(),ne=xr(),Pe;switch(te.escapedText){case"type":return O===1&&md(X,te);case"prop":case"property":Pe=1;break;case"arg":case"argument":case"param":Pe=6;break;case"template":return bd(X,te,Y,ne);case"this":return yd(X,te,Y,ne);default:return!1}return O&Pe?$n(X,te,O,Y):!1}function Y0(){let O=J(),Y=Bi(23);Y&&It();let X=wn(!1,!0),te=li(E.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ne;if(Y&&(It(),j(64),ne=Tt(16777216,l_),j(24)),!Hi(te))return D(h.createTypeParameterDeclaration(X,te,void 0,ne),O)}function X0(){let O=J(),Y=[];do{It();let X=Y0();X!==void 0&&Y.push(X),xr()}while(Bi(28));return Ct(Y,O)}function bd(O,Y,X,te){let ne=u()===19?d():void 0,Pe=X0();return D(h.createJSDocTemplateTag(Y,ne,Pe,n(O,J(),X,te)),O)}function Bi(O){return u()===O?(ze(),!0):!1}function H0(){let O=li();for(Je(23)&&j(24);Je(25);){let Y=li();Je(23)&&j(24),O=Hl(O,Y)}return O}function li(O){if(!wt(u()))return Gt(80,!O,O||E.Identifier_expected);vn++;let Y=t.getTokenStart(),X=t.getTokenEnd(),te=u(),ne=Mr(t.getTokenValue()),Pe=D(re(ne,te),Y,X);return ze(),Pe}}})(Hc=e.JSDocParser||(e.JSDocParser={}))})(Qi||(Qi={}));var Tm=new WeakSet;function U6(e){Tm.has(e)&&B.fail("Source file has already been incrementally parsed"),Tm.add(e)}var mh=new WeakSet;function B6(e){return mh.has(e)}function Gp(e){mh.add(e)}var Tl;(e=>{function t(x,I,re,he){if(he=he||B.shouldAssert(2),h(x,I,re,he),yg(re))return x;if(x.statements.length===0)return Qi.parseSourceFile(x.fileName,I,x.languageVersion,void 0,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);U6(x),Qi.fixupParentReferences(x);let ye=x.text,de=y(x),M=l(x,re);h(x,I,M,he),B.assert(M.span.start<=re.span.start),B.assert(wr(M.span)===wr(re.span)),B.assert(wr(K_(M))===wr(K_(re)));let ae=K_(M).length-M.span.length;P(x,M.span.start,wr(M.span),wr(K_(M)),ae,ye,I,he);let Oe=Qi.parseSourceFile(x.fileName,I,x.languageVersion,de,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);return Oe.commentDirectives=a(x.commentDirectives,Oe.commentDirectives,M.span.start,wr(M.span),ae,ye,I,he),Oe.impliedNodeFormat=x.impliedNodeFormat,v6(x,Oe),Oe}e.updateSourceFile=t;function a(x,I,re,he,ye,de,M,ae){if(!x)return I;let Oe,V=!1;for(let W of x){let{range:dt,type:nr}=W;if(dt.end<re)Oe=An(Oe,W);else if(dt.pos>he){oe();let gn={range:{pos:dt.pos+ye,end:dt.end+ye},type:nr};Oe=An(Oe,gn),ae&&B.assert(de.substring(dt.pos,dt.end)===M.substring(gn.range.pos,gn.range.end))}}return oe(),Oe;function oe(){V||(V=!0,Oe?I&&Oe.push(...I):Oe=I)}}function o(x,I,re,he,ye,de,M){re?Oe(x):ae(x);return;function ae(V){let oe="";if(M&&m(V)&&(oe=ye.substring(V.pos,V.end)),Qd(V,I),yi(V,V.pos+he,V.end+he),M&&m(V)&&B.assert(oe===de.substring(V.pos,V.end)),Ht(V,ae,Oe),Xi(V))for(let W of V.jsDoc)ae(W);A(V,M)}function Oe(V){yi(V,V.pos+he,V.end+he);for(let oe of V)ae(oe)}}function m(x){switch(x.kind){case 11:case 9:case 80:return!0}return!1}function v(x,I,re,he,ye){B.assert(x.end>=I,"Adjusting an element that was entirely before the change range"),B.assert(x.pos<=re,"Adjusting an element that was entirely after the change range"),B.assert(x.pos<=x.end);let de=Math.min(x.pos,he),M=x.end>=re?x.end+ye:Math.min(x.end,he);if(B.assert(de<=M),x.parent){let ae=x.parent;B.assertGreaterThanOrEqual(de,ae.pos),B.assertLessThanOrEqual(M,ae.end)}yi(x,de,M)}function A(x,I){if(I){let re=x.pos,he=ye=>{B.assert(ye.pos>=re),re=ye.end};if(Xi(x))for(let ye of x.jsDoc)he(ye);Ht(x,he),B.assert(re<=x.end)}}function P(x,I,re,he,ye,de,M,ae){Oe(x);return;function Oe(oe){if(B.assert(oe.pos<=oe.end),oe.pos>re){o(oe,x,!1,ye,de,M,ae);return}let W=oe.end;if(W>=I){if(Gp(oe),Qd(oe,x),v(oe,I,re,he,ye),Ht(oe,Oe,V),Xi(oe))for(let dt of oe.jsDoc)Oe(dt);A(oe,ae);return}B.assert(W<I)}function V(oe){if(B.assert(oe.pos<=oe.end),oe.pos>re){o(oe,x,!0,ye,de,M,ae);return}let W=oe.end;if(W>=I){Gp(oe),v(oe,I,re,he,ye);for(let dt of oe)Oe(dt);return}B.assert(W<I)}}function l(x,I){let he=I.span.start;for(let M=0;he>0&&M<=1;M++){let ae=Q(x,he);B.assert(ae.pos<=he);let Oe=ae.pos;he=Math.max(0,Oe-1)}let ye=hg(he,wr(I.span)),de=I.newLength+(I.span.start-he);return Qm(ye,de)}function Q(x,I){let re=x,he;if(Ht(x,de),he){let M=ye(he);M.pos>re.pos&&(re=M)}return re;function ye(M){for(;;){let ae=tb(M);if(ae)M=ae;else return M}}function de(M){if(!Hi(M))if(M.pos<=I){if(M.pos>=re.pos&&(re=M),I<M.end)return Ht(M,de),!0;B.assert(M.end<=I),he=M}else return B.assert(M.pos>I),!0}}function h(x,I,re,he){let ye=x.text;if(re&&(B.assert(ye.length-re.span.length+re.newLength===I.length),he||B.shouldAssert(3))){let de=ye.substr(0,re.span.start),M=I.substr(0,re.span.start);B.assert(de===M);let ae=ye.substring(wr(re.span),ye.length),Oe=I.substring(wr(K_(re)),I.length);B.assert(ae===Oe)}}function y(x){let I=x.statements,re=0;B.assert(re<I.length);let he=I[re],ye=-1;return{currentNode(M){return M!==ye&&(he&&he.end===M&&re<I.length-1&&(re++,he=I[re]),(!he||he.pos!==M)&&de(M)),ye=M,B.assert(!he||he.pos===M),he}};function de(M){I=void 0,re=-1,he=void 0,Ht(x,ae,Oe);return;function ae(V){return M>=V.pos&&M<V.end?(Ht(V,ae,Oe),!0):!1}function Oe(V){if(M>=V.pos&&M<V.end)for(let oe=0;oe<V.length;oe++){let W=V[oe];if(W){if(W.pos===M)return I=V,re=oe,he=W,!0;if(W.pos<M&&M<W.end)return Ht(W,ae,Oe),!0}}return!1}}}e.createSyntaxCursor=y;let g;(x=>{x[x.Value=-1]="Value"})(g||(g={}))})(Tl||(Tl={}));function q6(e){return z6(e)!==void 0}function z6(e){let t=jm(e,xb,!1);if(t)return t;if(jy(e,".ts")){let a=Lm(e),o=a.lastIndexOf(".d.");if(o>=0)return a.substring(o)}}function F6(e,t,a,o){if(e){if(e==="import")return 99;if(e==="require")return 1;o(t,a-t,E.resolution_mode_should_be_either_require_or_import)}}function V6(e,t){let a=[];for(let o of Lp(t,0)||bt){let m=t.substring(o.pos,o.end);H6(a,o,m)}e.pragmas=new Map;for(let o of a){if(e.pragmas.has(o.name)){let m=e.pragmas.get(o.name);m instanceof Array?m.push(o.args):e.pragmas.set(o.name,[m,o.args]);continue}e.pragmas.set(o.name,o.args)}}function W6(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,o)=>{switch(o){case"reference":{let m=e.referencedFiles,v=e.typeReferenceDirectives,A=e.libReferenceDirectives;Un(vp(a),P=>{let{types:l,lib:Q,path:h,["resolution-mode"]:y,preserve:g}=P.arguments,x=g==="true"?!0:void 0;if(P.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(l){let I=F6(y,l.pos,l.end,t);v.push({pos:l.pos,end:l.end,fileName:l.value,...I?{resolutionMode:I}:{},...x?{preserve:x}:{}})}else Q?A.push({pos:Q.pos,end:Q.end,fileName:Q.value,...x?{preserve:x}:{}}):h?m.push({pos:h.pos,end:h.end,fileName:h.value,...x?{preserve:x}:{}}):t(P.range.pos,P.range.end-P.range.pos,E.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Np(vp(a),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let m of a)e.moduleName&&t(m.range.pos,m.range.end-m.range.pos,E.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=m.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{Un(vp(a),m=>{(!e.checkJsDirective||m.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:o==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Pp=new Map;function G6(e){if(Pp.has(e))return Pp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Pp.set(e,t),t}var Y6=/^\/\/\/\s*<(\S+)\s.*?\/>/m,X6=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function H6(e,t,a){let o=t.kind===2&&Y6.exec(a);if(o){let v=o[1].toLowerCase(),A=Jm[v];if(!A||!(A.kind&1))return;if(A.args){let P={};for(let l of A.args){let h=G6(l.name).exec(a);if(!h&&!l.optional)return;if(h){let y=h[2]||h[3];if(l.captureSpan){let g=t.pos+h.index+h[1].length+1;P[l.name]={value:y,pos:g,end:g+y.length}}else P[l.name]=y}}e.push({name:v,args:{arguments:P,range:t}})}else e.push({name:v,args:{arguments:{},range:t}});return}let m=t.kind===2&&X6.exec(a);if(m)return xm(e,t,2,m);if(t.kind===3){let v=/@(\S+)(\s+(?:\S.*)?)?$/gm,A;for(;A=v.exec(a);)xm(e,t,4,A)}}function xm(e,t,a,o){if(!o)return;let m=o[1].toLowerCase(),v=Jm[m];if(!v||!(v.kind&a))return;let A=o[2],P=$6(v,A);P!=="fail"&&e.push({name:m,args:{arguments:P,range:t}})}function $6(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),o={};for(let m=0;m<e.args.length;m++){let v=e.args[m];if(!a[m]&&!v.optional)return"fail";if(v.captureSpan)return B.fail("Capture spans not yet implemented for non-xml pragmas");o[v.name]=a[m]}return o}function pi(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&pi(e.expression,t.expression)}var ss=of(ys.Latest,!0);function hh(e,t,a,o){let m=df(e)?new Yf(e,t,a):e===80?new gh(80,t,a):e===81?new bh(81,t,a):new yh(e,t,a);return m.parent=o,m.flags=o.flags&101441536,m}var Yf=class{constructor(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){B.assert(!fs(this.pos)&&!fs(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return hi(this)}getStart(e,t){return this.assertHasRealPosition(),yl(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=hi(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),oh(this,e)??b6(this,e,Q6(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let a=wm(t,o=>o.kind<309||o.kind>351);return a.kind<166?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Yi(t);if(a)return a.kind<166?a:a.getLastToken(e)}forEachChild(e,t){return Ht(this,e,t)}};function Q6(e,t){let a=[];if(r2(e))return e.forEachChild(A=>{a.push(A)}),a;ss.setText((t||e.getSourceFile()).text);let o=e.pos,m=A=>{os(a,o,A.pos,e),a.push(A),o=A.end},v=A=>{os(a,o,A.pos,e),a.push(K6(A,e)),o=A.end};return Un(e.jsDoc,m),o=e.pos,e.forEachChild(m,v),os(a,o,e.end,e),ss.setText(void 0),a}function os(e,t,a,o){for(ss.resetTokenState(t);t<a;){let m=ss.scan(),v=ss.getTokenEnd();if(v<=a){if(m===80){if(Cb(o))continue;B.fail(`Did not expect ${B.formatSyntaxKind(o.kind)} to have an Identifier in its trivia`)}e.push(hh(m,t,v,o))}if(t=v,m===1)break}}function K6(e,t){let a=hh(352,e.pos,e.end,t),o=[],m=e.pos;for(let v of e)os(o,m,v.pos,t),o.push(v),m=v.end;return os(o,m,e.end,t),a._children=o,a}var Xf=class{constructor(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}getSourceFile(){return hi(this)}getStart(e,t){return yl(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||bt}getFirstToken(){}getLastToken(){}forEachChild(){}},Z6=class{constructor(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}getFlags(){return this.flags}get name(){return jp(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=bt,!this.declarations&&jd(this)&&this.links.target&&jd(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=_s([t],e)}else this.documentationComment=_s(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(nl(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=bt,this.contextualGetAccessorDocumentationComment=_s(Gr(this.declarations,nl),t)),ts(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(tl(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=bt,this.contextualSetAccessorDocumentationComment=_s(Gr(this.declarations,tl),t)),ts(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=bt,this.tags=ul(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(nl(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=bt,this.contextualGetAccessorTags=ul(Gr(this.declarations,nl),t)),ts(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(tl(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=bt,this.contextualSetAccessorTags=ul(Gr(this.declarations,tl),t)),ts(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},yh=class extends Xf{constructor(e,t,a){super(e,t,a)}},gh=class extends Xf{constructor(e,t,a){super(e,t,a)}get text(){return Pn(this)}},bh=class extends Xf{constructor(e,t,a){super(e,t,a)}get text(){return Pn(this)}},ev=class{constructor(e,t){this.flags=t,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Ep(this)&3)}isClass(){return!!(Ep(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Ep(this)&4)return this.checker.getTypeArguments(this)}},tv=class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&Ab(t.type)){let a=t.type.getConstraint();if(a)return this.checker.getIndexType(a)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=_s(Op(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=ul(Op(this.declaration),this.checker))}};function vh(e){return r1(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function ul(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(vh))){let o=new Set;for(let m of e){let v=Th(t,m,A=>{var P;if(!o.has(A))return o.add(A),m.kind===177||m.kind===178?A.getContextualJsDocTags(m,t):((P=A.declarations)==null?void 0:P.length)===1?A.getJsDocTags(t):void 0});v&&(a=[...v,...a])}}return a}function _s(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(vh))){let o=new Set;for(let m of e){let v=Th(t,m,A=>{if(!o.has(A))return o.add(A),m.kind===177||m.kind===178?A.getContextualDocumentationComment(m,t):A.getDocumentationComment(t)});v&&(a=a.length===0?v.slice():v.concat(lineBreakPart(),a))}}return a}function Th(e,t,a){var o;let m=((o=t.parent)==null?void 0:o.kind)===176?t.parent.parent:t.parent;if(!m)return;let v=V2(t);return _y(J2(m),A=>{let P=e.getTypeAtLocation(A),l=v&&P.symbol?e.getTypeOfSymbol(P.symbol):P,Q=e.getPropertyOfType(l,t.symbol.name);return Q?a(Q):void 0})}var nv=class extends Yf{constructor(e,t,a){super(e,t,a)}update(e,t){return R6(this,e,t)}getLineAndCharacterOfPosition(e){return Vm(this,e)}getLineStarts(){return Jp(this)}getPositionOfLineAndCharacter(e,t,a){return _g(Jp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),o;t+1>=a.length&&(o=this.getEnd()),o||(o=a[t+1]-1);let m=this.getFullText();return m[o]===`
17
- `&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=vy();return this.forEachChild(m),e;function t(v){let A=o(v);A&&e.add(A,v)}function a(v){let A=e.get(v);return A||e.set(v,A=[]),A}function o(v){let A=uf(v);return A&&(Ef(A)&&Xr(A.expression)?A.expression.name.text:_1(A)?getNameFromPropertyName(A):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let A=v,P=o(A);if(P){let h=a(P),y=Yi(h);y&&A.parent===y.parent&&A.symbol===y.symbol?A.body&&!y.body&&(h[h.length-1]=A):h.push(A)}Ht(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Ht(v,m);break;case 169:if(!bs(v,31))break;case 260:case 208:{let h=v;if(Xg(h.name)){Ht(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let l=v;l.exportClause&&(Z1(l.exportClause)?Un(l.exportClause.elements,m):m(l.exportClause.name));break;case 272:let Q=v.importClause;Q&&(Q.name&&t(Q.name),Q.namedBindings&&(Q.namedBindings.kind===274?t(Q.namedBindings):Un(Q.namedBindings.elements,m)));break;case 226:gf(v)!==0&&t(v);default:Ht(v,m)}}}},rv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Vm(this,e)}};function iv(){return{getNodeConstructor:()=>Yf,getTokenConstructor:()=>yh,getIdentifierConstructor:()=>gh,getPrivateIdentifierConstructor:()=>bh,getSourceFileConstructor:()=>nv,getSymbolConstructor:()=>Z6,getTypeConstructor:()=>ev,getSignatureConstructor:()=>tv,getSourceMapSourceConstructor:()=>rv}}var av=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],w3=[...av,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];lb(iv());var Ol=new Proxy({},{get:()=>!0});var Sh=Ol["4.8"];function er(e,t=!1){var a;if(e!=null){if(Sh){if(t||Il(e)){let o=e1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!Al(o))}}function na(e,t=!1){var a;if(e!=null){if(Sh){if(t||Gf(e)){let o=pf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(Al)}}var kh={};var Ml=new Proxy({},{get:(e,t)=>t});var Eh=Ml,Ah=Ml;var C=Eh,Rt=Ah;var Ch=Ol["5.0"],ue=Ie,ov=new Set([ue.AmpersandAmpersandToken,ue.BarBarToken,ue.QuestionQuestionToken]),cv=new Set([Ie.AmpersandAmpersandEqualsToken,Ie.AmpersandEqualsToken,Ie.AsteriskAsteriskEqualsToken,Ie.AsteriskEqualsToken,Ie.BarBarEqualsToken,Ie.BarEqualsToken,Ie.CaretEqualsToken,Ie.EqualsToken,Ie.GreaterThanGreaterThanEqualsToken,Ie.GreaterThanGreaterThanGreaterThanEqualsToken,Ie.LessThanLessThanEqualsToken,Ie.MinusEqualsToken,Ie.PercentEqualsToken,Ie.PlusEqualsToken,Ie.QuestionQuestionEqualsToken,Ie.SlashEqualsToken]),lv=new Set([ue.AmpersandAmpersandToken,ue.AmpersandToken,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.BarBarToken,ue.BarToken,ue.CaretToken,ue.EqualsEqualsEqualsToken,ue.EqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken,ue.GreaterThanEqualsToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanToken,ue.InKeyword,ue.InstanceOfKeyword,ue.LessThanEqualsToken,ue.LessThanLessThanToken,ue.LessThanToken,ue.MinusToken,ue.PercentToken,ue.PlusToken,ue.SlashToken]);function uv(e){return cv.has(e.kind)}function pv(e){return ov.has(e.kind)}function fv(e){return lv.has(e.kind)}function $r(e){return it(e)}function Dh(e){return e.kind!==ue.SemicolonClassElement}function Xe(e,t){let a=er(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Ph(e){let t=er(e);return t==null?null:t[t.length-1]??null}function Nh(e){return e.kind===ue.CommaToken}function dv(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function mv(e){return e.kind===ue.JSDocComment}function Ih(e){if(uv(e))return{type:C.AssignmentExpression,operator:$r(e.kind)};if(pv(e))return{type:C.LogicalExpression,operator:$r(e.kind)};if(fv(e))return{type:C.BinaryExpression,operator:$r(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function Ts(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function Qr(e,t){let[a,o]=e.map(m=>Ts(m,t));return{end:o,start:a}}function Oh(e){if(e.kind===Ie.Block)switch(e.parent.kind){case Ie.Constructor:case Ie.GetAccessor:case Ie.SetAccessor:case Ie.ArrowFunction:case Ie.FunctionExpression:case Ie.FunctionDeclaration:case Ie.MethodDeclaration:return!0;default:return!1}return!0}function $a(e,t){return[e.getStart(t),e.getEnd()]}function hv(e){return e.kind>=ue.FirstToken&&e.kind<=ue.LastToken}function Mh(e){return e.kind>=ue.JsxElement&&e.kind<=ue.JsxAttribute}function Jl(e){return e.flags&on.Let?"let":(e.flags&on.AwaitUsing)===on.AwaitUsing?"await using":e.flags&on.Const?"const":e.flags&on.Using?"using":"var"}function xi(e){let t=er(e);if(t!=null)for(let a of t)switch(a.kind){case ue.PublicKeyword:return"public";case ue.ProtectedKeyword:return"protected";case ue.PrivateKeyword:return"private";default:break}}function ra(e,t,a){return o(t);function o(m){return i1(m)&&m.pos===e.end?m:xv(m.getChildren(a),v=>(v.pos<=e.pos&&v.end>e.end||v.pos===e.end)&&Tv(v,a)?o(v):void 0)}}function yv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function gv(e){return!!yv(e,Mh)}function Kf(e){return Sr(!1,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return kh[a]||t})}function ia(e){return e.kind===ue.ComputedPropertyName}function Zf(e){return!!e.questionToken}function ed(e){return e.type===C.ChainExpression}function Jh(e,t){return ed(t)&&e.expression.kind!==Ie.ParenthesizedExpression}function bv(e){let t;if(Ch&&e.kind===ue.Identifier?t=wl(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ue.NullKeyword?Rt.Null:t>=ue.FirstFutureReservedWord&&t<=ue.LastKeyword?Rt.Identifier:Rt.Keyword;if(e.kind>=ue.FirstKeyword&&e.kind<=ue.LastFutureReservedWord)return e.kind===ue.FalseKeyword||e.kind===ue.TrueKeyword?Rt.Boolean:Rt.Keyword;if(e.kind>=ue.FirstPunctuation&&e.kind<=ue.LastPunctuation)return Rt.Punctuator;if(e.kind>=ue.NoSubstitutionTemplateLiteral&&e.kind<=ue.TemplateTail)return Rt.Template;switch(e.kind){case ue.NumericLiteral:return Rt.Numeric;case ue.JsxText:return Rt.JSXText;case ue.StringLiteral:return e.parent.kind===ue.JsxAttribute||e.parent.kind===ue.JsxElement?Rt.JSXText:Rt.String;case ue.RegularExpressionLiteral:return Rt.RegularExpression;case ue.Identifier:case ue.ConstructorKeyword:case ue.GetKeyword:case ue.SetKeyword:default:}if(e.kind===ue.Identifier){if(Mh(e.parent))return Rt.JSXIdentifier;if(e.parent.kind===ue.PropertyAccessExpression&&gv(e))return Rt.JSXIdentifier}return Rt.Identifier}function vv(e,t){let a=e.kind===ue.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),m=t.text.slice(a,o),v=bv(e),A=[a,o],P=Qr(A,t);return v===Rt.RegularExpression?{type:v,loc:P,range:A,regex:{flags:m.slice(m.lastIndexOf("/")+1),pattern:m.slice(1,m.lastIndexOf("/"))},value:m}:{type:v,loc:P,range:A,value:m}}function Lh(e){let t=[];function a(o){dv(o)||mv(o)||(hv(o)&&o.kind!==ue.EndOfFileToken?t.push(vv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var Qf=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function td(e,t,a,o=a){let[m,v]=[a,o].map(A=>{let{character:P,line:l}=t.getLineAndCharacterOfPosition(A);return{column:P,line:l+1,offset:A}});return new Qf(e,t.fileName,{end:v,start:m})}function jh(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function Tv(e,t){return e.kind===ue.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function xv(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o!==void 0)return o}}function Sv(e){return(Ch?wl(e):e.originalKeywordKind)===ue.ThisKeyword}function Rh(e){return!!e&&e.kind===ue.Identifier&&Sv(e)}function Uh(e){if(!Rh(e))return!1;for(;P1(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===ue.TypeQuery}function wv(e){return e==null?!0:e.pos===e.end&&e.pos>=0&&e.kind!==ue.EndOfFileToken}function nd(e){return!wv(e)}function Bh(e){return lf(e.parent,hf)}function kv(e){return Xe(ue.AbstractKeyword,e)}function Ev(e){if(e.parameters.length&&!Nl(e)){let t=e.parameters[0];if(Av(t))return t}return null}function Av(e){return Rh(e.name)}function qh(e){switch(e.kind){case ue.ClassDeclaration:return!0;case ue.ClassExpression:return!0;case ue.PropertyDeclaration:{let{parent:t}=e;return!!(Wa(t)||vi(t)&&!kv(e))}case ue.GetAccessor:case ue.SetAccessor:case ue.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Wa(t)||vi(t))}case ue.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ue.Constructor||t.kind===ue.MethodDeclaration||t.kind===ue.SetAccessor)&&Ev(t)!==e&&!!a&&a.kind===ue.ClassDeclaration}}return!1}function Ll(e){switch(e.kind){case ue.Identifier:return!0;case ue.PropertyAccessExpression:case ue.ElementAccessExpression:return!(e.flags&on.OptionalChain);case ue.ParenthesizedExpression:case ue.TypeAssertionExpression:case ue.AsExpression:case ue.SatisfiesExpression:case ue.ExpressionWithTypeArguments:case ue.NonNullExpression:return Ll(e.expression);default:return!1}}function zh(e){let t=er(e),a=e;for(;(!t||t.length===0)&&Ti(a.parent);){let o=er(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var T=Ie;function _d(e){return td("message"in e&&e.message||e.messageText,e.file,e.start)}var me,id,Fh,Be,Vt,Qa,ad,jl=class{constructor(t,a){gp(this,me);qi(this,"allowPattern",!1);qi(this,"ast");qi(this,"esTreeNodeToTSNodeMap",new WeakMap);qi(this,"options");qi(this,"tsNodeToESTreeNodeMap",new WeakMap);this.ast=t,this.options={...a}}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&ge(this,me,Vt).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==T.StringLiteral&&ge(this,me,Vt).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,o){let m=this.convertPattern(t);return a&&(m.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(m,m.typeAnnotation.range)),m}convertBodyExpressions(t,a){let o=Oh(a);return t.map(m=>{let v=this.convertChild(m);if(o){if(v!=null&&v.expression&&Dl(m)&&Ya(m.expression)){let A=v.expression.raw;return v.directive=A.slice(1,-1),v}o=!1}return v}).filter(m=>m)}convertChainExpression(t,a){let{child:o,isOptional:m}=t.type===C.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===C.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},v=Jh(a,o);if(!v&&!m)return t;if(v&&ed(o)){let A=o.expression;t.type===C.MemberExpression?t.object=A:t.type===C.CallExpression?t.callee=A:t.expression=A}return this.createNode(a,{type:C.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===T.FunctionType||(a==null?void 0:a.kind)===T.ConstructorType?2:1,v=[t.getFullStart()-o,t.end],A=Qr(v,this.ast);return{type:C.TSTypeAnnotation,loc:A,range:v,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=ra(t,this.ast,this.ast);return this.createNode(a,{type:C.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(m=>this.convertChild(m))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=ra(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:C.TSTypeParameterDeclaration,loc:Qr(o,this.ast),range:o,params:t.map(m=>this.convertChild(m))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var m;let o=this.convertChild(a);return o.decorators=((m=na(a))==null?void 0:m.map(v=>this.convertChild(v)))??[],o}):[]}converter(t,a,o){if(!t)return null;ge(this,me,Fh).call(this,t);let m=this.allowPattern;o!=null&&(this.allowPattern=o);let v=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,v),this.allowPattern=m,v}convertImportAttributes(t){return t==null?[]:t.elements.map(a=>this.convertChild(a))}convertJSXIdentifier(t){let a=this.createNode(t,{type:C.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ie.JsxNamespacedName){let m=this.createNode(t,{type:C.JSXNamespacedName,name:this.createNode(t.name,{type:C.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:C.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,m),m}let a=t.getText(),o=a.indexOf(":");if(o>0){let m=$a(t,this.ast),v=this.createNode(t,{type:C.JSXNamespacedName,range:m,name:this.createNode(t,{type:C.JSXIdentifier,range:[m[0]+o+1,m[1]],name:a.slice(o+1)}),namespace:this.createNode(t,{type:C.JSXIdentifier,range:[m[0],m[0]+o],name:a.slice(0,o)})});return this.registerTSNodeInNodeMap(t,v),v}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case T.PropertyAccessExpression:t.name.kind===T.PrivateIdentifier&&ge(this,me,Be).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:C.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case T.ThisKeyword:case T.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:C.TSMethodSignature,accessibility:xi(t),computed:ia(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case T.GetAccessor:return"get";case T.SetAccessor:return"set";case T.MethodSignature:return"method"}})(),optional:Zf(t),params:this.convertParameters(t.parameters),readonly:Xe(T.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:Xe(T.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]<t.range[0]&&(t.range[0]=a[0],t.loc.start=Ts(t.range[0],this.ast)),a[1]>t.range[1]&&(t.range[1]=a[1],t.loc.end=Ts(t.range[1],this.ast))}convertNode(t,a){var o,m,v,A,P,l,Q,h;switch(t.kind){case T.SourceFile:return this.createNode(t,{type:C.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case T.Block:return this.createNode(t,{type:C.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case T.Identifier:return Uh(t)?this.createNode(t,{type:C.ThisExpression}):this.createNode(t,{type:C.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case T.PrivateIdentifier:return this.createNode(t,{type:C.PrivateIdentifier,name:t.text.slice(1)});case T.WithStatement:return this.createNode(t,{type:C.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case T.ReturnStatement:return this.createNode(t,{type:C.ReturnStatement,argument:this.convertChild(t.expression)});case T.LabeledStatement:return this.createNode(t,{type:C.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case T.ContinueStatement:return this.createNode(t,{type:C.ContinueStatement,label:this.convertChild(t.label)});case T.BreakStatement:return this.createNode(t,{type:C.BreakStatement,label:this.convertChild(t.label)});case T.IfStatement:return this.createNode(t,{type:C.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case T.SwitchStatement:return t.caseBlock.clauses.filter(y=>y.kind===T.DefaultClause).length>1&&ge(this,me,Be).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:C.SwitchStatement,cases:t.caseBlock.clauses.map(y=>this.convertChild(y)),discriminant:this.convertChild(t.expression)});case T.CaseClause:case T.DefaultClause:return this.createNode(t,{type:C.SwitchCase,consequent:t.statements.map(y=>this.convertChild(y)),test:t.kind===T.CaseClause?this.convertChild(t.expression):null});case T.ThrowStatement:return t.expression.end===t.expression.pos&&ge(this,me,Vt).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:C.ThrowStatement,argument:this.convertChild(t.expression)});case T.TryStatement:return this.createNode(t,{type:C.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case T.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&ge(this,me,Be).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:C.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case T.WhileStatement:return this.createNode(t,{type:C.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.DoStatement:return this.createNode(t,{type:C.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.ForStatement:return this.createNode(t,{type:C.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case T.ForInStatement:return ge(this,me,id).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.ForOfStatement:return ge(this,me,id).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===T.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.FunctionDeclaration:{let y=Xe(T.DeclareKeyword,t),g=Xe(T.AsyncKeyword,t),x=!!t.asteriskToken;y?t.body?ge(this,me,Be).call(this,t,"An implementation cannot be declared in ambient contexts."):g?ge(this,me,Be).call(this,t,"'async' modifier cannot be used in an ambient context."):x&&ge(this,me,Be).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&x&&ge(this,me,Be).call(this,t,"A function signature cannot be declared as a generator.");let I=this.createNode(t,{type:t.body?C.FunctionDeclaration:C.TSDeclareFunction,async:g,body:this.convertChild(t.body)||void 0,declare:y,expression:!1,generator:x,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,I)}case T.VariableDeclaration:{let y=!!t.exclamationToken,g=this.convertChild(t.initializer),x=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return y&&(g?ge(this,me,Be).call(this,t,"Declarations with initializers cannot also have definite assignment assertions."):(x.type!==C.Identifier||!x.typeAnnotation)&&ge(this,me,Be).call(this,t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:C.VariableDeclarator,definite:y,id:x,init:g})}case T.VariableStatement:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarationList.declarations.map(g=>this.convertChild(g)),declare:Xe(T.DeclareKeyword,t),kind:Jl(t.declarationList)});return y.declarations.length||ge(this,me,Vt).call(this,t,"A variable declaration list must have at least one variable declarator."),(y.kind==="using"||y.kind==="await using")&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init==null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations must be initialized.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),(y.declare||["await using","const","using"].includes(y.kind))&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].definite&&ge(this,me,Be).call(this,g,"A definite assignment assertion '!' is not permitted in this context.")}),y.declare&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init&&(["let","var"].includes(y.kind)||y.declarations[x].id.typeAnnotation)&&ge(this,me,Be).call(this,g,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,y)}case T.VariableDeclarationList:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),declare:!1,kind:Jl(t)});return(y.kind==="using"||y.kind==="await using")&&t.declarations.forEach((g,x)=>{y.declarations[x].init!=null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations may not be initialized in for statement.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),y}case T.ExpressionStatement:return this.createNode(t,{type:C.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case T.ThisKeyword:return this.createNode(t,{type:C.ThisExpression});case T.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:C.ArrayExpression,elements:t.elements.map(y=>this.convertChild(y))});case T.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(g=>this.convertPattern(g)),typeAnnotation:void 0});let y=[];for(let g of t.properties)(g.kind===T.GetAccessor||g.kind===T.SetAccessor||g.kind===T.MethodDeclaration)&&!g.body&&ge(this,me,Vt).call(this,g.end-1,"'{' expected."),y.push(this.convertChild(g));return this.createNode(t,{type:C.ObjectExpression,properties:y})}case T.PropertyAssignment:{let{exclamationToken:y,questionToken:g}=t;return g&&ge(this,me,Be).call(this,g,"A property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:C.Property,computed:ia(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case T.ShorthandPropertyAssignment:{let{exclamationToken:y,modifiers:g,questionToken:x}=t;return g&&ge(this,me,Be).call(this,g[0],"A shorthand property assignment cannot have modifiers."),x&&ge(this,me,Be).call(this,x,"A shorthand property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case T.ComputedPropertyName:return this.convertChild(t.expression);case T.PropertyDeclaration:{let y=Xe(T.AbstractKeyword,t);y&&t.initializer&&ge(this,me,Be).call(this,t.initializer,"Abstract property cannot have an initializer.");let g=Xe(T.AccessorKeyword,t),x=g?y?C.TSAbstractAccessorProperty:C.AccessorProperty:y?C.TSAbstractPropertyDefinition:C.PropertyDefinition,I=this.convertChild(t.name);return this.createNode(t,{type:x,accessibility:xi(t),computed:ia(t.name),declare:Xe(T.DeclareKeyword,t),decorators:((m=na(t))==null?void 0:m.map(re=>this.convertChild(re)))??[],definite:!!t.exclamationToken,key:I,optional:(I.type===C.Literal||t.name.kind===T.Identifier||t.name.kind===T.ComputedPropertyName||t.name.kind===T.PrivateIdentifier)&&!!t.questionToken,override:Xe(T.OverrideKeyword,t),readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:y?null:this.convertChild(t.initializer)})}case T.GetAccessor:case T.SetAccessor:if(t.parent.kind===T.InterfaceDeclaration||t.parent.kind===T.TypeLiteral)return this.convertMethodSignature(t);case T.MethodDeclaration:{let y=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:Xe(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let g;if(a.kind===T.ObjectLiteralExpression)y.params=t.parameters.map(x=>this.convertChild(x)),g=this.createNode(t,{type:C.Property,computed:ia(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===T.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:y});else{y.params=this.convertParameters(t.parameters);let x=Xe(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition;g=this.createNode(t,{type:x,accessibility:xi(t),computed:ia(t.name),decorators:((v=na(t))==null?void 0:v.map(I=>this.convertChild(I)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:Xe(T.OverrideKeyword,t),static:Xe(T.StaticKeyword,t),value:y})}return t.kind===T.GetAccessor?g.kind="get":t.kind===T.SetAccessor?g.kind="set":!g.static&&t.name.kind===T.StringLiteral&&t.name.text==="constructor"&&g.type!==C.Property&&(g.kind="constructor"),g}case T.Constructor:{let y=Ph(t),g=(y&&ra(y,t,this.ast))??t.getFirstToken(),x=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});x.typeParameters&&this.fixParentLocation(x,x.typeParameters.range);let I=this.createNode(t,{type:C.Identifier,range:[g.getStart(this.ast),g.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),re=Xe(T.StaticKeyword,t);return this.createNode(t,{type:Xe(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition,accessibility:xi(t),computed:!1,decorators:[],key:I,kind:re?"method":"constructor",optional:!1,override:!1,static:re,value:x})}case T.FunctionExpression:return this.createNode(t,{type:C.FunctionExpression,async:Xe(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.SuperKeyword:return this.createNode(t,{type:C.Super});case T.ArrayBindingPattern:return this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0});case T.OmittedExpression:return null;case T.ObjectBindingPattern:return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(y=>this.convertPattern(y)),typeAnnotation:void 0});case T.BindingElement:{if(a.kind===T.ArrayBindingPattern){let g=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:g,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:C.RestElement,argument:g,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):g}let y;return t.dotDotDotToken?y=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):y=this.createNode(t,{type:C.Property,computed:!!(t.propertyName&&t.propertyName.kind===T.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(y.value=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),y}case T.ArrowFunction:return this.createNode(t,{type:C.ArrowFunctionExpression,async:Xe(T.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==T.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.YieldExpression:return this.createNode(t,{type:C.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case T.AwaitExpression:return this.createNode(t,{type:C.AwaitExpression,argument:this.convertChild(t.expression)});case T.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:C.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case T.TemplateExpression:{let y=this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(g=>{y.expressions.push(this.convertChild(g.expression)),y.quasis.push(this.convertChild(g.literal))}),y}case T.TaggedTemplateExpression:return this.createNode(t,{type:C.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.TemplateHead:case T.TemplateMiddle:case T.TemplateTail:{let y=t.kind===T.TemplateTail;return this.createNode(t,{type:C.TemplateElement,tail:y,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(y?1:2))}})}case T.SpreadAssignment:case T.SpreadElement:return this.allowPattern?this.createNode(t,{type:C.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:C.SpreadElement,argument:this.convertChild(t.expression)});case T.Parameter:{let y,g;return t.dotDotDotToken?y=g=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(y=this.convertChild(t.name),g=this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:y,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),er(t)&&(g.range[0]=y.range[0],g.loc=Qr(g.range,this.ast))):y=g=this.convertChild(t.name,a),t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(y,y.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>y.range[1]&&(y.range[1]=t.questionToken.end,y.loc.end=Ts(y.range[1],this.ast)),y.optional=!0),er(t)?this.createNode(t,{type:C.TSParameterProperty,accessibility:xi(t),decorators:[],override:Xe(T.OverrideKeyword,t),parameter:g,readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t)}):g}case T.ClassDeclaration:!t.name&&(!Xe(Ie.ExportKeyword,t)||!Xe(Ie.DefaultKeyword,t))&&ge(this,me,Vt).call(this,t,"A class declaration without the 'default' modifier must have a name.");case T.ClassExpression:{let y=t.heritageClauses??[],g=t.kind===T.ClassDeclaration?C.ClassDeclaration:C.ClassExpression,x,I;for(let he of y){let{token:ye,types:de}=he;de.length===0&&ge(this,me,Vt).call(this,he,`'${it(ye)}' list cannot be empty.`),ye===T.ExtendsKeyword?(x&&ge(this,me,Vt).call(this,he,"'extends' clause already seen."),I&&ge(this,me,Vt).call(this,he,"'extends' clause must precede 'implements' clause."),de.length>1&&ge(this,me,Vt).call(this,de[1],"Classes can only extend a single class."),x??(x=he)):ye===T.ImplementsKeyword&&(I&&ge(this,me,Vt).call(this,he,"'implements' clause already seen."),I??(I=he))}let re=this.createNode(t,{type:g,abstract:Xe(T.AbstractKeyword,t),body:this.createNode(t,{type:C.ClassBody,range:[t.members.pos-1,t.end],body:t.members.filter(Dh).map(he=>this.convertChild(he))}),declare:Xe(T.DeclareKeyword,t),decorators:((A=na(t))==null?void 0:A.map(he=>this.convertChild(he)))??[],id:this.convertChild(t.name),implements:(I==null?void 0:I.types.map(he=>this.convertChild(he)))??[],superClass:x!=null&&x.types[0]?this.convertChild(x.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(P=x==null?void 0:x.types[0])!=null&&P.typeArguments&&(re.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(x.types[0].typeArguments,x.types[0])),this.fixExports(t,re)}case T.ModuleBlock:return this.createNode(t,{type:C.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case T.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let y=this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(y.importKind="type"),t.importClause.name&&y.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case T.NamespaceImport:y.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case T.NamedImports:y.specifiers.push(...t.importClause.namedBindings.elements.map(g=>this.convertChild(g)));break}return y}case T.NamespaceImport:return this.createNode(t,{type:C.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case T.ImportSpecifier:return this.createNode(t,{type:C.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case T.ImportClause:{let y=this.convertChild(t.name);return this.createNode(t,{type:C.ImportDefaultSpecifier,range:y.range,local:y})}case T.ExportDeclaration:return((l=t.exportClause)==null?void 0:l.kind)===T.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(y=>this.convertChild(y,t))},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportAllDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),exported:((Q=t.exportClause)==null?void 0:Q.kind)===T.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case T.ExportSpecifier:{let y=t.propertyName??t.name;return y.kind===T.StringLiteral&&a.kind===T.ExportDeclaration&&((h=a.moduleSpecifier)==null?void 0:h.kind)!==T.StringLiteral&&ge(this,me,Be).call(this,y,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:C.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(y)})}case T.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:C.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:C.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case T.PrefixUnaryExpression:case T.PostfixUnaryExpression:{let y=$r(t.operator);return y==="++"||y==="--"?(Ll(t.operand)||ge(this,me,Vt).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:C.UpdateExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})):this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})}case T.DeleteExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case T.VoidExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case T.TypeOfExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case T.TypeOperator:return this.createNode(t,{type:C.TSTypeOperator,operator:$r(t.operator),typeAnnotation:this.convertChild(t.type)});case T.BinaryExpression:{if(Nh(t.operatorToken)){let g=this.createNode(t,{type:C.SequenceExpression,expressions:[]}),x=this.convertChild(t.left);return x.type===C.SequenceExpression&&t.left.kind!==T.ParenthesizedExpression?g.expressions.push(...x.expressions):g.expressions.push(x),g.expressions.push(this.convertChild(t.right)),g}let y=Ih(t.operatorToken);return this.allowPattern&&y.type===C.AssignmentExpression?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...y,left:this.converter(t.left,t,y.type===C.AssignmentExpression),right:this.convertChild(t.right)})}case T.PropertyAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.name),I=this.createNode(t,{type:C.MemberExpression,computed:!1,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(I,t)}case T.ElementAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.argumentExpression),I=this.createNode(t,{type:C.MemberExpression,computed:!0,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(I,t)}case T.CallExpression:{if(t.expression.kind===T.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&ge(this,me,Vt).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let y=this.convertChild(t.expression),g=t.arguments.map(re=>this.convertChild(re)),x=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),I=this.createNode(t,{type:C.CallExpression,arguments:g,callee:y,optional:t.questionDotToken!=null,typeArguments:x});return this.convertChainExpression(I,t)}case T.NewExpression:{let y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:C.NewExpression,arguments:t.arguments?t.arguments.map(g=>this.convertChild(g)):[],callee:this.convertChild(t.expression),typeArguments:y})}case T.ConditionalExpression:return this.createNode(t,{type:C.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case T.MetaProperty:return this.createNode(t,{type:C.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:C.Identifier,decorators:[],name:$r(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case T.Decorator:return this.createNode(t,{type:C.Decorator,expression:this.convertChild(t.expression)});case T.StringLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:a.kind===T.JsxAttribute?Kf(t.text):t.text});case T.NumericLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:Number(t.text)});case T.BigIntLiteral:{let y=$a(t,this.ast),g=this.ast.text.slice(y[0],y[1]),x=Sr(!1,g.slice(0,-1),"_",""),I=typeof BigInt<"u"?BigInt(x):null;return this.createNode(t,{type:C.Literal,range:y,bigint:I==null?x:String(I),raw:g,value:I})}case T.RegularExpressionLiteral:{let y=t.text.slice(1,t.text.lastIndexOf("/")),g=t.text.slice(t.text.lastIndexOf("/")+1),x=null;try{x=new RegExp(y,g)}catch{}return this.createNode(t,{type:C.Literal,raw:t.text,regex:{flags:g,pattern:y},value:x})}case T.TrueKeyword:return this.createNode(t,{type:C.Literal,raw:"true",value:!0});case T.FalseKeyword:return this.createNode(t,{type:C.Literal,raw:"false",value:!1});case T.NullKeyword:return this.createNode(t,{type:C.Literal,raw:"null",value:null});case T.EmptyStatement:return this.createNode(t,{type:C.EmptyStatement});case T.DebuggerStatement:return this.createNode(t,{type:C.DebuggerStatement});case T.JsxElement:return this.createNode(t,{type:C.JSXElement,children:t.children.map(y=>this.convertChild(y)),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case T.JsxFragment:return this.createNode(t,{type:C.JSXFragment,children:t.children.map(y=>this.convertChild(y)),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case T.JsxSelfClosingElement:return this.createNode(t,{type:C.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:C.JSXOpeningElement,range:$a(t,this.ast),attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case T.JsxOpeningElement:return this.createNode(t,{type:C.JSXOpeningElement,attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.JsxClosingElement:return this.createNode(t,{type:C.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case T.JsxOpeningFragment:return this.createNode(t,{type:C.JSXOpeningFragment});case T.JsxClosingFragment:return this.createNode(t,{type:C.JSXClosingFragment});case T.JsxExpression:{let y=t.expression?this.convertChild(t.expression):this.createNode(t,{type:C.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:C.JSXSpreadChild,expression:y}):this.createNode(t,{type:C.JSXExpressionContainer,expression:y})}case T.JsxAttribute:return this.createNode(t,{type:C.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case T.JsxText:{let y=t.getFullStart(),g=t.getEnd(),x=this.ast.text.slice(y,g);return this.createNode(t,{type:C.JSXText,range:[y,g],raw:x,value:Kf(x)})}case T.JsxSpreadAttribute:return this.createNode(t,{type:C.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case T.QualifiedName:return this.createNode(t,{type:C.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case T.TypeReference:return this.createNode(t,{type:C.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case T.TypeParameter:return this.createNode(t,{type:C.TSTypeParameter,const:Xe(T.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:Xe(T.InKeyword,t),name:this.convertChild(t.name),out:Xe(T.OutKeyword,t)});case T.ThisType:return this.createNode(t,{type:C.TSThisType});case T.AnyKeyword:case T.BigIntKeyword:case T.BooleanKeyword:case T.NeverKeyword:case T.NumberKeyword:case T.ObjectKeyword:case T.StringKeyword:case T.SymbolKeyword:case T.UnknownKeyword:case T.VoidKeyword:case T.UndefinedKeyword:case T.IntrinsicKeyword:return this.createNode(t,{type:C[`TS${T[t.kind]}`]});case T.NonNullExpression:{let y=this.createNode(t,{type:C.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(y,t)}case T.TypeLiteral:return this.createNode(t,{type:C.TSTypeLiteral,members:t.members.map(y=>this.convertChild(y))});case T.ArrayType:return this.createNode(t,{type:C.TSArrayType,elementType:this.convertChild(t.elementType)});case T.IndexedAccessType:return this.createNode(t,{type:C.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case T.ConditionalType:return this.createNode(t,{type:C.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case T.TypeQuery:return this.createNode(t,{type:C.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.MappedType:return t.members&&t.members.length>0&&ge(this,me,Vt).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,ge(this,me,ad).call(this,{type:C.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===T.QuestionToken||$r(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===T.ReadonlyKeyword||$r(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case T.ParenthesizedExpression:return this.convertChild(t.expression,a);case T.TypeAliasDeclaration:{let y=this.createNode(t,{type:C.TSTypeAliasDeclaration,declare:Xe(T.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case T.MethodSignature:return this.convertMethodSignature(t);case T.PropertySignature:{let{initializer:y}=t;return y&&ge(this,me,Be).call(this,y,"A property signature cannot have an initializer."),this.createNode(t,{type:C.TSPropertySignature,accessibility:xi(t),computed:ia(t.name),key:this.convertChild(t.name),optional:Zf(t),readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case T.IndexSignature:return this.createNode(t,{type:C.TSIndexSignature,accessibility:xi(t),parameters:t.parameters.map(y=>this.convertChild(y)),readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case T.ConstructorType:return this.createNode(t,{type:C.TSConstructorType,abstract:Xe(T.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.FunctionType:{let{modifiers:y}=t;y&&ge(this,me,Be).call(this,y[0],"A function type cannot have modifiers.")}case T.ConstructSignature:case T.CallSignature:{let y=t.kind===T.ConstructSignature?C.TSConstructSignatureDeclaration:t.kind===T.CallSignature?C.TSCallSignatureDeclaration:C.TSFunctionType;return this.createNode(t,{type:y,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case T.ExpressionWithTypeArguments:{let y=a.kind,g=y===T.InterfaceDeclaration?C.TSInterfaceHeritage:y===T.HeritageClause?C.TSClassImplements:C.TSInstantiationExpression;return this.createNode(t,{type:g,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case T.InterfaceDeclaration:{let y=t.heritageClauses??[],g=[];for(let I of y){I.token!==T.ExtendsKeyword&&ge(this,me,Be).call(this,I,I.token===T.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let re of I.types)g.push(this.convertChild(re,t))}let x=this.createNode(t,{type:C.TSInterfaceDeclaration,body:this.createNode(t,{type:C.TSInterfaceBody,range:[t.members.pos-1,t.end],body:t.members.map(I=>this.convertChild(I))}),declare:Xe(T.DeclareKeyword,t),extends:g,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,x)}case T.TypePredicate:{let y=this.createNode(t,{type:C.TSTypePredicate,asserts:t.assertsModifier!=null,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range),y}case T.ImportType:{let y=$a(t,this.ast);if(t.isTypeOf){let x=ra(t.getFirstToken(),t,this.ast);y[0]=x.getStart(this.ast)}let g=this.createNode(t,{type:C.TSImportType,range:y,argument:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null});return t.isTypeOf?this.createNode(t,{type:C.TSTypeQuery,exprName:g,typeArguments:void 0}):g}case T.EnumDeclaration:{let y=t.members.map(x=>this.convertChild(x)),g=this.createNode(t,ge(this,me,ad).call(this,{type:C.TSEnumDeclaration,body:this.createNode(t,{type:C.TSEnumBody,range:[t.members.pos-1,t.end],members:y}),const:Xe(T.ConstKeyword,t),declare:Xe(T.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(x=>this.convertChild(x))));return this.fixExports(t,g)}case T.EnumMember:return this.createNode(t,{type:C.TSEnumMember,computed:t.name.kind===Ie.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case T.ModuleDeclaration:{let y=Xe(T.DeclareKeyword,t),g=this.createNode(t,{type:C.TSModuleDeclaration,...(()=>{if(t.flags&on.GlobalAugmentation){let I=this.convertChild(t.name),re=this.convertChild(t.body);return(re==null||re.type===C.TSModuleDeclaration)&&ge(this,me,Vt).call(this,t.body??t,"Expected a valid module body"),I.type!==C.Identifier&&ge(this,me,Vt).call(this,t.name,"global module augmentation must have an Identifier id"),{body:re,declare:!1,global:!1,id:I,kind:"global"}}if(!(t.flags&on.Namespace)){let I=this.convertChild(t.body);return{kind:"module",...I!=null?{body:I}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&ge(this,me,Vt).call(this,t,"Expected a module body"),t.name.kind!==Ie.Identifier&&ge(this,me,Vt).call(this,t.name,"`namespace`s must have an Identifier id");let x=this.createNode(t.name,{type:C.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&Ti(t.body)&&t.body.name;){t=t.body,y||(y=Xe(T.DeclareKeyword,t));let I=t.name,re=this.createNode(I,{type:C.Identifier,range:[I.getStart(this.ast),I.getEnd()],decorators:[],name:I.text,optional:!1,typeAnnotation:void 0});x=this.createNode(I,{type:C.TSQualifiedName,range:[x.range[0],re.range[1]],left:x,right:re})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:x,kind:"namespace"}})()});return g.declare=y,t.flags&on.GlobalAugmentation&&(g.global=!0),this.fixExports(t,g)}case T.ParenthesizedType:return this.convertChild(t.type);case T.UnionType:return this.createNode(t,{type:C.TSUnionType,types:t.types.map(y=>this.convertChild(y))});case T.IntersectionType:return this.createNode(t,{type:C.TSIntersectionType,types:t.types.map(y=>this.convertChild(y))});case T.AsExpression:return this.createNode(t,{type:C.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.InferType:return this.createNode(t,{type:C.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case T.LiteralType:return t.literal.kind===T.NullKeyword?this.createNode(t.literal,{type:C.TSNullKeyword}):this.createNode(t,{type:C.TSLiteralType,literal:this.convertChild(t.literal)});case T.TypeAssertionExpression:return this.createNode(t,{type:C.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:C.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case T.ExternalModuleReference:return t.expression.kind!==T.StringLiteral&&ge(this,me,Be).call(this,t.expression,"String literal expected."),this.createNode(t,{type:C.TSExternalModuleReference,expression:this.convertChild(t.expression)});case T.NamespaceExportDeclaration:return this.createNode(t,{type:C.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case T.AbstractKeyword:return this.createNode(t,{type:C.TSAbstractKeyword});case T.TupleType:{let y=t.elements.map(g=>this.convertChild(g));return this.createNode(t,{type:C.TSTupleType,elementTypes:y})}case T.NamedTupleMember:{let y=this.createNode(t,{type:C.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(y.range[0]=y.label.range[0],y.loc.start=y.label.loc.start,this.createNode(t,{type:C.TSRestType,typeAnnotation:y})):y}case T.OptionalType:return this.createNode(t,{type:C.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case T.RestType:return this.createNode(t,{type:C.TSRestType,typeAnnotation:this.convertChild(t.type)});case T.TemplateLiteralType:{let y=this.createNode(t,{type:C.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(g=>{y.types.push(this.convertChild(g.type)),y.quasis.push(this.convertChild(g.literal))}),y}case T.ClassStaticBlockDeclaration:return this.createNode(t,{type:C.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case T.AssertEntry:case T.ImportAttribute:return this.createNode(t,{type:C.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case T.SatisfiesExpression:return this.createNode(t,{type:C.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let o=a;return o.range??(o.range=$a(t,this.ast)),o.loc??(o.loc=Qr(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ie.JSDocFunctionType&&ge(this,me,Be).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${T[t.kind]}`;if(this.options.errorOnUnknownASTType&&!C[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&s1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let m=na(t);m!=null&&m.length&&(o.decorators=m.map(A=>this.convertChild(A)));let v=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([A])=>!v.has(A)).forEach(([A,P])=>{Array.isArray(P)?o[A]=P.map(l=>this.convertChild(l)):P&&typeof P=="object"&&P.kind?o[A]=this.convertChild(P):o[A]=P}),o}fixExports(t,a){let m=Ti(t)&&!!(t.flags&on.Namespace)?zh(t):er(t);if((m==null?void 0:m[0].kind)===T.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let v=m[0],A=m[1],P=(A==null?void 0:A.kind)===T.DefaultKeyword,l=P?ra(A,this.ast,this.ast):ra(v,this.ast,this.ast);if(a.range[0]=l.getStart(this.ast),a.loc=Qr(a.range,this.ast),P)return this.createNode(t,{type:C.ExportDefaultDeclaration,range:[v.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let Q=a.type===C.TSInterfaceDeclaration||a.type===C.TSTypeAliasDeclaration,h="declare"in a&&a.declare;return this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,range:[v.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:Q||h?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};me=new WeakSet,id=function(t,a){let o=a===Ie.ForInStatement?"for...in":"for...of";if(Q1(t)){t.declarations.length!==1&&ge(this,me,Be).call(this,t,`Only a single variable declaration is allowed in a '${o}' statement.`);let m=t.declarations[0];m.initializer?ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have an initializer.`):m.type&&ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have a type annotation.`),a===Ie.ForInStatement&&t.flags&on.Using&&ge(this,me,Be).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!Ll(t)&&t.kind!==Ie.ObjectLiteralExpression&&t.kind!==Ie.ArrayLiteralExpression&&ge(this,me,Be).call(this,t,`The left-hand side of a '${o}' statement must be a variable or a property access.`)},Fh=function(t){if(!this.options.allowInvalidAST){jh(t)&&ge(this,me,Be).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of na(t,!0)??[])qh(t)||(ms(t)&&!nd(t.body)?ge(this,me,Be).call(this,a,"A decorator can only decorate a method implementation, not an overload."):ge(this,me,Be).call(this,a,"Decorators are not valid here."));for(let a of er(t,!0)??[]){if(a.kind!==T.ReadonlyKeyword&&((t.kind===T.PropertySignature||t.kind===T.MethodSignature)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type member`),t.kind===T.IndexSignature&&(a.kind!==T.StaticKeyword||!vi(t.parent))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==T.InKeyword&&a.kind!==T.OutKeyword&&a.kind!==T.ConstKeyword&&t.kind===T.TypeParameter&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===T.InKeyword||a.kind===T.OutKeyword)&&(t.kind!==T.TypeParameter||!(vs(t.parent)||vi(t.parent)||Pl(t.parent)))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===T.ReadonlyKeyword&&t.kind!==T.PropertyDeclaration&&t.kind!==T.PropertySignature&&t.kind!==T.IndexSignature&&t.kind!==T.Parameter&&ge(this,me,Be).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===T.DeclareKeyword&&vi(t.parent)&&!Va(t)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===T.DeclareKeyword&&Ha(t)){let o=Jl(t.declarationList);(o==="using"||o==="await using")&&ge(this,me,Be).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===T.AbstractKeyword&&t.kind!==T.ClassDeclaration&&t.kind!==T.ConstructorType&&t.kind!==T.MethodDeclaration&&t.kind!==T.PropertyDeclaration&&t.kind!==T.GetAccessor&&t.kind!==T.SetAccessor&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===T.StaticKeyword||a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)&&(t.parent.kind===T.ModuleBlock||t.parent.kind===T.SourceFile)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===T.AccessorKeyword&&t.kind!==T.PropertyDeclaration&&ge(this,me,Be).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===T.AsyncKeyword&&t.kind!==T.MethodDeclaration&&t.kind!==T.FunctionDeclaration&&t.kind!==T.FunctionExpression&&t.kind!==T.ArrowFunction&&ge(this,me,Be).call(this,a,"'async' modifier cannot be used here."),t.kind===T.Parameter&&(a.kind===T.StaticKeyword||a.kind===T.ExportKeyword||a.kind===T.DeclareKeyword||a.kind===T.AsyncKeyword)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a parameter.`),a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)for(let o of er(t)??[])o!==a&&(o.kind===T.PublicKeyword||o.kind===T.ProtectedKeyword||o.kind===T.PrivateKeyword)&&ge(this,me,Be).call(this,o,"Accessibility modifier already seen.");if(t.kind===T.Parameter&&(a.kind===T.PublicKeyword||a.kind===T.PrivateKeyword||a.kind===T.ProtectedKeyword||a.kind===T.ReadonlyKeyword||a.kind===T.OverrideKeyword)){let o=Bh(t);o.kind===T.Constructor&&nd(o.body)||ge(this,me,Be).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},Be=function(t,a){let o,m;throw typeof t=="number"?o=m=t:(o=t.getStart(this.ast),m=t.getEnd()),td(a,this.ast,o,m)},Vt=function(t,a){this.options.allowInvalidAST||ge(this,me,Be).call(this,t,a)},Qa=function(t,a,o,m=!1){let v=m;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),t[o]),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t},ad=function(t,a,o,m){let v=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>m:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),m),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t};function Cv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(mf(e.kind))t(e);else{let m=e.getChildren(a);if(m.length===1){e=m[0];continue}for(let v=m.length-1;v>=0;--v)o.push(m[v])}if(o.length===0)break;e=o.pop()}}function Wh(e,t,a=e.getSourceFile()){let o=a.text,m=a.languageVariant!==xl.JSX;return Cv(e,A=>{if(A.pos!==A.end&&(A.kind!==Ie.JsxText&&Xm(o,A.pos===0?(sf(o)??"").length:A.pos,v),m||Dv(A)))return Hm(o,A.end,v)},a);function v(A,P,l){t(o,{end:P,kind:l,pos:A})}}function Dv(e){switch(e.kind){case Ie.CloseBraceToken:return e.parent.kind!==Ie.JsxExpression||!sd(e.parent.parent);case Ie.GreaterThanToken:switch(e.parent.kind){case Ie.JsxClosingElement:case Ie.JsxClosingFragment:return!sd(e.parent.parent.parent);case Ie.JsxOpeningElement:return e.end!==e.parent.end;case Ie.JsxOpeningFragment:return!1;case Ie.JsxSelfClosingElement:return e.end!==e.parent.end||!sd(e.parent.parent)}}return!0}function sd(e){return e.kind===Ie.JsxElement||e.kind===Ie.JsxFragment}var[KT,ZT]=Sm.split(".").map(e=>Number.parseInt(e,10));var ex=nn.Intrinsic??nn.Any|nn.Unknown|nn.String|nn.Number|nn.BigInt|nn.Boolean|nn.BooleanLiteral|nn.ESSymbol|nn.Void|nn.Undefined|nn.Null|nn.Never|nn.NonPrimitive;function Gh(e,t){let a=[];return Wh(e,(o,m)=>{let v=m.kind===Ie.SingleLineCommentTrivia?Rt.Line:Rt.Block,A=[m.pos,m.end],P=Qr(A,e),l=A[0]+2,Q=m.kind===Ie.SingleLineCommentTrivia?A[1]-l:A[1]-l-2;a.push({type:v,loc:P,range:A,value:t.slice(l,l+Q)})},e),a}var Yh=()=>{};function Xh(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw _d(o[0]);let m=new jl(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),v=m.convertProgram();return(!t.range||!t.loc)&&Yh(v,{enter:P=>{t.range||delete P.range,t.loc||delete P.loc}}),t.tokens&&(v.tokens=Lh(e)),t.comment&&(v.comments=Gh(e,t.codeFullText)),{astMaps:m.getASTMaps(),estree:v}}function Rl(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ie.SourceFile&&typeof t.getFullText=="function"}var Lv=function(e){return e&&e.__esModule?e:{default:e}};var jv=Lv({extname:e=>"."+e.split(".").pop()});function $h(e,t){switch(jv.default.extname(e).toLowerCase()){case Nn.Cjs:case Nn.Js:case Nn.Mjs:return Dr.JS;case Nn.Cts:case Nn.Mts:case Nn.Ts:return Dr.TS;case Nn.Json:return Dr.JSON;case Nn.Jsx:return Dr.JSX;case Nn.Tsx:return Dr.TSX;default:return t?Dr.TSX:Dr.TS}}var Uv={default:Ia},Bv=(0,Uv.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function Qh(e){return Bv("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Rl(e.code)?e.code:fh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:ys.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,$h(e.filePath,e.jsx))}var Kh=()=>{};var Zh=e=>e;var e0=class{};var n0=()=>!1;var r0=()=>{};var Kv=function(e){return e&&e.__esModule?e:{default:e}};var od={default:Ia},Zv=Kv({extname:e=>"."+e.split(".").pop()}),e4=(0,od.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),t4,n4=null,i0,a0,_0,s0,xs={ParseAll:(i0=Ga)==null?void 0:i0.ParseAll,ParseForTypeErrors:(a0=Ga)==null?void 0:a0.ParseForTypeErrors,ParseForTypeInfo:(_0=Ga)==null?void 0:_0.ParseForTypeInfo,ParseNone:(s0=Ga)==null?void 0:s0.ParseNone};function o0(e,t={}){var h;let a=r4(e),o=n0(t),m=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",v=typeof t.loggerFn=="function",A=Zh(typeof t.filePath=="string"&&t.filePath!=="<input>"?t.filePath:i4(t.jsx),m),P=Zv.default.extname(A).toLowerCase(),l=(()=>{switch(t.jsDocParsingMode){case"all":return xs.ParseAll;case"none":return xs.ParseNone;case"type-info":return xs.ParseForTypeInfo;default:return xs.ParseAll}})(),Q={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:A,jsDocParsingMode:l,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?n4??(n4=Kh(t.projectService,l,m)):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&P===Nn.Mjs||t.sourceType==null&&P===Nn.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:t4??(t4=new e0(o?"Infinity":((h=t.cacheLifetime)==null?void 0:h.glob)??void 0)),tsconfigRootDir:m};if(Q.debugLevel.size>0){let y=[];Q.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(Q.debugLevel.has("eslint")||od.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),od.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");e4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!Q.programs&&!Q.projectService&&(Q.projects=new Map),t.jsDocParsingMode==null&&Q.projects.size===0&&Q.programs==null&&Q.projectService==null&&(Q.jsDocParsingMode=xs.ParseNone),r0(Q,v),Q}function r4(e){return Rl(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function i4(e){return e?"estree.tsx":"estree.ts"}var o4={default:Ia},hx=(0,o4.default)("typescript-eslint:typescript-estree:parser");function c0(e,t){let{ast:a}=c4(e,t,!1);return a}function c4(e,t,a){let o=o0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let m=Qh(o),{astMaps:v,estree:A}=Xh(m,o,a);return{ast:A,esTreeNodeToTSNodeMap:v.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:v.tsNodeToESTreeNodeMap}}function l4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var l0=l4;function u4(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var u0=u4;var p4=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},cd=p4;function f4(e){return Array.isArray(e)&&e.length>0}var p0=f4;function tr(e){var o,m,v;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(v=((m=e.declaration)==null?void 0:m.decorators)??e.decorators)==null?void 0:v[0];return a?Math.min(tr(a),t):t}function Kr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function d4(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var f0=d4;var m4=f0(["Block","CommentBlock","MultiLine"]),Ss=m4;function h4(e){let t=`*${e.value}*`.split(`
17
+ `&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=vy();return this.forEachChild(m),e;function t(v){let A=o(v);A&&e.add(A,v)}function a(v){let A=e.get(v);return A||e.set(v,A=[]),A}function o(v){let A=uf(v);return A&&(Ef(A)&&Xr(A.expression)?A.expression.name.text:_1(A)?getNameFromPropertyName(A):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let A=v,P=o(A);if(P){let h=a(P),y=Yi(h);y&&A.parent===y.parent&&A.symbol===y.symbol?A.body&&!y.body&&(h[h.length-1]=A):h.push(A)}Ht(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Ht(v,m);break;case 169:if(!bs(v,31))break;case 260:case 208:{let h=v;if(Xg(h.name)){Ht(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let l=v;l.exportClause&&(Z1(l.exportClause)?Un(l.exportClause.elements,m):m(l.exportClause.name));break;case 272:let Q=v.importClause;Q&&(Q.name&&t(Q.name),Q.namedBindings&&(Q.namedBindings.kind===274?t(Q.namedBindings):Un(Q.namedBindings.elements,m)));break;case 226:gf(v)!==0&&t(v);default:Ht(v,m)}}}},rv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Vm(this,e)}};function iv(){return{getNodeConstructor:()=>Yf,getTokenConstructor:()=>yh,getIdentifierConstructor:()=>gh,getPrivateIdentifierConstructor:()=>bh,getSourceFileConstructor:()=>nv,getSymbolConstructor:()=>Z6,getTypeConstructor:()=>ev,getSignatureConstructor:()=>tv,getSourceMapSourceConstructor:()=>rv}}var av=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],w3=[...av,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];lb(iv());var Ol=new Proxy({},{get:()=>!0});var Sh=Ol["4.8"];function er(e,t=!1){var a;if(e!=null){if(Sh){if(t||Il(e)){let o=e1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!Al(o))}}function na(e,t=!1){var a;if(e!=null){if(Sh){if(t||Gf(e)){let o=pf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(Al)}}var kh={};var Ml=new Proxy({},{get:(e,t)=>t});var Eh=Ml,Ah=Ml;var C=Eh,Rt=Ah;var Ch=Ol["5.0"],ue=Ie,ov=new Set([ue.AmpersandAmpersandToken,ue.BarBarToken,ue.QuestionQuestionToken]),cv=new Set([Ie.AmpersandAmpersandEqualsToken,Ie.AmpersandEqualsToken,Ie.AsteriskAsteriskEqualsToken,Ie.AsteriskEqualsToken,Ie.BarBarEqualsToken,Ie.BarEqualsToken,Ie.CaretEqualsToken,Ie.EqualsToken,Ie.GreaterThanGreaterThanEqualsToken,Ie.GreaterThanGreaterThanGreaterThanEqualsToken,Ie.LessThanLessThanEqualsToken,Ie.MinusEqualsToken,Ie.PercentEqualsToken,Ie.PlusEqualsToken,Ie.QuestionQuestionEqualsToken,Ie.SlashEqualsToken]),lv=new Set([ue.AmpersandAmpersandToken,ue.AmpersandToken,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.BarBarToken,ue.BarToken,ue.CaretToken,ue.EqualsEqualsEqualsToken,ue.EqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken,ue.GreaterThanEqualsToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanToken,ue.InKeyword,ue.InstanceOfKeyword,ue.LessThanEqualsToken,ue.LessThanLessThanToken,ue.LessThanToken,ue.MinusToken,ue.PercentToken,ue.PlusToken,ue.SlashToken]);function uv(e){return cv.has(e.kind)}function pv(e){return ov.has(e.kind)}function fv(e){return lv.has(e.kind)}function $r(e){return it(e)}function Dh(e){return e.kind!==ue.SemicolonClassElement}function Xe(e,t){let a=er(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Ph(e){let t=er(e);return t==null?null:t[t.length-1]??null}function Nh(e){return e.kind===ue.CommaToken}function dv(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function mv(e){return e.kind===ue.JSDocComment}function Ih(e){if(uv(e))return{type:C.AssignmentExpression,operator:$r(e.kind)};if(pv(e))return{type:C.LogicalExpression,operator:$r(e.kind)};if(fv(e))return{type:C.BinaryExpression,operator:$r(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function Ts(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function Qr(e,t){let[a,o]=e.map(m=>Ts(m,t));return{end:o,start:a}}function Oh(e){if(e.kind===Ie.Block)switch(e.parent.kind){case Ie.Constructor:case Ie.GetAccessor:case Ie.SetAccessor:case Ie.ArrowFunction:case Ie.FunctionExpression:case Ie.FunctionDeclaration:case Ie.MethodDeclaration:return!0;default:return!1}return!0}function $a(e,t){return[e.getStart(t),e.getEnd()]}function hv(e){return e.kind>=ue.FirstToken&&e.kind<=ue.LastToken}function Mh(e){return e.kind>=ue.JsxElement&&e.kind<=ue.JsxAttribute}function Jl(e){return e.flags&on.Let?"let":(e.flags&on.AwaitUsing)===on.AwaitUsing?"await using":e.flags&on.Const?"const":e.flags&on.Using?"using":"var"}function xi(e){let t=er(e);if(t!=null)for(let a of t)switch(a.kind){case ue.PublicKeyword:return"public";case ue.ProtectedKeyword:return"protected";case ue.PrivateKeyword:return"private";default:break}}function ra(e,t,a){return o(t);function o(m){return i1(m)&&m.pos===e.end?m:xv(m.getChildren(a),v=>(v.pos<=e.pos&&v.end>e.end||v.pos===e.end)&&Tv(v,a)?o(v):void 0)}}function yv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function gv(e){return!!yv(e,Mh)}function Kf(e){return Sr(!1,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return kh[a]||t})}function ia(e){return e.kind===ue.ComputedPropertyName}function Zf(e){return!!e.questionToken}function ed(e){return e.type===C.ChainExpression}function Jh(e,t){return ed(t)&&e.expression.kind!==Ie.ParenthesizedExpression}function bv(e){let t;if(Ch&&e.kind===ue.Identifier?t=wl(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ue.NullKeyword?Rt.Null:t>=ue.FirstFutureReservedWord&&t<=ue.LastKeyword?Rt.Identifier:Rt.Keyword;if(e.kind>=ue.FirstKeyword&&e.kind<=ue.LastFutureReservedWord)return e.kind===ue.FalseKeyword||e.kind===ue.TrueKeyword?Rt.Boolean:Rt.Keyword;if(e.kind>=ue.FirstPunctuation&&e.kind<=ue.LastPunctuation)return Rt.Punctuator;if(e.kind>=ue.NoSubstitutionTemplateLiteral&&e.kind<=ue.TemplateTail)return Rt.Template;switch(e.kind){case ue.NumericLiteral:return Rt.Numeric;case ue.JsxText:return Rt.JSXText;case ue.StringLiteral:return e.parent.kind===ue.JsxAttribute||e.parent.kind===ue.JsxElement?Rt.JSXText:Rt.String;case ue.RegularExpressionLiteral:return Rt.RegularExpression;case ue.Identifier:case ue.ConstructorKeyword:case ue.GetKeyword:case ue.SetKeyword:default:}if(e.kind===ue.Identifier){if(Mh(e.parent))return Rt.JSXIdentifier;if(e.parent.kind===ue.PropertyAccessExpression&&gv(e))return Rt.JSXIdentifier}return Rt.Identifier}function vv(e,t){let a=e.kind===ue.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),m=t.text.slice(a,o),v=bv(e),A=[a,o],P=Qr(A,t);return v===Rt.RegularExpression?{type:v,loc:P,range:A,regex:{flags:m.slice(m.lastIndexOf("/")+1),pattern:m.slice(1,m.lastIndexOf("/"))},value:m}:{type:v,loc:P,range:A,value:m}}function Lh(e){let t=[];function a(o){dv(o)||mv(o)||(hv(o)&&o.kind!==ue.EndOfFileToken?t.push(vv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var Qf=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function td(e,t,a,o=a){let[m,v]=[a,o].map(A=>{let{character:P,line:l}=t.getLineAndCharacterOfPosition(A);return{column:P,line:l+1,offset:A}});return new Qf(e,t.fileName,{end:v,start:m})}function jh(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function Tv(e,t){return e.kind===ue.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function xv(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o!==void 0)return o}}function Sv(e){return(Ch?wl(e):e.originalKeywordKind)===ue.ThisKeyword}function Rh(e){return!!e&&e.kind===ue.Identifier&&Sv(e)}function Uh(e){if(!Rh(e))return!1;for(;P1(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===ue.TypeQuery}function wv(e){return e==null?!0:e.pos===e.end&&e.pos>=0&&e.kind!==ue.EndOfFileToken}function nd(e){return!wv(e)}function Bh(e){return lf(e.parent,hf)}function kv(e){return Xe(ue.AbstractKeyword,e)}function Ev(e){if(e.parameters.length&&!Nl(e)){let t=e.parameters[0];if(Av(t))return t}return null}function Av(e){return Rh(e.name)}function qh(e){switch(e.kind){case ue.ClassDeclaration:return!0;case ue.ClassExpression:return!0;case ue.PropertyDeclaration:{let{parent:t}=e;return!!(Wa(t)||vi(t)&&!kv(e))}case ue.GetAccessor:case ue.SetAccessor:case ue.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Wa(t)||vi(t))}case ue.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ue.Constructor||t.kind===ue.MethodDeclaration||t.kind===ue.SetAccessor)&&Ev(t)!==e&&!!a&&a.kind===ue.ClassDeclaration}}return!1}function Ll(e){switch(e.kind){case ue.Identifier:return!0;case ue.PropertyAccessExpression:case ue.ElementAccessExpression:return!(e.flags&on.OptionalChain);case ue.ParenthesizedExpression:case ue.TypeAssertionExpression:case ue.AsExpression:case ue.SatisfiesExpression:case ue.ExpressionWithTypeArguments:case ue.NonNullExpression:return Ll(e.expression);default:return!1}}function zh(e){let t=er(e),a=e;for(;(!t||t.length===0)&&Ti(a.parent);){let o=er(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var T=Ie;function _d(e){return td("message"in e&&e.message||e.messageText,e.file,e.start)}var me,id,Fh,Be,Vt,Qa,ad,jl=class{constructor(t,a){gp(this,me);qi(this,"allowPattern",!1);qi(this,"ast");qi(this,"esTreeNodeToTSNodeMap",new WeakMap);qi(this,"options");qi(this,"tsNodeToESTreeNodeMap",new WeakMap);this.ast=t,this.options={...a}}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&ge(this,me,Vt).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==T.StringLiteral&&ge(this,me,Vt).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,o){let m=this.convertPattern(t);return a&&(m.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(m,m.typeAnnotation.range)),m}convertBodyExpressions(t,a){let o=Oh(a);return t.map(m=>{let v=this.convertChild(m);if(o){if(v!=null&&v.expression&&Dl(m)&&Ya(m.expression)){let A=v.expression.raw;return v.directive=A.slice(1,-1),v}o=!1}return v}).filter(m=>m)}convertChainExpression(t,a){let{child:o,isOptional:m}=t.type===C.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===C.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},v=Jh(a,o);if(!v&&!m)return t;if(v&&ed(o)){let A=o.expression;t.type===C.MemberExpression?t.object=A:t.type===C.CallExpression?t.callee=A:t.expression=A}return this.createNode(a,{type:C.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===T.FunctionType||(a==null?void 0:a.kind)===T.ConstructorType?2:1,v=[t.getFullStart()-o,t.end],A=Qr(v,this.ast);return{type:C.TSTypeAnnotation,loc:A,range:v,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=ra(t,this.ast,this.ast);return this.createNode(a,{type:C.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(m=>this.convertChild(m))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=ra(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:C.TSTypeParameterDeclaration,loc:Qr(o,this.ast),range:o,params:t.map(m=>this.convertChild(m))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var m;let o=this.convertChild(a);return o.decorators=((m=na(a))==null?void 0:m.map(v=>this.convertChild(v)))??[],o}):[]}converter(t,a,o){if(!t)return null;ge(this,me,Fh).call(this,t);let m=this.allowPattern;o!=null&&(this.allowPattern=o);let v=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,v),this.allowPattern=m,v}convertImportAttributes(t){return t==null?[]:t.elements.map(a=>this.convertChild(a))}convertJSXIdentifier(t){let a=this.createNode(t,{type:C.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ie.JsxNamespacedName){let m=this.createNode(t,{type:C.JSXNamespacedName,name:this.createNode(t.name,{type:C.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:C.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,m),m}let a=t.getText(),o=a.indexOf(":");if(o>0){let m=$a(t,this.ast),v=this.createNode(t,{type:C.JSXNamespacedName,range:m,name:this.createNode(t,{type:C.JSXIdentifier,range:[m[0]+o+1,m[1]],name:a.slice(o+1)}),namespace:this.createNode(t,{type:C.JSXIdentifier,range:[m[0],m[0]+o],name:a.slice(0,o)})});return this.registerTSNodeInNodeMap(t,v),v}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case T.PropertyAccessExpression:t.name.kind===T.PrivateIdentifier&&ge(this,me,Be).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:C.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case T.ThisKeyword:case T.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:C.TSMethodSignature,accessibility:xi(t),computed:ia(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case T.GetAccessor:return"get";case T.SetAccessor:return"set";case T.MethodSignature:return"method"}})(),optional:Zf(t),params:this.convertParameters(t.parameters),readonly:Xe(T.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:Xe(T.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]<t.range[0]&&(t.range[0]=a[0],t.loc.start=Ts(t.range[0],this.ast)),a[1]>t.range[1]&&(t.range[1]=a[1],t.loc.end=Ts(t.range[1],this.ast))}convertNode(t,a){var o,m,v,A,P,l,Q,h;switch(t.kind){case T.SourceFile:return this.createNode(t,{type:C.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case T.Block:return this.createNode(t,{type:C.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case T.Identifier:return Uh(t)?this.createNode(t,{type:C.ThisExpression}):this.createNode(t,{type:C.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case T.PrivateIdentifier:return this.createNode(t,{type:C.PrivateIdentifier,name:t.text.slice(1)});case T.WithStatement:return this.createNode(t,{type:C.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case T.ReturnStatement:return this.createNode(t,{type:C.ReturnStatement,argument:this.convertChild(t.expression)});case T.LabeledStatement:return this.createNode(t,{type:C.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case T.ContinueStatement:return this.createNode(t,{type:C.ContinueStatement,label:this.convertChild(t.label)});case T.BreakStatement:return this.createNode(t,{type:C.BreakStatement,label:this.convertChild(t.label)});case T.IfStatement:return this.createNode(t,{type:C.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case T.SwitchStatement:return t.caseBlock.clauses.filter(y=>y.kind===T.DefaultClause).length>1&&ge(this,me,Be).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:C.SwitchStatement,cases:t.caseBlock.clauses.map(y=>this.convertChild(y)),discriminant:this.convertChild(t.expression)});case T.CaseClause:case T.DefaultClause:return this.createNode(t,{type:C.SwitchCase,consequent:t.statements.map(y=>this.convertChild(y)),test:t.kind===T.CaseClause?this.convertChild(t.expression):null});case T.ThrowStatement:return t.expression.end===t.expression.pos&&ge(this,me,Vt).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:C.ThrowStatement,argument:this.convertChild(t.expression)});case T.TryStatement:return this.createNode(t,{type:C.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case T.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&ge(this,me,Be).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:C.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case T.WhileStatement:return this.createNode(t,{type:C.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.DoStatement:return this.createNode(t,{type:C.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.ForStatement:return this.createNode(t,{type:C.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case T.ForInStatement:return ge(this,me,id).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.ForOfStatement:return ge(this,me,id).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===T.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.FunctionDeclaration:{let y=Xe(T.DeclareKeyword,t),g=Xe(T.AsyncKeyword,t),x=!!t.asteriskToken;y?t.body?ge(this,me,Be).call(this,t,"An implementation cannot be declared in ambient contexts."):g?ge(this,me,Be).call(this,t,"'async' modifier cannot be used in an ambient context."):x&&ge(this,me,Be).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&x&&ge(this,me,Be).call(this,t,"A function signature cannot be declared as a generator.");let I=this.createNode(t,{type:t.body?C.FunctionDeclaration:C.TSDeclareFunction,async:g,body:this.convertChild(t.body)||void 0,declare:y,expression:!1,generator:x,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,I)}case T.VariableDeclaration:{let y=!!t.exclamationToken,g=this.convertChild(t.initializer),x=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return y&&(g?ge(this,me,Be).call(this,t,"Declarations with initializers cannot also have definite assignment assertions."):(x.type!==C.Identifier||!x.typeAnnotation)&&ge(this,me,Be).call(this,t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:C.VariableDeclarator,definite:y,id:x,init:g})}case T.VariableStatement:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarationList.declarations.map(g=>this.convertChild(g)),declare:Xe(T.DeclareKeyword,t),kind:Jl(t.declarationList)});return y.declarations.length||ge(this,me,Vt).call(this,t,"A variable declaration list must have at least one variable declarator."),(y.kind==="using"||y.kind==="await using")&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init==null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations must be initialized.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),(y.declare||["await using","const","using"].includes(y.kind))&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].definite&&ge(this,me,Be).call(this,g,"A definite assignment assertion '!' is not permitted in this context.")}),y.declare&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init&&(["let","var"].includes(y.kind)||y.declarations[x].id.typeAnnotation)&&ge(this,me,Be).call(this,g,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,y)}case T.VariableDeclarationList:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),declare:!1,kind:Jl(t)});return(y.kind==="using"||y.kind==="await using")&&t.declarations.forEach((g,x)=>{y.declarations[x].init!=null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations may not be initialized in for statement.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),y}case T.ExpressionStatement:return this.createNode(t,{type:C.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case T.ThisKeyword:return this.createNode(t,{type:C.ThisExpression});case T.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:C.ArrayExpression,elements:t.elements.map(y=>this.convertChild(y))});case T.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(g=>this.convertPattern(g)),typeAnnotation:void 0});let y=[];for(let g of t.properties)(g.kind===T.GetAccessor||g.kind===T.SetAccessor||g.kind===T.MethodDeclaration)&&!g.body&&ge(this,me,Vt).call(this,g.end-1,"'{' expected."),y.push(this.convertChild(g));return this.createNode(t,{type:C.ObjectExpression,properties:y})}case T.PropertyAssignment:{let{exclamationToken:y,questionToken:g}=t;return g&&ge(this,me,Be).call(this,g,"A property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:C.Property,computed:ia(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case T.ShorthandPropertyAssignment:{let{exclamationToken:y,modifiers:g,questionToken:x}=t;return g&&ge(this,me,Be).call(this,g[0],"A shorthand property assignment cannot have modifiers."),x&&ge(this,me,Be).call(this,x,"A shorthand property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case T.ComputedPropertyName:return this.convertChild(t.expression);case T.PropertyDeclaration:{let y=Xe(T.AbstractKeyword,t);y&&t.initializer&&ge(this,me,Be).call(this,t.initializer,"Abstract property cannot have an initializer.");let g=Xe(T.AccessorKeyword,t),x=g?y?C.TSAbstractAccessorProperty:C.AccessorProperty:y?C.TSAbstractPropertyDefinition:C.PropertyDefinition,I=this.convertChild(t.name);return this.createNode(t,{type:x,accessibility:xi(t),computed:ia(t.name),declare:Xe(T.DeclareKeyword,t),decorators:((m=na(t))==null?void 0:m.map(re=>this.convertChild(re)))??[],definite:!!t.exclamationToken,key:I,optional:(I.type===C.Literal||t.name.kind===T.Identifier||t.name.kind===T.ComputedPropertyName||t.name.kind===T.PrivateIdentifier)&&!!t.questionToken,override:Xe(T.OverrideKeyword,t),readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:y?null:this.convertChild(t.initializer)})}case T.GetAccessor:case T.SetAccessor:if(t.parent.kind===T.InterfaceDeclaration||t.parent.kind===T.TypeLiteral)return this.convertMethodSignature(t);case T.MethodDeclaration:{let y=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:Xe(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let g;if(a.kind===T.ObjectLiteralExpression)y.params=t.parameters.map(x=>this.convertChild(x)),g=this.createNode(t,{type:C.Property,computed:ia(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===T.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:y});else{y.params=this.convertParameters(t.parameters);let x=Xe(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition;g=this.createNode(t,{type:x,accessibility:xi(t),computed:ia(t.name),decorators:((v=na(t))==null?void 0:v.map(I=>this.convertChild(I)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:Xe(T.OverrideKeyword,t),static:Xe(T.StaticKeyword,t),value:y})}return t.kind===T.GetAccessor?g.kind="get":t.kind===T.SetAccessor?g.kind="set":!g.static&&t.name.kind===T.StringLiteral&&t.name.text==="constructor"&&g.type!==C.Property&&(g.kind="constructor"),g}case T.Constructor:{let y=Ph(t),g=(y&&ra(y,t,this.ast))??t.getFirstToken(),x=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});x.typeParameters&&this.fixParentLocation(x,x.typeParameters.range);let I=this.createNode(t,{type:C.Identifier,range:[g.getStart(this.ast),g.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),re=Xe(T.StaticKeyword,t);return this.createNode(t,{type:Xe(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition,accessibility:xi(t),computed:!1,decorators:[],key:I,kind:re?"method":"constructor",optional:!1,override:!1,static:re,value:x})}case T.FunctionExpression:return this.createNode(t,{type:C.FunctionExpression,async:Xe(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.SuperKeyword:return this.createNode(t,{type:C.Super});case T.ArrayBindingPattern:return this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0});case T.OmittedExpression:return null;case T.ObjectBindingPattern:return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(y=>this.convertPattern(y)),typeAnnotation:void 0});case T.BindingElement:{if(a.kind===T.ArrayBindingPattern){let g=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:g,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:C.RestElement,argument:g,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):g}let y;return t.dotDotDotToken?y=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):y=this.createNode(t,{type:C.Property,computed:!!(t.propertyName&&t.propertyName.kind===T.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(y.value=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),y}case T.ArrowFunction:return this.createNode(t,{type:C.ArrowFunctionExpression,async:Xe(T.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==T.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.YieldExpression:return this.createNode(t,{type:C.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case T.AwaitExpression:return this.createNode(t,{type:C.AwaitExpression,argument:this.convertChild(t.expression)});case T.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:C.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case T.TemplateExpression:{let y=this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(g=>{y.expressions.push(this.convertChild(g.expression)),y.quasis.push(this.convertChild(g.literal))}),y}case T.TaggedTemplateExpression:return this.createNode(t,{type:C.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.TemplateHead:case T.TemplateMiddle:case T.TemplateTail:{let y=t.kind===T.TemplateTail;return this.createNode(t,{type:C.TemplateElement,tail:y,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(y?1:2))}})}case T.SpreadAssignment:case T.SpreadElement:return this.allowPattern?this.createNode(t,{type:C.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:C.SpreadElement,argument:this.convertChild(t.expression)});case T.Parameter:{let y,g;return t.dotDotDotToken?y=g=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(y=this.convertChild(t.name),g=this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:y,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),er(t)&&(g.range[0]=y.range[0],g.loc=Qr(g.range,this.ast))):y=g=this.convertChild(t.name,a),t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(y,y.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>y.range[1]&&(y.range[1]=t.questionToken.end,y.loc.end=Ts(y.range[1],this.ast)),y.optional=!0),er(t)?this.createNode(t,{type:C.TSParameterProperty,accessibility:xi(t),decorators:[],override:Xe(T.OverrideKeyword,t),parameter:g,readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t)}):g}case T.ClassDeclaration:!t.name&&(!Xe(Ie.ExportKeyword,t)||!Xe(Ie.DefaultKeyword,t))&&ge(this,me,Vt).call(this,t,"A class declaration without the 'default' modifier must have a name.");case T.ClassExpression:{let y=t.heritageClauses??[],g=t.kind===T.ClassDeclaration?C.ClassDeclaration:C.ClassExpression,x,I;for(let he of y){let{token:ye,types:de}=he;de.length===0&&ge(this,me,Vt).call(this,he,`'${it(ye)}' list cannot be empty.`),ye===T.ExtendsKeyword?(x&&ge(this,me,Vt).call(this,he,"'extends' clause already seen."),I&&ge(this,me,Vt).call(this,he,"'extends' clause must precede 'implements' clause."),de.length>1&&ge(this,me,Vt).call(this,de[1],"Classes can only extend a single class."),x??(x=he)):ye===T.ImplementsKeyword&&(I&&ge(this,me,Vt).call(this,he,"'implements' clause already seen."),I??(I=he))}let re=this.createNode(t,{type:g,abstract:Xe(T.AbstractKeyword,t),body:this.createNode(t,{type:C.ClassBody,range:[t.members.pos-1,t.end],body:t.members.filter(Dh).map(he=>this.convertChild(he))}),declare:Xe(T.DeclareKeyword,t),decorators:((A=na(t))==null?void 0:A.map(he=>this.convertChild(he)))??[],id:this.convertChild(t.name),implements:(I==null?void 0:I.types.map(he=>this.convertChild(he)))??[],superClass:x!=null&&x.types[0]?this.convertChild(x.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(P=x==null?void 0:x.types[0])!=null&&P.typeArguments&&(re.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(x.types[0].typeArguments,x.types[0])),this.fixExports(t,re)}case T.ModuleBlock:return this.createNode(t,{type:C.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case T.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let y=this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(y.importKind="type"),t.importClause.name&&y.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case T.NamespaceImport:y.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case T.NamedImports:y.specifiers.push(...t.importClause.namedBindings.elements.map(g=>this.convertChild(g)));break}return y}case T.NamespaceImport:return this.createNode(t,{type:C.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case T.ImportSpecifier:return this.createNode(t,{type:C.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case T.ImportClause:{let y=this.convertChild(t.name);return this.createNode(t,{type:C.ImportDefaultSpecifier,range:y.range,local:y})}case T.ExportDeclaration:return((l=t.exportClause)==null?void 0:l.kind)===T.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(y=>this.convertChild(y,t))},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportAllDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),exported:((Q=t.exportClause)==null?void 0:Q.kind)===T.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case T.ExportSpecifier:{let y=t.propertyName??t.name;return y.kind===T.StringLiteral&&a.kind===T.ExportDeclaration&&((h=a.moduleSpecifier)==null?void 0:h.kind)!==T.StringLiteral&&ge(this,me,Be).call(this,y,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:C.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(y)})}case T.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:C.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:C.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case T.PrefixUnaryExpression:case T.PostfixUnaryExpression:{let y=$r(t.operator);return y==="++"||y==="--"?(Ll(t.operand)||ge(this,me,Vt).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:C.UpdateExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})):this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})}case T.DeleteExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case T.VoidExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case T.TypeOfExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case T.TypeOperator:return this.createNode(t,{type:C.TSTypeOperator,operator:$r(t.operator),typeAnnotation:this.convertChild(t.type)});case T.BinaryExpression:{if(Nh(t.operatorToken)){let g=this.createNode(t,{type:C.SequenceExpression,expressions:[]}),x=this.convertChild(t.left);return x.type===C.SequenceExpression&&t.left.kind!==T.ParenthesizedExpression?g.expressions.push(...x.expressions):g.expressions.push(x),g.expressions.push(this.convertChild(t.right)),g}let y=Ih(t.operatorToken);return this.allowPattern&&y.type===C.AssignmentExpression?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...y,left:this.converter(t.left,t,y.type===C.AssignmentExpression),right:this.convertChild(t.right)})}case T.PropertyAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.name),I=this.createNode(t,{type:C.MemberExpression,computed:!1,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(I,t)}case T.ElementAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.argumentExpression),I=this.createNode(t,{type:C.MemberExpression,computed:!0,object:y,optional:t.questionDotToken!=null,property:g});return this.convertChainExpression(I,t)}case T.CallExpression:{if(t.expression.kind===T.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&ge(this,me,Vt).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let y=this.convertChild(t.expression),g=t.arguments.map(re=>this.convertChild(re)),x=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),I=this.createNode(t,{type:C.CallExpression,arguments:g,callee:y,optional:t.questionDotToken!=null,typeArguments:x});return this.convertChainExpression(I,t)}case T.NewExpression:{let y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:C.NewExpression,arguments:t.arguments?t.arguments.map(g=>this.convertChild(g)):[],callee:this.convertChild(t.expression),typeArguments:y})}case T.ConditionalExpression:return this.createNode(t,{type:C.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case T.MetaProperty:return this.createNode(t,{type:C.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:C.Identifier,decorators:[],name:$r(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case T.Decorator:return this.createNode(t,{type:C.Decorator,expression:this.convertChild(t.expression)});case T.StringLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:a.kind===T.JsxAttribute?Kf(t.text):t.text});case T.NumericLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:Number(t.text)});case T.BigIntLiteral:{let y=$a(t,this.ast),g=this.ast.text.slice(y[0],y[1]),x=Sr(!1,g.slice(0,-1),"_",""),I=typeof BigInt<"u"?BigInt(x):null;return this.createNode(t,{type:C.Literal,range:y,bigint:I==null?x:String(I),raw:g,value:I})}case T.RegularExpressionLiteral:{let y=t.text.slice(1,t.text.lastIndexOf("/")),g=t.text.slice(t.text.lastIndexOf("/")+1),x=null;try{x=new RegExp(y,g)}catch{}return this.createNode(t,{type:C.Literal,raw:t.text,regex:{flags:g,pattern:y},value:x})}case T.TrueKeyword:return this.createNode(t,{type:C.Literal,raw:"true",value:!0});case T.FalseKeyword:return this.createNode(t,{type:C.Literal,raw:"false",value:!1});case T.NullKeyword:return this.createNode(t,{type:C.Literal,raw:"null",value:null});case T.EmptyStatement:return this.createNode(t,{type:C.EmptyStatement});case T.DebuggerStatement:return this.createNode(t,{type:C.DebuggerStatement});case T.JsxElement:return this.createNode(t,{type:C.JSXElement,children:t.children.map(y=>this.convertChild(y)),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case T.JsxFragment:return this.createNode(t,{type:C.JSXFragment,children:t.children.map(y=>this.convertChild(y)),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case T.JsxSelfClosingElement:return this.createNode(t,{type:C.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:C.JSXOpeningElement,range:$a(t,this.ast),attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case T.JsxOpeningElement:return this.createNode(t,{type:C.JSXOpeningElement,attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.JsxClosingElement:return this.createNode(t,{type:C.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case T.JsxOpeningFragment:return this.createNode(t,{type:C.JSXOpeningFragment});case T.JsxClosingFragment:return this.createNode(t,{type:C.JSXClosingFragment});case T.JsxExpression:{let y=t.expression?this.convertChild(t.expression):this.createNode(t,{type:C.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:C.JSXSpreadChild,expression:y}):this.createNode(t,{type:C.JSXExpressionContainer,expression:y})}case T.JsxAttribute:return this.createNode(t,{type:C.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case T.JsxText:{let y=t.getFullStart(),g=t.getEnd(),x=this.ast.text.slice(y,g);return this.createNode(t,{type:C.JSXText,range:[y,g],raw:x,value:Kf(x)})}case T.JsxSpreadAttribute:return this.createNode(t,{type:C.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case T.QualifiedName:return this.createNode(t,{type:C.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case T.TypeReference:return this.createNode(t,{type:C.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case T.TypeParameter:return this.createNode(t,{type:C.TSTypeParameter,const:Xe(T.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:Xe(T.InKeyword,t),name:this.convertChild(t.name),out:Xe(T.OutKeyword,t)});case T.ThisType:return this.createNode(t,{type:C.TSThisType});case T.AnyKeyword:case T.BigIntKeyword:case T.BooleanKeyword:case T.NeverKeyword:case T.NumberKeyword:case T.ObjectKeyword:case T.StringKeyword:case T.SymbolKeyword:case T.UnknownKeyword:case T.VoidKeyword:case T.UndefinedKeyword:case T.IntrinsicKeyword:return this.createNode(t,{type:C[`TS${T[t.kind]}`]});case T.NonNullExpression:{let y=this.createNode(t,{type:C.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(y,t)}case T.TypeLiteral:return this.createNode(t,{type:C.TSTypeLiteral,members:t.members.map(y=>this.convertChild(y))});case T.ArrayType:return this.createNode(t,{type:C.TSArrayType,elementType:this.convertChild(t.elementType)});case T.IndexedAccessType:return this.createNode(t,{type:C.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case T.ConditionalType:return this.createNode(t,{type:C.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case T.TypeQuery:return this.createNode(t,{type:C.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.MappedType:return t.members&&t.members.length>0&&ge(this,me,Vt).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,ge(this,me,ad).call(this,{type:C.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===T.QuestionToken||$r(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===T.ReadonlyKeyword||$r(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case T.ParenthesizedExpression:return this.convertChild(t.expression,a);case T.TypeAliasDeclaration:{let y=this.createNode(t,{type:C.TSTypeAliasDeclaration,declare:Xe(T.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case T.MethodSignature:return this.convertMethodSignature(t);case T.PropertySignature:{let{initializer:y}=t;return y&&ge(this,me,Be).call(this,y,"A property signature cannot have an initializer."),this.createNode(t,{type:C.TSPropertySignature,accessibility:xi(t),computed:ia(t.name),key:this.convertChild(t.name),optional:Zf(t),readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case T.IndexSignature:return this.createNode(t,{type:C.TSIndexSignature,accessibility:xi(t),parameters:t.parameters.map(y=>this.convertChild(y)),readonly:Xe(T.ReadonlyKeyword,t),static:Xe(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case T.ConstructorType:return this.createNode(t,{type:C.TSConstructorType,abstract:Xe(T.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.FunctionType:{let{modifiers:y}=t;y&&ge(this,me,Be).call(this,y[0],"A function type cannot have modifiers.")}case T.ConstructSignature:case T.CallSignature:{let y=t.kind===T.ConstructSignature?C.TSConstructSignatureDeclaration:t.kind===T.CallSignature?C.TSCallSignatureDeclaration:C.TSFunctionType;return this.createNode(t,{type:y,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case T.ExpressionWithTypeArguments:{let y=a.kind,g=y===T.InterfaceDeclaration?C.TSInterfaceHeritage:y===T.HeritageClause?C.TSClassImplements:C.TSInstantiationExpression;return this.createNode(t,{type:g,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case T.InterfaceDeclaration:{let y=t.heritageClauses??[],g=[];for(let I of y){I.token!==T.ExtendsKeyword&&ge(this,me,Be).call(this,I,I.token===T.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let re of I.types)g.push(this.convertChild(re,t))}let x=this.createNode(t,{type:C.TSInterfaceDeclaration,body:this.createNode(t,{type:C.TSInterfaceBody,range:[t.members.pos-1,t.end],body:t.members.map(I=>this.convertChild(I))}),declare:Xe(T.DeclareKeyword,t),extends:g,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,x)}case T.TypePredicate:{let y=this.createNode(t,{type:C.TSTypePredicate,asserts:t.assertsModifier!=null,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range),y}case T.ImportType:{let y=$a(t,this.ast);if(t.isTypeOf){let x=ra(t.getFirstToken(),t,this.ast);y[0]=x.getStart(this.ast)}let g=this.createNode(t,{type:C.TSImportType,range:y,argument:this.convertChild(t.argument),attributes:this.convertImportAttributes(t.attributes),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null});return t.isTypeOf?this.createNode(t,{type:C.TSTypeQuery,exprName:g,typeArguments:void 0}):g}case T.EnumDeclaration:{let y=t.members.map(x=>this.convertChild(x)),g=this.createNode(t,ge(this,me,ad).call(this,{type:C.TSEnumDeclaration,body:this.createNode(t,{type:C.TSEnumBody,range:[t.members.pos-1,t.end],members:y}),const:Xe(T.ConstKeyword,t),declare:Xe(T.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(x=>this.convertChild(x))));return this.fixExports(t,g)}case T.EnumMember:return this.createNode(t,{type:C.TSEnumMember,computed:t.name.kind===Ie.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case T.ModuleDeclaration:{let y=Xe(T.DeclareKeyword,t),g=this.createNode(t,{type:C.TSModuleDeclaration,...(()=>{if(t.flags&on.GlobalAugmentation){let I=this.convertChild(t.name),re=this.convertChild(t.body);return(re==null||re.type===C.TSModuleDeclaration)&&ge(this,me,Vt).call(this,t.body??t,"Expected a valid module body"),I.type!==C.Identifier&&ge(this,me,Vt).call(this,t.name,"global module augmentation must have an Identifier id"),{body:re,declare:!1,global:!1,id:I,kind:"global"}}if(!(t.flags&on.Namespace)){let I=this.convertChild(t.body);return{kind:"module",...I!=null?{body:I}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&ge(this,me,Vt).call(this,t,"Expected a module body"),t.name.kind!==Ie.Identifier&&ge(this,me,Vt).call(this,t.name,"`namespace`s must have an Identifier id");let x=this.createNode(t.name,{type:C.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&Ti(t.body)&&t.body.name;){t=t.body,y||(y=Xe(T.DeclareKeyword,t));let I=t.name,re=this.createNode(I,{type:C.Identifier,range:[I.getStart(this.ast),I.getEnd()],decorators:[],name:I.text,optional:!1,typeAnnotation:void 0});x=this.createNode(I,{type:C.TSQualifiedName,range:[x.range[0],re.range[1]],left:x,right:re})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:x,kind:"namespace"}})()});return g.declare=y,t.flags&on.GlobalAugmentation&&(g.global=!0),this.fixExports(t,g)}case T.ParenthesizedType:return this.convertChild(t.type);case T.UnionType:return this.createNode(t,{type:C.TSUnionType,types:t.types.map(y=>this.convertChild(y))});case T.IntersectionType:return this.createNode(t,{type:C.TSIntersectionType,types:t.types.map(y=>this.convertChild(y))});case T.AsExpression:return this.createNode(t,{type:C.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.InferType:return this.createNode(t,{type:C.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case T.LiteralType:return t.literal.kind===T.NullKeyword?this.createNode(t.literal,{type:C.TSNullKeyword}):this.createNode(t,{type:C.TSLiteralType,literal:this.convertChild(t.literal)});case T.TypeAssertionExpression:return this.createNode(t,{type:C.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:C.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case T.ExternalModuleReference:return t.expression.kind!==T.StringLiteral&&ge(this,me,Be).call(this,t.expression,"String literal expected."),this.createNode(t,{type:C.TSExternalModuleReference,expression:this.convertChild(t.expression)});case T.NamespaceExportDeclaration:return this.createNode(t,{type:C.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case T.AbstractKeyword:return this.createNode(t,{type:C.TSAbstractKeyword});case T.TupleType:{let y=t.elements.map(g=>this.convertChild(g));return this.createNode(t,{type:C.TSTupleType,elementTypes:y})}case T.NamedTupleMember:{let y=this.createNode(t,{type:C.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(y.range[0]=y.label.range[0],y.loc.start=y.label.loc.start,this.createNode(t,{type:C.TSRestType,typeAnnotation:y})):y}case T.OptionalType:return this.createNode(t,{type:C.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case T.RestType:return this.createNode(t,{type:C.TSRestType,typeAnnotation:this.convertChild(t.type)});case T.TemplateLiteralType:{let y=this.createNode(t,{type:C.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(g=>{y.types.push(this.convertChild(g.type)),y.quasis.push(this.convertChild(g.literal))}),y}case T.ClassStaticBlockDeclaration:return this.createNode(t,{type:C.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case T.AssertEntry:case T.ImportAttribute:return this.createNode(t,{type:C.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case T.SatisfiesExpression:return this.createNode(t,{type:C.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let o=a;return o.range??(o.range=$a(t,this.ast)),o.loc??(o.loc=Qr(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ie.JSDocFunctionType&&ge(this,me,Be).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${T[t.kind]}`;if(this.options.errorOnUnknownASTType&&!C[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&s1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let m=na(t);m!=null&&m.length&&(o.decorators=m.map(A=>this.convertChild(A)));let v=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([A])=>!v.has(A)).forEach(([A,P])=>{Array.isArray(P)?o[A]=P.map(l=>this.convertChild(l)):P&&typeof P=="object"&&P.kind?o[A]=this.convertChild(P):o[A]=P}),o}fixExports(t,a){let m=Ti(t)&&!!(t.flags&on.Namespace)?zh(t):er(t);if((m==null?void 0:m[0].kind)===T.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let v=m[0],A=m[1],P=(A==null?void 0:A.kind)===T.DefaultKeyword,l=P?ra(A,this.ast,this.ast):ra(v,this.ast,this.ast);if(a.range[0]=l.getStart(this.ast),a.loc=Qr(a.range,this.ast),P)return this.createNode(t,{type:C.ExportDefaultDeclaration,range:[v.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let Q=a.type===C.TSInterfaceDeclaration||a.type===C.TSTypeAliasDeclaration,h="declare"in a&&a.declare;return this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,range:[v.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:Q||h?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};me=new WeakSet,id=function(t,a){let o=a===Ie.ForInStatement?"for...in":"for...of";if(Q1(t)){t.declarations.length!==1&&ge(this,me,Be).call(this,t,`Only a single variable declaration is allowed in a '${o}' statement.`);let m=t.declarations[0];m.initializer?ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have an initializer.`):m.type&&ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have a type annotation.`),a===Ie.ForInStatement&&t.flags&on.Using&&ge(this,me,Be).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!Ll(t)&&t.kind!==Ie.ObjectLiteralExpression&&t.kind!==Ie.ArrayLiteralExpression&&ge(this,me,Be).call(this,t,`The left-hand side of a '${o}' statement must be a variable or a property access.`)},Fh=function(t){if(!this.options.allowInvalidAST){jh(t)&&ge(this,me,Be).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of na(t,!0)??[])qh(t)||(ms(t)&&!nd(t.body)?ge(this,me,Be).call(this,a,"A decorator can only decorate a method implementation, not an overload."):ge(this,me,Be).call(this,a,"Decorators are not valid here."));for(let a of er(t,!0)??[]){if(a.kind!==T.ReadonlyKeyword&&((t.kind===T.PropertySignature||t.kind===T.MethodSignature)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type member`),t.kind===T.IndexSignature&&(a.kind!==T.StaticKeyword||!vi(t.parent))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==T.InKeyword&&a.kind!==T.OutKeyword&&a.kind!==T.ConstKeyword&&t.kind===T.TypeParameter&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===T.InKeyword||a.kind===T.OutKeyword)&&(t.kind!==T.TypeParameter||!(vs(t.parent)||vi(t.parent)||Pl(t.parent)))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===T.ReadonlyKeyword&&t.kind!==T.PropertyDeclaration&&t.kind!==T.PropertySignature&&t.kind!==T.IndexSignature&&t.kind!==T.Parameter&&ge(this,me,Be).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===T.DeclareKeyword&&vi(t.parent)&&!Va(t)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===T.DeclareKeyword&&Ha(t)){let o=Jl(t.declarationList);(o==="using"||o==="await using")&&ge(this,me,Be).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===T.AbstractKeyword&&t.kind!==T.ClassDeclaration&&t.kind!==T.ConstructorType&&t.kind!==T.MethodDeclaration&&t.kind!==T.PropertyDeclaration&&t.kind!==T.GetAccessor&&t.kind!==T.SetAccessor&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===T.StaticKeyword||a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)&&(t.parent.kind===T.ModuleBlock||t.parent.kind===T.SourceFile)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===T.AccessorKeyword&&t.kind!==T.PropertyDeclaration&&ge(this,me,Be).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===T.AsyncKeyword&&t.kind!==T.MethodDeclaration&&t.kind!==T.FunctionDeclaration&&t.kind!==T.FunctionExpression&&t.kind!==T.ArrowFunction&&ge(this,me,Be).call(this,a,"'async' modifier cannot be used here."),t.kind===T.Parameter&&(a.kind===T.StaticKeyword||a.kind===T.ExportKeyword||a.kind===T.DeclareKeyword||a.kind===T.AsyncKeyword)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a parameter.`),a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)for(let o of er(t)??[])o!==a&&(o.kind===T.PublicKeyword||o.kind===T.ProtectedKeyword||o.kind===T.PrivateKeyword)&&ge(this,me,Be).call(this,o,"Accessibility modifier already seen.");if(t.kind===T.Parameter&&(a.kind===T.PublicKeyword||a.kind===T.PrivateKeyword||a.kind===T.ProtectedKeyword||a.kind===T.ReadonlyKeyword||a.kind===T.OverrideKeyword)){let o=Bh(t);o.kind===T.Constructor&&nd(o.body)||ge(this,me,Be).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},Be=function(t,a){let o,m;throw typeof t=="number"?o=m=t:(o=t.getStart(this.ast),m=t.getEnd()),td(a,this.ast,o,m)},Vt=function(t,a){this.options.allowInvalidAST||ge(this,me,Be).call(this,t,a)},Qa=function(t,a,o,m=!1){let v=m;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),t[o]),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t},ad=function(t,a,o,m){let v=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>m:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),m),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t};function Cv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(mf(e.kind))t(e);else{let m=e.getChildren(a);if(m.length===1){e=m[0];continue}for(let v=m.length-1;v>=0;--v)o.push(m[v])}if(o.length===0)break;e=o.pop()}}function Wh(e,t,a=e.getSourceFile()){let o=a.text,m=a.languageVariant!==xl.JSX;return Cv(e,A=>{if(A.pos!==A.end&&(A.kind!==Ie.JsxText&&Xm(o,A.pos===0?(sf(o)??"").length:A.pos,v),m||Dv(A)))return Hm(o,A.end,v)},a);function v(A,P,l){t(o,{end:P,kind:l,pos:A})}}function Dv(e){switch(e.kind){case Ie.CloseBraceToken:return e.parent.kind!==Ie.JsxExpression||!sd(e.parent.parent);case Ie.GreaterThanToken:switch(e.parent.kind){case Ie.JsxClosingElement:case Ie.JsxClosingFragment:return!sd(e.parent.parent.parent);case Ie.JsxOpeningElement:return e.end!==e.parent.end;case Ie.JsxOpeningFragment:return!1;case Ie.JsxSelfClosingElement:return e.end!==e.parent.end||!sd(e.parent.parent)}}return!0}function sd(e){return e.kind===Ie.JsxElement||e.kind===Ie.JsxFragment}var[KT,ZT]=Sm.split(".").map(e=>Number.parseInt(e,10));var ex=nn.Intrinsic??nn.Any|nn.Unknown|nn.String|nn.Number|nn.BigInt|nn.Boolean|nn.BooleanLiteral|nn.ESSymbol|nn.Void|nn.Undefined|nn.Null|nn.Never|nn.NonPrimitive;function Gh(e,t){let a=[];return Wh(e,(o,m)=>{let v=m.kind===Ie.SingleLineCommentTrivia?Rt.Line:Rt.Block,A=[m.pos,m.end],P=Qr(A,e),l=A[0]+2,Q=m.kind===Ie.SingleLineCommentTrivia?A[1]-l:A[1]-l-2;a.push({type:v,loc:P,range:A,value:t.slice(l,l+Q)})},e),a}var Yh=()=>{};function Xh(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw _d(o[0]);let m=new jl(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),v=m.convertProgram();return(!t.range||!t.loc)&&Yh(v,{enter:P=>{t.range||delete P.range,t.loc||delete P.loc}}),t.tokens&&(v.tokens=Lh(e)),t.comment&&(v.comments=Gh(e,t.codeFullText)),{astMaps:m.getASTMaps(),estree:v}}function Rl(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ie.SourceFile&&typeof t.getFullText=="function"}var Lv=function(e){return e&&e.__esModule?e:{default:e}};var jv=Lv({extname:e=>"."+e.split(".").pop()});function $h(e,t){switch(jv.default.extname(e).toLowerCase()){case Nn.Cjs:case Nn.Js:case Nn.Mjs:return Dr.JS;case Nn.Cts:case Nn.Mts:case Nn.Ts:return Dr.TS;case Nn.Json:return Dr.JSON;case Nn.Jsx:return Dr.JSX;case Nn.Tsx:return Dr.TSX;default:return t?Dr.TSX:Dr.TS}}var Uv={default:Ia},Bv=(0,Uv.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function Qh(e){return Bv("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Rl(e.code)?e.code:fh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:ys.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,$h(e.filePath,e.jsx))}var Kh=()=>{};var Zh=e=>e;var e0=class{};var n0=()=>!1;var r0=()=>{};var Kv=function(e){return e&&e.__esModule?e:{default:e}};var od={default:Ia},Zv=Kv({extname:e=>"."+e.split(".").pop()}),e4=(0,od.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),t4,n4=null,i0,a0,_0,s0,xs={ParseAll:(i0=Ga)==null?void 0:i0.ParseAll,ParseForTypeErrors:(a0=Ga)==null?void 0:a0.ParseForTypeErrors,ParseForTypeInfo:(_0=Ga)==null?void 0:_0.ParseForTypeInfo,ParseNone:(s0=Ga)==null?void 0:s0.ParseNone};function o0(e,t={}){var h;let a=r4(e),o=n0(t),m=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",v=typeof t.loggerFn=="function",A=Zh(typeof t.filePath=="string"&&t.filePath!=="<input>"?t.filePath:i4(t.jsx),m),P=Zv.default.extname(A).toLowerCase(),l=(()=>{switch(t.jsDocParsingMode){case"all":return xs.ParseAll;case"none":return xs.ParseNone;case"type-info":return xs.ParseForTypeInfo;default:return xs.ParseAll}})(),Q={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:A,jsDocParsingMode:l,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?n4??(n4=Kh(t.projectService,l,m)):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&P===Nn.Mjs||t.sourceType==null&&P===Nn.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:t4??(t4=new e0(o?"Infinity":((h=t.cacheLifetime)==null?void 0:h.glob)??void 0)),tsconfigRootDir:m};if(Q.debugLevel.size>0){let y=[];Q.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(Q.debugLevel.has("eslint")||od.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),od.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");e4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!Q.programs&&!Q.projectService&&(Q.projects=new Map),t.jsDocParsingMode==null&&Q.projects.size===0&&Q.programs==null&&Q.projectService==null&&(Q.jsDocParsingMode=xs.ParseNone),r0(Q,v),Q}function r4(e){return Rl(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function i4(e){return e?"estree.tsx":"estree.ts"}var o4={default:Ia},hx=(0,o4.default)("typescript-eslint:typescript-estree:parser");function c0(e,t){let{ast:a}=c4(e,t,!1);return a}function c4(e,t,a){let o=o0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let m=Qh(o),{astMaps:v,estree:A}=Xh(m,o,a);return{ast:A,esTreeNodeToTSNodeMap:v.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:v.tsNodeToESTreeNodeMap}}function l4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var l0=l4;function u4(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var u0=u4;var p4=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},cd=p4;function f4(e){return Array.isArray(e)&&e.length>0}var p0=f4;function tr(e){var o,m,v;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(v=((m=e.declaration)==null?void 0:m.decorators)??e.decorators)==null?void 0:v[0];return a?Math.min(tr(a),t):t}function Kr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function d4(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var f0=d4;var m4=f0(["Block","CommentBlock","MultiLine"]),Ss=m4;function h4(e){let t=`*${e.value}*`.split(`
18
18
  `);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var ld=h4;function y4(e){return Ss(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var d0=y4;var ws=null;function ks(e){if(ws!==null&&typeof ws.property){let t=ws;return ws=ks.prototype=null,t}return ws=ks.prototype=e??Object.create(null),new ks}var g4=10;for(let e=0;e<=g4;e++)ks();function ud(e){return ks(e)}function b4(e,t="type"){ud(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var m0=b4;var h0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var v4=m0(h0),y0=v4;function pd(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let o=0;o<e.length;o++)e[o]=pd(e[o],t);return e}let a=y0(e);for(let o=0;o<a.length;o++)e[a[o]]=pd(e[a[o]],t);return t(e)||e}var Ul=pd;function T4(e,t){let{parser:a,text:o}=t;if(e.type==="File"&&e.program.interpreter){let{program:{interpreter:m},comments:v}=e;delete e.program.interpreter,v.unshift(m)}if(a==="babel"){let m=new Set;e=Ul(e,v=>{var A;(A=v.leadingComments)!=null&&A.some(d0)&&m.add(tr(v))}),e=Ul(e,v=>{if(v.type==="ParenthesizedExpression"){let{expression:A}=v;if(A.type==="TypeCastExpression")return A.range=[...v.range],A;let P=tr(v);if(!m.has(P))return A.extra={...A.extra,parenthesized:!0},A}})}if(e=Ul(e,m=>{switch(m.type){case"LogicalExpression":if(g0(m))return fd(m);break;case"VariableDeclaration":{let v=cd(!1,m.declarations,-1);v!=null&&v.init&&o[Kr(v)]!==";"&&(m.range=[tr(m),Kr(v)]);break}case"TSParenthesizedType":return m.typeAnnotation;case"TSTypeParameter":if(typeof m.name=="string"){let v=tr(m);m.name={type:"Identifier",name:m.name,range:[v,v+m.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(m.types.length===1)return m.types[0];break}}),p0(e.comments)){let m=cd(!1,e.comments,-1);for(let v=e.comments.length-2;v>=0;v--){let A=e.comments[v];Kr(A)===tr(m)&&Ss(A)&&Ss(m)&&ld(A)&&ld(m)&&(e.comments.splice(v+1,1),A.value+="*//*"+m.value,A.range=[tr(A),Kr(m)]),m=A}}return e.type==="Program"&&(e.range=[0,o.length]),e}function g0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function fd(e){return g0(e)?fd({type:"LogicalExpression",operator:e.operator,left:fd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[tr(e.left),Kr(e.right.left)]}),right:e.right.right,range:[tr(e),Kr(e)]}):e}var b0=T4;var x4=/\*\/$/,S4=/^\/\*\*?/,w4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,k4=/(^|\s+)\/\/([^\n\r]*)/g,v0=/^(\r?\n)+/,E4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,T0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,A4=/(\r?\n|^) *\* ?/g,C4=[];function x0(e){let t=e.match(w4);return t?t[0].trimStart():""}function S0(e){let t=`
19
19
  `;e=Sr(!1,e.replace(S4,"").replace(x4,""),A4,"$1");let a="";for(;a!==e;)a=e,e=Sr(!1,e,E4,`${t}$1 $2${t}`);e=e.replace(v0,"").trimEnd();let o=Object.create(null),m=Sr(!1,e,T0,"").replace(v0,"").trimEnd(),v;for(;v=T0.exec(e);){let A=Sr(!1,v[2],k4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let P=o[v[1]];o[v[1]]=[...C4,...Array.isArray(P)?P:[P],A]}else o[v[1]]=A}return{comments:m,pragmas:o}}function D4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
20
20
  `);return t===-1?e:e.slice(0,t)}var w0=D4;function P4(e){let t=w0(e);t&&(e=e.slice(t.length+1));let a=x0(e),{pragmas:o,comments:m}=S0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function k0(e){let{pragmas:t}=P4(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function N4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:k0,locStart:tr,locEnd:Kr,...e}}var E0=N4;function I4(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var A0=I4;function O4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var C0=O4;var M4={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function J4(e){if(!(e!=null&&e.location))return e;let{message:t,location:{start:a,end:o}}=e;return l0(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var L4=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function j4(e,t){let a=t==null?void 0:t.filepath,o=[{...M4,filePath:a}],m=A0(t);if(m?o=o.map(A=>({...A,sourceType:m})):o=["module","script"].flatMap(P=>o.map(l=>({...l,sourceType:P}))),a&&L4(a))return o;let v=U4(e);return[v,!v].flatMap(A=>o.map(P=>({...P,jsx:A})))}function R4(e,t={}){let a=C0(e),o=j4(e,t),m;try{m=u0(o.map(v=>()=>c0(a,v)))}catch({errors:[v]}){throw J4(v)}return b0(m,{text:e})}function U4(e){return new RegExp(["(?:^[^\"'`]*</)","|","(?:^[^/]{2}.*/>)"].join(""),"mu").test(e)}var B4=E0(R4);return ty(q4);});