j.cells.length)),M=Array.from({length:G}).fill(0),te=[{cells:b},...q.filter(j=>j.cells.length>0)];for(let{cells:j}of te.filter(De=>!De.hasLineBreak))for(let[De,U]of j.entries())M[De]=Math.max(M[De],a(U));return B.push(m,"`",c([r,e(r,te.map(j=>e(" | ",j.cells.map((De,U)=>j.hasLineBreak?De:De+" ".repeat(M[U]-a(De))))))]),r,"`"),B}}function J(F,i){let h=F.getValue(),E=i();return A(h)&&(E=o([c([n,E]),n])),["${",E,m,"}"]}function d(F,i){return F.map(h=>J(h,i),"expressions")}function T(F,i){return D(F,h=>typeof h=="string"?i?h.replace(/(\\*)`/g,"$1$1\\`"):f(h):h)}function f(F){return F.replace(/([\\`]|\${)/g,"\\$1")}l.exports={printTemplateLiteral:P,printTemplateExpressions:d,escapeTemplateCharacters:T,uncookTemplateElementValue:f}}}),ia=$({"src/language-js/embed/markdown.js"(u,l){ue();var{builders:{indent:t,softline:a,literalline:s,dedentToRoot:e}}=wt(),{escapeTemplateCharacters:r}=jn();function n(c,y,m){let g=c.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(w,k)=>"\\".repeat(k.length/2)+"`"),p=o(g),D=p!=="";D&&(g=g.replace(new RegExp(`^${p}`,"gm"),""));let C=r(m(g,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",D?t([a,C]):[s,e(C)],a,"`"]}function o(c){let y=c.match(/^([^\S\n]*)\S/m);return y===null?"":y[1]}l.exports=n}}),sa=$({"src/language-js/embed/css.js"(u,l){ue();var{isNonEmptyArray:t}=Gt(),{builders:{indent:a,hardline:s,softline:e},utils:{mapDoc:r,replaceEndOfLine:n,cleanDoc:o}}=wt(),{printTemplateExpressions:c}=jn();function y(p,D,C){let w=p.getValue(),k=w.quasis.map(_=>_.value.raw),A=0,N=k.reduce((_,J,d)=>d===0?J:_+"@prettier-placeholder-"+A+++"-id"+J,""),x=C(N,{parser:"scss"},{stripTrailingHardline:!0}),P=c(p,D);return m(x,w,P)}function m(p,D,C){if(D.quasis.length===1&&!D.quasis[0].value.raw.trim())return"``";let w=g(p,C);if(!w)throw new Error("Couldn't insert all the expressions");return["`",a([s,w]),e,"`"]}function g(p,D){if(!t(D))return p;let C=0,w=r(o(p),k=>typeof k!="string"||!k.includes("@prettier-placeholder")?k:k.split(/@prettier-placeholder-(\d+)-id/).map((A,N)=>N%2===0?n(A):(C++,D[A])));return D.length===C?w:null}l.exports=y}}),aa=$({"src/language-js/embed/graphql.js"(u,l){ue();var{builders:{indent:t,join:a,hardline:s}}=wt(),{escapeTemplateCharacters:e,printTemplateExpressions:r}=jn();function n(c,y,m){let g=c.getValue(),p=g.quasis.length;if(p===1&&g.quasis[0].value.raw.trim()==="")return"``";let D=r(c,y),C=[];for(let w=0;w2&&P[0].trim()===""&&P[1].trim()==="",T=_>2&&P[_-1].trim()===""&&P[_-2].trim()==="",f=P.every(i=>/^\s*(?:#[^\n\r]*)?$/.test(i));if(!N&&/#[^\n\r]*$/.test(P[_-1]))return null;let F=null;f?F=o(P):F=m(x,{parser:"graphql"},{stripTrailingHardline:!0}),F?(F=e(F,!1),!A&&d&&C.push(""),C.push(F),!N&&T&&C.push("")):!A&&!N&&d&&C.push(""),J&&C.push(J)}return["`",t([s,a(s,C)]),s,"`"]}function o(c){let y=[],m=!1,g=c.map(p=>p.trim());for(let[p,D]of g.entries())D!==""&&(g[p-1]===""&&m?y.push([s,D]):y.push(D),m=!0);return y.length===0?null:a(s,y)}l.exports=n}}),oa=$({"src/language-js/embed/html.js"(u,l){ue();var{builders:{indent:t,line:a,hardline:s,group:e},utils:{mapDoc:r}}=wt(),{printTemplateExpressions:n,uncookTemplateElementValue:o}=jn(),c=0;function y(m,g,p,D,C){let{parser:w}=C,k=m.getValue(),A=c;c=c+1>>>0;let N=h=>`PRETTIER_HTML_PLACEHOLDER_${h}_${A}_IN_JS`,x=k.quasis.map((h,E,b)=>E===b.length-1?h.value.cooked:h.value.cooked+N(E)).join(""),P=n(m,g);if(P.length===0&&x.trim().length===0)return"``";let _=new RegExp(N("(\\d+)"),"g"),J=0,d=p(x,{parser:w,__onHtmlRoot(h){J=h.children.length}},{stripTrailingHardline:!0}),T=r(d,h=>{if(typeof h!="string")return h;let E=[],b=h.split(_);for(let S=0;S1?t(e(T)):e(T),F,"`"])}l.exports=y}}),la=$({"src/language-js/embed.js"(u,l){ue();var{hasComment:t,CommentCheckFlags:a,isObjectProperty:s}=ur(),e=ia(),r=sa(),n=aa(),o=oa();function c(d){if(g(d)||w(d)||k(d)||p(d))return"css";if(x(d))return"graphql";if(_(d))return"html";if(D(d))return"angular";if(m(d))return"markdown"}function y(d,T,f,F){let i=d.getValue();if(i.type!=="TemplateLiteral"||J(i))return;let h=c(d);if(h){if(h==="markdown")return e(d,T,f);if(h==="css")return r(d,T,f);if(h==="graphql")return n(d,T,f);if(h==="html"||h==="angular")return o(d,T,f,F,{parser:h})}}function m(d){let T=d.getValue(),f=d.getParentNode();return f&&f.type==="TaggedTemplateExpression"&&T.quasis.length===1&&f.tag.type==="Identifier"&&(f.tag.name==="md"||f.tag.name==="markdown")}function g(d){let T=d.getValue(),f=d.getParentNode(),F=d.getParentNode(1);return F&&T.quasis&&f.type==="JSXExpressionContainer"&&F.type==="JSXElement"&&F.openingElement.name.name==="style"&&F.openingElement.attributes.some(i=>i.name.name==="jsx")||f&&f.type==="TaggedTemplateExpression"&&f.tag.type==="Identifier"&&f.tag.name==="css"||f&&f.type==="TaggedTemplateExpression"&&f.tag.type==="MemberExpression"&&f.tag.object.name==="css"&&(f.tag.property.name==="global"||f.tag.property.name==="resolve")}function p(d){return d.match(T=>T.type==="TemplateLiteral",(T,f)=>T.type==="ArrayExpression"&&f==="elements",(T,f)=>s(T)&&T.key.type==="Identifier"&&T.key.name==="styles"&&f==="value",...C)}function D(d){return d.match(T=>T.type==="TemplateLiteral",(T,f)=>s(T)&&T.key.type==="Identifier"&&T.key.name==="template"&&f==="value",...C)}var C=[(d,T)=>d.type==="ObjectExpression"&&T==="properties",(d,T)=>d.type==="CallExpression"&&d.callee.type==="Identifier"&&d.callee.name==="Component"&&T==="arguments",(d,T)=>d.type==="Decorator"&&T==="expression"];function w(d){let T=d.getParentNode();if(!T||T.type!=="TaggedTemplateExpression")return!1;let f=T.tag.type==="ParenthesizedExpression"?T.tag.expression:T.tag;switch(f.type){case"MemberExpression":return A(f.object)||N(f);case"CallExpression":return A(f.callee)||f.callee.type==="MemberExpression"&&(f.callee.object.type==="MemberExpression"&&(A(f.callee.object.object)||N(f.callee.object))||f.callee.object.type==="CallExpression"&&A(f.callee.object.callee));case"Identifier":return f.name==="css";default:return!1}}function k(d){let T=d.getParentNode(),f=d.getParentNode(1);return f&&T.type==="JSXExpressionContainer"&&f.type==="JSXAttribute"&&f.name.type==="JSXIdentifier"&&f.name.name==="css"}function A(d){return d.type==="Identifier"&&d.name==="styled"}function N(d){return/^[A-Z]/.test(d.object.name)&&d.property.name==="extend"}function x(d){let T=d.getValue(),f=d.getParentNode();return P(T,"GraphQL")||f&&(f.type==="TaggedTemplateExpression"&&(f.tag.type==="MemberExpression"&&f.tag.object.name==="graphql"&&f.tag.property.name==="experimental"||f.tag.type==="Identifier"&&(f.tag.name==="gql"||f.tag.name==="graphql"))||f.type==="CallExpression"&&f.callee.type==="Identifier"&&f.callee.name==="graphql")}function P(d,T){return t(d,a.Block|a.Leading,f=>{let{value:F}=f;return F===` ${T} `})}function _(d){return P(d.getValue(),"HTML")||d.match(T=>T.type==="TemplateLiteral",(T,f)=>T.type==="TaggedTemplateExpression"&&T.tag.type==="Identifier"&&T.tag.name==="html"&&f==="quasi")}function J(d){let{quasis:T}=d;return T.some(f=>{let{value:{cooked:F}}=f;return F===null})}l.exports=y}}),pa=$({"src/language-js/clean.js"(u,l){ue();var t=vn(),a=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),s=r=>{for(let n of r.quasis)delete n.value};function e(r,n,o){if(r.type==="Program"&&delete n.sourceType,(r.type==="BigIntLiteral"||r.type==="BigIntLiteralTypeAnnotation")&&n.value&&(n.value=n.value.toLowerCase()),(r.type==="BigIntLiteral"||r.type==="Literal")&&n.bigint&&(n.bigint=n.bigint.toLowerCase()),r.type==="DecimalLiteral"&&(n.value=Number(n.value)),r.type==="Literal"&&n.decimal&&(n.decimal=Number(n.decimal)),r.type==="EmptyStatement"||r.type==="JSXText"||r.type==="JSXExpressionContainer"&&(r.expression.type==="Literal"||r.expression.type==="StringLiteral")&&r.expression.value===" ")return null;if((r.type==="Property"||r.type==="ObjectProperty"||r.type==="MethodDefinition"||r.type==="ClassProperty"||r.type==="ClassMethod"||r.type==="PropertyDefinition"||r.type==="TSDeclareMethod"||r.type==="TSPropertySignature"||r.type==="ObjectTypeProperty")&&typeof r.key=="object"&&r.key&&(r.key.type==="Literal"||r.key.type==="NumericLiteral"||r.key.type==="StringLiteral"||r.key.type==="Identifier")&&delete n.key,r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(m=>m.name.name==="jsx"))for(let{type:m,expression:g}of n.children)m==="JSXExpressionContainer"&&g.type==="TemplateLiteral"&&s(g);r.type==="JSXAttribute"&&r.name.name==="css"&&r.value.type==="JSXExpressionContainer"&&r.value.expression.type==="TemplateLiteral"&&s(n.value.expression),r.type==="JSXAttribute"&&r.value&&r.value.type==="Literal"&&/["']|"|'/.test(r.value.value)&&(n.value.value=n.value.value.replace(/["']|"|'/g,'"'));let c=r.expression||r.callee;if(r.type==="Decorator"&&c.type==="CallExpression"&&c.callee.name==="Component"&&c.arguments.length===1){let m=r.expression.arguments[0].properties;for(let[g,p]of n.expression.arguments[0].properties.entries())switch(m[g].key.name){case"styles":p.value.type==="ArrayExpression"&&s(p.value.elements[0]);break;case"template":p.value.type==="TemplateLiteral"&&s(p.value);break}}if(r.type==="TaggedTemplateExpression"&&(r.tag.type==="MemberExpression"||r.tag.type==="Identifier"&&(r.tag.name==="gql"||r.tag.name==="graphql"||r.tag.name==="css"||r.tag.name==="md"||r.tag.name==="markdown"||r.tag.name==="html")||r.tag.type==="CallExpression")&&s(n.quasi),r.type==="TemplateLiteral"){var y;(!((y=r.leadingComments)===null||y===void 0)&&y.some(m=>t(m)&&["GraphQL","HTML"].some(g=>m.value===` ${g} `))||o.type==="CallExpression"&&o.callee.name==="graphql"||!r.leadingComments)&&s(n)}if(r.type==="InterpreterDirective"&&(n.value=n.value.trimEnd()),(r.type==="TSIntersectionType"||r.type==="TSUnionType")&&r.types.length===1)return n.types[0]}e.ignoredProperties=a,l.exports=e}}),Es={};Ft(Es,{EOL:()=>ss,arch:()=>ca,cpus:()=>xs,default:()=>_s,endianness:()=>Cs,freemem:()=>bs,getNetworkInterfaces:()=>Ns,hostname:()=>Fs,loadavg:()=>As,networkInterfaces:()=>ws,platform:()=>Da,release:()=>Bs,tmpDir:()=>us,tmpdir:()=>is,totalmem:()=>Ss,type:()=>Ts,uptime:()=>vs});function Cs(){if(typeof Qu>"u"){var u=new ArrayBuffer(2),l=new Uint8Array(u),t=new Uint16Array(u);if(l[0]=1,l[1]=2,t[0]===258)Qu="BE";else if(t[0]===513)Qu="LE";else throw new Error("unable to figure out endianess")}return Qu}function Fs(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function As(){return[]}function vs(){return 0}function bs(){return Number.MAX_VALUE}function Ss(){return Number.MAX_VALUE}function xs(){return[]}function Ts(){return"Browser"}function Bs(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function ws(){}function Ns(){}function ca(){return"javascript"}function Da(){return"browser"}function us(){return"/tmp"}var Qu,is,ss,_s,da=rt({"node-modules-polyfills:os"(){ue(),is=us,ss=`
+`,_s={EOL:ss,tmpdir:is,tmpDir:us,networkInterfaces:ws,getNetworkInterfaces:Ns,release:Bs,type:Ts,cpus:xs,totalmem:Ss,freemem:bs,uptime:vs,loadavg:As,hostname:Fs,endianness:Cs}}}),fa=$({"node-modules-polyfills-commonjs:os"(u,l){ue();var t=(da(),qt(Es));if(t&&t.default){l.exports=t.default;for(let a in t)l.exports[a]=t[a]}else t&&(l.exports=t)}}),ma=$({"node_modules/detect-newline/index.js"(u,l){ue();var t=a=>{if(typeof a!="string")throw new TypeError("Expected a string");let s=a.match(/(?:\r?\n)/g)||[];if(s.length===0)return;let e=s.filter(n=>n===`\r
+`).length,r=s.length-e;return e>r?`\r
+`:`
+`};l.exports=t,l.exports.graceful=a=>typeof a=="string"&&t(a)||`
+`}}),ha=$({"node_modules/jest-docblock/build/index.js"(u){ue(),Object.defineProperty(u,"__esModule",{value:!0}),u.extract=p,u.parse=C,u.parseWithComments=w,u.print=k,u.strip=D;function l(){let N=fa();return l=function(){return N},N}function t(){let N=a(ma());return t=function(){return N},N}function a(N){return N&&N.__esModule?N:{default:N}}var s=/\*\/$/,e=/^\/\*\*?/,r=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,n=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,y=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g,g=[];function p(N){let x=N.match(r);return x?x[0].trimLeft():""}function D(N){let x=N.match(r);return x&&x[0]?N.substring(x[0].length):N}function C(N){return w(N).pragmas}function w(N){let x=(0,t().default)(N)||l().EOL;N=N.replace(e,"").replace(s,"").replace(m,"$1");let P="";for(;P!==N;)P=N,N=N.replace(c,`${x}$1 $2${x}`);N=N.replace(o,"").trimRight();let _=Object.create(null),J=N.replace(y,"").replace(o,"").trimRight(),d;for(;d=y.exec(N);){let T=d[2].replace(n,"");typeof _[d[1]]=="string"||Array.isArray(_[d[1]])?_[d[1]]=g.concat(_[d[1]],T):_[d[1]]=T}return{comments:J,pragmas:_}}function k(N){let{comments:x="",pragmas:P={}}=N,_=(0,t().default)(x)||l().EOL,J="/**",d=" *",T=" */",f=Object.keys(P),F=f.map(h=>A(h,P[h])).reduce((h,E)=>h.concat(E),[]).map(h=>`${d} ${h}${_}`).join("");if(!x){if(f.length===0)return"";if(f.length===1&&!Array.isArray(P[f[0]])){let h=P[f[0]];return`${J} ${A(f[0],h)[0]}${T}`}}let i=x.split(_).map(h=>`${d} ${h}`).join(_)+_;return J+_+(x?i:"")+(x&&f.length?d+_:"")+F+T}function A(N,x){return g.concat(x).map(P=>`@${N} ${P}`.trim())}}}),ga=$({"src/language-js/utils/get-shebang.js"(u,l){ue();function t(a){if(!a.startsWith("#!"))return"";let s=a.indexOf(`
+`);return s===-1?a:a.slice(0,s)}l.exports=t}}),ks=$({"src/language-js/pragma.js"(u,l){ue();var{parseWithComments:t,strip:a,extract:s,print:e}=ha(),{normalizeEndOfLine:r}=Rr(),n=ga();function o(m){let g=n(m);g&&(m=m.slice(g.length+1));let p=s(m),{pragmas:D,comments:C}=t(p);return{shebang:g,text:m,pragmas:D,comments:C}}function c(m){let g=Object.keys(o(m).pragmas);return g.includes("prettier")||g.includes("format")}function y(m){let{shebang:g,text:p,pragmas:D,comments:C}=o(m),w=a(p),k=e({pragmas:Object.assign({format:""},D),comments:C.trimStart()});return(g?`${g}
+`:"")+r(k)+(w.startsWith(`
+`)?`
+`:`
+
+`)+w}l.exports={hasPragma:c,insertPragma:y}}}),ya=$({"src/language-js/utils/is-type-cast-comment.js"(u,l){ue();var t=vn();function a(s){return t(s)&&s.value[0]==="*"&&/@(?:type|satisfies)\b/.test(s.value)}l.exports=a}}),Ps=$({"src/language-js/comments.js"(u,l){ue();var{getLast:t,hasNewline:a,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:s,getNextNonSpaceNonCommentCharacter:e,hasNewlineInRange:r,addLeadingComment:n,addTrailingComment:o,addDanglingComment:c,getNextNonSpaceNonCommentCharacterIndex:y,isNonEmptyArray:m}=Gt(),{getFunctionParameters:g,isPrettierIgnoreComment:p,isJsxNode:D,hasFlowShorthandAnnotationComment:C,hasFlowAnnotationComment:w,hasIgnoreComment:k,isCallLikeExpression:A,getCallArguments:N,isCallExpression:x,isMemberExpression:P,isObjectProperty:_,isLineComment:J,getComments:d,CommentCheckFlags:T,markerForIfWithoutBlockAndSameLineComment:f}=ur(),{locStart:F,locEnd:i}=or(),h=vn(),E=ya();function b(Le){return[H,it,De,M,te,j,be,Ye,Ce,Xe,Ct,Rt,Ie,ae,Q].some(v=>v(Le))}function S(Le){return[G,it,U,Ct,M,te,j,be,ae,me,Re,Xe,bt,Q,oe].some(v=>v(Le))}function B(Le){return[H,M,te,R,_e,Ie,Xe,we,se,ke,Q,xe].some(v=>v(Le))}function I(Le,v){let K=(Le.body||Le.properties).find(ye=>{let{type:ze}=ye;return ze!=="EmptyStatement"});K?n(K,v):c(Le,v)}function q(Le,v){Le.type==="BlockStatement"?I(Le,v):n(Le,v)}function G(Le){let{comment:v,followingNode:K}=Le;return K&&E(v)?(n(K,v),!0):!1}function M(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze,text:tt}=Le;if((ye==null?void 0:ye.type)!=="IfStatement"||!ze)return!1;if(e(tt,v,i)===")")return o(K,v),!0;if(K===ye.consequent&&ze===ye.alternate){if(K.type==="BlockStatement")o(K,v);else{let ht=v.type==="SingleLine"||v.loc.start.line===v.loc.end.line,Ke=v.loc.start.line===K.loc.start.line;ht&&Ke?c(K,v,f):c(ye,v)}return!0}return ze.type==="BlockStatement"?(I(ze,v),!0):ze.type==="IfStatement"?(q(ze.consequent,v),!0):ye.consequent===ze?(n(ze,v),!0):!1}function te(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze,text:tt}=Le;return(ye==null?void 0:ye.type)!=="WhileStatement"||!ze?!1:e(tt,v,i)===")"?(o(K,v),!0):ze.type==="BlockStatement"?(I(ze,v),!0):ye.body===ze?(n(ze,v),!0):!1}function j(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze}=Le;return(ye==null?void 0:ye.type)!=="TryStatement"&&(ye==null?void 0:ye.type)!=="CatchClause"||!ze?!1:ye.type==="CatchClause"&&K?(o(K,v),!0):ze.type==="BlockStatement"?(I(ze,v),!0):ze.type==="TryStatement"?(q(ze.finalizer,v),!0):ze.type==="CatchClause"?(q(ze.body,v),!0):!1}function De(Le){let{comment:v,enclosingNode:K,followingNode:ye}=Le;return P(K)&&(ye==null?void 0:ye.type)==="Identifier"?(n(K,v),!0):!1}function U(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze,text:tt}=Le,ht=K&&!r(tt,i(K),F(v));return(!K||!ht)&&((ye==null?void 0:ye.type)==="ConditionalExpression"||(ye==null?void 0:ye.type)==="TSConditionalType")&&ze?(n(ze,v),!0):!1}function R(Le){let{comment:v,precedingNode:K,enclosingNode:ye}=Le;return _(ye)&&ye.shorthand&&ye.key===K&&ye.value.type==="AssignmentPattern"?(o(ye.value.left,v),!0):!1}var pe=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function be(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze}=Le;if(pe.has(ye==null?void 0:ye.type)){if(m(ye.decorators)&&!(ze&&ze.type==="Decorator"))return o(t(ye.decorators),v),!0;if(ye.body&&ze===ye.body)return I(ye.body,v),!0;if(ze){if(ye.superClass&&ze===ye.superClass&&K&&(K===ye.id||K===ye.typeParameters))return o(K,v),!0;for(let tt of["implements","extends","mixins"])if(ye[tt]&&ze===ye[tt][0])return K&&(K===ye.id||K===ye.typeParameters||K===ye.superClass)?o(K,v):c(ye,v,tt),!0}}return!1}var fe=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Ie(Le){let{comment:v,precedingNode:K,enclosingNode:ye,text:ze}=Le;return ye&&K&&e(ze,v,i)==="("&&(ye.type==="Property"||ye.type==="TSDeclareMethod"||ye.type==="TSAbstractMethodDefinition")&&K.type==="Identifier"&&ye.key===K&&e(ze,K,i)!==":"||(K==null?void 0:K.type)==="Decorator"&&fe.has(ye==null?void 0:ye.type)?(o(K,v),!0):!1}var X=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function se(Le){let{comment:v,precedingNode:K,enclosingNode:ye,text:ze}=Le;return e(ze,v,i)!=="("?!1:K&&X.has(ye==null?void 0:ye.type)?(o(K,v),!0):!1}function we(Le){let{comment:v,enclosingNode:K,text:ye}=Le;if((K==null?void 0:K.type)!=="ArrowFunctionExpression")return!1;let ze=y(ye,v,i);return ze!==!1&&ye.slice(ze,ze+2)==="=>"?(c(K,v),!0):!1}function _e(Le){let{comment:v,enclosingNode:K,text:ye}=Le;return e(ye,v,i)!==")"?!1:K&&(Be(K)&&g(K).length===0||A(K)&&N(K).length===0)?(c(K,v),!0):((K==null?void 0:K.type)==="MethodDefinition"||(K==null?void 0:K.type)==="TSAbstractMethodDefinition")&&g(K.value).length===0?(c(K.value,v),!0):!1}function it(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze,text:tt}=Le;if((K==null?void 0:K.type)==="FunctionTypeParam"&&(ye==null?void 0:ye.type)==="FunctionTypeAnnotation"&&(ze==null?void 0:ze.type)!=="FunctionTypeParam"||((K==null?void 0:K.type)==="Identifier"||(K==null?void 0:K.type)==="AssignmentPattern")&&ye&&Be(ye)&&e(tt,v,i)===")")return o(K,v),!0;if((ye==null?void 0:ye.type)==="FunctionDeclaration"&&(ze==null?void 0:ze.type)==="BlockStatement"){let ht=(()=>{let Ke=g(ye);if(Ke.length>0)return s(tt,i(t(Ke)));let pr=s(tt,i(ye.id));return pr!==!1&&s(tt,pr+1)})();if(F(v)>ht)return I(ze,v),!0}return!1}function ae(Le){let{comment:v,enclosingNode:K}=Le;return(K==null?void 0:K.type)==="LabeledStatement"?(n(K,v),!0):!1}function Q(Le){let{comment:v,enclosingNode:K}=Le;return((K==null?void 0:K.type)==="ContinueStatement"||(K==null?void 0:K.type)==="BreakStatement")&&!K.label?(o(K,v),!0):!1}function me(Le){let{comment:v,precedingNode:K,enclosingNode:ye}=Le;return x(ye)&&K&&ye.callee===K&&ye.arguments.length>0?(n(ye.arguments[0],v),!0):!1}function Ce(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze}=Le;return(ye==null?void 0:ye.type)==="UnionTypeAnnotation"||(ye==null?void 0:ye.type)==="TSUnionType"?(p(v)&&(ze.prettierIgnore=!0,v.unignore=!0),K?(o(K,v),!0):!1):(((ze==null?void 0:ze.type)==="UnionTypeAnnotation"||(ze==null?void 0:ze.type)==="TSUnionType")&&p(v)&&(ze.types[0].prettierIgnore=!0,v.unignore=!0),!1)}function Re(Le){let{comment:v,enclosingNode:K}=Le;return _(K)?(n(K,v),!0):!1}function Xe(Le){let{comment:v,enclosingNode:K,followingNode:ye,ast:ze,isLastComment:tt}=Le;return ze&&ze.body&&ze.body.length===0?(tt?c(ze,v):n(ze,v),!0):(K==null?void 0:K.type)==="Program"&&(K==null?void 0:K.body.length)===0&&!m(K.directives)?(tt?c(K,v):n(K,v),!0):(ye==null?void 0:ye.type)==="Program"&&(ye==null?void 0:ye.body.length)===0&&(K==null?void 0:K.type)==="ModuleExpression"?(c(ye,v),!0):!1}function Ye(Le){let{comment:v,enclosingNode:K}=Le;return(K==null?void 0:K.type)==="ForInStatement"||(K==null?void 0:K.type)==="ForOfStatement"?(n(K,v),!0):!1}function Ct(Le){let{comment:v,precedingNode:K,enclosingNode:ye,text:ze}=Le;if((ye==null?void 0:ye.type)==="ImportSpecifier"||(ye==null?void 0:ye.type)==="ExportSpecifier")return n(ye,v),!0;let tt=(K==null?void 0:K.type)==="ImportSpecifier"&&(ye==null?void 0:ye.type)==="ImportDeclaration",ht=(K==null?void 0:K.type)==="ExportSpecifier"&&(ye==null?void 0:ye.type)==="ExportNamedDeclaration";return(tt||ht)&&a(ze,i(v))?(o(K,v),!0):!1}function Rt(Le){let{comment:v,enclosingNode:K}=Le;return(K==null?void 0:K.type)==="AssignmentPattern"?(n(K,v),!0):!1}var It=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),Et=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function bt(Le){let{comment:v,enclosingNode:K,followingNode:ye}=Le;return It.has(K==null?void 0:K.type)&&ye&&(Et.has(ye.type)||h(v))?(n(ye,v),!0):!1}function xe(Le){let{comment:v,enclosingNode:K,followingNode:ye,text:ze}=Le;return!ye&&((K==null?void 0:K.type)==="TSMethodSignature"||(K==null?void 0:K.type)==="TSDeclareFunction"||(K==null?void 0:K.type)==="TSAbstractMethodDefinition")&&e(ze,v,i)===";"?(o(K,v),!0):!1}function H(Le){let{comment:v,enclosingNode:K,followingNode:ye}=Le;if(p(v)&&(K==null?void 0:K.type)==="TSMappedType"&&(ye==null?void 0:ye.type)==="TSTypeParameter"&&ye.constraint)return K.prettierIgnore=!0,v.unignore=!0,!0}function ke(Le){let{comment:v,precedingNode:K,enclosingNode:ye,followingNode:ze}=Le;return(ye==null?void 0:ye.type)!=="TSMappedType"?!1:(ze==null?void 0:ze.type)==="TSTypeParameter"&&ze.name?(n(ze.name,v),!0):(K==null?void 0:K.type)==="TSTypeParameter"&&K.constraint?(o(K.constraint,v),!0):!1}function oe(Le){let{comment:v,enclosingNode:K,followingNode:ye}=Le;return!K||K.type!=="SwitchCase"||K.test||!ye||ye!==K.consequent[0]?!1:(ye.type==="BlockStatement"&&J(v)?I(ye,v):c(K,v),!0)}function Be(Le){return Le.type==="ArrowFunctionExpression"||Le.type==="FunctionExpression"||Le.type==="FunctionDeclaration"||Le.type==="ObjectMethod"||Le.type==="ClassMethod"||Le.type==="TSDeclareFunction"||Le.type==="TSCallSignatureDeclaration"||Le.type==="TSConstructSignatureDeclaration"||Le.type==="TSMethodSignature"||Le.type==="TSConstructorType"||Le.type==="TSFunctionType"||Le.type==="TSDeclareMethod"}function pt(Le,v){if((v.parser==="typescript"||v.parser==="flow"||v.parser==="acorn"||v.parser==="espree"||v.parser==="meriyah"||v.parser==="__babel_estree")&&Le.type==="MethodDefinition"&&Le.value&&Le.value.type==="FunctionExpression"&&g(Le.value).length===0&&!Le.value.returnType&&!m(Le.value.typeParameters)&&Le.value.body)return[...Le.decorators||[],Le.key,Le.value.body]}function ut(Le){let v=Le.getValue(),K=Le.getParentNode(),ye=ze=>w(d(ze,T.Leading))||w(d(ze,T.Trailing));return(v&&(D(v)||C(v)||x(K)&&ye(v))||K&&(K.type==="JSXSpreadAttribute"||K.type==="JSXSpreadChild"||K.type==="UnionTypeAnnotation"||K.type==="TSUnionType"||(K.type==="ClassDeclaration"||K.type==="ClassExpression")&&K.superClass===v))&&(!k(Le)||K.type==="UnionTypeAnnotation"||K.type==="TSUnionType")}l.exports={handleOwnLineComment:b,handleEndOfLineComment:S,handleRemainingComment:B,getCommentChildNodes:pt,willPrintOwnComments:ut}}}),Ln=$({"src/language-js/needs-parens.js"(u,l){ue();var t=mr(),a=uu(),{getFunctionParameters:s,getLeftSidePathName:e,hasFlowShorthandAnnotationComment:r,hasNakedLeftSide:n,hasNode:o,isBitwiseOperator:c,startsWithNoLookaheadToken:y,shouldFlatten:m,getPrecedence:g,isCallExpression:p,isMemberExpression:D,isObjectProperty:C,isTSTypeExpression:w}=ur();function k(d,T){let f=d.getParentNode();if(!f)return!1;let F=d.getName(),i=d.getNode();if(T.__isInHtmlInterpolation&&!T.bracketSpacing&&P(i)&&_(d))return!0;if(A(i))return!1;if(T.parser!=="flow"&&r(d.getValue()))return!0;if(i.type==="Identifier"){if(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name)||F==="left"&&(i.name==="async"&&!f.await||i.name==="let")&&f.type==="ForOfStatement")return!0;if(i.name==="let"){var h;let b=(h=d.findAncestor(S=>S.type==="ForOfStatement"))===null||h===void 0?void 0:h.left;if(b&&y(b,S=>S===i))return!0}if(F==="object"&&i.name==="let"&&f.type==="MemberExpression"&&f.computed&&!f.optional){let b=d.findAncestor(B=>B.type==="ExpressionStatement"||B.type==="ForStatement"||B.type==="ForInStatement"),S=b?b.type==="ExpressionStatement"?b.expression:b.type==="ForStatement"?b.init:b.left:void 0;if(S&&y(S,B=>B===i))return!0}return!1}if(i.type==="ObjectExpression"||i.type==="FunctionExpression"||i.type==="ClassExpression"||i.type==="DoExpression"){var E;let b=(E=d.findAncestor(S=>S.type==="ExpressionStatement"))===null||E===void 0?void 0:E.expression;if(b&&y(b,S=>S===i))return!0}switch(f.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":{if(F==="superClass"&&(i.type==="ArrowFunctionExpression"||i.type==="AssignmentExpression"||i.type==="AwaitExpression"||i.type==="BinaryExpression"||i.type==="ConditionalExpression"||i.type==="LogicalExpression"||i.type==="NewExpression"||i.type==="ObjectExpression"||i.type==="SequenceExpression"||i.type==="TaggedTemplateExpression"||i.type==="UnaryExpression"||i.type==="UpdateExpression"||i.type==="YieldExpression"||i.type==="TSNonNullExpression"))return!0;break}case"ExportDefaultDeclaration":return J(d,T)||i.type==="SequenceExpression";case"Decorator":{if(F==="expression"){if(D(i)&&i.computed)return!0;let b=!1,S=!1,B=i;for(;B;)switch(B.type){case"MemberExpression":S=!0,B=B.object;break;case"CallExpression":if(S||b)return T.parser!=="typescript";b=!0,B=B.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return T.parser!=="typescript";default:return!0}return!0}break}case"ArrowFunctionExpression":{if(F==="body"&&i.type!=="SequenceExpression"&&y(i,b=>b.type==="ObjectExpression"))return!0;break}}switch(i.type){case"UpdateExpression":if(f.type==="UnaryExpression")return i.prefix&&(i.operator==="++"&&f.operator==="+"||i.operator==="--"&&f.operator==="-");case"UnaryExpression":switch(f.type){case"UnaryExpression":return i.operator===f.operator&&(i.operator==="+"||i.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return F==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return F==="callee";case"BinaryExpression":return F==="left"&&f.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if(f.type==="UpdateExpression"||i.operator==="in"&&N(d))return!0;if(i.operator==="|>"&&i.extra&&i.extra.parenthesized){let b=d.getParentNode(1);if(b.type==="BinaryExpression"&&b.operator==="|>")return!0}}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(f.type){case"TSSatisfiesExpression":case"TSAsExpression":return!w(i);case"ConditionalExpression":return w(i);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return F==="callee";case"ClassExpression":case"ClassDeclaration":return F==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return F==="object";case"AssignmentExpression":case"AssignmentPattern":return F==="left"&&(i.type==="TSTypeAssertion"||w(i));case"LogicalExpression":if(i.type==="LogicalExpression")return f.operator!==i.operator;case"BinaryExpression":{let{operator:b,type:S}=i;if(!b&&S!=="TSTypeAssertion")return!0;let B=g(b),I=f.operator,q=g(I);return q>B||F==="right"&&q===B||q===B&&!m(I,b)?!0:q");default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if(F==="extendsType"&&f.type==="TSConditionalType"){if(i.type==="TSConditionalType")return!0;let{typeAnnotation:b}=i.returnType||i.typeAnnotation;if(b.type==="TSTypePredicate"&&b.typeAnnotation&&(b=b.typeAnnotation.typeAnnotation),b.type==="TSInferType"&&b.typeParameter.constraint)return!0}if(F==="checkType"&&f.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((f.type==="TSUnionType"||f.type==="TSIntersectionType")&&f.types.length>1&&(!i.types||i.types.length>1))return!0;case"TSInferType":if(i.type==="TSInferType"&&f.type==="TSRestType")return!1;case"TSTypeOperator":return f.type==="TSArrayType"||f.type==="TSOptionalType"||f.type==="TSRestType"||F==="objectType"&&f.type==="TSIndexedAccessType"||f.type==="TSTypeOperator"||f.type==="TSTypeAnnotation"&&d.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return F==="objectType"&&f.type==="TSIndexedAccessType"||F==="elementType"&&f.type==="TSArrayType";case"TypeofTypeAnnotation":return F==="objectType"&&(f.type==="IndexedAccessType"||f.type==="OptionalIndexedAccessType")||F==="elementType"&&f.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return f.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return f.type==="ArrayTypeAnnotation"||f.type==="NullableTypeAnnotation"||f.type==="IntersectionTypeAnnotation"||f.type==="UnionTypeAnnotation"||F==="objectType"&&(f.type==="IndexedAccessType"||f.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return f.type==="ArrayTypeAnnotation"||F==="objectType"&&(f.type==="IndexedAccessType"||f.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let b=f.type==="NullableTypeAnnotation"?d.getParentNode(1):f;return b.type==="UnionTypeAnnotation"||b.type==="IntersectionTypeAnnotation"||b.type==="ArrayTypeAnnotation"||F==="objectType"&&(b.type==="IndexedAccessType"||b.type==="OptionalIndexedAccessType")||b.type==="NullableTypeAnnotation"||f.type==="FunctionTypeParam"&&f.name===null&&s(i).some(S=>S.typeAnnotation&&S.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return F==="objectType"&&f.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof i.value=="string"&&f.type==="ExpressionStatement"&&!f.directive){let b=d.getParentNode(1);return b.type==="Program"||b.type==="BlockStatement"}return F==="object"&&f.type==="MemberExpression"&&typeof i.value=="number";case"AssignmentExpression":{let b=d.getParentNode(1);return F==="body"&&f.type==="ArrowFunctionExpression"?!0:F==="key"&&(f.type==="ClassProperty"||f.type==="PropertyDefinition")&&f.computed||(F==="init"||F==="update")&&f.type==="ForStatement"?!1:f.type==="ExpressionStatement"?i.left.type==="ObjectPattern":!(F==="key"&&f.type==="TSPropertySignature"||f.type==="AssignmentExpression"||f.type==="SequenceExpression"&&b&&b.type==="ForStatement"&&(b.init===f||b.update===f)||F==="value"&&f.type==="Property"&&b&&b.type==="ObjectPattern"&&b.properties.includes(f)||f.type==="NGChainedExpression")}case"ConditionalExpression":switch(f.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return F==="callee";case"ConditionalExpression":return F==="test";case"MemberExpression":case"OptionalMemberExpression":return F==="object";default:return!1}case"FunctionExpression":switch(f.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return F==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(f.type){case"BinaryExpression":return f.operator!=="|>"||i.extra&&i.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return F==="callee";case"MemberExpression":case"OptionalMemberExpression":return F==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return F==="test";default:return!1}case"ClassExpression":if(a(i.decorators))return!0;switch(f.type){case"NewExpression":return F==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let b=d.getParentNode(1);if(F==="object"&&f.type==="MemberExpression"||F==="callee"&&(f.type==="CallExpression"||f.type==="NewExpression")||f.type==="TSNonNullExpression"&&b.type==="MemberExpression"&&b.object===f)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(F==="callee"&&(f.type==="BindExpression"||f.type==="NewExpression")){let b=i;for(;b;)switch(b.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":b=b.object;break;case"TaggedTemplateExpression":b=b.tag;break;case"TSNonNullExpression":b=b.expression;break;default:return!1}}return!1;case"BindExpression":return F==="callee"&&(f.type==="BindExpression"||f.type==="NewExpression")||F==="object"&&D(f);case"NGPipeExpression":return!(f.type==="NGRoot"||f.type==="NGMicrosyntaxExpression"||f.type==="ObjectProperty"&&!(i.extra&&i.extra.parenthesized)||f.type==="ArrayExpression"||p(f)&&f.arguments[F]===i||F==="right"&&f.type==="NGPipeExpression"||F==="property"&&f.type==="MemberExpression"||f.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return F==="callee"||F==="left"&&f.type==="BinaryExpression"&&f.operator==="<"||f.type!=="ArrayExpression"&&f.type!=="ArrowFunctionExpression"&&f.type!=="AssignmentExpression"&&f.type!=="AssignmentPattern"&&f.type!=="BinaryExpression"&&f.type!=="NewExpression"&&f.type!=="ConditionalExpression"&&f.type!=="ExpressionStatement"&&f.type!=="JsExpressionRoot"&&f.type!=="JSXAttribute"&&f.type!=="JSXElement"&&f.type!=="JSXExpressionContainer"&&f.type!=="JSXFragment"&&f.type!=="LogicalExpression"&&!p(f)&&!C(f)&&f.type!=="ReturnStatement"&&f.type!=="ThrowStatement"&&f.type!=="TypeCastExpression"&&f.type!=="VariableDeclarator"&&f.type!=="YieldExpression";case"TypeAnnotation":return F==="returnType"&&f.type==="ArrowFunctionExpression"&&x(i)}return!1}function A(d){return d.type==="BlockStatement"||d.type==="BreakStatement"||d.type==="ClassBody"||d.type==="ClassDeclaration"||d.type==="ClassMethod"||d.type==="ClassProperty"||d.type==="PropertyDefinition"||d.type==="ClassPrivateProperty"||d.type==="ContinueStatement"||d.type==="DebuggerStatement"||d.type==="DeclareClass"||d.type==="DeclareExportAllDeclaration"||d.type==="DeclareExportDeclaration"||d.type==="DeclareFunction"||d.type==="DeclareInterface"||d.type==="DeclareModule"||d.type==="DeclareModuleExports"||d.type==="DeclareVariable"||d.type==="DoWhileStatement"||d.type==="EnumDeclaration"||d.type==="ExportAllDeclaration"||d.type==="ExportDefaultDeclaration"||d.type==="ExportNamedDeclaration"||d.type==="ExpressionStatement"||d.type==="ForInStatement"||d.type==="ForOfStatement"||d.type==="ForStatement"||d.type==="FunctionDeclaration"||d.type==="IfStatement"||d.type==="ImportDeclaration"||d.type==="InterfaceDeclaration"||d.type==="LabeledStatement"||d.type==="MethodDefinition"||d.type==="ReturnStatement"||d.type==="SwitchStatement"||d.type==="ThrowStatement"||d.type==="TryStatement"||d.type==="TSDeclareFunction"||d.type==="TSEnumDeclaration"||d.type==="TSImportEqualsDeclaration"||d.type==="TSInterfaceDeclaration"||d.type==="TSModuleDeclaration"||d.type==="TSNamespaceExportDeclaration"||d.type==="TypeAlias"||d.type==="VariableDeclaration"||d.type==="WhileStatement"||d.type==="WithStatement"}function N(d){let T=0,f=d.getValue();for(;f;){let F=d.getParentNode(T++);if(F&&F.type==="ForStatement"&&F.init===f)return!0;f=F}return!1}function x(d){return o(d,T=>T.type==="ObjectTypeAnnotation"&&o(T,f=>f.type==="FunctionTypeAnnotation"||void 0)||void 0)}function P(d){switch(d.type){case"ObjectExpression":return!0;default:return!1}}function _(d){let T=d.getValue(),f=d.getParentNode(),F=d.getName();switch(f.type){case"NGPipeExpression":if(typeof F=="number"&&f.arguments[F]===T&&f.arguments.length-1===F)return d.callParent(_);break;case"ObjectProperty":if(F==="value"){let i=d.getParentNode(1);return t(i.properties)===f}break;case"BinaryExpression":case"LogicalExpression":if(F==="right")return d.callParent(_);break;case"ConditionalExpression":if(F==="alternate")return d.callParent(_);break;case"UnaryExpression":if(f.prefix)return d.callParent(_);break}return!1}function J(d,T){let f=d.getValue(),F=d.getParentNode();return f.type==="FunctionExpression"||f.type==="ClassExpression"?F.type==="ExportDefaultDeclaration"||!k(d,T):!n(f)||F.type!=="ExportDefaultDeclaration"&&k(d,T)?!1:d.call(i=>J(i,T),...e(d,f))}l.exports=k}}),Is=$({"src/language-js/print-preprocess.js"(u,l){ue();function t(a,s){switch(s.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},a),{},{type:s.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:a,comments:[],rootMarker:s.rootMarker});default:return a}}l.exports=t}}),Ea=$({"src/language-js/print/html-binding.js"(u,l){ue();var{builders:{join:t,line:a,group:s,softline:e,indent:r}}=wt();function n(c,y,m){let g=c.getValue();if(y.__onHtmlBindingRoot&&c.getName()===null&&y.__onHtmlBindingRoot(g,y),g.type==="File"){if(y.__isVueForBindingLeft)return c.call(p=>{let D=t([",",a],p.map(m,"params")),{params:C}=p.getValue();return C.length===1?D:["(",r([e,s(D)]),e,")"]},"program","body",0);if(y.__isVueBindings)return c.call(p=>t([",",a],p.map(m,"params")),"program","body",0)}}function o(c){switch(c.type){case"MemberExpression":switch(c.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return o(c.object)}return!1;case"Identifier":return!0;default:return!1}}l.exports={isVueEventBindingExpression:o,printHtmlBinding:n}}}),as=$({"src/language-js/print/binaryish.js"(u,l){ue();var{printComments:t}=Qt(),{getLast:a}=Gt(),{builders:{join:s,line:e,softline:r,group:n,indent:o,align:c,indentIfBreak:y},utils:{cleanDoc:m,getDocParts:g,isConcat:p}}=wt(),{hasLeadingOwnLineComment:D,isBinaryish:C,isJsxNode:w,shouldFlatten:k,hasComment:A,CommentCheckFlags:N,isCallExpression:x,isMemberExpression:P,isObjectProperty:_,isEnabledHackPipeline:J}=ur(),d=0;function T(i,h,E){let b=i.getValue(),S=i.getParentNode(),B=i.getParentNode(1),I=b!==S.body&&(S.type==="IfStatement"||S.type==="WhileStatement"||S.type==="SwitchStatement"||S.type==="DoWhileStatement"),q=J(h)&&b.operator==="|>",G=f(i,E,h,!1,I);if(I)return G;if(q)return n(G);if(x(S)&&S.callee===b||S.type==="UnaryExpression"||P(S)&&!S.computed)return n([o([r,...G]),r]);let M=S.type==="ReturnStatement"||S.type==="ThrowStatement"||S.type==="JSXExpressionContainer"&&B.type==="JSXAttribute"||b.operator!=="|"&&S.type==="JsExpressionRoot"||b.type!=="NGPipeExpression"&&(S.type==="NGRoot"&&h.parser==="__ng_binding"||S.type==="NGMicrosyntaxExpression"&&B.type==="NGMicrosyntax"&&B.body.length===1)||b===S.body&&S.type==="ArrowFunctionExpression"||b!==S.body&&S.type==="ForStatement"||S.type==="ConditionalExpression"&&B.type!=="ReturnStatement"&&B.type!=="ThrowStatement"&&!x(B)||S.type==="TemplateLiteral",te=S.type==="AssignmentExpression"||S.type==="VariableDeclarator"||S.type==="ClassProperty"||S.type==="PropertyDefinition"||S.type==="TSAbstractPropertyDefinition"||S.type==="ClassPrivateProperty"||_(S),j=C(b.left)&&k(b.operator,b.left.operator);if(M||F(b)&&!j||!F(b)&&te)return n(G);if(G.length===0)return"";let De=w(b.right),U=G.findIndex(X=>typeof X!="string"&&!Array.isArray(X)&&X.type==="group"),R=G.slice(0,U===-1?1:U+1),pe=G.slice(R.length,De?-1:void 0),be=Symbol("logicalChain-"+ ++d),fe=n([...R,o(pe)],{id:be});if(!De)return fe;let Ie=a(G);return n([fe,y(Ie,{groupId:be})])}function f(i,h,E,b,S){let B=i.getValue();if(!C(B))return[n(h())];let I=[];k(B.operator,B.left.operator)?I=i.call(pe=>f(pe,h,E,!0,S),"left"):I.push(n(h("left")));let q=F(B),G=(B.operator==="|>"||B.type==="NGPipeExpression"||B.operator==="|"&&E.parser==="__vue_expression")&&!D(E.originalText,B.right),M=B.type==="NGPipeExpression"?"|":B.operator,te=B.type==="NGPipeExpression"&&B.arguments.length>0?n(o([e,": ",s([e,": "],i.map(h,"arguments").map(pe=>c(2,n(pe))))])):"",j;if(q)j=[M," ",h("right"),te];else{let pe=J(E)&&M==="|>"?i.call(be=>f(be,h,E,!0,S),"right"):h("right");j=[G?e:"",M,G?" ":e,pe,te]}let De=i.getParentNode(),U=A(B.left,N.Trailing|N.Line),R=U||!(S&&B.type==="LogicalExpression")&&De.type!==B.type&&B.left.type!==B.type&&B.right.type!==B.type;if(I.push(G?"":" ",R?n(j,{shouldBreak:U}):j),b&&A(B)){let pe=m(t(i,I,E));return p(pe)||pe.type==="fill"?g(pe):[pe]}return I}function F(i){return i.type!=="LogicalExpression"?!1:!!(i.right.type==="ObjectExpression"&&i.right.properties.length>0||i.right.type==="ArrayExpression"&&i.right.elements.length>0||w(i.right))}l.exports={printBinaryishExpression:T,shouldInlineLogicalExpression:F}}}),Ca=$({"src/language-js/print/angular.js"(u,l){ue();var{builders:{join:t,line:a,group:s}}=wt(),{hasNode:e,hasComment:r,getComments:n}=ur(),{printBinaryishExpression:o}=as();function c(g,p,D){let C=g.getValue();if(C.type.startsWith("NG"))switch(C.type){case"NGRoot":return[D("node"),r(C.node)?" //"+n(C.node)[0].value.trimEnd():""];case"NGPipeExpression":return o(g,p,D);case"NGChainedExpression":return s(t([";",a],g.map(w=>m(w)?D():["(",D(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[C.prefix,": ",C.value.trim()];case"NGMicrosyntax":return g.map((w,k)=>[k===0?"":y(w.getValue(),k,C)?" ":[";",a],D()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(C.name)?C.name:JSON.stringify(C.name);case"NGMicrosyntaxExpression":return[D("expression"),C.alias===null?"":[" as ",D("alias")]];case"NGMicrosyntaxKeyedExpression":{let w=g.getName(),k=g.getParentNode(),A=y(C,w,k)||(w===1&&(C.key.name==="then"||C.key.name==="else")||w===2&&C.key.name==="else"&&k.body[w-1].type==="NGMicrosyntaxKeyedExpression"&&k.body[w-1].key.name==="then")&&k.body[0].type==="NGMicrosyntaxExpression";return[D("key"),A?" ":": ",D("expression")]}case"NGMicrosyntaxLet":return["let ",D("key"),C.value===null?"":[" = ",D("value")]];case"NGMicrosyntaxAs":return[D("key")," as ",D("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(C.type)}.`)}}function y(g,p,D){return g.type==="NGMicrosyntaxKeyedExpression"&&g.key.name==="of"&&p===1&&D.body[0].type==="NGMicrosyntaxLet"&&D.body[0].value===null}function m(g){return e(g.getValue(),p=>{switch(p.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}l.exports={printAngular:c}}}),Fa=$({"src/language-js/print/jsx.js"(u,l){ue();var{printComments:t,printDanglingComments:a,printCommentsSeparately:s}=Qt(),{builders:{line:e,hardline:r,softline:n,group:o,indent:c,conditionalGroup:y,fill:m,ifBreak:g,lineSuffixBoundary:p,join:D},utils:{willBreak:C}}=wt(),{getLast:w,getPreferredQuote:k}=Gt(),{isJsxNode:A,rawText:N,isCallExpression:x,isStringLiteral:P,isBinaryish:_,hasComment:J,CommentCheckFlags:d,hasNodeIgnoreComment:T}=ur(),f=Ln(),{willPrintOwnComments:F}=Ps(),i=Q=>Q===""||Q===e||Q===r||Q===n;function h(Q,me,Ce){let Re=Q.getValue();if(Re.type==="JSXElement"&&we(Re))return[Ce("openingElement"),Ce("closingElement")];let Xe=Re.type==="JSXElement"?Ce("openingElement"):Ce("openingFragment"),Ye=Re.type==="JSXElement"?Ce("closingElement"):Ce("closingFragment");if(Re.children.length===1&&Re.children[0].type==="JSXExpressionContainer"&&(Re.children[0].expression.type==="TemplateLiteral"||Re.children[0].expression.type==="TaggedTemplateExpression"))return[Xe,...Q.map(Ce,"children"),Ye];Re.children=Re.children.map(v=>it(v)?{type:"JSXText",value:" ",raw:" "}:v);let Ct=Re.children.some(A),Rt=Re.children.filter(v=>v.type==="JSXExpressionContainer").length>1,It=Re.type==="JSXElement"&&Re.openingElement.attributes.length>1,Et=C(Xe)||Ct||It||Rt,bt=Q.getParentNode().rootMarker==="mdx",xe=me.singleQuote?"{' '}":'{" "}',H=bt?" ":g([xe,n]," "),ke=Re.openingElement&&Re.openingElement.name&&Re.openingElement.name.name==="fbt",oe=E(Q,me,Ce,H,ke),Be=Re.children.some(v=>_e(v));for(let v=oe.length-2;v>=0;v--){let K=oe[v]===""&&oe[v+1]==="",ye=oe[v]===r&&oe[v+1]===""&&oe[v+2]===r,ze=(oe[v]===n||oe[v]===r)&&oe[v+1]===""&&oe[v+2]===H,tt=oe[v]===H&&oe[v+1]===""&&(oe[v+2]===n||oe[v+2]===r),ht=oe[v]===H&&oe[v+1]===""&&oe[v+2]===H,Ke=oe[v]===n&&oe[v+1]===""&&oe[v+2]===r||oe[v]===r&&oe[v+1]===""&&oe[v+2]===n;ye&&Be||K||ze||ht||Ke?oe.splice(v,2):tt&&oe.splice(v+1,2)}for(;oe.length>0&&i(w(oe));)oe.pop();for(;oe.length>1&&i(oe[0])&&i(oe[1]);)oe.shift(),oe.shift();let pt=[];for(let[v,K]of oe.entries()){if(K===H){if(v===1&&oe[v-1]===""){if(oe.length===2){pt.push(xe);continue}pt.push([xe,r]);continue}else if(v===oe.length-1){pt.push(xe);continue}else if(oe[v-1]===""&&oe[v-2]===r){pt.push(xe);continue}}pt.push(K),C(K)&&(Et=!0)}let ut=Be?m(pt):o(pt,{shouldBreak:!0});if(bt)return ut;let Le=o([Xe,c([r,ut]),r,Ye]);return Et?Le:y([o([Xe,...oe,Ye]),Le])}function E(Q,me,Ce,Re,Xe){let Ye=[];return Q.each((Ct,Rt,It)=>{let Et=Ct.getValue();if(Et.type==="JSXText"){let bt=N(Et);if(_e(Et)){let xe=bt.split(Ie);if(xe[0]===""){if(Ye.push(""),xe.shift(),/\n/.test(xe[0])){let ke=It[Rt+1];Ye.push(S(Xe,xe[1],Et,ke))}else Ye.push(Re);xe.shift()}let H;if(w(xe)===""&&(xe.pop(),H=xe.pop()),xe.length===0)return;for(let[ke,oe]of xe.entries())ke%2===1?Ye.push(e):Ye.push(oe);if(H!==void 0)if(/\n/.test(H)){let ke=It[Rt+1];Ye.push(S(Xe,w(Ye),Et,ke))}else Ye.push(Re);else{let ke=It[Rt+1];Ye.push(b(Xe,w(Ye),Et,ke))}}else/\n/.test(bt)?bt.match(/\n/g).length>1&&Ye.push("",r):Ye.push("",Re)}else{let bt=Ce();Ye.push(bt);let xe=It[Rt+1];if(xe&&_e(xe)){let H=se(N(xe)).split(Ie)[0];Ye.push(b(Xe,H,Et,xe))}else Ye.push(r)}},"children"),Ye}function b(Q,me,Ce,Re){return Q?"":Ce.type==="JSXElement"&&!Ce.closingElement||Re&&Re.type==="JSXElement"&&!Re.closingElement?me.length===1?n:r:n}function S(Q,me,Ce,Re){return Q?r:me.length===1?Ce.type==="JSXElement"&&!Ce.closingElement||Re&&Re.type==="JSXElement"&&!Re.closingElement?r:n:r}function B(Q,me,Ce){let Re=Q.getParentNode();if(!Re||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[Re.type])return me;let Xe=Q.match(void 0,Ct=>Ct.type==="ArrowFunctionExpression",x,Ct=>Ct.type==="JSXExpressionContainer"),Ye=f(Q,Ce);return o([Ye?"":g("("),c([n,me]),n,Ye?"":g(")")],{shouldBreak:Xe})}function I(Q,me,Ce){let Re=Q.getValue(),Xe=[];if(Xe.push(Ce("name")),Re.value){let Ye;if(P(Re.value)){let Ct=N(Re.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:Rt,quote:It,regex:Et}=k(Ct,me.jsxSingleQuote?"'":'"');Ct=Ct.replace(Et,Rt);let{leading:bt,trailing:xe}=Q.call(()=>s(Q,me),"value");Ye=[bt,It,Ct,It,xe]}else Ye=Ce("value");Xe.push("=",Ye)}return Xe}function q(Q,me,Ce){let Re=Q.getValue(),Xe=(Ye,Ct)=>Ye.type==="JSXEmptyExpression"||!J(Ye)&&(Ye.type==="ArrayExpression"||Ye.type==="ObjectExpression"||Ye.type==="ArrowFunctionExpression"||Ye.type==="AwaitExpression"&&(Xe(Ye.argument,Ye)||Ye.argument.type==="JSXElement")||x(Ye)||Ye.type==="FunctionExpression"||Ye.type==="TemplateLiteral"||Ye.type==="TaggedTemplateExpression"||Ye.type==="DoExpression"||A(Ct)&&(Ye.type==="ConditionalExpression"||_(Ye)));return Xe(Re.expression,Q.getParentNode(0))?o(["{",Ce("expression"),p,"}"]):o(["{",c([n,Ce("expression")]),n,p,"}"])}function G(Q,me,Ce){let Re=Q.getValue(),Xe=Re.name&&J(Re.name)||Re.typeParameters&&J(Re.typeParameters);if(Re.selfClosing&&Re.attributes.length===0&&!Xe)return["<",Ce("name"),Ce("typeParameters")," />"];if(Re.attributes&&Re.attributes.length===1&&Re.attributes[0].value&&P(Re.attributes[0].value)&&!Re.attributes[0].value.value.includes(`
+`)&&!Xe&&!J(Re.attributes[0]))return o(["<",Ce("name"),Ce("typeParameters")," ",...Q.map(Ce,"attributes"),Re.selfClosing?" />":">"]);let Ye=Re.attributes&&Re.attributes.some(Rt=>Rt.value&&P(Rt.value)&&Rt.value.value.includes(`
+`)),Ct=me.singleAttributePerLine&&Re.attributes.length>1?r:e;return o(["<",Ce("name"),Ce("typeParameters"),c(Q.map(()=>[Ct,Ce()],"attributes")),...M(Re,me,Xe)],{shouldBreak:Ye})}function M(Q,me,Ce){return Q.selfClosing?[e,"/>"]:te(Q,me,Ce)?[">"]:[n,">"]}function te(Q,me,Ce){let Re=Q.attributes.length>0&&J(w(Q.attributes),d.Trailing);return Q.attributes.length===0&&!Ce||(me.bracketSameLine||me.jsxBracketSameLine)&&(!Ce||Q.attributes.length>0)&&!Re}function j(Q,me,Ce){let Re=Q.getValue(),Xe=[];Xe.push("");let Ye=Ce("name");return J(Re.name,d.Leading|d.Line)?Xe.push(c([r,Ye]),r):J(Re.name,d.Leading|d.Block)?Xe.push(" ",Ye):Xe.push(Ye),Xe.push(">"),Xe}function De(Q,me){let Ce=Q.getValue(),Re=J(Ce),Xe=J(Ce,d.Line),Ye=Ce.type==="JSXOpeningFragment";return[Ye?"<":"",c([Xe?r:Re&&!Ye?" ":"",a(Q,me,!0)]),Xe?r:"",">"]}function U(Q,me,Ce){let Re=t(Q,h(Q,me,Ce),me);return B(Q,Re,me)}function R(Q,me){let Ce=Q.getValue(),Re=J(Ce,d.Line);return[a(Q,me,!Re),Re?r:""]}function pe(Q,me,Ce){let Re=Q.getValue();return["{",Q.call(Xe=>{let Ye=["...",Ce()],Ct=Xe.getValue();return!J(Ct)||!F(Xe)?Ye:[c([n,t(Xe,Ye,me)]),n]},Re.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function be(Q,me,Ce){let Re=Q.getValue();if(Re.type.startsWith("JSX"))switch(Re.type){case"JSXAttribute":return I(Q,me,Ce);case"JSXIdentifier":return String(Re.name);case"JSXNamespacedName":return D(":",[Ce("namespace"),Ce("name")]);case"JSXMemberExpression":return D(".",[Ce("object"),Ce("property")]);case"JSXSpreadAttribute":return pe(Q,me,Ce);case"JSXSpreadChild":return pe(Q,me,Ce);case"JSXExpressionContainer":return q(Q,me,Ce);case"JSXFragment":case"JSXElement":return U(Q,me,Ce);case"JSXOpeningElement":return G(Q,me,Ce);case"JSXClosingElement":return j(Q,me,Ce);case"JSXOpeningFragment":case"JSXClosingFragment":return De(Q,me);case"JSXEmptyExpression":return R(Q,me);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(Re.type)}.`)}}var fe=`
+\r `,Ie=new RegExp("(["+fe+"]+)"),X=new RegExp("[^"+fe+"]"),se=Q=>Q.replace(new RegExp("(?:^"+Ie.source+"|"+Ie.source+"$)"),"");function we(Q){if(Q.children.length===0)return!0;if(Q.children.length>1)return!1;let me=Q.children[0];return me.type==="JSXText"&&!_e(me)}function _e(Q){return Q.type==="JSXText"&&(X.test(N(Q))||!/\n/.test(N(Q)))}function it(Q){return Q.type==="JSXExpressionContainer"&&P(Q.expression)&&Q.expression.value===" "&&!J(Q.expression)}function ae(Q){let me=Q.getValue(),Ce=Q.getParentNode();if(!Ce||!me||!A(me)||!A(Ce))return!1;let Re=Ce.children.indexOf(me),Xe=null;for(let Ye=Re;Ye>0;Ye--){let Ct=Ce.children[Ye-1];if(!(Ct.type==="JSXText"&&!_e(Ct))){Xe=Ct;break}}return Xe&&Xe.type==="JSXExpressionContainer"&&Xe.expression.type==="JSXEmptyExpression"&&T(Xe.expression)}l.exports={hasJsxIgnoreComment:ae,printJsx:be}}}),qr=$({"src/language-js/print/misc.js"(u,l){ue();var{isNonEmptyArray:t}=Gt(),{builders:{indent:a,join:s,line:e}}=wt(),{isFlowAnnotationComment:r}=ur();function n(w){let k=w.getValue();return!k.optional||k.type==="Identifier"&&k===w.getParentNode().key?"":k.type==="OptionalCallExpression"||k.type==="OptionalMemberExpression"&&k.computed?"?.":"?"}function o(w){return w.getValue().definite||w.match(void 0,(k,A)=>A==="id"&&k.type==="VariableDeclarator"&&k.definite)?"!":""}function c(w,k,A){let N=w.getValue();return N.typeArguments?A("typeArguments"):N.typeParameters?A("typeParameters"):""}function y(w,k,A){let N=w.getValue();if(!N.typeAnnotation)return"";let x=w.getParentNode(),P=x.type==="DeclareFunction"&&x.id===N;return r(k.originalText,N.typeAnnotation)?[" /*: ",A("typeAnnotation")," */"]:[P?"":": ",A("typeAnnotation")]}function m(w,k,A){return["::",A("callee")]}function g(w,k,A){let N=w.getValue();return t(N.modifiers)?[s(" ",w.map(A,"modifiers"))," "]:""}function p(w,k,A){return w.type==="EmptyStatement"?";":w.type==="BlockStatement"||A?[" ",k]:a([e,k])}function D(w,k,A){return["...",A("argument"),y(w,k,A)]}function C(w,k){let A=w.slice(1,-1);if(A.includes('"')||A.includes("'"))return w;let N=k.singleQuote?"'":'"';return N+A+N}l.exports={printOptionalToken:n,printDefiniteToken:o,printFunctionTypeParameters:c,printBindExpressionCallee:m,printTypeScriptModifiers:g,printTypeAnnotation:y,printRestSpread:D,adjustClause:p,printDirective:C}}}),Du=$({"src/language-js/print/array.js"(u,l){ue();var{printDanglingComments:t}=Qt(),{builders:{line:a,softline:s,hardline:e,group:r,indent:n,ifBreak:o,fill:c}}=wt(),{getLast:y,hasNewline:m}=Gt(),{shouldPrintComma:g,hasComment:p,CommentCheckFlags:D,isNextLineEmpty:C,isNumericLiteral:w,isSignedNumericLiteral:k}=ur(),{locStart:A}=or(),{printOptionalToken:N,printTypeAnnotation:x}=qr();function P(T,f,F){let i=T.getValue(),h=[],E=i.type==="TupleExpression"?"#[":"[",b="]";if(i.elements.length===0)p(i,D.Dangling)?h.push(r([E,t(T,f),s,b])):h.push(E,b);else{let S=y(i.elements),B=!(S&&S.type==="RestElement"),I=S===null,q=Symbol("array"),G=!f.__inJestEach&&i.elements.length>1&&i.elements.every((j,De,U)=>{let R=j&&j.type;if(R!=="ArrayExpression"&&R!=="ObjectExpression")return!1;let pe=U[De+1];if(pe&&R!==pe.type)return!1;let be=R==="ArrayExpression"?"elements":"properties";return j[be]&&j[be].length>1}),M=_(i,f),te=B?I?",":g(f)?M?o(",","",{groupId:q}):o(","):"":"";h.push(r([E,n([s,M?d(T,f,F,te):[J(T,f,"elements",F),te],t(T,f,!0)]),s,b],{shouldBreak:G,id:q}))}return h.push(N(T),x(T,f,F)),h}function _(T,f){return T.elements.length>1&&T.elements.every(F=>F&&(w(F)||k(F)&&!p(F.argument))&&!p(F,D.Trailing|D.Line,i=>!m(f.originalText,A(i),{backwards:!0})))}function J(T,f,F,i){let h=[],E=[];return T.each(b=>{h.push(E,r(i())),E=[",",a],b.getValue()&&C(b.getValue(),f)&&E.push(s)},F),h}function d(T,f,F,i){let h=[];return T.each((E,b,S)=>{let B=b===S.length-1;h.push([F(),B?i:","]),B||h.push(C(E.getValue(),f)?[e,e]:p(S[b+1],D.Leading|D.Line)?e:a)},"elements"),c(h)}l.exports={printArray:P,printArrayItems:J,isConciselyPrintedArray:_}}}),js=$({"src/language-js/print/call-arguments.js"(u,l){ue();var{printDanglingComments:t}=Qt(),{getLast:a,getPenultimate:s}=Gt(),{getFunctionParameters:e,hasComment:r,CommentCheckFlags:n,isFunctionCompositionArgs:o,isJsxNode:c,isLongCurriedCallExpression:y,shouldPrintComma:m,getCallArguments:g,iterateCallArgumentsPath:p,isNextLineEmpty:D,isCallExpression:C,isStringLiteral:w,isObjectProperty:k,isTSTypeExpression:A}=ur(),{builders:{line:N,hardline:x,softline:P,group:_,indent:J,conditionalGroup:d,ifBreak:T,breakParent:f},utils:{willBreak:F}}=wt(),{ArgExpansionBailout:i}=Fn(),{isConciselyPrintedArray:h}=Du();function E(M,te,j){let De=M.getValue(),U=De.type==="ImportExpression",R=g(De);if(R.length===0)return["(",t(M,te,!0),")"];if(I(R))return["(",j(["arguments",0]),", ",j(["arguments",1]),")"];let pe=!1,be=!1,fe=R.length-1,Ie=[];p(M,(ae,Q)=>{let me=ae.getNode(),Ce=[j()];Q===fe||(D(me,te)?(Q===0&&(be=!0),pe=!0,Ce.push(",",x,x)):Ce.push(",",N)),Ie.push(Ce)});let X=!(U||De.callee&&De.callee.type==="Import")&&m(te,"all")?",":"";function se(){return _(["(",J([N,...Ie]),X,N,")"],{shouldBreak:!0})}if(pe||M.getParentNode().type!=="Decorator"&&o(R))return se();let we=B(R),_e=S(R,te);if(we||_e){if(we?Ie.slice(1).some(F):Ie.slice(0,-1).some(F))return se();let ae=[];try{M.try(()=>{p(M,(Q,me)=>{we&&me===0&&(ae=[[j([],{expandFirstArg:!0}),Ie.length>1?",":"",be?x:N,be?x:""],...Ie.slice(1)]),_e&&me===fe&&(ae=[...Ie.slice(0,-1),j([],{expandLastArg:!0})])})})}catch(Q){if(Q instanceof i)return se();throw Q}return[Ie.some(F)?f:"",d([["(",...ae,")"],we?["(",_(ae[0],{shouldBreak:!0}),...ae.slice(1),")"]:["(",...Ie.slice(0,-1),_(a(ae),{shouldBreak:!0}),")"],se()])]}let it=["(",J([P,...Ie]),T(X),P,")"];return y(M)?it:_(it,{shouldBreak:Ie.some(F)||pe})}function b(M){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return M.type==="ObjectExpression"&&(M.properties.length>0||r(M))||M.type==="ArrayExpression"&&(M.elements.length>0||r(M))||M.type==="TSTypeAssertion"&&b(M.expression)||A(M)&&b(M.expression)||M.type==="FunctionExpression"||M.type==="ArrowFunctionExpression"&&(!M.returnType||!M.returnType.typeAnnotation||M.returnType.typeAnnotation.type!=="TSTypeReference"||q(M.body))&&(M.body.type==="BlockStatement"||M.body.type==="ArrowFunctionExpression"&&b(M.body,!0)||M.body.type==="ObjectExpression"||M.body.type==="ArrayExpression"||!te&&(C(M.body)||M.body.type==="ConditionalExpression")||c(M.body))||M.type==="DoExpression"||M.type==="ModuleExpression"}function S(M,te){let j=a(M),De=s(M);return!r(j,n.Leading)&&!r(j,n.Trailing)&&b(j)&&(!De||De.type!==j.type)&&(M.length!==2||De.type!=="ArrowFunctionExpression"||j.type!=="ArrayExpression")&&!(M.length>1&&j.type==="ArrayExpression"&&h(j,te))}function B(M){if(M.length!==2)return!1;let[te,j]=M;return te.type==="ModuleExpression"&&G(j)?!0:!r(te)&&(te.type==="FunctionExpression"||te.type==="ArrowFunctionExpression"&&te.body.type==="BlockStatement")&&j.type!=="FunctionExpression"&&j.type!=="ArrowFunctionExpression"&&j.type!=="ConditionalExpression"&&!b(j)}function I(M){return M.length===2&&M[0].type==="ArrowFunctionExpression"&&e(M[0]).length===0&&M[0].body.type==="BlockStatement"&&M[1].type==="ArrayExpression"&&!M.some(te=>r(te))}function q(M){return M.type==="BlockStatement"&&(M.body.some(te=>te.type!=="EmptyStatement")||r(M,n.Dangling))}function G(M){return M.type==="ObjectExpression"&&M.properties.length===1&&k(M.properties[0])&&M.properties[0].key.type==="Identifier"&&M.properties[0].key.name==="type"&&w(M.properties[0].value)&&M.properties[0].value.value==="module"}l.exports=E}}),Ls=$({"src/language-js/print/member.js"(u,l){ue();var{builders:{softline:t,group:a,indent:s,label:e}}=wt(),{isNumericLiteral:r,isMemberExpression:n,isCallExpression:o}=ur(),{printOptionalToken:c}=qr();function y(g,p,D){let C=g.getValue(),w=g.getParentNode(),k,A=0;do k=g.getParentNode(A),A++;while(k&&(n(k)||k.type==="TSNonNullExpression"));let N=D("object"),x=m(g,p,D),P=k&&(k.type==="NewExpression"||k.type==="BindExpression"||k.type==="AssignmentExpression"&&k.left.type!=="Identifier")||C.computed||C.object.type==="Identifier"&&C.property.type==="Identifier"&&!n(w)||(w.type==="AssignmentExpression"||w.type==="VariableDeclarator")&&(o(C.object)&&C.object.arguments.length>0||C.object.type==="TSNonNullExpression"&&o(C.object.expression)&&C.object.expression.arguments.length>0||N.label==="member-chain");return e(N.label==="member-chain"?"member-chain":"member",[N,P?x:a(s([t,x]))])}function m(g,p,D){let C=D("property"),w=g.getValue(),k=c(g);return w.computed?!w.property||r(w.property)?[k,"[",C,"]"]:a([k,"[",s([t,C]),t,"]"]):[k,".",C]}l.exports={printMemberExpression:y,printMemberLookup:m}}}),Aa=$({"src/language-js/print/member-chain.js"(u,l){ue();var{printComments:t}=Qt(),{getLast:a,isNextLineEmptyAfterIndex:s,getNextNonSpaceNonCommentCharacterIndex:e}=Gt(),r=Ln(),{isCallExpression:n,isMemberExpression:o,isFunctionOrArrowExpression:c,isLongCurriedCallExpression:y,isMemberish:m,isNumericLiteral:g,isSimpleCallArgument:p,hasComment:D,CommentCheckFlags:C,isNextLineEmpty:w}=ur(),{locEnd:k}=or(),{builders:{join:A,hardline:N,group:x,indent:P,conditionalGroup:_,breakParent:J,label:d},utils:{willBreak:T}}=wt(),f=js(),{printMemberLookup:F}=Ls(),{printOptionalToken:i,printFunctionTypeParameters:h,printBindExpressionCallee:E}=qr();function b(S,B,I){let q=S.getParentNode(),G=!q||q.type==="ExpressionStatement",M=[];function te(Et){let{originalText:bt}=B,xe=e(bt,Et,k);return bt.charAt(xe)===")"?xe!==!1&&s(bt,xe+1):w(Et,B)}function j(Et){let bt=Et.getValue();n(bt)&&(m(bt.callee)||n(bt.callee))?(M.unshift({node:bt,printed:[t(Et,[i(Et),h(Et,B,I),f(Et,B,I)],B),te(bt)?N:""]}),Et.call(xe=>j(xe),"callee")):m(bt)?(M.unshift({node:bt,needsParens:r(Et,B),printed:t(Et,o(bt)?F(Et,B,I):E(Et,B,I),B)}),Et.call(xe=>j(xe),"object")):bt.type==="TSNonNullExpression"?(M.unshift({node:bt,printed:t(Et,"!",B)}),Et.call(xe=>j(xe),"expression")):M.unshift({node:bt,printed:I()})}let De=S.getValue();M.unshift({node:De,printed:[i(S),h(S,B,I),f(S,B,I)]}),De.callee&&S.call(Et=>j(Et),"callee");let U=[],R=[M[0]],pe=1;for(;pe0&&U.push(R);function fe(Et){return/^[A-Z]|^[$_]+$/.test(Et)}function Ie(Et){return Et.length<=B.tabWidth}function X(Et){let bt=Et[1].length>0&&Et[1][0].node.computed;if(Et[0].length===1){let H=Et[0][0].node;return H.type==="ThisExpression"||H.type==="Identifier"&&(fe(H.name)||G&&Ie(H.name)||bt)}let xe=a(Et[0]).node;return o(xe)&&xe.property.type==="Identifier"&&(fe(xe.property.name)||bt)}let se=U.length>=2&&!D(U[1][0].node)&&X(U);function we(Et){let bt=Et.map(xe=>xe.printed);return Et.length>0&&a(Et).needsParens?["(",...bt,")"]:bt}function _e(Et){return Et.length===0?"":P(x([N,A(N,Et.map(we))]))}let it=U.map(we),ae=it,Q=se?3:2,me=U.flat(),Ce=me.slice(1,-1).some(Et=>D(Et.node,C.Leading))||me.slice(0,-1).some(Et=>D(Et.node,C.Trailing))||U[Q]&&D(U[Q][0].node,C.Leading);if(U.length<=Q&&!Ce)return y(S)?ae:x(ae);let Re=a(U[se?1:0]).node,Xe=!n(Re)&&te(Re),Ye=[we(U[0]),se?U.slice(1,2).map(we):"",Xe?N:"",_e(U.slice(se?2:1))],Ct=M.map(Et=>{let{node:bt}=Et;return bt}).filter(n);function Rt(){let Et=a(a(U)).node,bt=a(it);return n(Et)&&T(bt)&&Ct.slice(0,-1).some(xe=>xe.arguments.some(c))}let It;return Ce||Ct.length>2&&Ct.some(Et=>!Et.arguments.every(bt=>p(bt,0)))||it.slice(0,-1).some(T)||Rt()?It=x(Ye):It=[T(ae)||Xe?J:"",_([ae,Ye])],d("member-chain",It)}l.exports=b}}),Os=$({"src/language-js/print/call-expression.js"(u,l){ue();var{builders:{join:t,group:a}}=wt(),s=Ln(),{getCallArguments:e,hasFlowAnnotationComment:r,isCallExpression:n,isMemberish:o,isStringLiteral:c,isTemplateOnItsOwnLine:y,isTestCall:m,iterateCallArgumentsPath:g}=ur(),p=Aa(),D=js(),{printOptionalToken:C,printFunctionTypeParameters:w}=qr();function k(N,x,P){let _=N.getValue(),J=N.getParentNode(),d=_.type==="NewExpression",T=_.type==="ImportExpression",f=C(N),F=e(_);if(F.length>0&&(!T&&!d&&A(_,J)||F.length===1&&y(F[0],x.originalText)||!d&&m(_,J))){let E=[];return g(N,()=>{E.push(P())}),[d?"new ":"",P("callee"),f,w(N,x,P),"(",t(", ",E),")"]}let i=(x.parser==="babel"||x.parser==="babel-flow")&&_.callee&&_.callee.type==="Identifier"&&r(_.callee.trailingComments);if(i&&(_.callee.trailingComments[0].printed=!0),!T&&!d&&o(_.callee)&&!N.call(E=>s(E,x),"callee"))return p(N,x,P);let h=[d?"new ":"",T?"import":P("callee"),f,i?`/*:: ${_.callee.trailingComments[0].value.slice(2).trim()} */`:"",w(N,x,P),D(N,x,P)];return T||n(_.callee)?a(h):h}function A(N,x){if(N.callee.type!=="Identifier")return!1;if(N.callee.name==="require")return!0;if(N.callee.name==="define"){let P=e(N);return x.type==="ExpressionStatement"&&(P.length===1||P.length===2&&P[0].type==="ArrayExpression"||P.length===3&&c(P[0])&&P[1].type==="ArrayExpression")}return!1}l.exports={printCallExpression:k}}}),du=$({"src/language-js/print/assignment.js"(u,l){ue();var{isNonEmptyArray:t,getStringWidth:a}=Gt(),{builders:{line:s,group:e,indent:r,indentIfBreak:n,lineSuffixBoundary:o},utils:{cleanDoc:c,willBreak:y,canBreak:m}}=wt(),{hasLeadingOwnLineComment:g,isBinaryish:p,isStringLiteral:D,isLiteral:C,isNumericLiteral:w,isCallExpression:k,isMemberExpression:A,getCallArguments:N,rawText:x,hasComment:P,isSignedNumericLiteral:_,isObjectProperty:J}=ur(),{shouldInlineLogicalExpression:d}=as(),{printCallExpression:T}=Os();function f(X,se,we,_e,it,ae){let Q=h(X,se,we,_e,ae),me=we(ae,{assignmentLayout:Q});switch(Q){case"break-after-operator":return e([e(_e),it,e(r([s,me]))]);case"never-break-after-operator":return e([e(_e),it," ",me]);case"fluid":{let Ce=Symbol("assignment");return e([e(_e),it,e(r(s),{id:Ce}),o,n(me,{groupId:Ce})])}case"break-lhs":return e([_e,it," ",e(me)]);case"chain":return[e(_e),it,s,me];case"chain-tail":return[e(_e),it,r([s,me])];case"chain-tail-arrow-chain":return[e(_e),it,me];case"only-left":return _e}}function F(X,se,we){let _e=X.getValue();return f(X,se,we,we("left"),[" ",_e.operator],"right")}function i(X,se,we){return f(X,se,we,we("id")," =","init")}function h(X,se,we,_e,it){let ae=X.getValue(),Q=ae[it];if(!Q)return"only-left";let me=!S(Q);if(X.match(S,B,Re=>!me||Re.type!=="ExpressionStatement"&&Re.type!=="VariableDeclaration"))return me?Q.type==="ArrowFunctionExpression"&&Q.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!me&&S(Q.right)||g(se.originalText,Q))return"break-after-operator";if(Q.type==="CallExpression"&&Q.callee.name==="require"||se.parser==="json5"||se.parser==="json")return"never-break-after-operator";if(b(ae)||I(ae)||M(ae)||te(ae)&&m(_e))return"break-lhs";let Ce=be(ae,_e,se);return X.call(()=>E(X,se,we,Ce),it)?"break-after-operator":Ce||Q.type==="TemplateLiteral"||Q.type==="TaggedTemplateExpression"||Q.type==="BooleanLiteral"||w(Q)||Q.type==="ClassExpression"?"never-break-after-operator":"fluid"}function E(X,se,we,_e){let it=X.getValue();if(p(it)&&!d(it))return!0;switch(it.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:me}=it;return p(me)&&!d(me)}case"ClassExpression":return t(it.decorators)}if(_e)return!1;let ae=it,Q=[];for(;;)if(ae.type==="UnaryExpression")ae=ae.argument,Q.push("argument");else if(ae.type==="TSNonNullExpression")ae=ae.expression,Q.push("expression");else break;return!!(D(ae)||X.call(()=>U(X,se,we),...Q))}function b(X){if(B(X)){let se=X.left||X.id;return se.type==="ObjectPattern"&&se.properties.length>2&&se.properties.some(we=>J(we)&&(!we.shorthand||we.value&&we.value.type==="AssignmentPattern"))}return!1}function S(X){return X.type==="AssignmentExpression"}function B(X){return S(X)||X.type==="VariableDeclarator"}function I(X){let se=q(X);if(t(se)){let we=X.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(se.length>1&&se.some(_e=>_e[we]||_e.default))return!0}return!1}function q(X){return G(X)&&X.typeParameters&&X.typeParameters.params?X.typeParameters.params:null}function G(X){return X.type==="TSTypeAliasDeclaration"||X.type==="TypeAlias"}function M(X){if(X.type!=="VariableDeclarator")return!1;let{typeAnnotation:se}=X.id;if(!se||!se.typeAnnotation)return!1;let we=j(se.typeAnnotation);return t(we)&&we.length>1&&we.some(_e=>t(j(_e))||_e.type==="TSConditionalType")}function te(X){return X.type==="VariableDeclarator"&&X.init&&X.init.type==="ArrowFunctionExpression"}function j(X){return De(X)&&X.typeParameters&&X.typeParameters.params?X.typeParameters.params:null}function De(X){return X.type==="TSTypeReference"||X.type==="GenericTypeAnnotation"}function U(X,se,we){let _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,it=X.getValue(),ae=()=>U(X,se,we,!0);if(it.type==="TSNonNullExpression")return X.call(ae,"expression");if(k(it)){if(T(X,se,we).label==="member-chain")return!1;let Q=N(it);return!(Q.length===0||Q.length===1&&pe(Q[0],se))||fe(it,we)?!1:X.call(ae,"callee")}return A(it)?X.call(ae,"object"):_e&&(it.type==="Identifier"||it.type==="ThisExpression")}var R=.25;function pe(X,se){let{printWidth:we}=se;if(P(X))return!1;let _e=we*R;if(X.type==="ThisExpression"||X.type==="Identifier"&&X.name.length<=_e||_(X)&&!P(X.argument))return!0;let it=X.type==="Literal"&&"regex"in X&&X.regex.pattern||X.type==="RegExpLiteral"&&X.pattern;return it?it.length<=_e:D(X)?x(X).length<=_e:X.type==="TemplateLiteral"?X.expressions.length===0&&X.quasis[0].value.raw.length<=_e&&!X.quasis[0].value.raw.includes(`
+`):C(X)}function be(X,se,we){if(!J(X))return!1;se=c(se);let _e=3;return typeof se=="string"&&a(se)1)return!0;if(we.length===1){let it=we[0];if(it.type==="TSUnionType"||it.type==="UnionTypeAnnotation"||it.type==="TSIntersectionType"||it.type==="IntersectionTypeAnnotation"||it.type==="TSTypeLiteral"||it.type==="ObjectTypeAnnotation")return!0}let _e=X.typeParameters?"typeParameters":"typeArguments";if(y(se(_e)))return!0}return!1}function Ie(X){return X.typeParameters&&X.typeParameters.params||X.typeArguments&&X.typeArguments.params}l.exports={printVariableDeclarator:i,printAssignmentExpression:F,printAssignment:f,isArrowFunctionVariableDeclarator:te}}}),Zu=$({"src/language-js/print/function-parameters.js"(u,l){ue();var{getNextNonSpaceNonCommentCharacter:t}=Gt(),{printDanglingComments:a}=Qt(),{builders:{line:s,hardline:e,softline:r,group:n,indent:o,ifBreak:c},utils:{removeLines:y,willBreak:m}}=wt(),{getFunctionParameters:g,iterateFunctionParametersPath:p,isSimpleType:D,isTestCall:C,isTypeAnnotationAFunction:w,isObjectType:k,isObjectTypePropertyAFunction:A,hasRestParameter:N,shouldPrintComma:x,hasComment:P,isNextLineEmpty:_}=ur(),{locEnd:J}=or(),{ArgExpansionBailout:d}=Fn(),{printFunctionTypeParameters:T}=qr();function f(E,b,S,B,I){let q=E.getValue(),G=g(q),M=I?T(E,S,b):"";if(G.length===0)return[M,"(",a(E,S,!0,pe=>t(S.originalText,pe,J)===")"),")"];let te=E.getParentNode(),j=C(te),De=F(q),U=[];if(p(E,(pe,be)=>{let fe=be===G.length-1;fe&&q.rest&&U.push("..."),U.push(b()),!fe&&(U.push(","),j||De?U.push(" "):_(G[be],S)?U.push(e,e):U.push(s))}),B){if(m(M)||m(U))throw new d;return n([y(M),"(",y(U),")"])}let R=G.every(pe=>!pe.decorators);return De&&R?[M,"(",...U,")"]:j?[M,"(",...U,")"]:(A(te)||w(te)||te.type==="TypeAlias"||te.type==="UnionTypeAnnotation"||te.type==="TSUnionType"||te.type==="IntersectionTypeAnnotation"||te.type==="FunctionTypeAnnotation"&&te.returnType===q)&&G.length===1&&G[0].name===null&&q.this!==G[0]&&G[0].typeAnnotation&&q.typeParameters===null&&D(G[0].typeAnnotation)&&!q.rest?S.arrowParens==="always"?["(",...U,")"]:U:[M,"(",o([r,...U]),c(!N(q)&&x(S,"all")?",":""),r,")"]}function F(E){if(!E)return!1;let b=g(E);if(b.length!==1)return!1;let[S]=b;return!P(S)&&(S.type==="ObjectPattern"||S.type==="ArrayPattern"||S.type==="Identifier"&&S.typeAnnotation&&(S.typeAnnotation.type==="TypeAnnotation"||S.typeAnnotation.type==="TSTypeAnnotation")&&k(S.typeAnnotation.typeAnnotation)||S.type==="FunctionTypeParam"&&k(S.typeAnnotation)||S.type==="AssignmentPattern"&&(S.left.type==="ObjectPattern"||S.left.type==="ArrayPattern")&&(S.right.type==="Identifier"||S.right.type==="ObjectExpression"&&S.right.properties.length===0||S.right.type==="ArrayExpression"&&S.right.elements.length===0))}function i(E){let b;return E.returnType?(b=E.returnType,b.typeAnnotation&&(b=b.typeAnnotation)):E.typeAnnotation&&(b=E.typeAnnotation),b}function h(E,b){let S=i(E);if(!S)return!1;let B=E.typeParameters&&E.typeParameters.params;if(B){if(B.length>1)return!1;if(B.length===1){let I=B[0];if(I.constraint||I.default)return!1}}return g(E).length===1&&(k(S)||m(b))}l.exports={printFunctionParameters:f,shouldHugFunctionParameters:F,shouldGroupFunctionParameters:h}}}),ei=$({"src/language-js/print/type-annotation.js"(u,l){ue();var{printComments:t,printDanglingComments:a}=Qt(),{isNonEmptyArray:s}=Gt(),{builders:{group:e,join:r,line:n,softline:o,indent:c,align:y,ifBreak:m}}=wt(),g=Ln(),{locStart:p}=or(),{isSimpleType:D,isObjectType:C,hasLeadingOwnLineComment:w,isObjectTypePropertyAFunction:k,shouldPrintComma:A}=ur(),{printAssignment:N}=du(),{printFunctionParameters:x,shouldGroupFunctionParameters:P}=Zu(),{printArrayItems:_}=Du();function J(S){if(D(S)||C(S))return!0;if(S.type==="UnionTypeAnnotation"||S.type==="TSUnionType"){let B=S.types.filter(q=>q.type==="VoidTypeAnnotation"||q.type==="TSVoidKeyword"||q.type==="NullLiteralTypeAnnotation"||q.type==="TSNullKeyword").length,I=S.types.some(q=>q.type==="ObjectTypeAnnotation"||q.type==="TSTypeLiteral"||q.type==="GenericTypeAnnotation"||q.type==="TSTypeReference");if(S.types.length-1===B&&I)return!0}return!1}function d(S,B,I){let q=B.semi?";":"",G=S.getValue(),M=[];return M.push("opaque type ",I("id"),I("typeParameters")),G.supertype&&M.push(": ",I("supertype")),G.impltype&&M.push(" = ",I("impltype")),M.push(q),M}function T(S,B,I){let q=B.semi?";":"",G=S.getValue(),M=[];G.declare&&M.push("declare "),M.push("type ",I("id"),I("typeParameters"));let te=G.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[N(S,B,I,M," =",te),q]}function f(S,B,I){let q=S.getValue(),G=S.map(I,"types"),M=[],te=!1;for(let j=0;j1&&(te=!0),M.push(" & ",j>1?c(G[j]):G[j]));return e(M)}function F(S,B,I){let q=S.getValue(),G=S.getParentNode(),M=G.type!=="TypeParameterInstantiation"&&G.type!=="TSTypeParameterInstantiation"&&G.type!=="GenericTypeAnnotation"&&G.type!=="TSTypeReference"&&G.type!=="TSTypeAssertion"&&G.type!=="TupleTypeAnnotation"&&G.type!=="TSTupleType"&&!(G.type==="FunctionTypeParam"&&!G.name&&S.getParentNode(1).this!==G)&&!((G.type==="TypeAlias"||G.type==="VariableDeclarator"||G.type==="TSTypeAliasDeclaration")&&w(B.originalText,q)),te=J(q),j=S.map(R=>{let pe=I();return te||(pe=y(2,pe)),t(R,pe,B)},"types");if(te)return r(" | ",j);let De=M&&!w(B.originalText,q),U=[m([De?n:"","| "]),r([n,"| "],j)];return g(S,B)?e([c(U),o]):G.type==="TupleTypeAnnotation"&&G.types.length>1||G.type==="TSTupleType"&&G.elementTypes.length>1?e([c([m(["(",o]),U]),o,m(")")]):e(M?c(U):U)}function i(S,B,I){let q=S.getValue(),G=[],M=S.getParentNode(0),te=S.getParentNode(1),j=S.getParentNode(2),De=q.type==="TSFunctionType"||!((M.type==="ObjectTypeProperty"||M.type==="ObjectTypeInternalSlot")&&!M.variance&&!M.optional&&p(M)===p(q)||M.type==="ObjectTypeCallProperty"||j&&j.type==="DeclareFunction"),U=De&&(M.type==="TypeAnnotation"||M.type==="TSTypeAnnotation"),R=U&&De&&(M.type==="TypeAnnotation"||M.type==="TSTypeAnnotation")&&te.type==="ArrowFunctionExpression";k(M)&&(De=!0,U=!0),R&&G.push("(");let pe=x(S,I,B,!1,!0),be=q.returnType||q.predicate||q.typeAnnotation?[De?" => ":": ",I("returnType"),I("predicate"),I("typeAnnotation")]:"",fe=P(q,be);return G.push(fe?e(pe):pe),be&&G.push(be),R&&G.push(")"),e(G)}function h(S,B,I){let q=S.getValue(),G=q.type==="TSTupleType"?"elementTypes":"types",M=q[G],te=s(M),j=te?o:"";return e(["[",c([j,_(S,B,G,I)]),m(te&&A(B,"all")?",":""),a(S,B,!0),j,"]"])}function E(S,B,I){let q=S.getValue(),G=q.type==="OptionalIndexedAccessType"&&q.optional?"?.[":"[";return[I("objectType"),G,I("indexType"),"]"]}function b(S,B,I){let q=S.getValue();return[q.postfix?"":I,B("typeAnnotation"),q.postfix?I:""]}l.exports={printOpaqueType:d,printTypeAlias:T,printIntersectionType:f,printUnionType:F,printFunctionType:i,printTupleType:h,printIndexedAccessType:E,shouldHugType:J,printJSDocType:b}}}),ti=$({"src/language-js/print/type-parameters.js"(u,l){ue();var{printDanglingComments:t}=Qt(),{builders:{join:a,line:s,hardline:e,softline:r,group:n,indent:o,ifBreak:c}}=wt(),{isTestCall:y,hasComment:m,CommentCheckFlags:g,isTSXFile:p,shouldPrintComma:D,getFunctionParameters:C,isObjectType:w,getTypeScriptMappedTypeModifier:k}=ur(),{createGroupIdMapper:A}=Gt(),{shouldHugType:N}=ei(),{isArrowFunctionVariableDeclarator:x}=du(),P=A("typeParameters");function _(T,f,F,i){let h=T.getValue();if(!h[i])return"";if(!Array.isArray(h[i]))return F(i);let E=T.getNode(2),b=E&&y(E),S=T.match(I=>!(I[i].length===1&&w(I[i][0])),void 0,(I,q)=>q==="typeAnnotation",I=>I.type==="Identifier",x);if(h[i].length===0||!S&&(b||h[i].length===1&&(h[i][0].type==="NullableTypeAnnotation"||N(h[i][0]))))return["<",a(", ",T.map(F,i)),J(T,f),">"];let B=h.type==="TSTypeParameterInstantiation"?"":C(h).length===1&&p(f)&&!h[i][0].constraint&&T.getParentNode().type==="ArrowFunctionExpression"?",":D(f,"all")?c(","):"";return n(["<",o([r,a([",",s],T.map(F,i))]),B,r,">"],{id:P(h)})}function J(T,f){let F=T.getValue();if(!m(F,g.Dangling))return"";let i=!m(F,g.Line),h=t(T,f,i);return i?h:[h,e]}function d(T,f,F){let i=T.getValue(),h=[i.type==="TSTypeParameter"&&i.const?"const ":""],E=T.getParentNode();return E.type==="TSMappedType"?(E.readonly&&h.push(k(E.readonly,"readonly")," "),h.push("[",F("name")),i.constraint&&h.push(" in ",F("constraint")),E.nameType&&h.push(" as ",T.callParent(()=>F("nameType"))),h.push("]"),h):(i.variance&&h.push(F("variance")),i.in&&h.push("in "),i.out&&h.push("out "),h.push(F("name")),i.bound&&h.push(": ",F("bound")),i.constraint&&h.push(" extends ",F("constraint")),i.default&&h.push(" = ",F("default")),h)}l.exports={printTypeParameter:d,printTypeParameters:_,getTypeParametersGroupId:P}}}),fu=$({"src/language-js/print/property.js"(u,l){ue();var{printComments:t}=Qt(),{printString:a,printNumber:s}=Gt(),{isNumericLiteral:e,isSimpleNumber:r,isStringLiteral:n,isStringPropSafeToUnquote:o,rawText:c}=ur(),{printAssignment:y}=du(),m=new WeakMap;function g(D,C,w){let k=D.getNode();if(k.computed)return["[",w("key"),"]"];let A=D.getParentNode(),{key:N}=k;if(C.quoteProps==="consistent"&&!m.has(A)){let x=(A.properties||A.body||A.members).some(P=>!P.computed&&P.key&&n(P.key)&&!o(P,C));m.set(A,x)}if((N.type==="Identifier"||e(N)&&r(s(c(N)))&&String(N.value)===s(c(N))&&!(C.parser==="typescript"||C.parser==="babel-ts"))&&(C.parser==="json"||C.quoteProps==="consistent"&&m.get(A))){let x=a(JSON.stringify(N.type==="Identifier"?N.name:N.value.toString()),C);return D.call(P=>t(P,x,C),"key")}return o(k,C)&&(C.quoteProps==="as-needed"||C.quoteProps==="consistent"&&!m.get(A))?D.call(x=>t(x,/^\d/.test(N.value)?s(N.value):N.value,C),"key"):w("key")}function p(D,C,w){return D.getValue().shorthand?w("value"):y(D,C,w,g(D,C,w),":","value")}l.exports={printProperty:p,printPropertyKey:g}}}),ri=$({"src/language-js/print/function.js"(u,l){ue();var t=lr(),{printDanglingComments:a,printCommentsSeparately:s}=Qt(),e=mr(),{getNextNonSpaceNonCommentCharacterIndex:r}=Gt(),{builders:{line:n,softline:o,group:c,indent:y,ifBreak:m,hardline:g,join:p,indentIfBreak:D},utils:{removeLines:C,willBreak:w}}=wt(),{ArgExpansionBailout:k}=Fn(),{getFunctionParameters:A,hasLeadingOwnLineComment:N,isFlowAnnotationComment:x,isJsxNode:P,isTemplateOnItsOwnLine:_,shouldPrintComma:J,startsWithNoLookaheadToken:d,isBinaryish:T,isLineComment:f,hasComment:F,getComments:i,CommentCheckFlags:h,isCallLikeExpression:E,isCallExpression:b,getCallArguments:S,hasNakedLeftSide:B,getLeftSide:I}=ur(),{locEnd:q}=or(),{printFunctionParameters:G,shouldGroupFunctionParameters:M}=Zu(),{printPropertyKey:te}=fu(),{printFunctionTypeParameters:j}=qr();function De(Q,me,Ce,Re){let Xe=Q.getValue(),Ye=!1;if((Xe.type==="FunctionDeclaration"||Xe.type==="FunctionExpression")&&Re&&Re.expandLastArg){let bt=Q.getParentNode();b(bt)&&S(bt).length>1&&(Ye=!0)}let Ct=[];Xe.type==="TSDeclareFunction"&&Xe.declare&&Ct.push("declare "),Xe.async&&Ct.push("async "),Xe.generator?Ct.push("function* "):Ct.push("function "),Xe.id&&Ct.push(me("id"));let Rt=G(Q,me,Ce,Ye),It=se(Q,me,Ce),Et=M(Xe,It);return Ct.push(j(Q,Ce,me),c([Et?c(Rt):Rt,It]),Xe.body?" ":"",me("body")),Ce.semi&&(Xe.declare||!Xe.body)&&Ct.push(";"),Ct}function U(Q,me,Ce){let Re=Q.getNode(),{kind:Xe}=Re,Ye=Re.value||Re,Ct=[];return!Xe||Xe==="init"||Xe==="method"||Xe==="constructor"?Ye.async&&Ct.push("async "):(t.ok(Xe==="get"||Xe==="set"),Ct.push(Xe," ")),Ye.generator&&Ct.push("*"),Ct.push(te(Q,me,Ce),Re.optional||Re.key.optional?"?":""),Re===Ye?Ct.push(R(Q,me,Ce)):Ye.type==="FunctionExpression"?Ct.push(Q.call(Rt=>R(Rt,me,Ce),"value")):Ct.push(Ce("value")),Ct}function R(Q,me,Ce){let Re=Q.getNode(),Xe=G(Q,Ce,me),Ye=se(Q,Ce,me),Ct=M(Re,Ye),Rt=[j(Q,me,Ce),c([Ct?c(Xe):Xe,Ye])];return Re.body?Rt.push(" ",Ce("body")):Rt.push(me.semi?";":""),Rt}function pe(Q,me,Ce,Re){let Xe=Q.getValue(),Ye=[];if(Xe.async&&Ye.push("async "),X(Q,me))Ye.push(Ce(["params",0]));else{let Rt=Re&&(Re.expandLastArg||Re.expandFirstArg),It=se(Q,Ce,me);if(Rt){if(w(It))throw new k;It=c(C(It))}Ye.push(c([G(Q,Ce,me,Rt,!0),It]))}let Ct=a(Q,me,!0,Rt=>{let It=r(me.originalText,Rt,q);return It!==!1&&me.originalText.slice(It,It+2)==="=>"});return Ct&&Ye.push(" ",Ct),Ye}function be(Q,me,Ce,Re,Xe,Ye){let Ct=Q.getName(),Rt=Q.getParentNode(),It=E(Rt)&&Ct==="callee",Et=!!(me&&me.assignmentLayout),bt=Ye.body.type!=="BlockStatement"&&Ye.body.type!=="ObjectExpression"&&Ye.body.type!=="SequenceExpression",xe=It&&bt||me&&me.assignmentLayout==="chain-tail-arrow-chain",H=Symbol("arrow-chain");return Ye.body.type==="SequenceExpression"&&(Xe=c(["(",y([o,Xe]),o,")"])),c([c(y([It||Et?o:"",c(p([" =>",n],Ce),{shouldBreak:Re})]),{id:H,shouldBreak:xe})," =>",D(bt?y([n,Xe]):[" ",Xe],{groupId:H}),It?m(o,"",{groupId:H}):""])}function fe(Q,me,Ce,Re){let Xe=Q.getValue(),Ye=[],Ct=[],Rt=!1;if(function H(){let ke=pe(Q,me,Ce,Re);if(Ye.length===0)Ye.push(ke);else{let{leading:oe,trailing:Be}=s(Q,me);Ye.push([oe,ke]),Ct.unshift(Be)}Rt=Rt||Xe.returnType&&A(Xe).length>0||Xe.typeParameters||A(Xe).some(oe=>oe.type!=="Identifier"),Xe.body.type!=="ArrowFunctionExpression"||Re&&Re.expandLastArg?Ct.unshift(Ce("body",Re)):(Xe=Xe.body,Q.call(H,"body"))}(),Ye.length>1)return be(Q,Re,Ye,Rt,Ct,Xe);let It=Ye;if(It.push(" =>"),!N(me.originalText,Xe.body)&&(Xe.body.type==="ArrayExpression"||Xe.body.type==="ObjectExpression"||Xe.body.type==="BlockStatement"||P(Xe.body)||_(Xe.body,me.originalText)||Xe.body.type==="ArrowFunctionExpression"||Xe.body.type==="DoExpression"))return c([...It," ",Ct]);if(Xe.body.type==="SequenceExpression")return c([...It,c([" (",y([o,Ct]),o,")"])]);let Et=(Re&&Re.expandLastArg||Q.getParentNode().type==="JSXExpressionContainer")&&!F(Xe),bt=Re&&Re.expandLastArg&&J(me,"all"),xe=Xe.body.type==="ConditionalExpression"&&!d(Xe.body,H=>H.type==="ObjectExpression");return c([...It,c([y([n,xe?m("","("):"",Ct,xe?m("",")"):""]),Et?[m(bt?",":""),o]:""])])}function Ie(Q){let me=A(Q);return me.length===1&&!Q.typeParameters&&!F(Q,h.Dangling)&&me[0].type==="Identifier"&&!me[0].typeAnnotation&&!F(me[0])&&!me[0].optional&&!Q.predicate&&!Q.returnType}function X(Q,me){if(me.arrowParens==="always")return!1;if(me.arrowParens==="avoid"){let Ce=Q.getValue();return Ie(Ce)}return!1}function se(Q,me,Ce){let Re=Q.getValue(),Xe=me("returnType");if(Re.returnType&&x(Ce.originalText,Re.returnType))return[" /*: ",Xe," */"];let Ye=[Xe];return Re.returnType&&Re.returnType.typeAnnotation&&Ye.unshift(": "),Re.predicate&&Ye.push(Re.returnType?" ":": ",me("predicate")),Ye}function we(Q,me,Ce){let Re=Q.getValue(),Xe=me.semi?";":"",Ye=[];Re.argument&&(ae(me,Re.argument)?Ye.push([" (",y([g,Ce("argument")]),g,")"]):T(Re.argument)||Re.argument.type==="SequenceExpression"?Ye.push(c([m(" ("," "),y([o,Ce("argument")]),o,m(")")])):Ye.push(" ",Ce("argument")));let Ct=i(Re),Rt=e(Ct),It=Rt&&f(Rt);return It&&Ye.push(Xe),F(Re,h.Dangling)&&Ye.push(" ",a(Q,me,!0)),It||Ye.push(Xe),Ye}function _e(Q,me,Ce){return["return",we(Q,me,Ce)]}function it(Q,me,Ce){return["throw",we(Q,me,Ce)]}function ae(Q,me){if(N(Q.originalText,me))return!0;if(B(me)){let Ce=me,Re;for(;Re=I(Ce);)if(Ce=Re,N(Q.originalText,Ce))return!0}return!1}l.exports={printFunction:De,printArrowFunction:fe,printMethod:U,printReturnStatement:_e,printThrowStatement:it,printMethodInternal:R,shouldPrintParamsWithoutParens:X}}}),os=$({"src/language-js/print/decorators.js"(u,l){ue();var{isNonEmptyArray:t,hasNewline:a}=Gt(),{builders:{line:s,hardline:e,join:r,breakParent:n,group:o}}=wt(),{locStart:c,locEnd:y}=or(),{getParentExportDeclaration:m}=ur();function g(k,A,N){let x=k.getValue();return o([r(s,k.map(N,"decorators")),C(x,A)?e:s])}function p(k,A,N){return[r(e,k.map(N,"declaration","decorators")),e]}function D(k,A,N){let x=k.getValue(),{decorators:P}=x;if(!t(P)||w(k.getParentNode()))return;let _=x.type==="ClassExpression"||x.type==="ClassDeclaration"||C(x,A);return[m(k)?e:_?n:"",r(s,k.map(N,"decorators")),s]}function C(k,A){return k.decorators.some(N=>a(A.originalText,y(N)))}function w(k){if(k.type!=="ExportDefaultDeclaration"&&k.type!=="ExportNamedDeclaration"&&k.type!=="DeclareExportDeclaration")return!1;let A=k.declaration&&k.declaration.decorators;return t(A)&&c(k)===c(A[0])}l.exports={printDecorators:D,printClassMemberDecorators:g,printDecoratorsBeforeExport:p,hasDecoratorsBeforeExport:w}}}),mu=$({"src/language-js/print/class.js"(u,l){ue();var{isNonEmptyArray:t,createGroupIdMapper:a}=Gt(),{printComments:s,printDanglingComments:e}=Qt(),{builders:{join:r,line:n,hardline:o,softline:c,group:y,indent:m,ifBreak:g}}=wt(),{hasComment:p,CommentCheckFlags:D}=ur(),{getTypeParametersGroupId:C}=ti(),{printMethod:w}=ri(),{printOptionalToken:k,printTypeAnnotation:A,printDefiniteToken:N}=qr(),{printPropertyKey:x}=fu(),{printAssignment:P}=du(),{printClassMemberDecorators:_}=os();function J(S,B,I){let q=S.getValue(),G=[];q.declare&&G.push("declare "),q.abstract&&G.push("abstract "),G.push("class");let M=q.id&&p(q.id,D.Trailing)||q.typeParameters&&p(q.typeParameters,D.Trailing)||q.superClass&&p(q.superClass)||t(q.extends)||t(q.mixins)||t(q.implements),te=[],j=[];if(q.id&&te.push(" ",I("id")),te.push(I("typeParameters")),q.superClass){let De=[h(S,B,I),I("superTypeParameters")],U=S.call(R=>["extends ",s(R,De,B)],"superClass");M?j.push(n,y(U)):j.push(" ",U)}else j.push(i(S,B,I,"extends"));if(j.push(i(S,B,I,"mixins"),i(S,B,I,"implements")),M){let De;F(q)?De=[...te,m(j)]:De=m([...te,j]),G.push(y(De,{id:d(q)}))}else G.push(...te,...j);return G.push(" ",I("body")),G}var d=a("heritageGroup");function T(S){return g(o,"",{groupId:d(S)})}function f(S){return["superClass","extends","mixins","implements"].filter(B=>!!S[B]).length>1}function F(S){return S.typeParameters&&!p(S.typeParameters,D.Trailing|D.Line)&&!f(S)}function i(S,B,I,q){let G=S.getValue();if(!t(G[q]))return"";let M=e(S,B,!0,te=>{let{marker:j}=te;return j===q});return[F(G)?g(" ",n,{groupId:C(G.typeParameters)}):n,M,M&&o,q,y(m([n,r([",",n],S.map(I,q))]))]}function h(S,B,I){let q=I("superClass");return S.getParentNode().type==="AssignmentExpression"?y(g(["(",m([c,q]),c,")"],q)):q}function E(S,B,I){let q=S.getValue(),G=[];return t(q.decorators)&&G.push(_(S,B,I)),q.accessibility&&G.push(q.accessibility+" "),q.readonly&&G.push("readonly "),q.declare&&G.push("declare "),q.static&&G.push("static "),(q.type==="TSAbstractMethodDefinition"||q.abstract)&&G.push("abstract "),q.override&&G.push("override "),G.push(w(S,B,I)),G}function b(S,B,I){let q=S.getValue(),G=[],M=B.semi?";":"";return t(q.decorators)&&G.push(_(S,B,I)),q.accessibility&&G.push(q.accessibility+" "),q.declare&&G.push("declare "),q.static&&G.push("static "),(q.type==="TSAbstractPropertyDefinition"||q.type==="TSAbstractAccessorProperty"||q.abstract)&&G.push("abstract "),q.override&&G.push("override "),q.readonly&&G.push("readonly "),q.variance&&G.push(I("variance")),(q.type==="ClassAccessorProperty"||q.type==="AccessorProperty"||q.type==="TSAbstractAccessorProperty")&&G.push("accessor "),G.push(x(S,B,I),k(S),N(S),A(S,B,I)),[P(S,B,I,G," =","value"),M]}l.exports={printClass:J,printClassMethod:E,printClassProperty:b,printHardlineAfterHeritage:T}}}),$s=$({"src/language-js/print/interface.js"(u,l){ue();var{isNonEmptyArray:t}=Gt(),{builders:{join:a,line:s,group:e,indent:r,ifBreak:n}}=wt(),{hasComment:o,identity:c,CommentCheckFlags:y}=ur(),{getTypeParametersGroupId:m}=ti(),{printTypeScriptModifiers:g}=qr();function p(D,C,w){let k=D.getValue(),A=[];k.declare&&A.push("declare "),k.type==="TSInterfaceDeclaration"&&A.push(k.abstract?"abstract ":"",g(D,C,w)),A.push("interface");let N=[],x=[];k.type!=="InterfaceTypeAnnotation"&&N.push(" ",w("id"),w("typeParameters"));let P=k.typeParameters&&!o(k.typeParameters,y.Trailing|y.Line);return t(k.extends)&&x.push(P?n(" ",s,{groupId:m(k.typeParameters)}):s,"extends ",(k.extends.length===1?c:r)(a([",",s],D.map(w,"extends")))),k.id&&o(k.id,y.Trailing)||t(k.extends)?P?A.push(e([...N,r(x)])):A.push(e(r([...N,...x]))):A.push(...N,...x),A.push(" ",w("body")),e(A)}l.exports={printInterface:p}}}),Rs=$({"src/language-js/print/module.js"(u,l){ue();var{isNonEmptyArray:t}=Gt(),{builders:{softline:a,group:s,indent:e,join:r,line:n,ifBreak:o,hardline:c}}=wt(),{printDanglingComments:y}=Qt(),{hasComment:m,CommentCheckFlags:g,shouldPrintComma:p,needsHardlineAfterDanglingComment:D,isStringLiteral:C,rawText:w}=ur(),{locStart:k,hasSameLoc:A}=or(),{hasDecoratorsBeforeExport:N,printDecoratorsBeforeExport:x}=os();function P(b,S,B){let I=b.getValue(),q=S.semi?";":"",G=[],{importKind:M}=I;return G.push("import"),M&&M!=="value"&&G.push(" ",M),G.push(f(b,S,B),T(b,S,B),i(b,S,B),q),G}function _(b,S,B){let I=b.getValue(),q=[];N(I)&&q.push(x(b,S,B));let{type:G,exportKind:M,declaration:te}=I;return q.push("export"),(I.default||G==="ExportDefaultDeclaration")&&q.push(" default"),m(I,g.Dangling)&&(q.push(" ",y(b,S,!0)),D(I)&&q.push(c)),te?q.push(" ",B("declaration")):q.push(M==="type"?" type":"",f(b,S,B),T(b,S,B),i(b,S,B)),d(I,S)&&q.push(";"),q}function J(b,S,B){let I=b.getValue(),q=S.semi?";":"",G=[],{exportKind:M,exported:te}=I;return G.push("export"),M==="type"&&G.push(" type"),G.push(" *"),te&&G.push(" as ",B("exported")),G.push(T(b,S,B),i(b,S,B),q),G}function d(b,S){if(!S.semi)return!1;let{type:B,declaration:I}=b,q=b.default||B==="ExportDefaultDeclaration";if(!I)return!0;let{type:G}=I;return!!(q&&G!=="ClassDeclaration"&&G!=="FunctionDeclaration"&&G!=="TSInterfaceDeclaration"&&G!=="DeclareClass"&&G!=="DeclareFunction"&&G!=="TSDeclareFunction"&&G!=="EnumDeclaration")}function T(b,S,B){let I=b.getValue();if(!I.source)return"";let q=[];return F(I,S)||q.push(" from"),q.push(" ",B("source")),q}function f(b,S,B){let I=b.getValue();if(F(I,S))return"";let q=[" "];if(t(I.specifiers)){let G=[],M=[];b.each(()=>{let te=b.getValue().type;if(te==="ExportNamespaceSpecifier"||te==="ExportDefaultSpecifier"||te==="ImportNamespaceSpecifier"||te==="ImportDefaultSpecifier")G.push(B());else if(te==="ExportSpecifier"||te==="ImportSpecifier")M.push(B());else throw new Error(`Unknown specifier type ${JSON.stringify(te)}`)},"specifiers"),q.push(r(", ",G)),M.length>0&&(G.length>0&&q.push(", "),M.length>1||G.length>0||I.specifiers.some(te=>m(te))?q.push(s(["{",e([S.bracketSpacing?n:a,r([",",n],M)]),o(p(S)?",":""),S.bracketSpacing?n:a,"}"])):q.push(["{",S.bracketSpacing?" ":"",...M,S.bracketSpacing?" ":"","}"]))}else q.push("{}");return q}function F(b,S){let{type:B,importKind:I,source:q,specifiers:G}=b;return B!=="ImportDeclaration"||t(G)||I==="type"?!1:!/{\s*}/.test(S.originalText.slice(k(b),k(q)))}function i(b,S,B){let I=b.getNode();return t(I.assertions)?[" assert {",S.bracketSpacing?" ":"",r(", ",b.map(B,"assertions")),S.bracketSpacing?" ":"","}"]:""}function h(b,S,B){let I=b.getNode(),{type:q}=I,G=[],M=q==="ImportSpecifier"?I.importKind:I.exportKind;M&&M!=="value"&&G.push(M," ");let te=q.startsWith("Import"),j=te?"imported":"local",De=te?"local":"exported",U=I[j],R=I[De],pe="",be="";return q==="ExportNamespaceSpecifier"||q==="ImportNamespaceSpecifier"?pe="*":U&&(pe=B(j)),R&&!E(I)&&(be=B(De)),G.push(pe,pe&&be?" as ":"",be),G}function E(b){if(b.type!=="ImportSpecifier"&&b.type!=="ExportSpecifier")return!1;let{local:S,[b.type==="ImportSpecifier"?"imported":"exported"]:B}=b;if(S.type!==B.type||!A(S,B))return!1;if(C(S))return S.value===B.value&&w(S)===w(B);switch(S.type){case"Identifier":return S.name===B.name;default:return!1}}l.exports={printImportDeclaration:P,printExportDeclaration:_,printExportAllDeclaration:J,printModuleSpecifier:h}}}),ls=$({"src/language-js/print/object.js"(u,l){ue();var{printDanglingComments:t}=Qt(),{builders:{line:a,softline:s,group:e,indent:r,ifBreak:n,hardline:o}}=wt(),{getLast:c,hasNewlineInRange:y,hasNewline:m,isNonEmptyArray:g}=Gt(),{shouldPrintComma:p,hasComment:D,getComments:C,CommentCheckFlags:w,isNextLineEmpty:k}=ur(),{locStart:A,locEnd:N}=or(),{printOptionalToken:x,printTypeAnnotation:P}=qr(),{shouldHugFunctionParameters:_}=Zu(),{shouldHugType:J}=ei(),{printHardlineAfterHeritage:d}=mu();function T(f,F,i){let h=F.semi?";":"",E=f.getValue(),b;E.type==="TSTypeLiteral"?b="members":E.type==="TSInterfaceBody"?b="body":b="properties";let S=E.type==="ObjectTypeAnnotation",B=[b];S&&B.push("indexers","callProperties","internalSlots");let I=B.map(X=>E[X][0]).sort((X,se)=>A(X)-A(se))[0],q=f.getParentNode(0),G=S&&q&&(q.type==="InterfaceDeclaration"||q.type==="DeclareInterface"||q.type==="DeclareClass")&&f.getName()==="body",M=E.type==="TSInterfaceBody"||G||E.type==="ObjectPattern"&&q.type!=="FunctionDeclaration"&&q.type!=="FunctionExpression"&&q.type!=="ArrowFunctionExpression"&&q.type!=="ObjectMethod"&&q.type!=="ClassMethod"&&q.type!=="ClassPrivateMethod"&&q.type!=="AssignmentPattern"&&q.type!=="CatchClause"&&E.properties.some(X=>X.value&&(X.value.type==="ObjectPattern"||X.value.type==="ArrayPattern"))||E.type!=="ObjectPattern"&&I&&y(F.originalText,A(E),A(I)),te=G?";":E.type==="TSInterfaceBody"||E.type==="TSTypeLiteral"?n(h,";"):",",j=E.type==="RecordExpression"?"#{":E.exact?"{|":"{",De=E.exact?"|}":"}",U=[];for(let X of B)f.each(se=>{let we=se.getValue();U.push({node:we,printed:i(),loc:A(we)})},X);B.length>1&&U.sort((X,se)=>X.loc-se.loc);let R=[],pe=U.map(X=>{let se=[...R,e(X.printed)];return R=[te,a],(X.node.type==="TSPropertySignature"||X.node.type==="TSMethodSignature"||X.node.type==="TSConstructSignatureDeclaration")&&D(X.node,w.PrettierIgnore)&&R.shift(),k(X.node,F)&&R.push(o),se});if(E.inexact){let X;if(D(E,w.Dangling)){let se=D(E,w.Line);X=[t(f,F,!0),se||m(F.originalText,N(c(C(E))))?o:a,"..."]}else X=["..."];pe.push([...R,...X])}let be=c(E[b]),fe=!(E.inexact||be&&be.type==="RestElement"||be&&(be.type==="TSPropertySignature"||be.type==="TSCallSignatureDeclaration"||be.type==="TSMethodSignature"||be.type==="TSConstructSignatureDeclaration")&&D(be,w.PrettierIgnore)),Ie;if(pe.length===0){if(!D(E,w.Dangling))return[j,De,P(f,F,i)];Ie=e([j,t(f,F),s,De,x(f),P(f,F,i)])}else Ie=[G&&g(E.properties)?d(q):"",j,r([F.bracketSpacing?a:s,...pe]),n(fe&&(te!==","||p(F))?te:""),F.bracketSpacing?a:s,De,x(f),P(f,F,i)];return f.match(X=>X.type==="ObjectPattern"&&!X.decorators,(X,se,we)=>_(X)&&(se==="params"||se==="parameters"||se==="this"||se==="rest")&&we===0)||f.match(J,(X,se)=>se==="typeAnnotation",(X,se)=>se==="typeAnnotation",(X,se,we)=>_(X)&&(se==="params"||se==="parameters"||se==="this"||se==="rest")&&we===0)||!M&&f.match(X=>X.type==="ObjectPattern",X=>X.type==="AssignmentExpression"||X.type==="VariableDeclarator")?Ie:e(Ie,{shouldBreak:M})}l.exports={printObject:T}}}),va=$({"src/language-js/print/flow.js"(u,l){ue();var t=lr(),{printDanglingComments:a}=Qt(),{printString:s,printNumber:e}=Gt(),{builders:{hardline:r,softline:n,group:o,indent:c}}=wt(),{getParentExportDeclaration:y,isFunctionNotation:m,isGetterOrSetter:g,rawText:p,shouldPrintComma:D}=ur(),{locStart:C,locEnd:w}=or(),{replaceTextEndOfLine:k}=En(),{printClass:A}=mu(),{printOpaqueType:N,printTypeAlias:x,printIntersectionType:P,printUnionType:_,printFunctionType:J,printTupleType:d,printIndexedAccessType:T}=ei(),{printInterface:f}=$s(),{printTypeParameter:F,printTypeParameters:i}=ti(),{printExportDeclaration:h,printExportAllDeclaration:E}=Rs(),{printArrayItems:b}=Du(),{printObject:S}=ls(),{printPropertyKey:B}=fu(),{printOptionalToken:I,printTypeAnnotation:q,printRestSpread:G}=qr();function M(j,De,U){let R=j.getValue(),pe=De.semi?";":"",be=[];switch(R.type){case"DeclareClass":return te(j,A(j,De,U));case"DeclareFunction":return te(j,["function ",U("id"),R.predicate?" ":"",U("predicate"),pe]);case"DeclareModule":return te(j,["module ",U("id")," ",U("body")]);case"DeclareModuleExports":return te(j,["module.exports",": ",U("typeAnnotation"),pe]);case"DeclareVariable":return te(j,["var ",U("id"),pe]);case"DeclareOpaqueType":return te(j,N(j,De,U));case"DeclareInterface":return te(j,f(j,De,U));case"DeclareTypeAlias":return te(j,x(j,De,U));case"DeclareExportDeclaration":return te(j,h(j,De,U));case"DeclareExportAllDeclaration":return te(j,E(j,De,U));case"OpaqueType":return N(j,De,U);case"TypeAlias":return x(j,De,U);case"IntersectionTypeAnnotation":return P(j,De,U);case"UnionTypeAnnotation":return _(j,De,U);case"FunctionTypeAnnotation":return J(j,De,U);case"TupleTypeAnnotation":return d(j,De,U);case"GenericTypeAnnotation":return[U("id"),i(j,De,U,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return T(j,De,U);case"TypeAnnotation":return U("typeAnnotation");case"TypeParameter":return F(j,De,U);case"TypeofTypeAnnotation":return["typeof ",U("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[U("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(R.value);case"EnumDeclaration":return["enum ",U("id")," ",U("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":{if(R.type==="EnumSymbolBody"||R.explicitType){let fe=null;switch(R.type){case"EnumBooleanBody":fe="boolean";break;case"EnumNumberBody":fe="number";break;case"EnumStringBody":fe="string";break;case"EnumSymbolBody":fe="symbol";break}be.push("of ",fe," ")}if(R.members.length===0&&!R.hasUnknownMembers)be.push(o(["{",a(j,De),n,"}"]));else{let fe=R.members.length>0?[r,b(j,De,"members",U),R.hasUnknownMembers||D(De)?",":""]:[];be.push(o(["{",c([...fe,...R.hasUnknownMembers?[r,"..."]:[]]),a(j,De,!0),r,"}"]))}return be}case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[U("id")," = ",typeof R.init=="object"?U("init"):String(R.init)];case"EnumDefaultedMember":return U("id");case"FunctionTypeParam":{let fe=R.name?U("name"):j.getParentNode().this===R?"this":"";return[fe,I(j),fe?": ":"",U("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return f(j,De,U);case"ClassImplements":case"InterfaceExtends":return[U("id"),U("typeParameters")];case"NullableTypeAnnotation":return["?",U("typeAnnotation")];case"Variance":{let{kind:fe}=R;return t.ok(fe==="plus"||fe==="minus"),fe==="plus"?"+":"-"}case"ObjectTypeCallProperty":return R.static&&be.push("static "),be.push(U("value")),be;case"ObjectTypeIndexer":return[R.static?"static ":"",R.variance?U("variance"):"","[",U("id"),R.id?": ":"",U("key"),"]: ",U("value")];case"ObjectTypeProperty":{let fe="";return R.proto?fe="proto ":R.static&&(fe="static "),[fe,g(R)?R.kind+" ":"",R.variance?U("variance"):"",B(j,De,U),I(j),m(R)?"":": ",U("value")]}case"ObjectTypeAnnotation":return S(j,De,U);case"ObjectTypeInternalSlot":return[R.static?"static ":"","[[",U("id"),"]]",I(j),R.method?"":": ",U("value")];case"ObjectTypeSpreadProperty":return G(j,De,U);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[U("qualification"),".",U("id")];case"StringLiteralTypeAnnotation":return k(s(p(R),De));case"NumberLiteralTypeAnnotation":t.strictEqual(typeof R.value,"number");case"BigIntLiteralTypeAnnotation":return R.extra?e(R.extra.raw):e(R.raw);case"TypeCastExpression":return["(",U("expression"),q(j,De,U),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let fe=i(j,De,U,"params");if(De.parser==="flow"){let Ie=C(R),X=w(R),se=De.originalText.lastIndexOf("/*",Ie),we=De.originalText.indexOf("*/",X);if(se!==-1&&we!==-1){let _e=De.originalText.slice(se+2,we).trim();if(_e.startsWith("::")&&!_e.includes("/*")&&!_e.includes("*/"))return["/*:: ",fe," */"]}}return fe}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",U("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(R.type))}}function te(j,De){let U=y(j);return U?(t.strictEqual(U.type,"DeclareExportDeclaration"),De):["declare ",De]}l.exports={printFlow:M}}}),ba=$({"src/language-js/utils/is-ts-keyword-type.js"(u,l){ue();function t(a){let{type:s}=a;return s.startsWith("TS")&&s.endsWith("Keyword")}l.exports=t}}),Ms=$({"src/language-js/print/ternary.js"(u,l){ue();var{hasNewlineInRange:t}=Gt(),{isJsxNode:a,getComments:s,isCallExpression:e,isMemberExpression:r,isTSTypeExpression:n}=ur(),{locStart:o,locEnd:c}=or(),y=vn(),{builders:{line:m,softline:g,group:p,indent:D,align:C,ifBreak:w,dedent:k,breakParent:A}}=wt();function N(d){let T=[d];for(let f=0;fG[we]===F),te=G.type===F.type&&!M,j,De,U=0;do De=j||F,j=d.getParentNode(U),U++;while(j&&j.type===F.type&&b.every(we=>j[we]!==De));let R=j||G,pe=De;if(i&&(a(F[b[0]])||a(S)||a(B)||N(pe))){q=!0,te=!0;let we=it=>[w("("),D([g,it]),g,w(")")],_e=it=>it.type==="NullLiteral"||it.type==="Literal"&&it.value===null||it.type==="Identifier"&&it.name==="undefined";I.push(" ? ",_e(S)?f(h):we(f(h))," : ",B.type===F.type||_e(B)?f(E):we(f(E)))}else{let we=[m,"? ",S.type===F.type?w("","("):"",C(2,f(h)),S.type===F.type?w("",")"):"",m,": ",B.type===F.type?f(E):C(2,f(E))];I.push(G.type!==F.type||G[E]===F||M?we:T.useTabs?k(D(we)):C(Math.max(0,T.tabWidth-2),we))}let be=[...b.map(we=>s(F[we])),s(S),s(B)].flat().some(we=>y(we)&&t(T.originalText,o(we),c(we))),fe=we=>G===R?p(we,{shouldBreak:be}):be?[we,A]:we,Ie=!q&&(r(G)||G.type==="NGPipeExpression"&&G.left===F)&&!G.computed,X=_(d),se=fe([x(d,T,f),te?I:D(I),i&&Ie&&!X?g:""]);return M||X?p([D([g,se]),g]):se}l.exports={printTernary:J}}}),qs=$({"src/language-js/print/statement.js"(u,l){ue();var{builders:{hardline:t}}=wt(),a=Ln(),{getLeftSidePathName:s,hasNakedLeftSide:e,isJsxNode:r,isTheOnlyJsxElementInMarkdown:n,hasComment:o,CommentCheckFlags:c,isNextLineEmpty:y}=ur(),{shouldPrintParamsWithoutParens:m}=ri();function g(x,P,_,J){let d=x.getValue(),T=[],f=d.type==="ClassBody",F=p(d[J]);return x.each((i,h,E)=>{let b=i.getValue();if(b.type==="EmptyStatement")return;let S=_();!P.semi&&!f&&!n(P,i)&&D(i,P)?o(b,c.Leading)?T.push(_([],{needsSemi:!0})):T.push(";",S):T.push(S),!P.semi&&f&&A(b)&&N(b,E[h+1])&&T.push(";"),b!==F&&(T.push(t),y(b,P)&&T.push(t))},J),T}function p(x){for(let P=x.length-1;P>=0;P--){let _=x[P];if(_.type!=="EmptyStatement")return _}}function D(x,P){return x.getNode().type!=="ExpressionStatement"?!1:x.call(_=>C(_,P),"expression")}function C(x,P){let _=x.getValue();switch(_.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":{if(!m(x,P))return!0;break}case"UnaryExpression":{let{prefix:J,operator:d}=_;if(J&&(d==="+"||d==="-"))return!0;break}case"BindExpression":{if(!_.object)return!0;break}case"Literal":{if(_.regex)return!0;break}default:if(r(_))return!0}return a(x,P)?!0:e(_)?x.call(J=>C(J,P),...s(x,_)):!1}function w(x,P,_){return g(x,P,_,"body")}function k(x,P,_){return g(x,P,_,"consequent")}var A=x=>{let{type:P}=x;return P==="ClassProperty"||P==="PropertyDefinition"||P==="ClassPrivateProperty"||P==="ClassAccessorProperty"||P==="AccessorProperty"||P==="TSAbstractPropertyDefinition"||P==="TSAbstractAccessorProperty"};function N(x,P){let{type:_,name:J}=x.key;if(!x.computed&&_==="Identifier"&&(J==="static"||J==="get"||J==="set"||J==="accessor")&&!x.value&&!x.typeAnnotation)return!0;if(!P||P.static||P.accessibility)return!1;if(!P.computed){let d=P.key&&P.key.name;if(d==="in"||d==="instanceof")return!0}if(A(P)&&P.variance&&!P.static&&!P.declare)return!0;switch(P.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return P.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((P.value?P.value.async:P.async)||P.kind==="get"||P.kind==="set")return!1;let d=P.value?P.value.generator:P.generator;return!!(P.computed||d)}case"TSIndexSignature":return!0}return!1}l.exports={printBody:w,printSwitchCaseConsequent:k}}}),Vs=$({"src/language-js/print/block.js"(u,l){ue();var{printDanglingComments:t}=Qt(),{isNonEmptyArray:a}=Gt(),{builders:{hardline:s,indent:e}}=wt(),{hasComment:r,CommentCheckFlags:n,isNextLineEmpty:o}=ur(),{printHardlineAfterHeritage:c}=mu(),{printBody:y}=qs();function m(p,D,C){let w=p.getValue(),k=[];if(w.type==="StaticBlock"&&k.push("static "),w.type==="ClassBody"&&a(w.body)){let N=p.getParentNode();k.push(c(N))}k.push("{");let A=g(p,D,C);if(A)k.push(e([s,A]),s);else{let N=p.getParentNode(),x=p.getParentNode(1);N.type==="ArrowFunctionExpression"||N.type==="FunctionExpression"||N.type==="FunctionDeclaration"||N.type==="ObjectMethod"||N.type==="ClassMethod"||N.type==="ClassPrivateMethod"||N.type==="ForStatement"||N.type==="WhileStatement"||N.type==="DoWhileStatement"||N.type==="DoExpression"||N.type==="CatchClause"&&!x.finalizer||N.type==="TSModuleDeclaration"||N.type==="TSDeclareFunction"||w.type==="StaticBlock"||w.type==="ClassBody"||k.push(s)}return k.push("}"),k}function g(p,D,C){let w=p.getValue(),k=a(w.directives),A=w.body.some(P=>P.type!=="EmptyStatement"),N=r(w,n.Dangling);if(!k&&!A&&!N)return"";let x=[];if(k&&p.each((P,_,J)=>{x.push(C()),(_"]),Q=[m("("),c([n,X("expression")]),n,m(")")];return it?y([[ae,X("expression")],[ae,o(Q,{shouldBreak:!0})],[ae,X("expression")]]):o([ae,X("expression")])}case"TSDeclareFunction":return B(fe,X,Ie);case"TSExportAssignment":return["export = ",X("expression"),we];case"TSModuleBlock":return G(fe,Ie,X);case"TSInterfaceBody":case"TSTypeLiteral":return F(fe,Ie,X);case"TSTypeAliasDeclaration":return M(fe,Ie,X);case"TSQualifiedName":return s(".",[X("left"),X("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return h(fe,Ie,X);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return i(fe,Ie,X);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return _e.push(X("expression")),se.typeParameters&&_e.push(X("typeParameters")),_e;case"TSTemplateLiteralType":return T(fe,X,Ie);case"TSNamedTupleMember":return[X("label"),se.optional?"?":"",": ",X("elementType")];case"TSRestType":return["...",X("typeAnnotation")];case"TSOptionalType":return[X("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return q(fe,Ie,X);case"TSClassImplements":return[X("expression"),X("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return b(fe,Ie,X,"params");case"TSTypeParameter":return E(fe,Ie,X);case"TSSatisfiesExpression":case"TSAsExpression":{let it=se.type==="TSAsExpression"?"as":"satisfies";_e.push(X("expression"),` ${it} `,X("typeAnnotation"));let ae=fe.getParentNode();return C(ae)&&ae.callee===se||w(ae)&&ae.object===se?o([c([n,..._e]),n]):_e}case"TSArrayType":return[X("elementType"),"[]"];case"TSPropertySignature":return se.readonly&&_e.push("readonly "),_e.push(S(fe,Ie,X),x(fe)),se.typeAnnotation&&_e.push(": ",X("typeAnnotation")),se.initializer&&_e.push(" = ",X("initializer")),_e;case"TSParameterProperty":return se.accessibility&&_e.push(se.accessibility+" "),se.export&&_e.push("export "),se.static&&_e.push("static "),se.override&&_e.push("override "),se.readonly&&_e.push("readonly "),_e.push(X("parameter")),_e;case"TSTypeQuery":return["typeof ",X("exprName"),X("typeParameters")];case"TSIndexSignature":{let it=fe.getParentNode(),ae=se.parameters.length>1?m(D(Ie)?",":""):"",Q=o([c([n,s([", ",n],fe.map(X,"parameters"))]),ae,n]);return[se.export?"export ":"",se.accessibility?[se.accessibility," "]:"",se.static?"static ":"",se.readonly?"readonly ":"",se.declare?"declare ":"","[",se.parameters?Q:"",se.typeAnnotation?"]: ":"]",se.typeAnnotation?X("typeAnnotation"):"",it.type==="ClassBody"?we:""]}case"TSTypePredicate":return[se.asserts?"asserts ":"",X("parameterName"),se.typeAnnotation?[" is ",X("typeAnnotation")]:""];case"TSNonNullExpression":return[X("expression"),"!"];case"TSImportType":return[se.isTypeOf?"typeof ":"","import(",X(se.parameter?"parameter":"argument"),")",se.qualifier?[".",X("qualifier")]:"",b(fe,Ie,X,"typeParameters")];case"TSLiteralType":return X("literal");case"TSIndexedAccessType":return R(fe,Ie,X);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":{if(se.type==="TSConstructorType"&&se.abstract&&_e.push("abstract "),se.type!=="TSCallSignatureDeclaration"&&_e.push("new "),_e.push(o(J(fe,X,Ie,!1,!0))),se.returnType||se.typeAnnotation){let it=se.type==="TSConstructorType";_e.push(it?" => ":": ",X("returnType"),X("typeAnnotation"))}return _e}case"TSTypeOperator":return[se.operator," ",X("typeAnnotation")];case"TSMappedType":{let it=a(Ie.originalText,A(se),N(se));return o(["{",c([Ie.bracketSpacing?e:n,X("typeParameter"),se.optional?p(se.optional,"?"):"",se.typeAnnotation?": ":"",X("typeAnnotation"),m(we)]),t(fe,Ie,!0),Ie.bracketSpacing?e:n,"}"],{shouldBreak:it})}case"TSMethodSignature":{let it=se.kind&&se.kind!=="method"?`${se.kind} `:"";_e.push(se.accessibility?[se.accessibility," "]:"",it,se.export?"export ":"",se.static?"static ":"",se.readonly?"readonly ":"",se.abstract?"abstract ":"",se.declare?"declare ":"",se.computed?"[":"",X("key"),se.computed?"]":"",x(fe));let ae=J(fe,X,Ie,!1,!0),Q=se.returnType?"returnType":"typeAnnotation",me=se[Q],Ce=me?X(Q):"",Re=d(se,Ce);return _e.push(Re?o(ae):ae),me&&_e.push(": ",o(Ce)),o(_e)}case"TSNamespaceExportDeclaration":return _e.push("export as namespace ",X("id")),Ie.semi&&_e.push(";"),o(_e);case"TSEnumDeclaration":return se.declare&&_e.push("declare "),se.modifiers&&_e.push(P(fe,Ie,X)),se.const&&_e.push("const "),_e.push("enum ",X("id")," "),se.members.length===0?_e.push(o(["{",t(fe,Ie),n,"}"])):_e.push(o(["{",c([r,f(fe,Ie,"members",X),D(Ie,"es5")?",":""]),t(fe,Ie,!0),r,"}"])),_e;case"TSEnumMember":return se.computed?_e.push("[",X("id"),"]"):_e.push(X("id")),se.initializer&&_e.push(" = ",X("initializer")),_e;case"TSImportEqualsDeclaration":return se.isExport&&_e.push("export "),_e.push("import "),se.importKind&&se.importKind!=="value"&&_e.push(se.importKind," "),_e.push(X("id")," = ",X("moduleReference")),Ie.semi&&_e.push(";"),o(_e);case"TSExternalModuleReference":return["require(",X("expression"),")"];case"TSModuleDeclaration":{let it=fe.getParentNode(),ae=g(se.id),Q=it.type==="TSModuleDeclaration",me=se.body&&se.body.type==="TSModuleDeclaration";if(Q)_e.push(".");else{se.declare&&_e.push("declare "),_e.push(P(fe,Ie,X));let Ce=Ie.originalText.slice(A(se),A(se.id));se.id.type==="Identifier"&&se.id.name==="global"&&!/namespace|module/.test(Ce)||_e.push(ae||/(?:^|\s)module(?:\s|$)/.test(Ce)?"module ":"namespace ")}return _e.push(X("id")),me?_e.push(X("body")):se.body?_e.push(" ",o(X("body"))):_e.push(we),_e}case"TSConditionalType":return _(fe,Ie,X);case"TSInferType":return["infer"," ",X("typeParameter")];case"TSIntersectionType":return te(fe,Ie,X);case"TSUnionType":return j(fe,Ie,X);case"TSFunctionType":return De(fe,Ie,X);case"TSTupleType":return U(fe,Ie,X);case"TSTypeReference":return[X("typeName"),b(fe,Ie,X,"typeParameters")];case"TSTypeAnnotation":return X("typeAnnotation");case"TSEmptyBodyFunctionExpression":return I(fe,Ie,X);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return pe(fe,X,"?");case"TSJSDocNonNullableType":return pe(fe,X,"!");case"TSInstantiationExpression":return[X("expression"),X("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(se.type)}.`)}}l.exports={printTypescript:be}}}),xa=$({"src/language-js/print/comment.js"(u,l){ue();var{hasNewline:t}=Gt(),{builders:{join:a,hardline:s},utils:{replaceTextEndOfLine:e}}=wt(),{isLineComment:r}=ur(),{locStart:n,locEnd:o}=or(),c=vn();function y(p,D){let C=p.getValue();if(r(C))return D.originalText.slice(n(C),o(C)).trimEnd();if(c(C)){if(m(C)){let A=g(C);return C.trailing&&!t(D.originalText,n(C),{backwards:!0})?[s,A]:A}let w=o(C),k=D.originalText.slice(w-3,w)==="*-/";return["/*",e(C.value),k?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(C))}function m(p){let D=`*${p.value}*`.split(`
+`);return D.length>1&&D.every(C=>C.trim()[0]==="*")}function g(p){let D=p.value.split(`
+`);return["/*",a(s,D.map((C,w)=>w===0?C.trimEnd():" "+(w{let{marker:tr}=jt;return tr===F});return[Ke("expression"),x(ht,tt)?"":ar,Tt?[" ",Tt]:""]}case"ParenthesizedExpression":return!A(dt.expression)&&(dt.expression.type==="ObjectExpression"||dt.expression.type==="ArrayExpression")?["(",Ke("expression"),")"]:o(["(",c([n,Ke("expression")]),n,")"]);case"AssignmentExpression":return xe(tt,ht,Ke);case"VariableDeclarator":return bt(tt,ht,Ke);case"BinaryExpression":case"LogicalExpression":return H(tt,ht,Ke);case"AssignmentPattern":return[Ke("left")," = ",Ke("right")];case"OptionalMemberExpression":case"MemberExpression":return oe(tt,ht,Ke);case"MetaProperty":return[Ke("meta"),".",Ke("property")];case"BindExpression":return dt.object&&Dt.push(Ke("object")),Dt.push(o(c([n,j(tt,ht,Ke)]))),Dt;case"Identifier":return[dt.name,te(tt),pe(tt),De(tt,ht,Ke)];case"V8IntrinsicIdentifier":return["%",dt.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return R(tt,ht,Ke);case"FunctionDeclaration":case"FunctionExpression":return Xe(tt,Ke,ht,pr);case"ArrowFunctionExpression":return Ye(tt,ht,Ke,pr);case"YieldExpression":return Dt.push("yield"),dt.delegate&&Dt.push("*"),dt.argument&&Dt.push(" ",Ke("argument")),Dt;case"AwaitExpression":{if(Dt.push("await"),dt.argument){Dt.push(" ",Ke("argument"));let Tt=tt.getParentNode();if(T(Tt)&&Tt.callee===dt||f(Tt)&&Tt.object===dt){Dt=[c([n,...Dt]),n];let jt=tt.findAncestor(tr=>tr.type==="AwaitExpression"||tr.type==="BlockStatement");if(!jt||jt.type!=="AwaitExpression")return o(Dt)}}return Dt}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Ie(tt,ht,Ke);case"ExportAllDeclaration":return X(tt,ht,Ke);case"ImportDeclaration":return fe(tt,ht,Ke);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return se(tt,ht,Ke);case"ImportAttribute":return[Ke("key"),": ",Ke("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return Be(tt,ht,Ke);case"ThrowStatement":return It(tt,ht,Ke);case"ReturnStatement":return Rt(tt,ht,Ke);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Et(tt,ht,Ke);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ae(tt,ht,Ke);case"ObjectProperty":case"Property":return dt.method||dt.kind==="get"||dt.kind==="set"?Ct(tt,ht,Ke):Re(tt,ht,Ke);case"ObjectMethod":return Ct(tt,ht,Ke);case"Decorator":return["@",Ke("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return it(tt,ht,Ke);case"SequenceExpression":{let Tt=tt.getParentNode(0);if(Tt.type==="ExpressionStatement"||Tt.type==="ForStatement"){let jt=[];return tt.each((tr,ft)=>{ft===0?jt.push(Ke()):jt.push(",",c([e,Ke()]))},"expressions"),o(jt)}return o(s([",",e],tt.map(Ke,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[Ke("value"),ar];case"DirectiveLiteral":return be(dt.extra.raw,ht);case"UnaryExpression":return Dt.push(dt.operator),/[a-z]$/.test(dt.operator)&&Dt.push(" "),A(dt.argument)?Dt.push(o(["(",c([n,Ke("argument")]),n,")"])):Dt.push(Ke("argument")),Dt;case"UpdateExpression":return Dt.push(Ke("argument"),dt.operator),dt.prefix&&Dt.reverse(),Dt;case"ConditionalExpression":return we(tt,ht,Ke);case"VariableDeclaration":{let Tt=tt.map(Ke,"declarations"),jt=tt.getParentNode(),tr=jt.type==="ForStatement"||jt.type==="ForInStatement"||jt.type==="ForOfStatement",ft=dt.declarations.some(Bt=>Bt.init),Pt;return Tt.length===1&&!A(dt.declarations[0])?Pt=Tt[0]:Tt.length>0&&(Pt=c(Tt[0])),Dt=[dt.declare?"declare ":"",dt.kind,Pt?[" ",Pt]:"",c(Tt.slice(1).map(Bt=>[",",ft&&!tr?r:e,Bt]))],tr&&jt.body!==dt||Dt.push(ar),o(Dt)}case"WithStatement":return o(["with (",Ke("object"),")",U(dt.body,Ke("body"))]);case"IfStatement":{let Tt=U(dt.consequent,Ke("consequent")),jt=o(["if (",o([c([n,Ke("test")]),n]),")",Tt]);if(Dt.push(jt),dt.alternate){let tr=A(dt.consequent,N.Trailing|N.Line)||J(dt),ft=dt.consequent.type==="BlockStatement"&&!tr;Dt.push(ft?" ":r),A(dt,N.Dangling)&&Dt.push(t(tt,ht,!0),tr?r:" "),Dt.push("else",o(U(dt.alternate,Ke("alternate"),dt.alternate.type==="IfStatement")))}return Dt}case"ForStatement":{let Tt=U(dt.body,Ke("body")),jt=t(tt,ht,!0),tr=jt?[jt,n]:"";return!dt.init&&!dt.test&&!dt.update?[tr,o(["for (;;)",Tt])]:[tr,o(["for (",o([c([n,Ke("init"),";",e,Ke("test"),";",e,Ke("update")]),n]),")",Tt])]}case"WhileStatement":return o(["while (",o([c([n,Ke("test")]),n]),")",U(dt.body,Ke("body"))]);case"ForInStatement":return o(["for (",Ke("left")," in ",Ke("right"),")",U(dt.body,Ke("body"))]);case"ForOfStatement":return o(["for",dt.await?" await":""," (",Ke("left")," of ",Ke("right"),")",U(dt.body,Ke("body"))]);case"DoWhileStatement":{let Tt=U(dt.body,Ke("body"));return Dt=[o(["do",Tt])],dt.body.type==="BlockStatement"?Dt.push(" "):Dt.push(r),Dt.push("while (",o([c([n,Ke("test")]),n]),")",ar),Dt}case"DoExpression":return[dt.async?"async ":"","do ",Ke("body")];case"BreakStatement":return Dt.push("break"),dt.label&&Dt.push(" ",Ke("label")),Dt.push(ar),Dt;case"ContinueStatement":return Dt.push("continue"),dt.label&&Dt.push(" ",Ke("label")),Dt.push(ar),Dt;case"LabeledStatement":return dt.body.type==="EmptyStatement"?[Ke("label"),":;"]:[Ke("label"),": ",Ke("body")];case"TryStatement":return["try ",Ke("block"),dt.handler?[" ",Ke("handler")]:"",dt.finalizer?[" finally ",Ke("finalizer")]:""];case"CatchClause":if(dt.param){let Tt=A(dt.param,tr=>!E(tr)||tr.leading&&a(ht.originalText,h(tr))||tr.trailing&&a(ht.originalText,i(tr),{backwards:!0})),jt=Ke("param");return["catch ",Tt?["(",c([n,jt]),n,") "]:["(",jt,") "],Ke("body")]}return["catch ",Ke("body")];case"SwitchStatement":return[o(["switch (",c([n,Ke("discriminant")]),n,")"])," {",dt.cases.length>0?c([r,s(r,tt.map((Tt,jt,tr)=>{let ft=Tt.getValue();return[Ke(),jt!==tr.length-1&&_(ft,ht)?r:""]},"cases"))]):"",r,"}"];case"SwitchCase":{dt.test?Dt.push("case ",Ke("test"),":"):Dt.push("default:"),A(dt,N.Dangling)&&Dt.push(" ",t(tt,ht,!0));let Tt=dt.consequent.filter(jt=>jt.type!=="EmptyStatement");if(Tt.length>0){let jt=ke(tt,ht,Ke);Dt.push(Tt.length===1&&Tt[0].type==="BlockStatement"?[" ",jt]:c([r,jt]))}return Dt}case"DebuggerStatement":return["debugger",ar];case"ClassDeclaration":case"ClassExpression":return Q(tt,ht,Ke);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return me(tt,ht,Ke);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Ce(tt,ht,Ke);case"TemplateElement":return y(dt.value.raw);case"TemplateLiteral":return _e(tt,Ke,ht);case"TaggedTemplateExpression":return[Ke("tag"),Ke("typeParameters"),Ke("quasi")];case"PrivateIdentifier":return["#",Ke("name")];case"PrivateName":return["#",Ke("id")];case"InterpreterDirective":return Dt.push("#!",dt.value,r),_(dt,ht)&&Dt.push(r),Dt;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{Dt.push("module {");let Tt=Ke("body");return Tt&&Dt.push(c([r,Tt]),r),Dt.push("}"),Dt}default:throw new Error("unknown type: "+JSON.stringify(dt.type))}}function ze(tt){return tt.type&&!E(tt)&&!P(tt)&&tt.type!=="EmptyStatement"&&tt.type!=="TemplateElement"&&tt.type!=="Import"&&tt.type!=="TSEmptyBodyFunctionExpression"}l.exports={preprocess:w,print:K,embed:m,insertPragma:p,massageAstNode:g,hasPrettierIgnore(tt){return d(tt)||q(tt)},willPrintOwnComments:D.willPrintOwnComments,canAttachComment:ze,printComment:ut,isBlockComment:E,handleComments:{avoidAstMutation:!0,ownLine:D.handleOwnLineComment,endOfLine:D.handleEndOfLineComment,remaining:D.handleRemainingComment},getCommentChildNodes:D.getCommentChildNodes}}}),wa=$({"src/language-js/printer-estree-json.js"(u,l){ue();var{builders:{hardline:t,indent:a,join:s}}=wt(),e=Is();function r(y,m,g){let p=y.getValue();switch(p.type){case"JsonRoot":return[g("node"),t];case"ArrayExpression":{if(p.elements.length===0)return"[]";let D=y.map(()=>y.getValue()===null?"null":g(),"elements");return["[",a([t,s([",",t],D)]),t,"]"]}case"ObjectExpression":return p.properties.length===0?"{}":["{",a([t,s([",",t],y.map(g,"properties"))]),t,"}"];case"ObjectProperty":return[g("key"),": ",g("value")];case"UnaryExpression":return[p.operator==="+"?"":p.operator,g("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return p.value?"true":"false";case"StringLiteral":return JSON.stringify(p.value);case"NumericLiteral":return n(y)?JSON.stringify(String(p.value)):JSON.stringify(p.value);case"Identifier":return n(y)?JSON.stringify(p.name):p.name;case"TemplateLiteral":return g(["quasis",0]);case"TemplateElement":return JSON.stringify(p.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(p.type))}}function n(y){return y.getName()==="key"&&y.getParentNode().type==="ObjectProperty"}var o=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function c(y,m){let{type:g}=y;if(g==="ObjectProperty"){let{key:p}=y;p.type==="Identifier"?m.key={type:"StringLiteral",value:p.name}:p.type==="NumericLiteral"&&(m.key={type:"StringLiteral",value:String(p.value)});return}if(g==="UnaryExpression"&&y.operator==="+")return m.argument;if(g==="ArrayExpression"){for(let[p,D]of y.elements.entries())D===null&&m.elements.splice(p,0,{type:"NullLiteral"});return}if(g==="TemplateLiteral")return{type:"StringLiteral",value:y.quasis[0].value.cooked}}c.ignoredProperties=o,l.exports={preprocess:e,print:r,massageAstNode:c}}}),On=$({"src/common/common-options.js"(u,l){ue();var t="Common";l.exports={bracketSpacing:{since:"0.0.0",category:t,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:t,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:t,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:t,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:t,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),Na=$({"src/language-js/options.js"(u,l){ue();var t=On(),a="JavaScript";l.exports={arrowParens:{since:"1.9.0",category:a,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:t.bracketSameLine,bracketSpacing:t.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:a,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:a,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:t.singleQuote,jsxSingleQuote:{since:"1.15.0",category:a,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:a,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:a,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:t.singleAttributePerLine}}}),_a=$({"src/language-js/parse/parsers.js"(){ue()}}),ps=$({"node_modules/linguist-languages/data/JavaScript.json"(u,l){l.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),ka=$({"node_modules/linguist-languages/data/TypeScript.json"(u,l){l.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),Pa=$({"node_modules/linguist-languages/data/TSX.json"(u,l){l.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),Us=$({"node_modules/linguist-languages/data/JSON.json"(u,l){l.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),Ia=$({"node_modules/linguist-languages/data/JSON with Comments.json"(u,l){l.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),ja=$({"node_modules/linguist-languages/data/JSON5.json"(u,l){l.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),La=$({"src/language-js/index.js"(u,l){ue();var t=vr(),a=Ba(),s=wa(),e=Na(),r=_a(),n=[t(ps(),c=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...c.interpreters,"zx"],extensions:[...c.extensions.filter(y=>y!==".jsx"),".wxs"]})),t(ps(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),t(ps(),()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),t(ka(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),t(Pa(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),t(Us(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),t(Us(),c=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:c.extensions.filter(y=>y!==".jsonl")})),t(Ia(),c=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...c.filenames,".eslintrc",".swcrc"]})),t(ja(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],o={estree:a,"estree-json":s};l.exports={languages:n,options:e,printers:o,parsers:r}}}),Oa=$({"src/language-css/clean.js"(u,l){ue();var{isFrontMatterNode:t}=Gt(),a=mr(),s=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function e(n,o,c){if(t(n)&&n.lang==="yaml"&&delete o.value,n.type==="css-comment"&&c.type==="css-root"&&c.nodes.length>0&&((c.nodes[0]===n||t(c.nodes[0])&&c.nodes[1]===n)&&(delete o.text,/^\*\s*@(?:format|prettier)\s*$/.test(n.text))||c.type==="css-root"&&a(c.nodes)===n))return null;if(n.type==="value-root"&&delete o.text,(n.type==="media-query"||n.type==="media-query-list"||n.type==="media-feature-expression")&&delete o.value,n.type==="css-rule"&&delete o.params,n.type==="selector-combinator"&&(o.value=o.value.replace(/\s+/g," ")),n.type==="media-feature"&&(o.value=o.value.replace(/ /g,"")),(n.type==="value-word"&&(n.isColor&&n.isHex||["initial","inherit","unset","revert"].includes(o.value.replace().toLowerCase()))||n.type==="media-feature"||n.type==="selector-root-invalid"||n.type==="selector-pseudo")&&(o.value=o.value.toLowerCase()),n.type==="css-decl"&&(o.prop=o.prop.toLowerCase()),(n.type==="css-atrule"||n.type==="css-import")&&(o.name=o.name.toLowerCase()),n.type==="value-number"&&(o.unit=o.unit.toLowerCase()),(n.type==="media-feature"||n.type==="media-keyword"||n.type==="media-type"||n.type==="media-unknown"||n.type==="media-url"||n.type==="media-value"||n.type==="selector-attribute"||n.type==="selector-string"||n.type==="selector-class"||n.type==="selector-combinator"||n.type==="value-string")&&o.value&&(o.value=r(o.value)),n.type==="selector-attribute"&&(o.attribute=o.attribute.trim(),o.namespace&&typeof o.namespace=="string"&&(o.namespace=o.namespace.trim(),o.namespace.length===0&&(o.namespace=!0)),o.value&&(o.value=o.value.trim().replace(/^["']|["']$/g,""),delete o.quoted)),(n.type==="media-value"||n.type==="media-type"||n.type==="value-number"||n.type==="selector-root-invalid"||n.type==="selector-class"||n.type==="selector-combinator"||n.type==="selector-tag")&&o.value&&(o.value=o.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(y,m,g)=>{let p=Number(m);return Number.isNaN(p)?y:p+g.toLowerCase()})),n.type==="selector-tag"){let y=n.value.toLowerCase();["from","to"].includes(y)&&(o.value=y)}if(n.type==="css-atrule"&&n.name.toLowerCase()==="supports"&&delete o.value,n.type==="selector-unknown"&&delete o.value,n.type==="value-comma_group"){let y=n.groups.findIndex(m=>m.type==="value-number"&&m.unit==="...");y!==-1&&(o.groups[y].unit="",o.groups.splice(y+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(n.type==="value-comma_group"&&n.groups.some(y=>y.type==="value-atword"&&y.value.endsWith("[")||y.type==="value-word"&&y.value.startsWith("]")))return{type:"value-atword",value:n.groups.map(y=>y.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}e.ignoredProperties=s;function r(n){return n.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}l.exports=e}}),cs=$({"src/utils/front-matter/print.js"(u,l){ue();var{builders:{hardline:t,markAsRoot:a}}=wt();function s(e,r){if(e.lang==="yaml"){let n=e.value.trim(),o=n?r(n,{parser:"yaml"},{stripTrailingHardline:!0}):"";return a([e.startDelimiter,t,o,o?t:"",e.endDelimiter])}}l.exports=s}}),$a=$({"src/language-css/embed.js"(u,l){ue();var{builders:{hardline:t}}=wt(),a=cs();function s(e,r,n){let o=e.getValue();if(o.type==="front-matter"){let c=a(o,n);return c?[c,t]:""}}l.exports=s}}),Gs=$({"src/utils/front-matter/parse.js"(u,l){ue();var t=new RegExp("^(?-{3}|\\+{3})(?