You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
194 KiB

var Wa=Object.defineProperty;var Js=e=>{throw TypeError(e)};var Ar=(e,t)=>{for(var r in t)Wa(e,r,{get:t[r],enumerable:!0})};var qs=(e,t,r)=>t.has(e)||Js("Cannot "+r);var pt=(e,t,r)=>(qs(e,t,"read from private field"),r?r.call(e):t.get(e)),Ws=(e,t,r)=>t.has(e)?Js("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Gs=(e,t,r,n)=>(qs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var _s={};Ar(_s,{languages:()=>nm,options:()=>va,printers:()=>rm});var Us=[{linguistLanguageId:183,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",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,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",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var ws={};Ar(ws,{canAttachComment:()=>fp,embed:()=>Qu,experimentalFeatures:()=>Kl,getCommentChildNodes:()=>Ep,getVisitorKeys:()=>gr,handleComments:()=>Kn,insertPragma:()=>pi,isBlockComment:()=>re,isGap:()=>Fp,massageAstNode:()=>Cu,print:()=>Ia,printComment:()=>Pu,willPrintOwnComments:()=>zn});var Ga=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},N=Ga;var Ua=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},O=Ua;function Na(e){return e!==null&&typeof e=="object"}var Ns=Na;function*Xa(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Ns(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*Ya(e,t){let r=[e];for(let n=0;n<r.length;n++){let s=r[n];for(let u of Xa(s,t))yield u,r.push(u)}}function Xs(e,{getVisitorKeys:t,predicate:r}){for(let n of Ya(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}var Ys=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u273
`)return t-2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
`)return t+2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var Ue=$a;function Ka(e,t,r={}){let n=Ge(e,r.backwards?t-1:t,r),s=Ue(e,n,r);return n!==s}var te=Ka;function za(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Lt=za;function Qa(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?zs(e,t):t}var wt=Qa;function Za(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ks(e,n),n=Lt(e,n),n=Ge(e,n);return n=wt(e,n),n=Ue(e,n),n!==!1&&te(e,n)}var Ot=Za;function eo(e){return Array.isArray(e)&&e.length>0}var w=eo;var dr="'",Qs='"';function to(e,t){let r=t===!0||t===dr?dr:Qs,n=r===dr?Qs:dr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var xr=to;function ro(e,t,r){let n=t==='"'?"'":'"',u=N(!1,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var Zs=ro;function no(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":xr(r,t.singleQuote);return Zs(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var tt=no;function R(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(R(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ht(e,t){let r=R(e);return Number.isInteger(r)&&r===R(t)}function so(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function eu(e,t){return ht(e,t)&&so(e,t)}var Qt=null;function Zt(e){if(Qt!==null&&typeof Qt.property){let t=Qt;return Qt=Zt.prototype=null,t}return Qt=Zt.prototype=e??Object.create(null),new Zt}var uo=10;for(let e=0;e<=uo;e++)Zt();function In(e){return Zt(e)}function io(e,t="type"){In(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var hr=io;var tu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParam
`):e.type==="UnaryExpression"?rr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:kr(e)}function Oe(e,t){return X(t)?Bt(t):d(t,g.Leading,r=>te(e,k(r)))}function nu(e){return e.quasis.some(t=>t.value.raw.includes(`
`))}function Lr(e,t){return(e.type==="TemplateLiteral"&&nu(e)||e.type==="TaggedTemplateExpression"&&nu(e.quasi))&&!te(t,R(e),{backwards:!0})}function wr(e){if(!d(e))return!1;let t=O(!1,ct(e,g.Dangling),-1);return t&&!re(t)}function lu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(_t(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of oe(r))if(_t(n))return!0}return!1}function Or(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var xo=new Set(["!","-","+","~"]);function be(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return be(e.expression,t);let r=n=>be(n,t-1);if(vn(e))return et(e.pattern??e.regex.pattern)<=5;if(kr(e)||Do(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(U(e))return e.elements.every(n=>n===null||r(n));if(lt(e)){if(e.type==="ImportExpression"||be(e.callee,t)){let n=oe(e);return n.length<=t&&n.every(r)}return!1}return q(e)?be(e.object,t)&&be(e.property,t):e.type==="UnaryExpression"&&xo.has(e.operator)||e.type==="UpdateExpression"?be(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function mu(e){return e}function ae(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ie(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ie(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ie(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ie(e.callee,t);case"ConditionalExpression":return ie(e.test,t);case"UpdateExpression":return!e.prefix&&ie(e.argument,t);case"BindExpression":return e.object&&ie(e.object,t);case"SequenceExpression":return ie(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie(e.expression,t);default:return t(e)}}var su={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},_n={">>":!0,">>>":!0,"<<":!0};function nr(e,t){return!(er(t)!==er(e)||e==="**"||su[e]&&su[t]||t==="%"&&br[e]||e==="%"&&br[t]||t!==e&&br[t]&&br[e]||_n[e]&&_n[t])}var ho=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function er(e){return ho.get(e)}function yu(e){return!!_n[e]||e==="|"||e==="^"||e==="&"}function Du(e){var r;if(e.rest)return!0;let t=K(e);return((r=O(!1,t,-1))==null?void 0:r.type)==="RestElement"}var wn=new WeakMap;function K(e){if(wn.has(e))return wn.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),wn.set(e,t),t}function fu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var On=new WeakMap;function oe(e){if(On.has(e))return On.get(e);if(e.type==="ChainExpression")return oe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes),e.options&&t.push(e.options)),On.set(e,t),t}function Rt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>Rt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function Rn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.attributes||e.options?-2:-1))return[...r,"source"];if(e.attributes&&(t===1||t===-1))return[...r,"attributes"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function sr(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function Bt(e){return(e==null?void 0:e.prettierIgnore)||d(e,g.PrettierIgnore)}var g={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Eu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&g.Leading&&!r.leading||e&g.Trailing&&!r.trailing||e&g.Dangling&&(r.leading||r.trailing)||e&g.Block&&!re(r)||e&g.Line&&!vt(r)||e&g.First&&n!==0||e&g.Last&&n!==s.length-1||e&g.PrettierIgnore&&!sr(r)||t&&!t(r))};function d(e,t,r){if(!w
Expected it to be 'string' or 'object'.`;if(ut(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Bo([...jr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var Jn=class extends Error{name="InvalidDocError";constructor(t){super(bo(t)),this.doc=t}},Ct=Jn;var Au={};function Po(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Au){r(s.pop());continue}r&&s.push(u,Au);let i=ut(u);if(!i)throw new Ct(u);if((t==null?void 0:t(u))!==!1)switch(i){case _e:case Pe:{let a=i===_e?u:u.parts;for(let o=a.length,c=o-1;c>=0;--c)s.push(a[c]);break}case xe:s.push(u.flatContents,u.breakContents);break;case le:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case Ye:case Xe:case He:case je:case Ve:s.push(u.contents);break;case rt:case nt:case st:case $e:case me:case ve:break;default:throw new Ct(u)}}}var qn=Po;var Tu=()=>{},Ke=Tu,vr=Tu;function f(e){return Ke(e),{type:Xe,contents:e}}function he(e,t){return Ke(t),{type:Ye,contents:t,n:e}}function l(e,t={}){return Ke(e),vr(t.expandedStates,!0),{type:le,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function du(e){return he(Number.NEGATIVE_INFINITY,e)}function Mr(e){return he(-1,e)}function ze(e,t){return l(e[0],{...t,expandedStates:e})}function qt(e){return vr(e),{type:Pe,parts:e}}function b(e,t="",r={}){return Ke(e),t!==""&&Ke(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function At(e,t){return Ke(e),{type:He,contents:e,groupId:t.groupId,negate:t.negate}}function Wn(e){return Ke(e),{type:Ve,contents:e}}var ke={type:$e},Ee={type:ve};var Gn={type:me,hard:!0},ko={type:me,hard:!0,literal:!0},x={type:me},E={type:me,soft:!0},F=[Gn,Ee],Rr=[ko,Ee],Un={type:nt};function P(e,t){Ke(e),vr(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function xu(e,t,r){Ke(e);let n=e;if(t>0){for(let s=0;s<Math.floor(t/r);++s)n=f(n);n=he(t%r,n),n=he(Number.NEGATIVE_INFINITY,n)}return n}function it(e,t){return Ke(t),e?{type:je,label:e,contents:t}:t}function mt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=s(u);return r.set(u,i),i}function s(u){switch(ut(u)){case _e:return t(u.map(n));case Pe:return t({...u,parts:u.parts.map(n)});case xe:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case le:{let{expandedStates:i,contents:a}=u;return i?(i=i.map(n),a=i[0]):a=n(a),t({...u,contents:a,expandedStates:i})}case Ye:case Xe:case He:case je:case Ve:return t({...u,contents:n(u.contents)});case rt:case nt:case st:case $e:case me:case ve:return t(u);default:throw new Ct(u)}}}function gu(e,t,r){let n=r,s=!1;function u(i){if(s)return!1;let a=t(i);a!==void 0&&(s=!0,n=a)}return qn(e,u),n}function Io(e){if(e.type===le&&e.break||e.type===me&&e.hard||e.type===ve)return!0}function ne(e){return gu(e,Io,!1)}function hu(e){if(e.length>0){let t=O(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Su(e){let t=new Set,r=[];function n(u){if(u.type===ve&&hu(r),u.type===le){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===le&&r.pop().break&&hu(r)}qn(e,n,s,!0)}function Lo(e){return e.type===me&&!e.hard?e.soft?"":" ":e.type===xe?e.flatContents:e}function ur(e){return mt(e,Lo)}function wo(e){switch(ut(e)){case Pe:if(e.parts.every(t=>t===""))return"";break;case le:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===le&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ye:case Xe:case He:case Ve:if(!e.contents)return"";break;case xe:if(!e.flatContents&&!e.breakContents)return"";break;case _e:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof O(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case rt:case nt:case st:case $e:case me:case je:case ve:break;default:throw new Ct(e)}return e}function Wt(e){return mt(e,t=>wo(t))}function Ie(e,t=Rr){return mt(e,r=>typeof r=="string"?P(t,r.split(`
`)):r)}function Oo(e){if(e.type===me)return!0}function Bu(e){return gu(e,Oo,!1)}function ir(e,t){return e.type===je?{...e,contents:t(e.contents)}:t(e)}function _o(e){let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var bu=_o;function Pu(e,t){let r=e.node;if(vt(r))return t.originalText.slice(R(r),k(r)).trimEnd();if(re(r))return bu(r)?jo(r):["/*",Ie(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function jo(e){let t=e.value.split(`
`);return["/*",P(F,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}var Kn={};Ar(Kn,{endOfLine:()=>Go,ownLine:()=>Wo,remaining:()=>Uo});function vo(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Nn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=vo(e)}function ce(e,t){t.leading=!0,t.trailing=!1,Nn(e,t)}function Le(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Nn(e,t)}function z(e,t){t.leading=!1,t.trailing=!0,Nn(e,t)}function Mo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ge(e,n),n=Lt(e,n),n=wt(e,n),n=Ue(e,n);return n}var yt=Mo;function Ro(e,t){let r=yt(e,t);return r===!1?"":e.charAt(r)}var ge=Ro;function Jo(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
`)return!0;return!1}var de=Jo;function qo(e){return re(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var ku=qo;function Wo(e){return[Mu,Lu,_u,ep,Xo,Yn,Hn,Iu,wu,sp,rp,$n,vu,up,Ou,ju,Vn,Yo,yp].some(t=>t(e))}function Go(e){return[No,_u,Lu,vu,Yn,Hn,Iu,wu,ju,tp,np,$n,op,Vn,lp,mp].some(t=>t(e))}function Uo(e){return[Mu,Yn,Hn,Ho,Zo,Ou,$n,Qo,zo,cp,Vn,pp].some(t=>t(e))}function bt(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ce(r,t):Le(e,t)}function Xn(e,t){e.type==="BlockStatement"?bt(e,t):ce(e,t)}function No({comment:e,followingNode:t}){return t&&ku(e)?(ce(t,e),!0):!1}function Yn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(ge(s,k(e))===")")return z(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")z(t,e);else{let i=vt(e)||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;i&&a?z(t,e):Le(r,e)}return!0}return n.type==="BlockStatement"?(bt(n,e),!0):n.type==="IfStatement"?(Xn(n.consequent,e),!0):r.consequent===n?(ce(n,e),!0):!1}function Hn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:ge(s,k(e))===")"?(z(t,e),!0):n.type==="BlockStatement"?(bt(n,e),!0):r.body===n?(ce(n,e),!0):!1}function Iu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(z(t,e),!0):n.type==="BlockStatement"?(bt(n,e),!0):n.type==="TryStatement"?(Xn(n.finalizer,e),!0):n.type==="CatchClause"?(Xn(n.body,e),!0):!1}function Xo({comment:e,enclosingNode:t,followingNode:r}){return q(t)&&(r==null?void 0:r.type)==="Identifier"?(ce(t,e),!0):!1}function Yo({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!((t==null?void 0:t.type)==="ConditionalExpression"||(t==null?void 0:t.type)==="ConditionalTypeAnnotation"||(t==null?void 0:t.type)==="TSConditionalType")?!1:(r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="ConditionalTypeAnnotation"||(r==null?void 0:r.type)==="TSConditionalType"?(Le(t,e),!0):!1}function Lu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s,options:u}){let i=t&&!de(s,k(t),R(e));return(!t||!i)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="ConditionalTypeAnnotation"||(r==null?void 0:r.type)==="TSConditionalType")&&n?u.experimentalTernaries&&r.alternate===n&&!(re(e)&&!de(u.originalText,R(e),k(e)))?(Le(r,e),!0):(ce(n,e),!0):!1}function Ho({comment:e,precedingNode:t,enclosingNode:r}){return Ae(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(z(r.value.left,e),!0):!1}var Vo=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(Vo.has(r==null?void 0:r.type)){if(w(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return z(O(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return bt(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return z(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?z(t,e):Le(r,e,s),!0}}return!1}var $o=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Ou({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&ge(n,k(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&ge(n,k(t))!==":"?(z(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&$o.has(r==null?void 0:r.type)?(z(t,e),!0):!1}var Ko=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);fu
`;default:return`
`}}var Se=Symbol("MODE_BREAK"),at=Symbol("MODE_FLAT"),ar=Symbol("cursor");function qu(){return{value:"",length:0,queue:[]}}function Cp(e,t){return Qn(e,{type:"indent"},t)}function Ap(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||qu():t<0?Qn(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Qn(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Qn(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let p of n)switch(p.type){case"indent":m(),r.useTabs?o(1):c(r.tabWidth);break;case"stringAlign":m(),s+=p.n,u+=p.n.length;break;case"numberAlign":i+=1,a+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return y(),{...e,value:s,length:u,queue:n};function o(p){s+=" ".repeat(p),u+=r.tabWidth*p}function c(p){s+=" ".repeat(p),u+=p}function m(){r.useTabs?D():y()}function D(){i>0&&o(i),C()}function y(){a>0&&c(a),C()}function C(){i=0,a=0}}function Zn(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===ar){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(ar);return t}function Jr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:c,doc:m}=a.pop(),D=ut(m);switch(D){case rt:o.push(m),r-=et(m);break;case _e:case Pe:{let y=D===_e?m:m.parts;for(let C=y.length-1;C>=0;C--)a.push({mode:c,doc:y[C]});break}case Xe:case Ye:case He:case je:a.push({mode:c,doc:m.contents});break;case st:r+=Zn(o);break;case le:{if(u&&m.break)return!1;let y=m.break?Se:c,C=m.expandedStates&&y===Se?O(!1,m.expandedStates,-1):m.contents;a.push({mode:y,doc:C});break}case xe:{let C=(m.groupId?s[m.groupId]||at:c)===Se?m.breakContents:m.flatContents;C&&a.push({mode:c,doc:C});break}case me:if(c===Se||m.hard)return!0;m.soft||(o.push(" "),r--);break;case Ve:n=!0;break;case $e:if(n)return!1;break}}return!1}function es(e,t){let r={},n=t.printWidth,s=Ju(t.endOfLine),u=0,i=[{ind:qu(),mode:Se,doc:e}],a=[],o=!1,c=[],m=0;for(Su(e);i.length>0;){let{ind:y,mode:C,doc:p}=i.pop();switch(ut(p)){case rt:{let A=s!==`
`?N(!1,p,`
`,s):p;a.push(A),i.length>0&&(u+=et(A));break}case _e:for(let A=p.length-1;A>=0;A--)i.push({ind:y,mode:C,doc:p[A]});break;case nt:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(ar),m++;break;case Xe:i.push({ind:Cp(y,t),mode:C,doc:p.contents});break;case Ye:i.push({ind:Ap(y,p.n,t),mode:C,doc:p.contents});break;case st:u-=Zn(a);break;case le:switch(C){case at:if(!o){i.push({ind:y,mode:p.break?Se:at,doc:p.contents});break}case Se:{o=!1;let A={ind:y,mode:at,doc:p.contents},T=n-u,S=c.length>0;if(!p.break&&Jr(A,i,T,S,r))i.push(A);else if(p.expandedStates){let B=O(!1,p.expandedStates,-1);if(p.break){i.push({ind:y,mode:Se,doc:B});break}else for(let _=1;_<p.expandedStates.length+1;_++)if(_>=p.expandedStates.length){i.push({ind:y,mode:Se,doc:B});break}else{let J=p.expandedStates[_],j={ind:y,mode:at,doc:J};if(Jr(j,i,T,S,r)){i.push(j);break}}}else i.push({ind:y,mode:Se,doc:p.contents});break}}p.id&&(r[p.id]=O(!1,i,-1).mode);break;case Pe:{let A=n-u,{parts:T}=p;if(T.length===0)break;let[S,B]=T,_={ind:y,mode:at,doc:S},J={ind:y,mode:Se,doc:S},j=Jr(_,[],A,c.length>0,r,!0);if(T.length===1){j?i.push(_):i.push(J);break}let h={ind:y,mode:at,doc:B},W={ind:y,mode:Se,doc:B};if(T.length===2){j?i.push(h,_):i.push(W,J);break}T.splice(0,2);let Fe={ind:y,mode:C,doc:qt(T)},H=T[0];Jr({ind:y,mode:at,doc:[S,B,H]},[],A,c.length>0,r,!0)?i.push(Fe,h,_):j?i.push(Fe,W,_):i.push(Fe,W,J);break}case xe:case He:{let A=p.groupId?r[p.groupId]:C;if(A===Se){let T=p.type===xe?p.breakContents:p.negate?p.contents:f(p.contents);T&&i.push({ind:y,mode:C,doc:T})}if(A===at){let T=p.type===xe?p.flatContents:p.negate?f(p.contents):p.contents;T&&i.push({ind:y,mode:C,doc:T})}break}case Ve:c.push({ind:y,mode:C,doc:p.contents});break;case $e:c.length>0&&i.push({ind:y,mode:C,doc:Gn});break;case me:switch(C){case at:if(p.hard)o=!0;else{p.soft||(a.push(" "),u+=1);break}case Se:if(c.length>0){i.push({ind:y,mode:C,doc:p},...c.reverse()),c.length=0;break}p.literal?y.root?(a.push(s,y.root.value),u=y.root.length):(a.push(s),u=0):(u-=Zn(a),a.push(s+y.value),u=y.length);break}break;case je:i.push({ind:y,mode:C,doc:p.contents});break;case ve:break;default:throw new Ct(p)}i.length===0&&c.length>0&&(i.push(...c.reverse()),c.length=0)}let D=a.indexOf(ar);if(D!==-1){let y=a.indexOf(ar,D+1),C=a.slice(0,D).join(""),p=a.slice(D+1,y).join(""),A=a.slice(y+1).join("");return{formatted:C+p+A,cursorNodeStart:C.length,cursorNodeText:p}}return{formatted:a.join("")}}function Tp(e,t,r=0){let n=0;for(let s=r;s<e.length;++s)e[s]===" "?n=n+t-n%t:n++;return n}var Wu=Tp;function dp(e,t){let r=e.lastIndexOf(`
`);return r===-1?0:Wu(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var Gu=dp;function qr(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&gp(e)){let c=xp(e,r,t);if(c)return c}let u="expressions";n.type==="TSTemplateLiteralType"&&(u="types");let i=[],a=e.map(t,u);i.push(ke,"`");let o=0;return e.each(({index:c,node:m})=>{if(i.push(t()),m.tail)return;let{tabWidth:D}=r,y=m.value.raw,C=y.includes(`
`)?Gu(y,D):o;o=C;let p=a[c],A=n[u][c],T=de(r.originalText,k(m),R(n.quasis[c+1]));if(!T){let B=es(p,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;B.includes(`
`)?T=!0:p=B}T&&(d(A)||A.type==="Identifier"||q(A)||A.type==="ConditionalExpression"||A.type==="SequenceExpression"||Te(A)||De(A))&&(p=[f([E,p]),E]);let S=C===0&&y.endsWith(`
`)?he(Number.NEGATIVE_INFINITY,p):xu(p,C,D);i.push(l(["${",S,ke,"}"]))},"quasis"),i.push("`"),i}function Uu(e,t){let r=t("quasi");return it(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),ke,r])}function xp(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(y=>"${"+es(y,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let y=1;y<n.quasis.length;y++){let C=O(!1,o,-1),p=a[y-1];C.cells.push(p),p.includes(`
`)&&(C.hasLineBreak=!0),n.quasis[y].value.raw.includes(`
`)&&o.push({hasLineBreak:!1,cells:[]})}let c=Math.max(s.length,...o.map(y=>y.cells.length)),m=Array.from({length:c}).fill(0),D=[{cells:s},...o.filter(y=>y.cells.length>0)];for(let{cells:y}of D.filter(C=>!C.hasLineBreak))for(let[C,p]of y.entries())m[C]=Math.max(m[C],et(p));return i.push(ke,"`",f([F,P(F,D.map(y=>P(" | ",y.cells.map((C,p)=>y.hasLineBreak?C:C+" ".repeat(m[p]-et(C))))))]),F,"`"),i}}function hp(e,t){let{node:r}=e,n=t();return d(r)&&(n=l([f([E,n]),E])),["${",n,ke,"}"]}function Gt(e,t){return e.map(r=>hp(r,t),"expressions")}function Wr(e,t){return mt(e,r=>typeof r=="string"?t?N(!1,r,/(\\*)`/gu,"$1$1\\`"):ts(r):r)}function ts(e){return N(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function gp({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var ns=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Nu(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ae(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>U(n)&&s==="elements",r,...ns)||e.match(t,r,...ns)}function Xu(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ae(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...ns)}function rs(e,t){return d(e,g.Block|g.Leading,({value:r})=>r===` ${t} `)}function Gr({node:e,parent:t},r){return rs(e,r)||Sp(t)&&rs(t,r)||t.type==="ExpressionStatement"&&rs(t,r)}function Sp(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Bp(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,D,y)=>y===0?D:m+"@prettier-placeholder-"+u+++"-id"+D,""),a=await e(i,{parser:"scss"}),o=Gt(r,t),c=bp(a,o);if(!c)throw new Error("Couldn't insert all the expressions");return["`",f([F,c]),E,"`"]}function bp(e,t){if(!w(t))return e;let r=0,n=mt(Wt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((u,i)=>i%2===0?Ie(u):(r++,t[u])));return t.length===r?n:null}function Pp({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Ur(e){return e.type==="Identifier"&&e.name==="styled"}function Yu(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function kp({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Ur(t.object)||Yu(t);case"CallExpression":return Ur(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Ur(t.callee.object.object)||Yu(t.callee.object))||t.callee.object.type==="CallExpression"&&Ur(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Ip({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Lp(e){if(Pp(e)||kp(e)||Ip(e)||Nu(e))retur
`),C=y.length,p=u[a],A=C>2&&y[0].trim()===""&&y[1].trim()==="",T=C>2&&y[C-1].trim()===""&&y[C-2].trim()==="",S=y.every(_=>/^\s*(?:#[^\n\r]*)?$/u.test(_));if(!m&&/#[^\n\r]*$/u.test(y[C-1]))return null;let B=null;S?B=Op(y):B=await e(D,{parser:"graphql"}),B?(B=Wr(B,!1),!c&&A&&i.push(""),i.push(B),!m&&T&&i.push("")):!c&&!m&&A&&i.push(""),p&&i.push(p)}return["`",f([F,P(F,i)]),F,"`"]}function Op(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([F,u]):t.push(u),r=!0);return t.length===0?null:P(F,t)}function _p({node:e,parent:t}){return Gr({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function jp(e){if(_p(e))return wp}var Vu=jp;var ss=0;async function $u(e,t,r,n,s){let{node:u}=n,i=ss;ss=ss+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,B,_)=>B===_.length-1?S.value.cooked:S.value.cooked+a(B)).join(""),c=Gt(n,r),m=new RegExp(a(String.raw`(\d+)`),"gu"),D=0,y=await t(o,{parser:e,__onHtmlRoot(S){D=S.children.length}}),C=mt(y,S=>{if(typeof S!="string")return S;let B=[],_=S.split(m);for(let J=0;J<_.length;J++){let j=_[J];if(J%2===0){j&&(j=ts(j),s.__embeddedInHtml&&(j=N(!1,j,/<\/(?=script\b)/giu,String.raw`<\/`)),B.push(j));continue}let h=Number(j);B.push(c[h])}return B}),p=/^\s/u.test(o)?" ":"",A=/\s$/u.test(o)?" ":"",T=s.htmlWhitespaceSensitivity==="ignore"?F:p&&A?x:null;return T?l(["`",f([T,l(C)]),T,"`"]):it({hug:!1},l(["`",p,D>1?f(l(C)):l(C),A,"`"]))}function vp(e){return Gr(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Mp=$u.bind(void 0,"html"),Rp=$u.bind(void 0,"angular");function Jp(e){if(vp(e))return Mp;if(Xu(e))return Rp}var Ku=Jp;async function qp(e,t,r){let{node:n}=r,s=N(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(o,c)=>"\\".repeat(c.length/2)+"`"),u=Wp(s),i=u!=="";i&&(s=N(!1,s,new RegExp(`^${u}`,"gmu"),""));let a=Wr(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?f([E,a]):[Rr,du(a)],E,"`"]}function Wp(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Gp(e){if(Up(e))return qp}function Up({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var zu=Gp;function Np(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Xp(t))return;let r;for(let n of[Hu,Vu,Ku,zu])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&it({embed:!0,...u.label},u)}}function Xp({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Qu=Np;var Yp=/\*\/$/,Hp=/^\/\*\*?/,ri=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vp=/(^|\s+)\/\/([^\n\r]*)/g,Zu=/^(\r?\n)+/,$p=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Kp=/(\r?\n|^) *\* ?/g,ni=[];function si(e){let t=e.match(ri);return t?t[0].trimStart():""}function ui(e){let t=e.match(ri),r=t==null?void 0:t[0];return r==null?e:e.slice(r.length)}function ii(e){let t=`
`;e=N(!1,e.replace(Hp,"").replace(Yp,""),Kp,"$1");let r="";for(;r!==e;)r=e,e=N(!1,e,$p,`${t}$1 $2${t}`);e=e.replace(Zu,"").trimEnd();let n=Object.create(null),s=N(!1,e,ei,"").replace(Zu,"").trimEnd(),u;for(;u=ei.exec(e);){let i=N(!1,u[2],Vp,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let a=n[u[1]];n[u[1]]=[...ni,...Array.isArray(a)?a:[a],i]}else n[u[1]]=i}return{comments:s,pragmas:n}}function ai({comments:e="",pragmas:t={}}){let r=`
`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.flatMap(c=>ti(c,t[c])).map(c=>`${s} ${c}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let c=t[i[0]];return`${n} ${ti(i[0],c)[0]}${u}`}}let o=e.split(r).map(c=>`${s} ${c}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length>0?s+r:"")+a+u}function ti(e,t){return[...ni,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}function zp(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var oi=zp;function Qp(e){let t=oi(e);t&&(e=e.slice(t.length+1));let r=si(e),{pragmas:n,comments:s}=ii(r);return{shebang:t,text:e,pragmas:n,comments:s}}function pi(e){let{shebang:t,text:r,pragmas:n,comments:s}=Qp(e),u=ui(r),i=ai({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t}
`:"")+i+(u.startsWith(`
`)?`
`:`
`)+u}function Zp(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),c=u(a);for(let m of n)s(m)>=o&&u(m)<=c&&i.add(m);return r.slice(o,c)}var ci=Zp;function us(e,t){var u,i,a,o,c,m,D,y,C;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&nc(r)&&or(e))return!0;if(ec(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let p=(i=e.findAncestor(A=>A.type==="ForOfStatement"))==null?void 0:i.left;if(p&&ie(p,A=>A===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let p=e.findAncestor(T=>T.type==="ExpressionStatement"||T.type==="ForStatement"||T.type==="ForInStatement"),A=p?p.type==="ExpressionStatement"?p.expression:p.type==="ForStatement"?p.init:p.left:void 0;if(A&&ie(A,T=>T===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let p=e.findAncestor(A=>!Te(A));if(p!==s&&p.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let p=(a=e.findAncestor(A=>A.type==="ExpressionStatement"))==null?void 0:a.expression;if(p&&ie(p,A=>A===r))return!0}if(r.type==="ObjectExpression"){let p=(o=e.findAncestor(A=>A.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(p&&p.type!=="SequenceExpression"&&p.type!=="AssignmentExpression"&&ie(p,A=>A===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&w(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return li(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!uc(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(p,A)=>A==="returnType"&&p.type==="ArrowFunctionExpression")&&rc(r))return!0;break;case"BinaryExpression":if(n==="left"&&(s.operator==="in"||s.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(p,A)=>A==="declarations"&&p.type==="VariableDeclaration",(p,A)=>A==="left"&&p.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&tc(e))return!0;if(r.operator==="|>"&&((c=r.extra)!=null&&c.parenthesized)){let p=e.grandparent;if(p.type==="BinaryExpression"&&p.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Te
\r `),ms=e=>e===""||e===x||e===F||e===E;function cc(e,t,r){var _,J,j;let{node:n}=e;if(n.type==="JSXElement"&&gc(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(h=>Sc(h)?{type:"JSXText",value:" ",raw:" "}:h);let i=n.children.some(X),a=n.children.filter(h=>h.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=ne(s)||i||o||a,m=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',y=m?" ":b([D,E]," "),C=((J=(_=n.openingElement)==null?void 0:_.name)==null?void 0:J.name)==="fbt",p=lc(e,t,r,y,C),A=n.children.some(h=>pr(h));for(let h=p.length-2;h>=0;h--){let W=p[h]===""&&p[h+1]==="",Fe=p[h]===F&&p[h+1]===""&&p[h+2]===F,H=(p[h]===E||p[h]===F)&&p[h+1]===""&&p[h+2]===y,ue=p[h]===y&&p[h+1]===""&&(p[h+2]===E||p[h+2]===F),Z=p[h]===y&&p[h+1]===""&&p[h+2]===y,It=p[h]===E&&p[h+1]===""&&p[h+2]===F||p[h]===F&&p[h+1]===""&&p[h+2]===E;Fe&&A||W||H||Z||It?p.splice(h,2):ue&&p.splice(h+1,2)}for(;p.length>0&&ms(O(!1,p,-1));)p.pop();for(;p.length>1&&ms(p[0])&&ms(p[1]);)p.shift(),p.shift();let T=[];for(let[h,W]of p.entries()){if(W===y){if(h===1&&p[h-1]===""){if(p.length===2){T.push(D);continue}T.push([D,F]);continue}else if(h===p.length-1){T.push(D);continue}else if(p[h-1]===""&&p[h-2]===F){T.push(D);continue}}T.push(W),ne(W)&&(c=!0)}let S=A?qt(T):l(T,{shouldBreak:!0});if(((j=t.cursorNode)==null?void 0:j.type)==="JSXText"&&n.children.includes(t.cursorNode)&&(S=[Un,S,Un]),m)return S;let B=l([s,f([F,S]),F,u]);return c?B:ze([l([s,...p,u]),B])}function lc(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let o=fe(i);if(pr(i)){let c=Nr.split(o,!0);c[0]===""&&(u.push(""),c.shift(),/\n/u.test(c[0])?u.push(fi(s,c[1],i,a)):u.push(n),c.shift());let m;if(O(!1,c,-1)===""&&(c.pop(),m=c.pop()),c.length===0)return;for(let[D,y]of c.entries())D%2===1?u.push(x):u.push(y);m!==void 0?/\n/u.test(m)?u.push(fi(s,O(!1,u,-1),i,a)):u.push(n):u.push(Di(s,O(!1,u,-1),i,a))}else/\n/u.test(o)?o.match(/\n/gu).length>1&&u.push("",F):u.push("",n)}else{let o=r();if(u.push(o),a&&pr(a)){let m=Nr.trim(fe(a)),[D]=Nr.split(m);u.push(Di(s,D,i,a))}else u.push(F)}},"children"),u}function Di(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?E:F:E}function fi(e,t,r,n){return e?F:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?F:E:F}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc(e,t,r){let{parent:n}=e;if(mc.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",L,i=>i.type==="JSXExpressionContainer"),u=Be(e,r);return l([u?"":b("("),f([E,t]),E,u?"":b(")")],{shouldBreak:s})}function Dc(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(Q(n.value)){let i=fe(n.value),a=N(!1,N(!1,i.slice(1,-1),"&apos;","'"),"&quot;",'"'),o=xr(a,t.jsxSingleQuote);a=o==='"'?N(!1,a,'"',"&quot;"):N(!1,a,"'","&apos;"),u=e.call(()=>ye(e,Ie(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function fc(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(U(u)||se(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||L(u)||u.type==="ChainExpression"&&L(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||X(i)&&(u.type==="ConditionalExpression"||De(u)));return s(n.expression,e.parent)?l(["{",r("expression"),ke,"}"]):l(
`)&&!s&&!d(n.attributes[0]))return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(c=>Q(c.value)&&c.value.value.includes(`
`)),i=t.singleAttributePerLine&&n.attributes.length>1?F:x;return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters"),f(e.map(()=>[i,r()],"attributes")),...Fc(n,t,s)],{shouldBreak:u})}function Fc(e,t,r){return e.selfClosing?[x,"/>"]:Cc(e,t,r)?[">"]:[E,">"]}function Cc(e,t,r){let n=e.attributes.length>0&&d(O(!1,e.attributes,-1),g.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function Ac(e,t,r){let{node:n}=e,s=[];s.push("</");let u=r("name");return d(n.name,g.Leading|g.Line)?s.push(f([F,u]),F):d(n.name,g.Leading|g.Block)?s.push(" ",u):s.push(u),s.push(">"),s}function Tc(e,t){let{node:r}=e,n=d(r),s=d(r,g.Line),u=r.type==="JSXOpeningFragment";return[u?"<":"</",f([s?F:n&&!u?" ":"",M(e,t)]),s?F:"",">"]}function dc(e,t,r){let n=ye(e,cc(e,t,r),t);return yc(e,n,t)}function xc(e,t){let{node:r}=e,n=d(r,g.Line);return[M(e,t,{indent:n}),n?F:""]}function hc(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!zn(e)?u:[f([E,ye(e,u,t)]),E]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return Dc(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return P(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return P(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(e,t,r);case"JSXExpressionContainer":return fc(e,t,r);case"JSXFragment":case"JSXElement":return dc(e,t,r);case"JSXOpeningElement":return Ec(e,t,r);case"JSXClosingElement":return Ac(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return Tc(e,t);case"JSXEmptyExpression":return xc(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me(n,"JSX")}}function gc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!pr(t)}function pr(e){return e.type==="JSXText"&&(Nr.hasNonWhitespaceCharacter(fe(e))||!/\n/u.test(fe(e)))}function Sc(e){return e.type==="JSXExpressionContainer"&&Q(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Fi(e){let{node:t,parent:r}=e;if(!X(t)||!X(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!pr(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&Bt(u.expression)}function Bc(e){return Bt(e.node)||Fi(e)}var Xr=Bc;var bc=0;function Yr(e,t,r){var J;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((J=e.root.extra)==null?void 0:J.__isUsingHackPipeline),c=ys(e,r,t,!1,a);if(a)return c;if(o)return l(c);if(L(s)&&s.callee===n||s.type==="UnaryExpression"||q(s)&&!s.computed)return l([f([E,...c]),E]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!L(u)||s.type==="TemplateLiteral",D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ae(s),y=De(n.left)&&nr(n.operator,n.left.operator);if(m||Ut(n)&&!y||!Ut(n)&&D)return l(c);if(c.length===0)return"";let C=X(n.right),p=c.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===le),A=c.slice(0,p===-1?1:p+1),T=c.slice(A.length,C?-1:void 0),S=Symbol("logicalChain-"+ ++bc),B=l([...A,f(T)],{id:S});if(!C)return B;let _=O(!1,c,-1);return l([B,At(_,{groupId:S})])}function ys(e,t,r,n,s