prettier 3.8.4 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/plugins/estree.js CHANGED
@@ -1,44 +1,44 @@
1
- (function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.estree=e()}})(function(){"use strict";var jn=Object.defineProperty;var Ba=Object.getOwnPropertyDescriptor;var ba=Object.getOwnPropertyNames;var Pa=Object.prototype.hasOwnProperty;var vn=(e,t)=>{for(var r in t)jn(e,r,{get:t[r],enumerable:!0})},ka=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ba(t))!Pa.call(e,s)&&s!==r&&jn(e,s,{get:()=>t[s],enumerable:!(n=Ba(t,s))||n.enumerable});return e};var Ia=e=>ka(jn({},"__esModule",{value:!0}),e);var hD={};vn(hD,{languages:()=>gD,options:()=>Ta,printers:()=>xD});var zs=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",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",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}];var Xs={};vn(Xs,{canAttachComment:()=>ki,embed:()=>Ao,features:()=>FD,getVisitorKeys:()=>Mr,handleComments:()=>Gi,hasPrettierIgnore:()=>nr,insertPragma:()=>Oo,isBlockComment:()=>ce,isGap:()=>Wi,massageAstNode:()=>bi,print:()=>Hs,printComment:()=>_o,printPrettierIgnored:()=>Hs,willPrintOwnComments:()=>qi});var Wt=(e,t)=>(r,n,...s)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,s);var La=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Oa=Wt("replaceAll",function(){if(typeof this=="string")return La}),W=Oa;function wa(e){return this[e<0?this.length+e:e]}var _a=Wt("at",function(){if(Array.isArray(this)||typeof this=="string")return wa}),N=_a;function Ma(e){return e!==null&&typeof e=="object"}var Lr=Ma;function*Na(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=i=>Lr(i)&&n(i);for(let i of r(e)){let o=e[i];if(Array.isArray(o))for(let u of o)s(u)&&(yield u);else s(o)&&(yield o)}}function*ja(e,t){let r=[e];for(let n=0;n<r.length;n++){let s=r[n];for(let i of Na(s,t))yield i,r.push(i)}}function Zs(e,{getVisitorKeys:t,predicate:r}){for(let n of ja(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}var ei=()=>/[#*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\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Rn(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Jn(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var ti="\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";var va=/[^\x20-\x7F]/u,Ra=new Set(ti);function Ja(e){if(!e)return 0;if(!va.test(e))return e.length;e=e.replace(ei(),r=>Ra.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=Rn(n)||Jn(n)?2:1)}return t}var ot=Ja;function Or(e){return(t,r,n)=>{let s=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,o=r;for(;o>=0&&o<i;){let u=t.charAt(o);if(e instanceof RegExp){if(!e.test(u))return o}else if(!e.includes(u))return o;s?o--:o++}return o===-1||o===i?o:!1}}var YD=Or(/\s/u),ze=Or(" "),ri=Or(",; "),ni=Or(/[^\n\r]/u);var si=e=>e===`
2
- `||e==="\r"||e==="\u2028"||e==="\u2029";function Ga(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===`
3
- `)return t-2;if(si(s))return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
4
- `)return t+2;if(si(s))return t+1}return t}var Ze=Ga;function Wa(e,t,r={}){let n=ze(e,r.backwards?t-1:t,r),s=Ze(e,n,r);return n!==s}var Z=Wa;function qa(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 qt=qa;function Ua(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?ni(e,t):t}var Ut=Ua;function Ya(e,t){let r=null,n=t;for(;n!==r;)r=n,n=ri(e,n),n=qt(e,n),n=ze(e,n);return n=Ut(e,n),n=Ze(e,n),n!==!1&&Z(e,n)}var Yt=Ya;function Ha(e){return Array.isArray(e)&&e.length>0}var R=Ha;var Xa=()=>{},Le=Xa;var ii=Object.freeze({character:"'",codePoint:39}),oi=Object.freeze({character:'"',codePoint:34}),Va=Object.freeze({preferred:ii,alternate:oi}),$a=Object.freeze({preferred:oi,alternate:ii});function Ka(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?Va:$a,{length:s}=e,i=0,o=0;for(let u=0;u<s;u++){let p=e.charCodeAt(u);p===r.codePoint?i++:p===n.codePoint&&o++}return(i>o?n:r).character}var wr=Ka;var Qa=/\\(["'\\])|(["'])/gu;function za(e,t){let r=t==='"'?"'":'"',n=W(0,e,Qa,(s,i,o)=>i?i===r?r:s:o===t?"\\"+o:o);return t+n+t}var ui=za;function Za(e,t){Le(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":wr(r,t.singleQuote);return e.charAt(0)===n?e:ui(r,n)}var ut=Za;var ai=e=>Number.isInteger(e)&&e>=0;function w(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(w(r),t):t}function I(e){return e.range?.[1]??e.end}function bt(e,t){let r=w(e);return ai(r)&&r===w(t)}function ep(e,t){let r=I(e);return ai(r)&&r===I(t)}function pi(e,t){return bt(e,t)&&ep(e,t)}var Dr=null;function fr(e){if(Dr!==null&&typeof Dr.property){let t=Dr;return Dr=fr.prototype=null,t}return Dr=fr.prototype=e??Object.create(null),new fr}var tp=10;for(let e=0;e<=tp;e++)fr();function Wn(e){return fr(e)}function rp(e,t="type"){Wn(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var _r=rp;var a=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],ci={AccessorProperty:a[0],AnyTypeAnnotation:a[1],ArgumentPlaceholder:a[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:a[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:a[3],AsExpression:a[4],AssignmentExpression:a[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:a[6],BigIntLiteral:a[1],BigIntLiteralTypeAnnotation:a[1],BigIntTypeAnnotation:a[1],BinaryExpression:a[5],BindExpression:["object","callee"],BlockStatement:a[7],BooleanLiteral:a[1],BooleanLiteralTypeAnnotation:a[1],BooleanTypeAnnotation:a[1],BreakStatement:a[8],CallExpression:a[9],CatchClause:["param","body"],ChainExpression:a[3],ClassAccessorProperty:a[0],ClassBody:a[10],ClassDeclaration:a[11],ClassExpression:a[11],ClassImplements:a[12],ClassMethod:a[13],ClassPrivateMethod:a[13],ClassPrivateProperty:a[14],ClassProperty:a[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:a[15],ConditionalExpression:a[16],ConditionalTypeAnnotation:a[17],ContinueStatement:a[8],DebuggerStatement:a[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:a[18],DeclareEnum:a[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:a[20],DeclareFunction:["id","predicate"],DeclareHook:a[21],DeclareInterface:a[22],DeclareModule:a[19],DeclareModuleExports:a[23],DeclareNamespace:a[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:a[24],DeclareVariable:a[21],Decorator:a[3],Directive:a[18],DirectiveLiteral:a[1],DoExpression:a[10],DoWhileStatement:a[25],EmptyStatement:a[1],EmptyTypeAnnotation:a[1],EnumBigIntBody:a[26],EnumBigIntMember:a[27],EnumBooleanBody:a[26],EnumBooleanMember:a[27],EnumDeclaration:a[19],EnumDefaultedMember:a[21],EnumNumberBody:a[26],EnumNumberMember:a[27],EnumStringBody:a[26],EnumStringMember:a[27],EnumSymbolBody:a[26],ExistsTypeAnnotation:a[1],ExperimentalRestProperty:a[6],ExperimentalSpreadProperty:a[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:a[28],ExportNamedDeclaration:a[20],ExportNamespaceSpecifier:a[28],ExportSpecifier:["local","exported"],ExpressionStatement:a[3],File:["program"],ForInStatement:a[29],ForOfStatement:a[29],ForStatement:["init","test","update","body"],FunctionDeclaration:a[30],FunctionExpression:a[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:a[15],GenericTypeAnnotation:a[12],HookDeclaration:a[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:a[16],ImportAttribute:a[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:a[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:a[33],ImportSpecifier:["imported","local"],IndexedAccessType:a[34],InferredPredicate:a[1],InferTypeAnnotation:a[35],InterfaceDeclaration:a[22],InterfaceExtends:a[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:a[1],IntersectionTypeAnnotation:a[36],JsExpressionRoot:a[37],JsonRoot:a[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:a[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:a[1],JSXExpressionContainer:a[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:a[1],JSXMemberExpression:a[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:a[1],JSXSpreadAttribute:a[6],JSXSpreadChild:a[3],JSXText:a[1],KeyofTypeAnnotation:a[6],LabeledStatement:["label","body"],Literal:a[1],LogicalExpression:a[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:a[21],MatchExpression:a[39],MatchExpressionCase:a[40],MatchIdentifierPattern:a[21],MatchLiteralPattern:a[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:a[6],MatchStatement:a[39],MatchStatementCase:a[40],MatchUnaryPattern:a[6],MatchWildcardPattern:a[1],MemberExpression:a[38],MetaProperty:["meta","property"],MethodDefinition:a[42],MixedTypeAnnotation:a[1],ModuleExpression:a[10],NeverTypeAnnotation:a[1],NewExpression:a[9],NGChainedExpression:a[43],NGEmptyExpression:a[1],NGMicrosyntax:a[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:a[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:a[32],NGPipeExpression:["left","right","arguments"],NGRoot:a[37],NullableTypeAnnotation:a[23],NullLiteral:a[1],NullLiteralTypeAnnotation:a[1],NumberLiteralTypeAnnotation:a[1],NumberTypeAnnotation:a[1],NumericLiteral:a[1],ObjectExpression:["properties"],ObjectMethod:a[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:a[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:a[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:a[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:a[9],OptionalIndexedAccessType:a[34],OptionalMemberExpression:a[38],ParenthesizedExpression:a[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:a[1],PipelineTopicExpression:a[3],Placeholder:a[1],PrivateIdentifier:a[1],PrivateName:a[21],Program:a[7],Property:a[32],PropertyDefinition:a[14],QualifiedTypeIdentifier:a[44],QualifiedTypeofIdentifier:a[44],RegExpLiteral:a[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:a[6],SatisfiesExpression:a[4],SequenceExpression:a[43],SpreadElement:a[6],StaticBlock:a[10],StringLiteral:a[1],StringLiteralTypeAnnotation:a[1],StringTypeAnnotation:a[1],Super:a[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:a[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:a[1],TemplateLiteral:["quasis","expressions"],ThisExpression:a[1],ThisTypeAnnotation:a[1],ThrowStatement:a[6],TopicReference:a[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:a[45],TSAbstractKeyword:a[1],TSAbstractMethodDefinition:a[32],TSAbstractPropertyDefinition:a[45],TSAnyKeyword:a[1],TSArrayType:a[2],TSAsExpression:a[4],TSAsyncKeyword:a[1],TSBigIntKeyword:a[1],TSBooleanKeyword:a[1],TSCallSignatureDeclaration:a[46],TSClassImplements:a[47],TSConditionalType:a[17],TSConstructorType:a[46],TSConstructSignatureDeclaration:a[46],TSDeclareFunction:a[31],TSDeclareKeyword:a[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:a[26],TSEnumDeclaration:a[19],TSEnumMember:["id","initializer"],TSExportAssignment:a[3],TSExportKeyword:a[1],TSExternalModuleReference:a[3],TSFunctionType:a[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:a[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:a[35],TSInstantiationExpression:a[47],TSInterfaceBody:a[10],TSInterfaceDeclaration:a[22],TSInterfaceHeritage:a[47],TSIntersectionType:a[36],TSIntrinsicKeyword:a[1],TSJSDocAllType:a[1],TSJSDocNonNullableType:a[23],TSJSDocNullableType:a[23],TSJSDocUnknownType:a[1],TSLiteralType:a[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:a[10],TSModuleDeclaration:a[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:a[21],TSNeverKeyword:a[1],TSNonNullExpression:a[3],TSNullKeyword:a[1],TSNumberKeyword:a[1],TSObjectKeyword:a[1],TSOptionalType:a[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:a[23],TSPrivateKeyword:a[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:a[1],TSPublicKeyword:a[1],TSQualifiedName:a[5],TSReadonlyKeyword:a[1],TSRestType:a[23],TSSatisfiesExpression:a[4],TSStaticKeyword:a[1],TSStringKeyword:a[1],TSSymbolKeyword:a[1],TSTemplateLiteralType:["quasis","types"],TSThisType:a[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:a[23],TSTypeAssertion:a[4],TSTypeLiteral:a[26],TSTypeOperator:a[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:a[48],TSTypeParameterInstantiation:a[48],TSTypePredicate:a[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:a[1],TSUnionType:a[36],TSUnknownKeyword:a[1],TSVoidKeyword:a[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:a[24],TypeAnnotation:a[23],TypeCastExpression:a[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:a[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:a[48],TypeParameterInstantiation:a[48],TypePredicate:a[49],UnaryExpression:a[6],UndefinedTypeAnnotation:a[1],UnionTypeAnnotation:a[36],UnknownTypeAnnotation:a[1],UpdateExpression:a[6],V8IntrinsicIdentifier:a[1],VariableDeclaration:["declarations"],VariableDeclarator:a[27],Variance:a[1],VoidPattern:a[1],VoidTypeAnnotation:a[1],WhileStatement:a[25],WithStatement:["object","body"],YieldExpression:a[6]};var np=_r(ci),Mr=np;function sp(e){let t=new Set(e);return r=>t.has(r?.type)}var k=sp;function ip(e){return e.extra?.raw??e.raw}var pe=ip;var op=k(["Block","CommentBlock","MultiLine"]),ce=op;var up=k(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Nr=up;var ap=k(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),At=ap;function pp(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===s){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===s){e=e.object;continue}return!1}}function cp(e,t){return t.some(r=>pp(e,r))}var Pt=cp;function lp({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var jr=lp;function mp({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var kt=mp;function Er(e,t){return t(e)||Zs(e,{getVisitorKeys:Mr,predicate:t})}function Xt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||M(e)||J(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Ae(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function Di(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Rr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var fi=k(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),q=k(["ArrayExpression"]),se=k(["ObjectExpression"]);function yi(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Ce(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Ei(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function Xn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Ce(e.argument)}function V(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Vn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var Jr=k(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Dp=k(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Je=k(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Ht=k(["FunctionExpression","ArrowFunctionExpression"]);function fp(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function qn(e){return M(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var H=k(["JSXElement","JSXFragment"]);function mt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Gr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function Fi(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!bt(e,e.typeAnnotation)}var Te=k(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Tt(e){return J(e)||e.type==="BindExpression"&&!!e.object}var yp=k(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Vt(e){return jr(e)||Nr(e)||yp(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function Ep(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var Fp=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function dp(e){return Pt(e,Fp)}function It(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=le(e);if(r.length===1){if(qn(e)&&It(t))return Ht(r[0]);if(Ep(e.callee))return qn(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||V(r[0]))&&dp(e.callee))return r[2]&&!Ce(r[2])?!1:(r.length===2?Ht(r[1]):fp(r[1])&&K(r[1]).length<=1)||qn(r[1]);return!1}var di=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),M=di(k(["CallExpression","OptionalCallExpression"])),J=di(k(["MemberExpression","OptionalMemberExpression"]));function $n(e,t=5){return Ci(e,t)<=t}function Ci(e,t){let r=0;for(let n in e){let s=e[n];if(Lr(s)&&typeof s.type=="string"&&(r++,r+=Ci(s,t-r)),r>t)return r}return r}var Cp=.25;function Fr(e,t){let{printWidth:r}=t;if(T(e))return!1;let n=r*Cp;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||Xn(e)&&!T(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:V(e)?ut(pe(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(`
5
- `):e.type==="UnaryExpression"?Fr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:Jr(e)}function Ee(e,t){return H(t)?Ot(t):T(t,x.Leading,r=>Z(e,I(r)))}function li(e){return e.quasis.some(t=>t.value.raw.includes(`
6
- `))}function Wr(e,t){return(e.type==="TemplateLiteral"&&li(e)||e.type==="TaggedTemplateExpression"&&li(e.quasi))&&!Z(t,w(e),{backwards:!0})}function qr(e){if(!T(e))return!1;let t=N(0,et(e,x.Dangling),-1);return t&&!ce(t)}function Ai(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Ht(r)){if(t+=1,t>1)return!0}else if(M(r)){for(let n of le(r))if(Ht(n))return!0}return!1}function Ur(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&M(t)&&M(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Ap=new Set(["!","-","+","~"]);function Re(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Re(e.expression,t);let r=n=>Re(n,t-1);if(Vn(e))return ot(e.pattern??e.regex.pattern)<=5;if(Jr(e)||Dp(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
7
- `))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(q(e))return e.elements.every(n=>n===null||r(n));if(Dt(e)){if(e.type==="ImportExpression"||Re(e.callee,t)){let n=le(e);return n.length<=t&&n.every(r)}return!1}return J(e)?Re(e.object,t)&&Re(e.property,t):e.type==="UnaryExpression"&&Ap.has(e.operator)||e.type==="UpdateExpression"?Re(e.argument,t):!1}function ie(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ye(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ye(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ye(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ye(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ye(e.callee,t);case"ConditionalExpression":return ye(e.test,t);case"UpdateExpression":return!e.prefix&&ye(e.argument,t);case"BindExpression":return e.object&&ye(e.object,t);case"SequenceExpression":return ye(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ye(e.expression,t);default:return t(e)}}var mi={"==":!0,"!=":!0,"===":!0,"!==":!0},vr={"*":!0,"/":!0,"%":!0},Hn={">>":!0,">>>":!0,"<<":!0};function dr(e,t){return!(yr(t)!==yr(e)||e==="**"||mi[e]&&mi[t]||t==="%"&&vr[e]||e==="%"&&vr[t]||t!==e&&vr[t]&&vr[e]||Hn[e]&&Hn[t])}var Tp=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function yr(e){return Tp.get(e)}function Ti(e){return!!Hn[e]||e==="|"||e==="^"||e==="&"}function xi(e){if(e.rest)return!0;let t=K(e);return N(0,t,-1)?.type==="RestElement"}var Un=new WeakMap;function K(e){if(Un.has(e))return Un.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),Un.set(e,t),t}function gi(e,t){let{node:r}=e,n=0,s=()=>t(e,n++);r.this&&e.call(s,"this"),e.each(s,"params"),r.rest&&e.call(s,"rest")}var Yn=new WeakMap;function le(e){if(Yn.has(e))return Yn.get(e);if(e.type==="ChainExpression")return le(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,Yn.set(e,t),t}function $t(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>$t(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function Kn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[...r,"arguments",t];throw new RangeError("Invalid argument index")}function Lt(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function Ot(e){return e?.prettierIgnore||T(e,x.PrettierIgnore)}var x={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},hi=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&x.Leading&&!r.leading||e&x.Trailing&&!r.trailing||e&x.Dangling&&(r.leading||r.trailing)||e&x.Block&&!ce(r)||e&x.Line&&!At(r)||e&x.First&&n!==0||e&x.Last&&n!==s.length-1||e&x.PrettierIgnore&&!Lt(r)||t&&!t(r))};function T(e,t,r){if(!R(e?.comments))return!1;let n=hi(t,r);return n?e.comments.some(n):!0}function et(e,t,r){if(!Array.isArray(e?.comments))return[];let n=hi(t,r);return n?e.comments.filter(n):e.comments}var oe=(e,{originalText:t})=>Yt(t,I(e));function Dt(e){return M(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Oe(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!mt(e))}var Ae=k(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Se=k(["TSUnionType","UnionTypeAnnotation"]),xt=k(["TSIntersectionType","IntersectionTypeAnnotation"]),Ue=k(["TSConditionalType","ConditionalTypeAnnotation"]),Si=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",Cr=k(["TSTypeAliasDeclaration","TypeAlias"]);function Yr({key:e,parent:t}){return!(e==="types"&&Se(t)||e==="types"&&xt(t))}var xp=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Kt=e=>{for(let t of e.quasis)delete t.value};function Bi(e,t,r){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!kt({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:s}=e;V(s)||Ce(s)?t.key=String(s.value):s.type==="Identifier"&&(t.key=s.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.name==="jsx"))for(let{type:s,expression:i}of t.children)s==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&Kt(i);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Kt(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|&quot;|&apos;/u.test(e.value.value)&&(t.value.value=W(0,e.value.value,/["']|&quot;|&apos;/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let s=e.expression.arguments[0].properties;for(let[i,o]of t.expression.arguments[0].properties.entries())switch(s[i].key.name){case"styles":q(o.value)&&Kt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Kt(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Kt(t.quasi),e.type==="TemplateLiteral"&&Kt(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}Bi.ignoredProperties=xp;var bi=Bi;var gp=k(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),hp=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!mt(t)&&t.value!==t.key,Sp=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&K(e).length===0&&!e.returnType&&!R(e.typeParameters)&&e.body),Pi=(e,[t])=>t?.typeAnnotation===e&&Si(t),Bp=(e,[t,...r])=>Pi(e,[t])||t?.typeName===e&&Pi(t,r);function bp(e,t){return gp(e)||hp(e,t)||Sp(e,t)?!1:e.type==="EmptyStatement"?kt({node:e,parent:t[0]}):!(Bp(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var ki=bp;function Pp(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 Qn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Pp(e)}function te(e,t){t.leading=!0,t.trailing=!1,Qn(e,t)}function we(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Qn(e,t)}function $(e,t){t.leading=!1,t.trailing=!0,Qn(e,t)}function kp(e,t){let r=null,n=t;for(;n!==r;)r=n,n=ze(e,n),n=qt(e,n),n=Ut(e,n),n=Ze(e,n);return n}var at=kp;function Ip(e,t){let r=at(e,t);return r===!1?"":e.charAt(r)}var _e=Ip;function Lp(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
8
- `)return!0;return!1}var ue=Lp;var zn=new WeakMap;function Op(e){return zn.has(e)||zn.set(e,ce(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),zn.get(e)}var Hr=Op;var es=(e,t)=>At(e)||!ue(t,w(e),I(e));function wp(e){return[vi,Li,Mi,Up,jp,ts,rs,Ii,Oi,$p,Hp,Xp,ss,ji,Kp,wi,Ni,ns,vp,nc,Ri,is].some(t=>t(e))}function _p(e){return[Np,Mi,Li,ji,ts,rs,Ii,Oi,Ni,Yp,Vp,ss,Zp,ns,tc,rc,sc,Ri,oc,ic,is].some(t=>t(e))}function Mp(e){return[vi,ts,rs,qp,wi,ss,Wp,Gp,ns,ec,is].some(t=>t(e))}function wt(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?te(r,t):we(e,t)}function Zn(e,t){e.type==="BlockStatement"?wt(e,t):te(e,t)}function Np({comment:e,followingNode:t}){return t&&Hr(e)?(te(t,e),!0):!1}function ts({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if(r?.type!=="IfStatement"||!n)return!1;if(_e(s,I(e))===")")return $(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&w(e)>=I(t)&&I(e)<=w(n))return te(n,e),!0;if(t===r.consequent&&n===r.alternate){let o=at(s,I(r.consequent));if(n.type==="BlockStatement"&&w(e)>=o&&I(e)<=w(n))return te(n,e),!0;if(w(e)<o||r.alternate.type==="BlockStatement")return t.type==="BlockStatement"?($(t,e),!0):es(e,s)&&!ue(s,w(t),w(e))?($(t,e),!0):(we(r,e),!0)}return n.type==="BlockStatement"?(wt(n,e),!0):n.type==="IfStatement"?(Zn(n.consequent,e),!0):r.consequent===n?(te(n,e),!0):!1}function rs({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return r?.type!=="WhileStatement"||!n?!1:_e(s,I(e))===")"?($(t,e),!0):n.type==="BlockStatement"?(wt(n,e),!0):r.body===n?(te(n,e),!0):!1}function Ii({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?($(t,e),!0):n.type==="BlockStatement"?(wt(n,e),!0):n.type==="TryStatement"?(Zn(n.finalizer,e),!0):n.type==="CatchClause"?(Zn(n.body,e),!0):!1}function jp({comment:e,enclosingNode:t,followingNode:r}){return J(t)&&r?.type==="Identifier"?(te(t,e),!0):!1}function vp({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!(t?.type==="ConditionalExpression"||Ue(t))?!1:r?.type==="ConditionalExpression"||Ue(r)?(we(t,e),!0):!1}function Li({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s,options:i}){let o=t&&!ue(s,I(t),w(e));return(!t||!o)&&(r?.type==="ConditionalExpression"||Ue(r))&&n?i.experimentalTernaries&&r.alternate===n&&!(ce(e)&&!ue(i.originalText,w(e),I(e)))?(we(r,e),!0):(te(n,e),!0):!1}var Rp=k(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Oi({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(Rp(r)){if(R(r.decorators)&&n?.type!=="Decorator")return $(N(0,r.decorators,-1),e),!0;if(r.body&&n===r.body)return wt(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return $(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)?$(t,e):we(r,e,s),!0}}return!1}var Jp=k(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function wi({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&_e(n,I(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&_e(n,I(t))!==":"?($(t,e),!0):t?.type==="Decorator"&&Jp(r)&&(At(e)||e.placement==="ownLine")?($(t,e),!0):!1}var _i=k(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Gp({comment:e,precedingNode:t,enclosingNode:r,text:n}){return _e(n,I(e))!=="("?!1:t&&_i(r)?($(t,e),!0):!1}function Wp({comment:e,enclosingNode:t,text:r}){if(t?.type!=="ArrowFunctionExpression")return!1;let n=at(r,I(e));return n!==!1&&r.slice(n,n+2)==="=>"?(we(t,e),!0):!1}function qp({comment:e,enclosingNode:t,text:r}){return _e(r,I(e))!==")"?!1:t&&(Ji(t)&&K(t).length===0||Dt(t)&&le(t).length===0)?(we(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&K(t.value).length===0?(we(t.value,e),!0):!1}function Up({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return t?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&n?.type!=="ComponentTypeParameter"?($(t,e),!0):(t?.type==="ComponentParameter"||t?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&_e(s,I(e))===")"?($(t,e),!0):!1}function Mi({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return t?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&n?.type!=="FunctionTypeParam"?($(t,e),!0):(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&Ji(r)&&_e(s,I(e))===")"?($(t,e),!0):!ce(e)&&n?.type==="BlockStatement"&&_i(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&at(s,I(e))===w(n)?(wt(n,e),!0):!1}function Ni({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(te(t,e),!0):!1}function ns({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?($(t,e),!0):!1}function Yp({comment:e,precedingNode:t,enclosingNode:r}){return M(r)&&t&&r.callee===t&&r.arguments.length>0?(te(r.arguments[0],e),!0):!1}function Hp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Se(r)?(Lt(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?($(t,e),!0):!1):(Se(n)&&Lt(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Xp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Lt(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?($(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Lt(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Vp({comment:e,enclosingNode:t}){return Oe(t)?(te(t,e),!0):!1}function ss({comment:e,enclosingNode:t,ast:r,isLastComment:n}){return r?.body?.length===0?(n?we(r,e):te(r,e),!0):t?.type==="Program"&&t.body.length===0&&!R(t.directives)?(n?we(t,e):te(t,e),!0):!1}function $p({comment:e,enclosingNode:t,followingNode:r}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&r!==t.body?(te(t,e),!0):!1}function ji({comment:e,precedingNode:t,enclosingNode:r,text:n}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return te(r,e),!0;let s=t?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=t?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(s||i)&&Z(n,I(e))?($(t,e),!0):!1}function Kp({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(te(t,e),!0):!1}var Qp=k(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),zp=k(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Zp({comment:e,enclosingNode:t,followingNode:r}){return Qp(t)&&r&&(zp(r)||ce(e))?(te(r,e),!0):!1}function ec({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:s}){return!n&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&_e(s,I(e))===";"?($(t,e),!0):!1}function vi({comment:e,enclosingNode:t,followingNode:r}){if(Lt(e)&&t?.type==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Ri({comment:e,precedingNode:t,enclosingNode:r}){if(r?.type==="TSMappedType"&&!t)return we(r,e),!0}function tc({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&At(e)?wt(r,e):we(t,e),!0)}function rc({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Se(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||xt(r))?($(N(0,t.types,-1),e),!0):!1}function nc({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&n?.type==="TSTypeAnnotation")return r?$(r,e):we(t,e),!0}function sc({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return!n&&r?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&ue(s,w(r.argument),w(t.right))&&es(e,s)&&!ue(s,w(t.right),w(e))?($(t.right,e),!0):!1}function ic({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(Se(t)||xt(t)))return te(t,r),!0}function is({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:s}){if(Ae(e)&&t===e.expression&&!es(n,s))return r?te(r,n):$(e,n),!0}function oc({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(te(r,e),!0):!1}var Ji=k(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),uc={endOfLine:_p,ownLine:wp,remaining:Mp},Gi=uc;function ac(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=W(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var Wi=ac;var pc=k(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function cc(e){let{key:t,parent:r}=e;if(t==="types"&&Se(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&pc(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return Ot(n)?!1:Se(n)?Yr(e):!!H(n)}var qi=cc;var Ye="string",Be="array",tt="cursor",He="indent",Xe="align",rt="trim",Fe="group",Me="fill",be="if-break",Ve="indent-if-break",$e="line-suffix",Ge="line-suffix-boundary",me="line",Pe="label",Ne="break-parent",Xr=new Set([tt,He,Xe,rt,Fe,Me,be,Ve,$e,Ge,me,Pe,Ne]);function lc(e){if(typeof e=="string")return Ye;if(Array.isArray(e))return Be;if(!e)return;let{type:t}=e;if(Xr.has(t))return t}var We=lc;var mc=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Dc(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
9
- Expected it to be 'string' or 'object'.`;if(We(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=mc([...Xr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
10
- Expected it to be ${n}.`}var os=class extends Error{name="InvalidDocError";constructor(t){super(Dc(t)),this.doc=t}},gt=os;var Ui={};function fc(e,t,r,n){let s=[e];for(;s.length>0;){let i=s.pop();if(i===Ui){r(s.pop());continue}r&&s.push(i,Ui);let o=We(i);if(!o)throw new gt(i);if(t?.(i)!==!1)switch(o){case Be:case Me:{let u=o===Be?i:i.parts;for(let p=u.length,c=p-1;c>=0;--c)s.push(u[c]);break}case be:s.push(i.flatContents,i.breakContents);break;case Fe:if(n&&i.expandedStates)for(let u=i.expandedStates.length,p=u-1;p>=0;--p)s.push(i.expandedStates[p]);else s.push(i.contents);break;case Xe:case He:case Ve:case Pe:case $e:s.push(i.contents);break;case Ye:case tt:case rt:case Ge:case me:case Ne:break;default:throw new gt(i)}}}var Vr=fc;function ft(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let o=s(i);return r.set(i,o),o}function s(i){switch(We(i)){case Be:return t(i.map(n));case Me:return t({...i,parts:i.parts.map(n)});case be:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Fe:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(n),u=o[0]):u=n(u),t({...i,contents:u,expandedStates:o})}case Xe:case He:case Ve:case Pe:case $e:return t({...i,contents:n(i.contents)});case Ye:case tt:case rt:case Ge:case me:case Ne:return t(i);default:throw new gt(i)}}}function Hi(e,t,r){let n=r,s=!1;function i(o){if(s)return!1;let u=t(o);u!==void 0&&(s=!0,n=u)}return Vr(e,i),n}function yc(e){if(e.type===Fe&&e.break||e.type===me&&e.hard||e.type===Ne)return!0}function ne(e){return Hi(e,yc,!1)}function Yi(e){if(e.length>0){let t=N(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Xi(e){let t=new Set,r=[];function n(i){if(i.type===Ne&&Yi(r),i.type===Fe){if(r.push(i),t.has(i))return!1;t.add(i)}}function s(i){i.type===Fe&&r.pop().break&&Yi(r)}Vr(e,n,s,!0)}function Ec(e){return e.type===me&&!e.hard?e.soft?"":" ":e.type===be?e.flatContents:e}function _t(e){return ft(e,Ec)}function Fc(e){switch(We(e)){case Me:if(e.parts.every(t=>t===""))return"";break;case Fe:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Fe&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Xe:case He:case Ve:case $e:if(!e.contents)return"";break;case be:if(!e.flatContents&&!e.breakContents)return"";break;case Be:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof N(0,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 Ye:case tt:case rt:case Ge:case me:case Pe:case Ne:break;default:throw new gt(e)}return e}function Qt(e){return ft(e,t=>Fc(t))}function qe(e,t=$r){return ft(e,r=>typeof r=="string"?L(t,r.split(`
11
- `)):r)}function dc(e){if(e.type===me)return!0}function Vi(e){return Hi(e,dc,!1)}function Ar(e,t){return e.type===Pe?{...e,contents:t(e.contents)}:t(e)}function $i(e){let t=!0;return Vr(e,r=>{switch(We(r)){case Ye:if(r==="")break;case rt:case Ge:case me:case Ne:return t=!1,!1}}),t}var de=Le,Kr=Le,Ki=Le,Qi=Le;function m(e){return de(e),{type:He,contents:e}}function xe(e,t){return Qi(e),de(t),{type:Xe,contents:t,n:e}}function zi(e){return xe(Number.NEGATIVE_INFINITY,e)}function Qr(e){return xe(-1,e)}function Zi(e,t,r){de(e);let n=e;if(t>0){for(let s=0;s<Math.floor(t/r);++s)n=m(n);n=xe(t%r,n),n=xe(Number.NEGATIVE_INFINITY,n)}return n}var ke={type:Ne};var Tr={type:tt};function zr(e){return Ki(e),{type:Me,parts:e}}function l(e,t={}){return de(e),Kr(t.expandedStates,!0),{type:Fe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function nt(e,t){return l(e[0],{...t,expandedStates:e})}function P(e,t="",r={}){return de(e),t!==""&&de(t),{type:be,breakContents:e,flatContents:t,groupId:r.groupId}}function yt(e,t){return de(e),{type:Ve,contents:e,groupId:t.groupId,negate:t.negate}}function L(e,t){de(e),Kr(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function pt(e,t){return de(t),e?{type:Pe,label:e,contents:t}:t}var A={type:me},f={type:me,soft:!0},us={type:me,hard:!0},E=[us,ke],Cc={type:me,hard:!0,literal:!0},$r=[Cc,ke];function as(e){return de(e),{type:$e,contents:e}}var je={type:Ge};var Ac="cr",Tc="crlf";var xc="\r",gc=`\r
12
- `,hc=`
13
- `,Sc=hc;function eo(e){return e===Ac?xc:e===Tc?gc:Sc}var Bc={type:0},bc={type:1},ps={value:"",length:0,queue:[],get root(){return ps}};function to(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],s="",i=0,o=0,u=0;for(let d of n)switch(d.type){case 0:y(),r.useTabs?p(1):c(r.tabWidth);break;case 3:{let{string:b}=d;y(),s+=b,i+=b.length;break}case 2:{let{width:b}=d;o+=1,u+=b;break}default:throw new Error(`Unexpected indent comment '${d.type}'.`)}return F(),{...e,value:s,length:i,queue:n};function p(d){s+=" ".repeat(d),i+=r.tabWidth*d}function c(d){s+=" ".repeat(d),i+=d}function y(){r.useTabs?D():F()}function D(){o>0&&p(o),C()}function F(){u>0&&c(u),C()}function C(){o=0,u=0}}function ro(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=bc:n={type:2,width:t}:n={type:3,string:t},to(e,n,r)}function no(e,t){return to(e,Bc,t)}function Pc(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function cs(e){let t=Pc(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var ve=Symbol("MODE_BREAK"),ct=Symbol("MODE_FLAT"),ls=Symbol("DOC_FILL_PRINTED_LENGTH");function Zr(e,t,r,n,s,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,u=!1,p=[e],c="";for(;r>=0;){if(p.length===0){if(o===0)return!0;p.push(t[--o]);continue}let{mode:y,doc:D}=p.pop(),F=We(D);switch(F){case Ye:D&&(u&&(c+=" ",r-=1,u=!1),c+=D,r-=ot(D));break;case Be:case Me:{let C=F===Be?D:D.parts,d=D[ls]??0;for(let b=C.length-1;b>=d;b--)p.push({mode:y,doc:C[b]});break}case He:case Xe:case Ve:case Pe:p.push({mode:y,doc:D.contents});break;case rt:{let{text:C,count:d}=cs(c);c=C,r+=d;break}case Fe:{if(i&&D.break)return!1;let C=D.break?ve:y,d=D.expandedStates&&C===ve?N(0,D.expandedStates,-1):D.contents;p.push({mode:C,doc:d});break}case be:{let d=(D.groupId?s[D.groupId]||ct:y)===ve?D.breakContents:D.flatContents;d&&p.push({mode:y,doc:d});break}case me:if(y===ve||D.hard)return!0;D.soft||(u=!0);break;case $e:n=!0;break;case Ge:if(n)return!1;break}}return!1}function ms(e,t){let r=Object.create(null),n=t.printWidth,s=eo(t.endOfLine),i=0,o=[{indent:ps,mode:ve,doc:e}],u="",p=!1,c=[],y=[],D=[],F=[],C=0;for(Xi(e);o.length>0;){let{indent:h,mode:g,doc:S}=o.pop();switch(We(S)){case Ye:{let j=s!==`
14
- `?W(0,S,`
15
- `,s):S;j&&(u+=j,o.length>0&&(i+=ot(j)));break}case Be:for(let j=S.length-1;j>=0;j--)o.push({indent:h,mode:g,doc:S[j]});break;case tt:if(y.length>=2)throw new Error("There are too many 'cursor' in doc.");y.push(C+u.length);break;case He:o.push({indent:no(h,t),mode:g,doc:S.contents});break;case Xe:o.push({indent:ro(h,S.n,t),mode:g,doc:S.contents});break;case rt:O();break;case Fe:switch(g){case ct:if(!p){o.push({indent:h,mode:S.break?ve:ct,doc:S.contents});break}case ve:{p=!1;let j={indent:h,mode:ct,doc:S.contents},U=n-i,fe=c.length>0;if(!S.break&&Zr(j,o,U,fe,r))o.push(j);else if(S.expandedStates){let Y=N(0,S.expandedStates,-1);if(S.break){o.push({indent:h,mode:ve,doc:Y});break}else for(let z=1;z<S.expandedStates.length+1;z++)if(z>=S.expandedStates.length){o.push({indent:h,mode:ve,doc:Y});break}else{let ee=S.expandedStates[z],Ie={indent:h,mode:ct,doc:ee};if(Zr(Ie,o,U,fe,r)){o.push(Ie);break}}}else o.push({indent:h,mode:ve,doc:S.contents});break}}S.id&&(r[S.id]=N(0,o,-1).mode);break;case Me:{let j=n-i,U=S[ls]??0,{parts:fe}=S,Y=fe.length-U;if(Y===0)break;let z=fe[U+0],ee=fe[U+1],Ie={indent:h,mode:ct,doc:z},st={indent:h,mode:ve,doc:z},_=Zr(Ie,[],j,c.length>0,r,!0);if(Y===1){_?o.push(Ie):o.push(st);break}let re={indent:h,mode:ct,doc:ee},ae={indent:h,mode:ve,doc:ee};if(Y===2){_?o.push(re,Ie):o.push(ae,st);break}let it=fe[U+2],Bt={indent:h,mode:g,doc:{...S,[ls]:U+2}},Pr=Zr({indent:h,mode:ct,doc:[z,ee,it]},[],j,c.length>0,r,!0);o.push(Bt),Pr?o.push(re,Ie):_?o.push(ae,Ie):o.push(ae,st);break}case be:case Ve:{let j=S.groupId?r[S.groupId]:g;if(j===ve){let U=S.type===be?S.breakContents:S.negate?S.contents:m(S.contents);U&&o.push({indent:h,mode:g,doc:U})}if(j===ct){let U=S.type===be?S.flatContents:S.negate?m(S.contents):S.contents;U&&o.push({indent:h,mode:g,doc:U})}break}case $e:c.push({indent:h,mode:g,doc:S.contents});break;case Ge:c.length>0&&o.push({indent:h,mode:g,doc:us});break;case me:switch(g){case ct:if(S.hard)p=!0;else{S.soft||(u+=" ",i+=1);break}case ve:if(c.length>0){o.push({indent:h,mode:g,doc:S},...c.reverse()),c.length=0;break}S.literal?(u+=s,i=0,h.root&&(h.root.value&&(u+=h.root.value),i=h.root.length)):(O(),u+=s+h.value,i=h.length);break}break;case Pe:o.push({indent:h,mode:g,doc:S.contents});break;case Ne:break;default:throw new gt(S)}o.length===0&&c.length>0&&(o.push(...c.reverse()),c.length=0)}let d=D.join("")+u,b=[...F,...y];if(b.length!==2)return{formatted:d};let B=b[0];return{formatted:d,cursorNodeStart:B,cursorNodeText:d.slice(B,N(0,b,-1))};function O(){let{text:h,count:g}=cs(u);h&&(D.push(h),C+=h.length),u="",i-=g,y.length>0&&(F.push(...y.map(S=>Math.min(S,C))),y.length=0)}}function kc(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 so=kc;function Ic(e,t){let r=e.lastIndexOf(`
16
- `);return r===-1?0:so(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var io=Ic;function en(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&wc(e)){let c=Lc(e,t,r);if(c)return c}let i="expressions";n.type==="TSTemplateLiteralType"&&(i="types");let o=[],u=e.map(r,i);o.push(je,"`");let p=0;return e.each(({index:c,node:y})=>{if(o.push(r()),y.tail)return;let{tabWidth:D}=t,F=y.value.raw,C=F.includes(`
17
- `)?io(F,D):p;p=C;let d=u[c],b=n[i][c],B=ue(t.originalText,I(y),w(n.quasis[c+1]));if(!B){let h=ms(d,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;h.includes(`
18
- `)?B=!0:d=h}B&&(T(b)||b.type==="Identifier"||J(b)||b.type==="ConditionalExpression"||b.type==="SequenceExpression"||Ae(b)||Te(b))&&(d=[m([f,d]),f]);let O=C===0&&F.endsWith(`
19
- `)?xe(Number.NEGATIVE_INFINITY,d):Zi(d,C,D);o.push(l(["${",O,je,"}"]))},"quasis"),o.push("`"),o}function oo(e,t,r){let n=r("quasi"),{node:s}=e,i="",o=et(s.quasi,x.Leading)[0];return o&&(ue(t.originalText,I(s.typeArguments??s.tag),w(o))?i=f:i=" "),pt(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),i,je,n])}function Lc(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(i=>i.length>0)){t.__inJestEach=!0;let i=e.map(r,"expressions");t.__inJestEach=!1;let o=i.map(D=>"${"+ms(D,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),u=[{hasLineBreak:!1,cells:[]}];for(let D=1;D<n.quasis.length;D++){let F=N(0,u,-1),C=o[D-1];F.cells.push(C),C.includes(`
20
- `)&&(F.hasLineBreak=!0),n.quasis[D].value.raw.includes(`
21
- `)&&u.push({hasLineBreak:!1,cells:[]})}let p=Math.max(s.length,...u.map(D=>D.cells.length)),c=Array.from({length:p}).fill(0),y=[{cells:s},...u.filter(D=>D.cells.length>0)];for(let{cells:D}of y.filter(F=>!F.hasLineBreak))for(let[F,C]of D.entries())c[F]=Math.max(c[F],ot(C));return[je,"`",m([E,L(E,y.map(D=>L(" | ",D.cells.map((F,C)=>D.hasLineBreak?F:F+" ".repeat(c[C]-ot(F))))))]),E,"`"]}}function Oc(e,t){let{node:r}=e,n=t();return T(r)&&(n=l([m([f,n]),f])),["${",n,je,"}"]}function zt(e,t){return e.map(()=>Oc(e,t),"expressions")}function tn(e,t){return ft(e,r=>typeof r=="string"?t?W(0,r,/(\\*)`/gu,"$1$1\\`"):Ds(r):r)}function Ds(e){return W(0,e,/([\\`]|\$\{)/gu,"\\$1")}function wc({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 ys=[(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 uo(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Oe(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>q(n)&&s==="elements",r,...ys)||e.match(t,r,...ys)}function Es(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Oe(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...ys)}function fs(e,t){return T(e,x.Block|x.Leading,({value:r})=>r===` ${t} `)}function rn({node:e,parent:t},r){return fs(e,r)||_c(t)&&fs(t,r)||t.type==="ExpressionStatement"&&fs(t,r)}function _c(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function po(e,t,r){let{node:n}=r,s="";for(let[p,c]of n.quasis.entries()){let{raw:y}=c.value;p>0&&(s+="@prettier-placeholder-"+(p-1)+"-id"),s+=y}let i=await e(s,{parser:"scss"}),o=zt(r,t),u=Mc(i,o);if(!u)throw new Error("Couldn't insert all the expressions");return["`",m([E,u]),f,"`"]}function Mc(e,t){if(!R(t))return e;let r=0,n=ft(Qt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((i,o)=>o%2===0?qe(i):(r++,t[i])));return t.length===r?n:null}function Nc(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&Pt(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function nn(e){return e.type==="Identifier"&&e.name==="styled"}function ao(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function jc({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 nn(t.object)||ao(t);case"CallExpression":return nn(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(nn(t.callee.object.object)||ao(t.callee.object))||t.callee.object.type==="CallExpression"&&nn(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function vc({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var co=e=>Nc(e)||jc(e)||vc(e)||uo(e);async function lo(e,t,r){let{node:n}=r,s=n.quasis.length,i=zt(r,t),o=[];for(let u=0;u<s;u++){let p=n.quasis[u],c=u===0,y=u===s-1,D=p.value.cooked,F=D.split(`
22
- `),C=F.length,d=i[u],b=C>2&&F[0].trim()===""&&F[1].trim()==="",B=C>2&&F[C-1].trim()===""&&F[C-2].trim()==="",O=F.every(g=>/^\s*(?:#[^\n\r]*)?$/u.test(g));if(!y&&/#[^\n\r]*$/u.test(F[C-1]))return null;let h=null;O?h=Rc(F):h=await e(D,{parser:"graphql"}),h?(h=tn(h,!1),!c&&b&&o.push(""),o.push(h),!y&&B&&o.push("")):!c&&!y&&b&&o.push(""),d&&o.push(d)}return["`",m([E,L(E,o)]),E,"`"]}function Rc(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,i]of n.entries())i!==""&&(n[s-1]===""&&r?t.push([E,i]):t.push(i),r=!0);return t.length===0?null:L(E,t)}function mo({node:e,parent:t}){return rn({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")}var Fs=0;async function Do(e,t,r,n,s){let{node:i}=n,o=Fs;Fs=Fs+1>>>0;let u=O=>`PRETTIER_HTML_PLACEHOLDER_${O}_${o}_IN_JS`,p=i.quasis.map((O,h,g)=>h===g.length-1?O.value.cooked:O.value.cooked+u(h)).join(""),c=zt(n,r),y=new RegExp(u("(\\d+)"),"gu"),D=0,F=await t(p,{parser:e,__onHtmlRoot(O){D=O.children.length}}),C=ft(F,O=>{if(typeof O!="string")return O;let h=[],g=O.split(y);for(let S=0;S<g.length;S++){let j=g[S];if(S%2===0){j&&(j=Ds(j),s.__embeddedInHtml&&(j=W(0,j,/<\/(?=script\b)/giu,"<\\/")),h.push(j));continue}let U=Number(j);h.push(c[U])}return h}),d=/^\s/u.test(p)?" ":"",b=/\s$/u.test(p)?" ":"",B=s.htmlWhitespaceSensitivity==="ignore"?E:d&&b?A:null;return B?l(["`",m([B,l(C)]),B,"`"]):pt({hug:!1},l(["`",d,D>1?m(l(C)):l(C),b,"`"]))}function fo(e){return rn(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var yo=Do.bind(void 0,"html"),Eo=Do.bind(void 0,"angular");async function Fo(e,t,r){let{node:n}=r,s=W(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(p,c)=>"\\".repeat(c.length/2)+"`"),i=Jc(s),o=i!=="";o&&(s=W(0,s,new RegExp(`^${i}`,"gmu"),""));let u=tn(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?m([f,u]):[$r,zi(u)],f,"`"]}function Jc(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Co({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Gc=[{test:co,print:po},{test:mo,print:lo},{test:fo,print:yo},{test:Es,print:Eo},{test:Co,print:Fo}].map(({test:e,print:t})=>({test:e,print:qc(t)}));function Wc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Uc(t))return;let r=Gc.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function qc(e){return async(...t)=>{let r=await e(...t);return r&&pt({embed:!0,...r.label},r)}}function Uc({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Ao=Wc;var Yc=/\*\/$/,Hc=/^\/\*\*?/,ho=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Xc=/(^|\s+)\/\/([^\n\r]*)/g,To=/^(\r?\n)+/,Vc=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,xo=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,$c=/(\r?\n|^) *\* ?/g,So=[];function Bo(e){let t=e.match(ho);return t?t[0].trimStart():""}function bo(e){let r=e.match(ho)?.[0];return r==null?e:e.slice(r.length)}function Po(e){e=W(0,e.replace(Hc,"").replace(Yc,""),$c,"$1");let r="";for(;r!==e;)r=e,e=W(0,e,Vc,`
1
+ (function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.estree=e()}})(function(){"use strict";var Eo=Object.defineProperty;var zp=Object.getOwnPropertyDescriptor;var Zp=Object.getOwnPropertyNames;var ec=Object.prototype.hasOwnProperty;var Co=(e,t)=>{for(var r in t)Eo(e,r,{get:t[r],enumerable:!0})},tc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Zp(t))!ec.call(e,o)&&o!==r&&Eo(e,o,{get:()=>t[o],enumerable:!(n=zp(t,o))||n.enumerable});return e};var rc=e=>tc(Eo({},"__esModule",{value:!0}),e);var yy={};Co(yy,{languages:()=>Dy,options:()=>Xp,printers:()=>fy});var Mi=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","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",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",aliases:["typescriptreact"],codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}];var Bi={};Co(Bi,{estree:()=>Si});function nc(e){return Array.isArray(e)&&e.length>0}var j=nc;var oc=()=>{},ve=oc;function B(e){let t=new Set(e);return r=>t.has(r?.type)}var Qt=(e,t)=>(r,n,...o)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,o);function ic(e){return this[e<0?this.length+e:e]}var sc=Qt("at",function(){if(Array.isArray(this)||typeof this=="string")return ic}),L=sc;function Z(e,t,r){if(!e.has(t)){let n=r(t);e.set(t,n)}return e.get(t)}function uc(e){let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),t}var ac=new WeakMap;function ee(e){return Z(ac,e,uc)}function _i(e,t){let{node:r}=e,n=0,o=()=>t(e,n++);r.this&&e.call(o,"this"),e.each(o,"params"),r.rest&&e.call(o,"rest")}function Ni(e){if(e.rest)return!0;let t=ee(e);return L(0,t,-1)?.type==="RestElement"}var ji=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const";function zt({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}function Ke(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}var xo=e=>Number.isSafeInteger(e)&&e>=0;function It(e){return e.range?.[1]??e.end}function b(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(b(r),t):t}var pc=5,cc=8,lc=8,vi=e=>t=>t.label?S(t.label):b(t)+e,mc=e=>e.__contentEnd??It(e),Ri=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],fc=new Map([["BreakStatement",vi(pc)],["ContinueStatement",vi(cc)],["DebuggerStatement",e=>b(e)+lc],["VariableDeclaration",e=>S(L(0,e.declarations,-1))],...Ri.map(e=>[e,mc])]),Wi=B(Ri),Pr=e=>{if(Wi(e)&&e.__contentEnd)return!0;let{type:t}=e;return t==="BreakStatement"||t==="ContinueStatement"||t==="DebuggerStatement"||t==="VariableDeclaration"?!0:t==="IfStatement"?Pr(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?Pr(e.body):!1};function S(e){let{type:t}=e;return t==="IfStatement"?S(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?S(e.body):fc.get(t)?.(e)??It(e)}function kt(e,t){let r=b(e);return xo(r)&&r===b(t)}function Dc(e,t){let r=S(e);return xo(r)&&r===S(t)}function Ao(e,t){return kt(e,t)&&Dc(e,t)}function ye(e){return e.extra?.raw??e.raw}function Ji(e){return e.type==="BigIntLiteral"||e.type==="Literal"&&!!e.bigint}function Gi(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function Ee(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Xr(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}function q(e){return e?.type==="StringLiteral"||e?.type==="Literal"&&typeof e.value=="string"}var de=B(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Ui=B(["SatisfiesExpression","TSSatisfiesExpression"]),pe=B(["TSUnionType","UnionTypeAnnotation"]),At=B(["TSIntersectionType","IntersectionTypeAnnotation"]),Zt=B(["TupleTypeAnnotation","TSTupleType"]),$e=B(["TSConditionalType","ConditionalTypeAnnotation"]),Vr=B(["TSTypeAliasDeclaration","TypeAlias"]),ut=B(["ReturnStatement","ThrowStatement"]),qi=B(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Y=B(["ArrayExpression"]),ie=B(["ObjectExpression"]),er=B(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Ue=B(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),wt=B(["FunctionExpression","ArrowFunctionExpression"]),H=B(["JSXElement","JSXFragment"]),Be=B(["BinaryExpression","LogicalExpression","NGPipeExpression"]),M=B(["CallExpression","OptionalCallExpression"]),N=B(["MemberExpression","OptionalMemberExpression"]),Tt=B(["CallExpression","OptionalCallExpression","NewExpression"]),Dt=B(["CallExpression","OptionalCallExpression","NewExpression","ImportExpression"]),Re=B(["ChainExpression","TSNonNullExpression"]),Yi=B(["TSArrayType","ArrayTypeAnnotation"]),Hi=B(["TSTypeParameterInstantiation","TypeParameterInstantiation"]);function Ir(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;return t.type!==r.type||!Ao(t,r)?!1:q(t)?t.value===r.value&&ye(t)===ye(r):t.type==="Identifier"?t.name===r.name:!1}var yc=B(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),Ec=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!Ke(t)&&t.value!==t.key||t?.type==="ImportSpecifier"&&Ir(t)&&t.imported===e&&t.imported!==t.local||t?.type==="ExportSpecifier"&&Ir(t)&&t.local===e&&t.local!==t.exported,dc=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&ee(e).length===0&&!e.returnType&&!j(e.typeParameters)&&e.body),Xi=(e,[t])=>t?.typeAnnotation===e&&ji(t),Cc=(e,[t,...r])=>Xi(e,[t])||t?.typeName===e&&Xi(t,r);function Fc(e,t){return yc(e)||Ec(e,t)||dc(e,t)?!1:e.type==="EmptyStatement"?zt({node:e,parent:t[0]}):!(Cc(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var Vi=Fc;function xc(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 To(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=xc(e)}function K(e,t){t.leading=!0,t.trailing=!1,To(e,t)}function be(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),To(e,t)}function X(e,t){t.leading=!1,t.trailing=!0,To(e,t)}function Kr(e){return(t,r,n)=>{if(r===!1)return!1;let o=!!n?.backwards,{length:i}=t,s=r;for(;s>=0&&s<i;){let u=t.charAt(s);if(e instanceof RegExp){if(!e.test(u))return s}else if(!e.includes(u))return s;o?s--:s++}return s===-1||s===i?s:!1}}var DE=Kr(/\s/),at=Kr(" "),Ki=Kr(",; "),$i=Kr(/[^\n\r]/);function Ac(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 tr=Ac;var Qi=e=>e===`
2
+ `||e==="\r"||e==="\u2028"||e==="\u2029";function Tc(e,t,r){if(t===!1)return!1;let n=!!r?.backwards,o=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&o===`
3
+ `)return t-2;if(Qi(o))return t-1}else{if(o==="\r"&&e.charAt(t+1)===`
4
+ `)return t+2;if(Qi(o))return t+1}return t}var pt=Tc;function gc(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?$i(e,t):t}var rr=gc;function hc(e,t){let r=null,n=t;for(;n!==r;)r=n,n=at(e,n),n=tr(e,n),n=rr(e,n),n=pt(e,n);return n}var Wt=hc;function Sc(e,t){let r=Wt(e,t);return r===!1?"":e.charAt(r)}var Qe=Sc;function Bc(e,t,r={}){let n=at(e,r.backwards?t-1:t,r),o=pt(e,n,r);return n!==o}var J=Bc;function bc(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
5
+ `)return!0;return!1}var te=bc;var Pc=new WeakMap;function Ic(e){let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,t}function se(e){return Z(Pc,e,Ic)}function kr(e,t){let{node:r}=e;r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function go(e,t){if(e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return["source"];if(e.options&&(t===1||t===-1))return["options"];throw new RangeError("Invalid argument index")}if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return["expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return["arguments",t];throw new RangeError("Invalid argument index")}var zi=Symbol.for("comments");var kc=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},wc=Qt("replaceAll",function(){if(typeof this=="string")return kc}),V=wc;function Lc(e){return V(0,e,/[^\n]/g," ")}var Zi=Lc;function Oc(e,t){for(let r of t){let n=b(r),o=S(r);e=e.slice(0,n)+Zi(e.slice(n,o))+e.slice(o)}return e}var Mc=new WeakMap;function ce(e){let t=e[zi];return Z(Mc,t,r=>Oc(e.originalText,r))}function es(e,t){let r=S(e)-1;if(t.originalText[r]===")")return r}function _c(e,t){if(es(e,t)===void 0)return;let n=ce(t),o=S(e.typeArguments??e.callee),i=n.indexOf("(",o);if(i!==-1)return i}function ts(e,t,r){let n=es(e,r);if(n===void 0||S(t)>n)return!1;let o=_c(e,r);return o===void 0?!1:b(t)>o}var le=B(["Block","CommentBlock","MultiLine"]),qe=B(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function We(e){return e?.type==="ObjectProperty"||e?.type==="Property"&&!Ke(e)}function yt(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}var Nc=new WeakMap;function nr(e){return Z(Nc,e,t=>le(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/.test(t.value))}function $r({comment:e,enclosingNode:t,followingNode:r,options:n}){if((t?.type==="ForInStatement"||t?.type==="ForOfStatement"||t?.type==="ForStatement")&&r&&r===t.body){let o=ce(n).lastIndexOf(")",b(r));if(b(e)>o)return K(r,e),!0}return!1}var ho=(e,t)=>le(e)&&!te(t,b(e),S(e)),wr=(e,t)=>qe(e)||ho(e,t);function Qr(e,t){e.type==="BlockStatement"?or(e,t):K(e,t)}function or(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?K(r,t):be(e,t)}function zr({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o,options:i}){return r?.type!=="IfStatement"||!n?!1:Qe(o,S(e))===")"?(X(t,e),!0):n===r.consequent?(K(n,e),!0):t===r.consequent&&n===r.alternate?jc({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o,options:i}):!1}function jc({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o,options:i}){let s=ce(i).indexOf("else",S(r.consequent));return b(e)>=s?(K(n,e),!0):!(t.type==="BlockStatement")&&wr(e,o)&&!te(o,S(t),b(e))?(X(t,e),!0):(be(r,e),!0)}function Zr({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return(r?.type==="WhileStatement"||r?.type==="WithStatement")&&n?Qe(o,S(e))===")"?(X(t,e),!0):r.body===n?(K(n,e),!0):!1:!1}function So(e,{comment:t,text:r,options:n}){if(pe(e)&&ho(t,r)&&!yt(t)){let i=ce(n).slice(S(t),b(e));return/^[ \t]*$/.test(i)}return!1}function Bo(e,t){return K(So(e,t)?e.types[0]:e,t.comment),!0}function vc(e){return[bo,fs,is,ps,Gc,zr,Zr,os,ss,$r,Kc,$c,Po,ls,zc,us,cs,Uc,il,Io,ko,ys].some(t=>t(e))}function Rc(e){return[bo,Jc,ps,is,ls,zr,Zr,os,ss,$r,cs,Vc,Qc,Po,ms,nl,ol,sl,Io,pl,Ds,ul,ko].some(t=>t(e))}function Wc(e){return[bo,fs,zr,Zr,$r,us,Po,ms,Io,Hc,Yc,tl,Ds,ko,ys].some(t=>t(e))}function Jc({comment:e,followingNode:t}){return t&&nr(e)?(K(t,e),!0):!1}function os({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(X(t,e),!0):n.type==="BlockStatement"?(or(n,e),!0):n.type==="TryStatement"?(Qr(n.finalizer,e),!0):n.type==="CatchClause"?(Qr(n.body,e),!0):!1}function Gc({comment:e,enclosingNode:t,followingNode:r}){return N(t)&&r?.type==="Identifier"?(K(t,e),!0):!1}function Uc({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!(t?.type==="ConditionalExpression"||$e(t))?!1:r?.type==="ConditionalExpression"||$e(r)?(be(t,e),!0):!1}function is({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o,options:i}){let s=t&&!te(o,S(t),b(e));return(!t||!s)&&(r?.type==="ConditionalExpression"||$e(r))&&n?i.experimentalTernaries&&r.alternate===n&&!(le(e)&&!te(i.originalText,b(e),S(e)))?(be(r,e),!0):(K(n,e),!0):!1}var qc=B(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function ss({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(qc(r)){let{decorators:o}=r;if(j(o)&&n?.type!=="Decorator")return X(L(0,o,-1),e),!0;if(r.body&&n===r.body)return or(r.body,e),!0;if(n){let{superClass:i}=r;if(i&&n===i&&t&&(t===r.id||t===r.typeParameters))return X(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===i)?X(t,e):be(r,e,s),!0}}return!1}var rs=B(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function us({placement:e,comment:t,precedingNode:r,enclosingNode:n,followingNode:o,text:i}){return n&&r&&Qe(i,S(t))==="("&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&n.key===r&&Qe(i,S(r))!==":"?(X(r,t),!0):rs(n)&&!o&&e==="remaining"?(X(Qe(i,S(t))==="("?r:n,t),!0):r?.type==="Decorator"&&rs(n)&&(qe(t)||e==="ownLine")?(X(r,t),!0):!1}var as=B(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Yc({comment:e,precedingNode:t,enclosingNode:r,text:n}){return Qe(n,S(e))!=="("?!1:t&&as(r)?(X(t,e),!0):!1}function Hc({comment:e,enclosingNode:t,text:r}){if(t?.type!=="ArrowFunctionExpression")return!1;let n=Wt(r,S(e));return n!==!1&&r.slice(n,n+2)==="=>"?(be(t,e,"commentBeforeArrow"),!0):!1}function ns(e,t,r){let n=b(t),o=S(e);if(n>=o)return!1;let i=S(t),s=b(e);if(i<=s)return!1;let u=ce(r);return u.slice(0,b(t)).trimEnd().endsWith("(")&&u.slice(S(t)).trimStart().startsWith(")")}var Xc=B(["ComponentDeclaration","DeclareComponent","ComponentTypeAnnotation"]);function bo({comment:e,enclosingNode:t,options:r}){if(!t)return!1;if(Dt(t)&&se(t).length===0&&ns(t,e,r))return be(t,e),!0;let n=Es(t)||Xc(t)||t.type==="HookTypeAnnotation"?t:t.type==="MethodDefinition"||t.type==="TSAbstractMethodDefinition"||t.type==="Property"&&Ke(t)?t.value:void 0;return n&&ee(n).length===0&&ns(n,e,r)?(be(n,e),!0):!1}function ps({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return t?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&n?.type!=="FunctionTypeParam"?(X(t,e),!0):t?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&n?.type!=="ComponentTypeParameter"?(X(t,e),!0):(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&(Es(r)||(r?.type==="TSAbstractMethodDefinition"||r?.type==="MethodDefinition")&&r.value.type==="TSEmptyBodyFunctionExpression")&&Qe(o,S(e))===")"?(X(t,e),!0):(t?.type==="ComponentParameter"||t?.type==="RestElement")&&(r?.type==="ComponentDeclaration"||r?.type==="DeclareComponent")&&Qe(o,S(e))===")"?(X(t,e),!0):!le(e)&&n?.type==="BlockStatement"&&as(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&Wt(o,S(e))===b(n)?(or(n,e),!0):!1}function cs({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(K(t,e),!0):!1}function Vc({comment:e,precedingNode:t,enclosingNode:r,options:n}){return Tt(r)&&r.callee===t&&r.arguments.length>0&&ts(r,e,n)?(K(r.arguments[0],e),!0):!1}function Kc({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return pe(r)?(yt(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(X(t,e),!0):!1):(pe(n)&&yt(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function $c({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(yt(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(X(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&yt(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Qc({comment:e,enclosingNode:t}){return We(t)?(K(t,e),!0):!1}function Po({comment:e,enclosingNode:t,ast:r,isLastComment:n}){return r?.body?.length===0?(n?be(r,e):K(r,e),!0):t?.type==="Program"&&t.body.length===0&&!j(t.directives)?(n?be(t,e):K(t,e),!0):!1}function ls({comment:e,precedingNode:t,enclosingNode:r,text:n}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return K(r,e),!0;let o=t?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=t?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(o||i)&&J(n,S(e))?(X(t,e),!0):!1}function zc({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(K(t,e),!0):!1}var Zc=B(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),el=B(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ms(e){let{comment:t,enclosingNode:r,followingNode:n,options:o,placement:i}=e;if(Zc(r)&&n&&i==="endOfLine"&&(el(n)||le(t)))return Bo(n,e);if(Vr(r)&&n){let s=r.id,u=ce(o).indexOf("=",S(s));if(b(t)>=u)return Bo(n,e)}return!1}function tl({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:o}){return!n&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&Qe(o,S(e))===";"?(X(t,e),!0):!1}function fs({comment:e,enclosingNode:t,followingNode:r}){if(yt(e)&&t?.type==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function rl(e,t,r){let n=ce(r).indexOf("[",b(e));return S(t)<n}function Io({comment:e,enclosingNode:t,options:r}){if(t?.type==="TSMappedType"&&rl(t,e,r))return be(t,e),!0}function nl({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&qe(e)?or(r,e):be(t,e),!0)}function ol({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return pe(t)&&(Yi(r)&&!n||At(r)||pe(r))?(X(L(0,t.types,-1),e),!0):!1}function il({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&n?.type==="TSTypeAnnotation")return r?X(r,e):be(t,e),!0}function sl({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:o}){return!n&&r?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&te(o,b(r.argument),b(t.right))&&wr(e,o)&&!te(o,b(t.right),b(e))?(X(t.right,e),!0):!1}function ul({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(pe(t)||At(t)))return K(t,r),!0}function ko({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:o}){if(de(e)&&t===e.expression&&!wr(n,o))return r?K(r,n):X(e,n),!0}function al(e,t,r){let n=ce(r).lastIndexOf("=>",b(t.body));return S(e)<n}function pl({comment:e,enclosingNode:t,followingNode:r,precedingNode:n,options:o}){return t?.type!=="ArrowFunctionExpression"||!r||!n||al(e,t,o)?!1:(Qr(r,e),!0)}function Ds({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(!n&&t&&r){if(t.type==="ExpressionStatement"&&t.expression===r)return X(t,e),!0;let o=r.type==="SequenceExpression",i=r.type==="AssignmentExpression";if((o||i)&&(t.type==="ArrowFunctionExpression"&&t.body===r||t.type==="VariableDeclarator"&&t.init===r||t.type==="ReturnStatement"&&t.argument===r||t.type==="AssignmentExpression"&&t.right===r))return X(o?L(0,r.expressions,-1):r.right,e),!0}return!1}function ys(e){let{followingNode:t,comment:r}=e;return So(t,e)?(K(t.types[0],r),!0):!1}var Es=B(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod","HookDeclaration"]),cl={endOfLine:Rc,ownLine:vc,remaining:Wc},ds=cl;function ll(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=V(0,e,/[\s(]/g,""),e===""||e==="/*"||e==="/*::"}var Cs=ll;var T={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Fs=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,o)=>!(e&T.Leading&&!r.leading||e&T.Trailing&&!r.trailing||e&T.Dangling&&(r.leading||r.trailing)||e&T.Block&&!le(r)||e&T.Line&&!qe(r)||e&T.First&&n!==0||e&T.Last&&n!==o.length-1||e&T.PrettierIgnore&&!yt(r)||t&&!t(r))};function C(e,t,r){if(!j(e?.comments))return!1;let n=Fs(t,r);return n?e.comments.some(n):!0}function oe(e,t,r){if(!Array.isArray(e?.comments))return[];let n=Fs(t,r);return n?e.comments.filter(n):e.comments}function Lt(e){return e?.prettierIgnore||C(e,T.PrettierIgnore)}function en(e){let{node:t}=e;return(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression")&&(e.key==="callee"&&M(e.parent)||e.key==="tag"&&e.parent.type==="TaggedTemplateExpression")}var ml=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function ir(e){return ml.get(e)}var xs={"==":!0,"!=":!0,"===":!0,"!==":!0},tn={"*":!0,"/":!0,"%":!0},rn={">>":!0,">>>":!0,"<<":!0};function Lr(e,t){return!(ir(t)!==ir(e)||e==="**"||xs[e]&&xs[t]||t==="%"&&tn[e]||e==="%"&&tn[t]||t!==e&&tn[t]&&tn[e]||rn[e]&&rn[t])}function As(e){return!!rn[e]||e==="|"||e==="^"||e==="&"}function Ts(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Ce(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Ce(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Ce(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Ce(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Ce(e.callee,t);case"ConditionalExpression":return Ce(e.test,t);case"UpdateExpression":return!e.prefix&&Ce(e.argument,t);case"BindExpression":return e.object&&Ce(e.object,t);case"SequenceExpression":return Ce(e.expressions[0],t);case"ChainExpression":case"TSNonNullExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Ce(e.expression,t);default:return t(e)}}function fl(e){let{key:t,parent:r}=e;return t==="expression"&&r.type==="TSNonNullExpression"||t==="object"&&r.type==="MemberExpression"&&!r.optional||t==="callee"&&r.type==="CallExpression"&&!r.optional||t==="callee"&&r.type==="NewExpression"||t==="tag"&&r.type==="TaggedTemplateExpression"}var gs=e=>e.extra?.parenthesized,Dl=B(["OptionalCallExpression","OptionalMemberExpression"]);function yl(e){let{node:t}=e,r=t;for(;r.type==="TSNonNullExpression";)if(r=r.expression,gs(r))return!1;return Dl(r)?gs(t)?!0:!(e.key==="expression"&&e.parent.type==="TSNonNullExpression"):!1}function hs(e){return(e.node.type==="ChainExpression"||yl(e))&&fl(e)}function Ss(e){let{node:t}=e;if(t.type!=="Identifier")return!1;if(t.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.name))return!0;let{key:r,parent:n}=e;if(r==="left"&&(t.name==="async"&&!n.await||t.name==="let")&&n.type==="ForOfStatement")return!0;if(t.name==="let"){let o=e.findAncestor(i=>i.type==="ForOfStatement"||i.type==="ForInStatement")?.left;if(o&&Ce(o,i=>i===t))return!0}if(r==="object"&&t.name==="let"&&n.type==="MemberExpression"&&n.computed&&!n.optional){let o=e.findAncestor(s=>s.type==="ExpressionStatement"||s.type==="ForStatement"||s.type==="ForInStatement"),i=o?o.type==="ExpressionStatement"?o.expression:o.type==="ForStatement"?o.init:o.left:void 0;if(i&&Ce(i,s=>s===t))return!0}if(r==="expression")switch(t.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let o=e.findAncestor(i=>!de(i));if(o!==n&&o.type==="ExpressionStatement")return!0}}return!1}function El(e){return e!==null&&typeof e=="object"}var nn=El;function*dl(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=i=>nn(i)&&n(i);for(let i of r(e)){let s=e[i];if(Array.isArray(s))for(let u of s)o(u)&&(yield u);else o(s)&&(yield s)}}function*Cl(e,t){let r=[e];for(let n=0;n<r.length;n++){let o=r[n];for(let i of dl(o,t))yield i,r.push(i)}}function Bs(e,{getVisitorKeys:t,predicate:r}){for(let n of Cl(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}var Or=null;function Mr(e){if(Or!==null&&typeof Or.property){let t=Or;return Or=Mr.prototype=null,t}return Or=Mr.prototype=e??Object.create(null),new Mr}var Fl=10;for(let e=0;e<=Fl;e++)Mr();function wo(e){return Mr(e)}function xl(e,t="type"){wo(e);function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return r}var on=xl;var l=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],bs={ArrayExpression:l[0],AssignmentExpression:l[1],BinaryExpression:l[1],InterpreterDirective:[],Directive:l[2],DirectiveLiteral:[],BlockStatement:l[3],BreakStatement:l[4],CallExpression:l[5],CatchClause:["param","body"],ConditionalExpression:l[6],ContinueStatement:l[4],DebuggerStatement:[],DoWhileStatement:l[7],EmptyStatement:[],ExpressionStatement:l[8],File:["program"],ForInStatement:l[9],ForStatement:["init","test","update","body"],FunctionDeclaration:l[10],FunctionExpression:l[10],Identifier:["typeAnnotation","decorators"],IfStatement:l[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:l[1],MemberExpression:l[11],NewExpression:l[5],Program:l[3],ObjectExpression:l[12],ObjectMethod:l[13],ObjectProperty:l[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:l[15],SequenceExpression:l[16],ParenthesizedExpression:l[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:l[15],TryStatement:["block","handler","finalizer"],UnaryExpression:l[15],UpdateExpression:l[15],VariableDeclaration:["declarations"],VariableDeclarator:l[17],WhileStatement:l[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:l[18],ClassExpression:l[19],ClassDeclaration:l[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:l[20],ExportSpecifier:["local","exported"],ForOfStatement:l[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:l[21],ImportNamespaceSpecifier:l[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:l[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:l[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:l[15],AwaitExpression:l[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:l[22],OptionalMemberExpression:l[11],OptionalCallExpression:l[5],ClassProperty:l[23],ClassPrivateProperty:l[23],ClassPrivateMethod:l[13],PrivateName:l[24],StaticBlock:l[18],ImportAttribute:l[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:l[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:l[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:l[28],DeclareModule:l[29],DeclareModuleExports:l[30],DeclareTypeAlias:l[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:l[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:l[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:l[32],GenericTypeAnnotation:l[27],InferredPredicate:[],InterfaceExtends:l[27],InterfaceDeclaration:l[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:l[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:l[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:l[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:l[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:l[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:l[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:l[31],TypeAnnotation:l[30],TypeCastExpression:l[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:l[37],TypeParameterInstantiation:l[37],UnionTypeAnnotation:l[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:l[29],EnumBooleanBody:l[38],EnumNumberBody:l[38],EnumStringBody:l[38],EnumSymbolBody:l[38],EnumBooleanMember:l[17],EnumNumberMember:l[17],EnumStringMember:l[17],EnumDefaultedMember:l[24],IndexedAccessType:l[39],OptionalIndexedAccessType:l[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:l[8],JSXSpreadChild:l[8],JSXIdentifier:[],JSXMemberExpression:l[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:l[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:l[40],Decorator:l[8],DoExpression:l[18],ExportDefaultSpecifier:l[22],ModuleExpression:l[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:l[41],TSDeclareMethod:l[42],TSQualifiedName:l[1],TSCallSignatureDeclaration:l[43],TSConstructSignatureDeclaration:l[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:l[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:l[43],TSConstructorType:l[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:l[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:l[38],TSArrayType:l[26],TSTupleType:l[35],TSOptionalType:l[30],TSRestType:l[30],TSNamedTupleMember:["label","elementType"],TSUnionType:l[33],TSIntersectionType:l[33],TSConditionalType:l[45],TSInferType:l[46],TSParenthesizedType:l[30],TSTypeOperator:l[30],TSIndexedAccessType:l[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:l[47],TSClassImplements:l[48],TSInterfaceHeritage:l[48],TSInterfaceDeclaration:l[28],TSInterfaceBody:l[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:l[48],TSAsExpression:l[36],TSSatisfiesExpression:l[36],TSTypeAssertion:l[36],TSEnumBody:l[38],TSEnumDeclaration:l[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:l[29],TSModuleBlock:l[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:l[8],TSNonNullExpression:l[8],TSExportAssignment:l[8],TSNamespaceExportDeclaration:l[24],TSTypeAnnotation:l[30],TSTypeParameterInstantiation:l[37],TSTypeParameterDeclaration:l[37],TSTypeParameter:["name","constraint","default"],ChainExpression:l[8],Literal:[],MethodDefinition:l[14],PrivateIdentifier:[],Property:l[25],PropertyDefinition:l[23],AccessorProperty:l[40],TSAbstractAccessorProperty:l[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:l[25],TSAbstractPropertyDefinition:l[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:l[8],AsExpression:l[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:l[32],ConditionalTypeAnnotation:l[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:l[29],DeclareHook:l[24],DeclareNamespace:l[29],EnumBigIntBody:l[38],EnumBigIntMember:l[17],EnumBody:l[38],HookDeclaration:l[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:l[46],KeyofTypeAnnotation:l[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:l[24],MatchExpression:l[50],MatchExpressionCase:l[51],MatchIdentifierPattern:l[24],MatchInstanceObjectPattern:l[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:l[47],MatchMemberPattern:["base","property"],MatchObjectPattern:l[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:l[15],MatchStatement:l[50],MatchStatementCase:l[51],MatchUnaryPattern:l[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:l[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:l[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:l[12],SatisfiesExpression:l[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:l[30],TypePredicate:l[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:l[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:l[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:l[25],NGRoot:l[53],JsExpressionRoot:l[53],JsonRoot:l[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:l[30],TSJSDocNonNullableType:l[30]};var Al=on(bs),sn=Al;function _r(e,t){return t(e)||Bs(e,{getVisitorKeys:sn,predicate:t})}function sr(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||M(e)||N(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||de(e)||Re(e)}function Ps(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function un(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function Le(e,t){return H(t)?Lt(t):C(t,T.Leading,r=>J(e,S(r)))}function Tl(e,t){if(Le(t.originalText,e)||C(e,T.Leading,r=>te(t.originalText,b(r),S(r)))&&!H(e))return!0;if(sr(e)){let r=e,n;for(;n=Ps(r);)if(r=n,Le(t.originalText,r))return!0}return!1}var gl=new WeakMap;function an(e,t){return Z(gl,e,r=>Tl(r,t))}function Pe(e){for(;Re(e);)e=e.expression;return e}function Is(e,t,r){let{node:n,key:o,parent:i}=e;switch(i.type){case"ReturnStatement":case"ThrowStatement":if(hl(e,t))return!1;break;case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(o==="superClass"){let s=Pe(n);if(s.type==="ArrowFunctionExpression"||s.type==="AssignmentExpression"||s.type==="AwaitExpression"||s.type==="BinaryExpression"||s.type==="ConditionalExpression"||s.type==="LogicalExpression"||s.type==="NewExpression"||s.type==="ObjectExpression"||s.type==="SequenceExpression"||s.type==="TaggedTemplateExpression"||s.type==="UnaryExpression"||s.type==="UpdateExpression"||s.type==="YieldExpression"||s.type==="ClassExpression"&&j(s.decorators))return!0}break;case"ExportDefaultDeclaration":if(ks(e,t,r))return!0;break;case"Decorator":if(o==="expression"&&!Sl(n))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(s,u)=>u==="returnType"&&s.type==="ArrowFunctionExpression")&&!(n.type==="NullableTypeAnnotation"&&e.call(()=>r(e,t),"typeAnnotation"))&&Bl(n))return!0;break;case"VariableDeclarator":if(o==="init"&&e.match(void 0,void 0,(s,u)=>u==="declarations"&&s.type==="VariableDeclaration",(s,u)=>u==="left"&&s.type==="ForInStatement"))return!0;break;case"TSInstantiationExpression":if(o==="expression"&&(n.type==="AwaitExpression"||n.type==="YieldExpression"))return!0;break}}function hl(e,t){let{key:r,parent:n}=e;if(!(r==="argument"&&ut(n)))return!1;let{node:o}=e;return!!((o.type==="SequenceExpression"||o.type==="AssignmentExpression")&&an(o,t))}function ks(e,t,r){let{node:n,parent:o}=e;return n.type==="FunctionExpression"||n.type==="ClassExpression"?o.type==="ExportDefaultDeclaration"||!r(e,t):!sr(n)||o.type!=="ExportDefaultDeclaration"&&r(e,t)?!1:e.call(()=>ks(e,t,r),...un(n))}function Sl(e){return e.type==="ChainExpression"&&(e=e.expression),Lo(e)||M(e)&&!e.optional&&Lo(e.callee)}function Lo(e){return e.type==="Identifier"?!0:N(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Lo(e.object):!1}function Bl(e){return _r(e,t=>t.type==="ObjectTypeAnnotation"&&_r(t,r=>r.type==="FunctionTypeAnnotation"))}function ws(e,t){if(e.isRoot)return!1;let{node:r,key:n,parent:o}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Il(r)&&Nr(e))return!0;if(bl(r))return!1;if(r.type==="Identifier")return Ss(e);if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let s=e.findAncestor(u=>u.type==="ExpressionStatement")?.expression;if(s&&Ce(s,u=>u===r))return!0}if(r.type==="ObjectExpression"){let s=e.findAncestor(u=>u.type==="ArrowFunctionExpression")?.body;if(s&&s.type!=="SequenceExpression"&&s.type!=="AssignmentExpression"&&Ce(s,u=>u===r))return!0}let i=Is(e,t,ws);if(typeof i=="boolean")return i;switch(r.type){case"UpdateExpression":if(o.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&o.operator==="+"||r.operator==="--"&&o.operator==="-");case"UnaryExpression":switch(o.type){case"UnaryExpression":return r.operator===o.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"&&r.type==="UnaryExpression"&&(o.operator==="in"||o.operator==="instanceof")?!0:n==="left"&&o.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(o.type==="UpdateExpression"||r.operator==="in"&&Pl(e))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let s=e.grandparent;if(s.type==="BinaryExpression"&&s.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(o.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!de(r);case"ConditionalExpression":return de(r)||Ts(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"UnaryExpression":if(!C(r))return!0;break;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||de(r));case"LogicalExpression":if(r.type==="LogicalExpression")return o.operator!==r.operator;case"BinaryExpression":{let{operator:s,type:u}=r;if(!s&&u!=="TSTypeAssertion")return!0;let a=ir(s),c=o.operator,m=ir(c);return!!(m>a||n==="right"&&m===a||m===a&&!Lr(c,s)||m<a&&s==="%"&&(c==="+"||c==="-")||As(c))}default:return!1}break;case"SequenceExpression":return o.type!=="ForStatement";case"YieldExpression":if(o.type==="AwaitExpression"||o.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(o.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!r.argument&&o.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(s=>s.type==="TSFunctionType",(s,u)=>u==="typeAnnotation"&&s.type==="TSTypeAnnotation",(s,u)=>u==="returnType"&&s.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&$e(r)&&o.type===r.type||n==="constraint"&&r.type==="TSConditionalType"&&o.type==="TSTypeParameter"||n==="typeAnnotation"&&r.type==="ConditionalTypeAnnotation"&&o.type==="TypeAnnotation"&&e.grandparent.type==="TypeParameter"&&e.grandparent.bound===o&&e.grandparent.usesExtendsBound||n==="checkType"&&$e(o))return!0;if(n==="extendsType"&&o.type==="TSConditionalType"){let{typeAnnotation:s}=r.returnType||r.typeAnnotation;if(s.type==="TSTypePredicate"&&s.typeAnnotation&&(s=s.typeAnnotation.typeAnnotation),s.type==="TSInferType"&&s.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(pe(o)||At(o))return!0;case"TSInferType":if(r.type==="TSInferType"){if(o.type==="TSRestType")return!1;if(n==="types"&&(o.type==="TSUnionType"||o.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return o.type==="TSArrayType"||o.type==="TSOptionalType"||o.type==="TSRestType"||n==="objectType"&&o.type==="TSIndexedAccessType"||o.type==="TSTypeOperator"||o.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&o.type==="TSIndexedAccessType"||n==="elementType"&&o.type==="TSArrayType";case"TypeOperator":return o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||o.type==="TypeOperator";case"TypeofTypeAnnotation":case"KeyofTypeAnnotation":return n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||n==="elementType"&&o.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return o.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return o.type==="TypeOperator"||o.type==="KeyofTypeAnnotation"||o.type==="ArrayTypeAnnotation"||o.type==="NullableTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="UnionTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":if(o.type==="ArrayTypeAnnotation"||n==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType"))return!0;break;case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(u,a)=>a==="typeAnnotation"&&u.type==="TypeAnnotation",(u,a)=>a==="returnType"&&u.type==="ArrowFunctionExpression")||e.match(void 0,(u,a)=>a==="typeAnnotation"&&u.type==="NullableTypeAnnotation",(u,a)=>a==="typeAnnotation"&&u.type==="TypeAnnotation",(u,a)=>a==="returnType"&&u.type==="ArrowFunctionExpression")||e.match(void 0,(u,a)=>a==="typeAnnotation"&&u.type==="TypePredicate",(u,a)=>a==="typeAnnotation"&&u.type==="TypeAnnotation",(u,a)=>a==="returnType"&&u.type==="ArrowFunctionExpression"))return!0;let s=o.type==="NullableTypeAnnotation"?e.grandparent:o;return s.type==="UnionTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="checkType"&&o.type==="ConditionalTypeAnnotation"||n==="extendsType"&&o.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType.typeParameter.bound||s.type==="NullableTypeAnnotation"||o.type==="FunctionTypeParam"&&o.name===null&&ee(r).some(u=>u.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&o.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&o.type==="ExpressionStatement"&&typeof o.directive!="string"){let s=e.grandparent;return s.type==="Program"||s.type==="BlockStatement"}return n==="object"&&N(o)&&Ee(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&o.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&o.type==="ExpressionStatement"||n==="key"&&o.type==="TSPropertySignature"||o.type==="AssignmentExpression"||n==="expressions"&&o.type==="SequenceExpression"&&e.match(void 0,void 0,(s,u)=>(u==="init"||u==="update")&&s.type==="ForStatement")||n==="value"&&o.type==="Property"&&e.match(void 0,void 0,(s,u)=>u==="properties"&&s.type==="ObjectPattern")||o.type==="NGChainedExpression"||n==="node"&&o.type==="JsExpressionRoot");case"ConditionalExpression":switch(o.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(o.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;case"ExportDefaultDeclaration":return n==="declaration";default:return!1}case"ArrowFunctionExpression":switch(o.type){case"BinaryExpression":return o.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(o.type){case"NewExpression":return n==="callee";case"ExportDefaultDeclaration":return n==="declaration";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"ChainExpression":case"TSNonNullExpression":if(hs(e))return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"ImportExpression":if(n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")){let s=r;for(;s;)switch(s.type){case"CallExpression":case"ImportExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":s=s.object;break;case"TaggedTemplateExpression":s=s.tag;break;case"TSNonNullExpression":s=s.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(o.type==="BindExpression"||o.type==="NewExpression")||n==="object"&&N(o);case"NGPipeExpression":return!(o.type==="NGRoot"||o.type==="NGMicrosyntaxExpression"||o.type==="ObjectProperty"&&!r.extra?.parenthesized||Y(o)||n==="arguments"&&M(o)||n==="right"&&o.type==="NGPipeExpression"||n==="property"&&o.type==="MemberExpression"||o.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&o.type==="BinaryExpression"&&o.operator==="<"||!Y(o)&&o.type!=="ArrowFunctionExpression"&&o.type!=="AssignmentExpression"&&o.type!=="AssignmentPattern"&&o.type!=="BinaryExpression"&&o.type!=="ConditionalExpression"&&o.type!=="ExpressionStatement"&&o.type!=="JsExpressionRoot"&&o.type!=="JSXAttribute"&&o.type!=="JSXElement"&&o.type!=="JSXExpressionContainer"&&o.type!=="JSXFragment"&&o.type!=="LogicalExpression"&&!Tt(o)&&!We(o)&&!ut(o)&&o.type!=="TypeCastExpression"&&o.type!=="VariableDeclarator"&&o.type!=="YieldExpression"&&o.type!=="MatchExpressionCase"&&!(n==="declaration"&&o.type==="ExportDefaultDeclaration");case"TSInstantiationExpression":return n==="object"&&N(o);case"MatchOrPattern":return o.type==="MatchAsPattern"}return!1}var bl=B(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function Pl(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if(n?.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function Il(e){return ie(e)}function Nr(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Nr);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Nr);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Nr);break;case"UnaryExpression":if(t.prefix&&e.callParent(Nr))return!0;break}return!1}var ne=ws;var ze="string",Oe="array",ct="cursor",Ze="indent",et="align",lt="trim",Te="group",Je="fill",Me="if-break",tt="indent-if-break",rt="line-suffix",Ye="line-suffix-boundary",Fe="line",_e="label",Ge="break-parent",pn=new Set([ct,Ze,et,lt,Te,Je,Me,tt,rt,Ye,Fe,_e,Ge]);function kl(e){if(typeof e=="string")return ze;if(Array.isArray(e))return Oe;if(!e)return;let{type:t}=e;if(pn.has(t))return t}var He=kl;var wl=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ll(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
6
+ Expected it to be 'string' or 'object'.`;if(He(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=wl([...pn].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'.
7
+ Expected it to be ${n}.`}var Oo=class extends Error{name="InvalidDocError";constructor(t){super(Ll(t)),this.doc=t}},Ot=Oo;var Ls={};function Ol(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===Ls){r(o.pop());continue}r&&o.push(i,Ls);let s=He(i);if(!s)throw new Ot(i);if(t?.(i)!==!1)switch(s){case Oe:case Je:{let u=s===Oe?i:i.parts;for(let a=u.length,c=a-1;c>=0;--c)o.push(u[c]);break}case Me:o.push(i.flatContents,i.breakContents);break;case Te:if(n&&i.expandedStates)for(let u=i.expandedStates.length,a=u-1;a>=0;--a)o.push(i.expandedStates[a]);else o.push(i.contents);break;case et:case Ze:case tt:case _e:case rt:o.push(i.contents);break;case ze:case ct:case lt:case Ye:case Fe:case Ge:break;default:throw new Ot(i)}}}var cn=Ol;function gt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){return Z(r,i,o)}function o(i){switch(He(i)){case Oe:return t(i.map(n));case Je:return t({...i,parts:i.parts.map(n)});case Me:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Te:{let{expandedStates:s,contents:u}=i;return s?(s=s.map(n),u=s[0]):u=n(u),t({...i,contents:u,expandedStates:s})}case et:case Ze:case tt:case _e:case rt:return t({...i,contents:n(i.contents)});case ze:case ct:case lt:case Ye:case Fe:case Ge:return t(i);default:throw new Ot(i)}}}function Ms(e,t,r){let n=r,o=!1;function i(s){if(o)return!1;let u=t(s);u!==void 0&&(o=!0,n=u)}return cn(e,i),n}function Ml(e){if(e.type===Te&&e.break||e.type===Fe&&e.hard||e.type===Ge)return!0}function ue(e){return Ms(e,Ml,!1)}function Os(e){if(e.length>0){let t=L(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function _s(e){let t=new Set,r=[];function n(i){if(i.type===Ge&&Os(r),i.type===Te){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===Te&&r.pop().break&&Os(r)}cn(e,n,o,!0)}function _l(e){return e.type===Fe&&!e.hard?e.soft?"":" ":e.type===Me?e.flatContents:e}function Jt(e){return gt(e,_l)}function Nl(e){switch(He(e)){case Je:{let{parts:t}=e;if(t.every(r=>r===""))return"";if(t.length===1)return t[0];break}case Te:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Te&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case et:case Ze:case tt:case rt:if(!e.contents)return"";break;case Me:if(!e.flatContents&&!e.breakContents)return"";break;case Oe:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof L(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case ze:case ct:case lt:case Ye:case Fe:case _e:case Ge:break;default:throw new Ot(e)}return e}function ur(e){return gt(e,t=>Nl(t))}function Xe(e,t=ar){return gt(e,r=>typeof r=="string"?w(t,r.split(`
8
+ `)):r)}function jl(e){if(e.type===Fe)return!0}function Ns(e){return Ms(e,jl,!1)}function ln(e,t){return e.type===_e?{...e,contents:t(e.contents)}:t(e)}function js(e){let t=!0;return cn(e,r=>{switch(He(r)){case ze:if(r==="")break;case lt:case Ye:case Fe:case Ge:return t=!1,!1}}),t}var ge=ve,mn=ve,vs=ve,Rs=ve;function f(e){return ge(e),{type:Ze,contents:e}}function he(e,t){return Rs(e),ge(t),{type:et,contents:t,n:e}}function Ws(e){return he(Number.NEGATIVE_INFINITY,e)}function Js(e){return he({type:"root"},e)}function fn(e){return he(-1,e)}function Gs(e,t,r){ge(e);let n=e;if(t>0){for(let o=0;o<Math.floor(t/r);++o)n=f(n);n=he(t%r,n),n=he(Number.NEGATIVE_INFINITY,n)}return n}var Ne={type:Ge};var jr={type:ct};function Dn(e){return vs(e),{type:Je,parts:e}}function p(e,t={}){return ge(e),mn(t.expandedStates,!0),{type:Te,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function mt(e,t){return p(e[0],{...t,expandedStates:e})}function O(e,t="",r={}){return ge(e),t!==""&&ge(t),{type:Me,breakContents:e,flatContents:t,groupId:r.groupId}}function ht(e,t){return ge(e),{type:tt,contents:e,groupId:t.groupId,negate:t.negate}}function w(e,t){ge(e),mn(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function Et(e,t){return ge(t),e?{type:_e,label:e,contents:t}:t}var g={type:Fe},D={type:Fe,soft:!0},Mo={type:Fe,hard:!0},d=[Mo,Ne],vl={type:Fe,hard:!0,literal:!0},ar=[vl,Ne];function _o(e){return ge(e),{type:rt,contents:e}}var Se={type:Ye};var Rl="cr",Wl="crlf";var Jl="\r",Gl=`\r
9
+ `,Ul=`
10
+ `,ql=Ul;function Us(e){return e===Rl?Jl:e===Wl?Gl:ql}var qs=()=>/[#*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\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Ys=12288,Hs=65510,Xs=[12288,12288,65281,65376,65504,65510];var Vs=4352,Ks=262141,No=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var jo=(e,t)=>{let r=0,n=Math.floor(e.length/2)-1;for(;r<=n;){let o=Math.floor((r+n)/2),i=o*2;if(t<e[i])n=o-1;else if(t>e[i+1])r=o+1;else return!0}return!1};var $s=19968,[Yl,Hl]=Xl(No);function Xl(e){let t=e[0],r=e[1];for(let n=0;n<e.length;n+=2){let o=e[n],i=e[n+1];if($s>=o&&$s<=i)return[o,i];i-o>r-t&&(t=o,r=i)}return[t,r]}var vo=e=>e<Ys||e>Hs?!1:jo(Xs,e);var Ro=e=>e>=Yl&&e<=Hl?!0:e<Vs||e>Ks?!1:jo(No,e);var Vl=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,Qs=e=>Vl.test(e);var Kl=/[^\x20-\x7F]/;function $l(e){if(!e)return 0;if(!Kl.test(e))return e.length;let t=0;e=e.replace(qs(),r=>(t+=Qs(r)?1:2,""));for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=vo(n)||Ro(n)?2:1)}return t}var dt=$l;var Ql={type:0},zl={type:1},Wo={value:"",length:0,queue:[],get root(){return Wo}};function zs(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],o="",i=0,s=0,u=0;for(let E of n)switch(E.type){case 0:m(),r.useTabs?a(1):c(r.tabWidth);break;case 3:{let{string:P}=E;m(),o+=P,i+=P.length;break}case 2:{let{width:P}=E;s+=1,u+=P;break}default:throw new Error(`Unexpected indent comment '${E.type}'.`)}return A(),{...e,value:o,length:i,queue:n};function a(E){o+=" ".repeat(E),i+=r.tabWidth*E}function c(E){o+=" ".repeat(E),i+=E}function m(){r.useTabs?y():A()}function y(){s>0&&a(s),x()}function A(){u>0&&c(u),x()}function x(){s=0,u=0}}function Zs(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=zl:n={type:2,width:t}:n={type:3,string:t},zs(e,n,r)}function eu(e,t){return zs(e,Ql,t)}function Zl(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function yn(e){let t=Zl(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Jo=class{#e=[];#t="";#n=0;#o=[];#r=[];#i(){let t=this.#t;t!==""&&(this.#e.push(t),this.#n+=t.length,this.#t="");for(let r of this.#r)this.#o.push(Math.min(r,this.#n));this.#r.length=0}markPosition(){if(this.#o.length+this.#r.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#r.push(this.#n+this.#t.length)}write(t){this.#t+=t}trim(){let{text:t,count:r}=yn(this.#t);return this.#t=t,this.#i(),r}finish(){return this.#i(),{text:this.#e.join(""),positions:this.#o}}},tu=Jo;var nt=Symbol("MODE_BREAK"),Ct=Symbol("MODE_FLAT"),Go=Symbol("DOC_FILL_PRINTED_LENGTH");function En(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let s=t.length,u=!1,a=[e],c="";for(;r>=0;){if(a.length===0){if(s===0)return!0;a.push(t[--s]);continue}let{mode:m,doc:y}=a.pop(),A=He(y);switch(A){case ze:y&&(u&&(c+=" ",r-=1,u=!1),c+=y,r-=dt(y));break;case Oe:case Je:{let x=A===Oe?y:y.parts,E=y[Go]??0;for(let P=x.length-1;P>=E;P--)a.push({mode:m,doc:x[P]});break}case Ze:case et:case tt:case _e:a.push({mode:m,doc:y.contents});break;case lt:{let{text:x,count:E}=yn(c);c=x,r+=E;break}case Te:{if(i&&y.break)return!1;let x=y.break?nt:m,E=y.expandedStates&&x===nt?L(0,y.expandedStates,-1):y.contents;a.push({mode:x,doc:E});break}case Me:{let E=(y.groupId?o[y.groupId]||Ct:m)===nt?y.breakContents:y.flatContents;E&&a.push({mode:m,doc:E});break}case Fe:if(m===nt||y.hard)return!0;y.soft||(u=!0);break;case rt:n=!0;break;case Ye:if(n)return!1;break}}return!1}function Uo(e,t){let r=Object.create(null),n=t.printWidth,o=Us(t.endOfLine),i=0,s=[{indent:Wo,mode:nt,doc:e}],u=!1,a=[],c=new tu;for(_s(e);s.length>0;){let{indent:E,mode:P,doc:F}=s.pop();switch(He(F)){case ze:{let I=o!==`
11
+ `?V(0,F,`
12
+ `,o):F;I&&(c.write(I),s.length>0&&(i+=dt(I)));break}case Oe:for(let I=F.length-1;I>=0;I--)s.push({indent:E,mode:P,doc:F[I]});break;case ct:c.markPosition();break;case Ze:s.push({indent:eu(E,t),mode:P,doc:F.contents});break;case et:s.push({indent:Zs(E,F.n,t),mode:P,doc:F.contents});break;case lt:i-=c.trim();break;case Te:{let I=(function(){if(P===Ct&&!u)return{indent:E,mode:F.break?nt:Ct,doc:F.contents};u=!1;let h=n-i,v=a.length>0,U={indent:E,mode:Ct,doc:F.contents};if(!F.break&&En(U,s,h,v,r))return U;if(!F.expandedStates)return{indent:E,mode:nt,doc:F.contents};if(!F.break)for(let ae=1;ae<F.expandedStates.length-1;ae++){let fe={indent:E,mode:Ct,doc:F.expandedStates[ae]};if(En(fe,s,h,v,r))return fe}return{indent:E,mode:nt,doc:L(0,F.expandedStates,-1)}})();s.push(I),F.id&&(r[F.id]=I.mode);break}case Je:{let I=n-i,k=F[Go]??0,{parts:h}=F,v=h.length-k;if(v===0)break;let U=h[k+0],ae=h[k+1],fe={indent:E,mode:Ct,doc:U},z={indent:E,mode:nt,doc:U},xe=En(fe,[],I,a.length>0,r,!0);if(v===1){xe?s.push(fe):s.push(z);break}let De={indent:E,mode:Ct,doc:ae},xt={indent:E,mode:nt,doc:ae};if(v===2){xe?s.push(De,fe):s.push(xt,z);break}let bt=h[k+2],_={indent:E,mode:P,doc:{...F,[Go]:k+2}},we=En({indent:E,mode:Ct,doc:[U,ae,bt]},[],I,a.length>0,r,!0);s.push(_),we?s.push(De,fe):xe?s.push(xt,fe):s.push(xt,z);break}case Me:case tt:{let I=F.groupId?r[F.groupId]:P;if(I===nt){let k=F.type===Me?F.breakContents:F.negate?F.contents:f(F.contents);k&&s.push({indent:E,mode:P,doc:k})}if(I===Ct){let k=F.type===Me?F.flatContents:F.negate?f(F.contents):F.contents;k&&s.push({indent:E,mode:P,doc:k})}break}case rt:a.push({indent:E,mode:P,doc:F.contents});break;case Ye:a.length>0&&s.push({indent:E,mode:P,doc:Mo});break;case Fe:switch(P){case Ct:if(!F.hard){F.soft||(c.write(" "),i+=1);break}u=!0;case nt:if(a.length>0){s.push({indent:E,mode:P,doc:F},...a.reverse()),a.length=0;break}F.literal?(c.write(o),i=0,E.root&&(E.root.value&&c.write(E.root.value),i=E.root.length)):(c.trim(),c.write(o+E.value),i=E.length);break}break;case _e:s.push({indent:E,mode:P,doc:F.contents});break;case Ge:break;default:throw new Ot(F)}s.length===0&&a.length>0&&(s.push(...a.reverse()),a.length=0)}let{text:m,positions:y}=c.finish();if(y.length!==2)return{formatted:m};let[A,x]=y;return{formatted:m,cursorNodeStart:A,cursorNodeText:m.slice(A,x)}}var St=class extends Error{name="ArgExpansionBailout"};function pr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function em(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ki(e,n),n=tr(e,n),n=at(e,n);return n=rr(e,n),n=pt(e,n),n!==!1&&J(e,n)}var Gt=em;var me=(e,{originalText:t})=>{let r=S(e);if(Gt(t,r))return!0;let n=It(e);return n===r?!1:Gt(t,n)};var tm=B(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),dn=tm;var ru=B(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function rm({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Cn=rm;function cr(e){return Cn(e)||dn(e)||ru(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function nu(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!kt(e,e.typeAnnotation)}function nm(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let o=r[n];if(n===0)return e.type==="Identifier"&&e.name===o;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===o){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===o){e=e.object;continue}return!1}}function lr(e,t){return t.some(r=>nm(e,r))}var om=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function im(e){return lr(e,om)}function sm(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}function qo(e){return M(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}function um(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Ut(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=se(e);if(r.length===1){if(qo(e)&&Ut(t))return wt(r[0]);if(sm(e.callee))return qo(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||q(r[0]))&&im(e.callee))return r[2]&&!Ee(r[2])?!1:(r.length===2?wt(r[1]):um(r[1])&&ee(r[1]).length<=1)||qo(r[1]);return!1}function am(e,t){let r=t-1;r=at(e,r,{backwards:!0}),r=pt(e,r,{backwards:!0}),r=at(e,r,{backwards:!0});let n=pt(e,r,{backwards:!0});return r!==n}var Fn=am;var Yo=()=>!0;function Ho(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function pm(e,t){let r=e.node,n=[Ho(e,t)],{printer:o,originalText:i,locStart:s,locEnd:u}=t;if(o.isBlockComment?.(r)){let m=" ";J(i,u(r))&&(J(i,s(r),{backwards:!0})?m=d:m=g),n.push(m)}else n.push(d);let c=pt(i,at(i,u(r)));return c!==!1&&J(i,c)&&n.push(d),n}function cm(e,t,r){let n=e.node,o=Ho(e,t),{printer:i,originalText:s,locStart:u}=t,a=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||J(s,u(n),{backwards:!0})){let c=Fn(s,u(n));return{doc:_o([d,c?d:"",o]),isBlock:a,hasLineSuffix:!0}}return!a||r?.hasLineSuffix?{doc:[_o([" ",o]),Ne],isBlock:a,hasLineSuffix:!0}:{doc:[" ",o],isBlock:a,hasLineSuffix:!1}}function W(e,t,r={}){let{indent:n=!1,marker:o,filter:i=Yo}=r,s=new Set(e.node?.comments?.filter(c=>!(c.leading||c.trailing||c.marker!==o||!i(c))));if(s.size===0)return"";let u=e.map(({node:c})=>s.has(c)?Ho(e,t):"","comments").filter(Boolean),a=w(d,u);return n?f([d,a]):a}function xn(e,t,r){let n=t[Symbol.for("printedComments")],o=r?.filter??Yo,i=new Set(e.node?.comments?.filter(s=>!n?.has(s)&&s.leading&&o(s)));return i.size===0?"":e.map(({node:s})=>i.has(s)?pm(e,t):"","comments").filter(Boolean)}function ou(e,t,r){let n=e.node?.comments,o=new Set(n?.filter(m=>m.trailing)),i=t[Symbol.for("printedComments")],s=r?.filter??Yo,u=new Set(n?.filter(m=>o.has(m)&&!i?.has(m)&&s(m)));if(u.size===0)return"";let a=[],c;return e.each(({node:m})=>{o.has(m)&&(c=cm(e,t,c),u.has(m)&&a.push(c.doc))},"comments"),a}function An(e,t,r){return{leading:xn(e,t,r),trailing:ou(e,t,r)}}function Q(e,t,r,n){let o=xn(e,r,n),i=ou(e,r,n);return o||i?ln(t,s=>[o,s,i]):t}function Tn(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function $(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":M(t)||N(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function gn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var lm=B(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),mm=e=>{let{node:t}=e;return lm(t)?e.parent.type!=="DeclareExportDeclaration"&&!t.implicitDeclare:t.declare};function re(e){return mm(e)?"declare ":""}var fm=B(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function mr({node:e}){return e.abstract||fm(e)?"abstract ":""}function qt(e){return e.accessibility?e.accessibility+" ":""}var iu=e=>e.type==="UnaryExpression"&&e.operator==="!";function Dm(e){return C(e)||!iu(e)?!1:(e=e.argument,e=iu(e)?e.argument:e,e.type==="LogicalExpression")}function fr(e,t,r){let{node:n}=e,o=n.type==="WithStatement"?"object":"test",i=r(o);return Dm(n[o])?i:p([f([D,i]),D])}function Mt(e,t,r){let{node:n}=e;return C(n,T.Dangling,r)?[f([D,W(e,t,{filter:r})]),C(n,T.Dangling|T.Line,r)?d:D]:""}function Ie(e,t="es5"){return Tn(e,t)?O(","):""}function R(e){return e.semi?";":""}var ym=e=>e.mark!=="commentBeforeArrow";function Ve(e,t,r,n,o){let i=e.node,s=ee(i),u=o&&i.typeParameters?r("typeParameters"):"";if(s.length===0)return[u,"(",Mt(e,t,ym),")"];let{parent:a}=e,c=Ut(a),m=su(i),y=[];if(_i(e,(E,P)=>{let F=P===s.length-1;F&&i.rest&&y.push("..."),y.push(r()),!F&&(y.push(","),c||m?y.push(" "):me(s[P],t)?y.push(d,d):y.push(g))}),n&&!dm(e)){if(ue(u)||ue(y))throw new St;return p([Jt(u),"(",Jt(y),")"])}let A=s.every(E=>!j(E.decorators));return m&&A?[u,"(",...y,")"]:c?[u,"(",...y,")"]:(pr(a)||nu(a)||a.type==="TypeAlias"||a.type==="UnionTypeAnnotation"||a.type==="IntersectionTypeAnnotation"||a.type==="FunctionTypeAnnotation"&&a.returnType===i)&&s.length===1&&s[0].name===null&&i.this!==s[0]&&s[0].typeAnnotation&&i.typeParameters===null&&cr(s[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...y,")"]:y:[u,"(",f([D,...y]),!Ni(i)&&e.root.type!=="NGRoot"?Ie(t,"all"):"",D,")"]}function su(e){if(!e)return!1;let t=ee(e);if(t.length!==1)return!1;let[r]=t;return!C(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Ue(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Ue(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ie(r.right)&&r.right.properties.length===0||Y(r.right)&&r.right.elements.length===0))}function Em(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Bt(e,t){let r=Em(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let o=n[0];if(o.constraint||o.default)return!1}}return ee(e).length===1&&(Ue(r)||ue(t))}function dm(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function uu(e){let t=ee(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function Yt(e,t){return(t==="params"||t==="this"||t==="rest")&&su(e)}var Cm=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Fm=e=>Cm.test(e),au=Fm;function xm(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var _t=xm;var pu=Object.freeze({character:"'",codePoint:39}),cu=Object.freeze({character:'"',codePoint:34}),Am=Object.freeze({preferred:pu,alternate:cu}),Tm=Object.freeze({preferred:cu,alternate:pu});function hn(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?Am:Tm,{length:o}=e,i=0,s=0;for(let u=0;u<o;u++){let a=e.charCodeAt(u);a===r.codePoint?i++:a===n.codePoint&&s++}return(i>s?n:r).character}var gm=/\\(["'\\])|(["'])/g;function hm(e,t){let r=t==='"'?"'":'"',n=V(0,e,gm,(o,i,s)=>i?i===r?r:o:s===t?"\\"+s:s);return t+n+t}var mu=hm;function Sm(e,t){ve(/^(?<quote>["']).*\k<quote>$/s.test(e));let r=e.slice(1,-1),n;return t.parser==="json"||t.parser==="jsonc"||t.parser==="json-stringify"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?n='"':t.__isInHtmlAttribute?n="'":n=hn(r,t.singleQuote),e.charAt(0)===n?e:mu(r,n)}var ot=Sm;var fu=e=>e.type==="TSEnumMember",Du=e=>fu(e)?"id":"key",vr=e=>e[Du(e)],yu=e=>!fu(e)&&e.computed;function Eu(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}var Bm=({parser:e})=>e==="typescript"||e==="babel-ts"||e==="oxc-ts";function bm(e,t){let r=vr(e);if(r.type==="Identifier")return!0;if(!Ee(r)||Bm(t))return!1;let n=_t(ye(r));return String(r.value)===n&&Eu(n)}function du(e,t){let{parser:r}=t;if(r==="json"||r==="jsonc")return!1;let n=vr(e);if(!q(n))return!1;let{value:o}=n;return ot(ye(n),t).slice(1,-1)!==o?!1:!!(!(r==="babel-ts"&&e.type==="ClassProperty"||(r==="typescript"||r==="oxc-ts")&&e.type==="PropertyDefinition")&&au(o)||(r==="babel"||r==="acorn"||r==="oxc"||r==="espree"||r==="meriyah"||r==="__babel_estree")&&e.type!=="ImportAttribute"&&Eu(o)&&String(Number(o))===o)}var Pm=new WeakMap;function Cu(e,t){return Z(Pm,e.parent,()=>e.siblings.some(r=>{if(yu(r))return!1;let n=vr(r);return q(n)&&!du(r,t)}))}function Im(e,t){return(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Cu(e,t))&&bm(e.node,t)}function km(e,t){return(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Cu(e,t))&&du(e.node,t)}function je(e,t,r){let{node:n}=e,o=Du(n);if(yu(n))return["[",r(o),"]"];if(Im(e,t)){let i=vr(n),s=ot(JSON.stringify(i.type==="Identifier"?i.name:String(i.value)),t);return e.call(()=>Q(e,s,t),o)}if(km(e,t)){let{value:i}=vr(n),s=/^\d/.test(i)?_t(i):i;return e.call(()=>Q(e,s,t),o)}return r(o)}var wm=B(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Lm=B(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function Vo(e){return e.key==="elementTypes"&&Zt(e.parent)&&e.parent.elementTypes.length>1}function Ht(e){let{types:t}=e;if(t.some(n=>C(n)))return!1;let r=t.find(n=>Lm(n));return r?t.every(n=>n===r||wm(n)):!1}function Sn(e){let{key:t,node:r,parent:n}=e;return!(Ht(r)||t==="types"&&pe(n)||t==="types"&&At(n)||Vo(e))}function Bn(e,t,r,n){let{node:o}=e;if(Ht(o))return w(" | ",e.map(r,"types"));let i=p(e.map(({isFirst:s})=>{let u=s?O("| "):[g,"| "],a=r();return C(e.node,T.Leading)?[u,he(2,Q(e,a,t))]:[u,Q(e,he(2,a),t)]},"types"));return Sn(e)&&(i=Q(e,i,t)),ne(e,t)?p([f([D,i]),D]):Vo(e)?p([f([O(["(",D]),i]),D,O(")")]):n?.assignmentLayout==="break-after-operator"||!Om(e)?i:p(f([D,i]))}function Om(e){let{key:t,parent:r}=e;return!(t==="typeAnnotation"&&r.type==="TSTypeAssertion"||t==="elementTypes"&&Zt(r)||(t==="trueType"||t==="falseType")&&$e(r)||t==="params"&&Hi(r)||t==="typeAnnotation"&&r.type==="FunctionTypeParam"&&!r.name&&e.grandparent.this!==r||e.match(void 0,(n,o)=>o==="typeAnnotation"&&n.type==="FunctionTypeParam",(n,o)=>o==="params"&&n.type==="FunctionTypeAnnotation",(n,o)=>o==="value"&&n.type==="ObjectTypeProperty"&&pr(n)))}function Fu(e){return cr(e)||Ue(e)?!0:pe(e)?Ht(e):!1}var Mm=new WeakSet;function G(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let o=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(xu,r);(i==="=>"||i===":"&&C(n,T.Leading))&&(o=!0),Mm.add(n)}return o?[" ",t(r)]:t(r)}var xu=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function bn(e,t,r){let n=xu(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}var _m=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Ke(r));function Dr(e,t,r,n){if(_m(e))return Pn(e,t,r);let{node:o}=e,i=!1;if(o.type==="FunctionExpression"&&n?.expandLastArg){let{parent:y}=e;M(y)&&(se(y).length>1||ee(o).every(A=>A.type==="Identifier"&&!A.typeAnnotation))&&(i=!0)}let s=Ve(e,t,r,i),u=kn(e,r),a=Bt(o,u),m=o.type==="HookDeclaration"?"hook":"function";return[re(e),o.async?"async ":"",m,o.generator?"*":""," ",o.id?r("id"):"",r("typeParameters"),p([a?p(s):s,u]),o.body?" ":"",r("body"),o.declare||!o.body?R(t):""]}function Rr(e,t,r){let{node:n}=e,{kind:o}=n,i=n.value||n,s=[];return!o||o==="init"||o==="method"||o==="constructor"?i.async&&s.push("async "):(ve(o==="get"||o==="set"),s.push(o," ")),i.generator&&s.push("*"),s.push(je(e,t,r),n.optional?"?":"",n===i?Pn(e,t,r):r("value")),s}function Pn(e,t,r){let{node:n}=e,o=Ve(e,t,r),i=kn(e,r),s=uu(n),u=Bt(n,i),a=[r("typeParameters"),p([s?p(o,{shouldBreak:!0}):u?p(o):o,i])];return n.body?a.push(" ",r("body")):a.push(R(t)),a}function Nm(e){let t=ee(e);return t.length===1&&!e.typeParameters&&!C(e,T.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!C(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function In(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return Nm(r)}return!1}function kn(e,t){let{node:r}=e,o=[G(e,t,"returnType")];return r.predicate&&o.push(t("predicate")),o}function yr(e,t){if(t.semi)return!1;let{node:r}=e;if(r.type!=="ExpressionStatement"||$o(e,t)||zo(e,t)||Qo(e,t))return!1;let{key:n,parent:o}=e;return!!((n==="body"&&(o.type==="Program"||o.type==="BlockStatement"||o.type==="StaticBlock"||o.type==="TSModuleBlock")||n==="consequent"&&o.type==="SwitchCase")&&e.call(()=>Au(e,t),"expression"))}function Au(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"TSTypeAssertion":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!In(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:o}=r;if(n&&(o==="+"||o==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(H(r))return!0}return ne(e,t)?!0:sr(r)?e.call(()=>Au(e,t),...un(r)):!1}var Ko=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function $o(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&Ko(e)&&H(e.node.expression)}function Qo(e,t){return t.__isHtmlInlineEventHandler&&Ko(e)}function zo(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&Ko(e)}function wn(e,t){if(!yr(e,t))return!1;let r=L(0,oe(e.node,T.Leading),-1);return!!(r&&nr(r))}var jm=B(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function vm(e,t){let{key:r,parent:n}=e;if(r==="types"&&pe(n)||r==="argument"&&n.type==="JSXSpreadAttribute"||r==="expression"&&n.type==="JSXSpreadChild"||r==="superClass"&&(n.type==="ClassDeclaration"||n.type==="ClassExpression")||(r==="id"||r==="typeParameters")&&jm(n)||r==="patterns"&&n.type==="MatchOrPattern"||en(e))return!0;let{node:o}=e;return Lt(o)?!1:o.type==="ExpressionStatement"?wn(e,t):pe(o)?Sn(e):!!H(o)}var Tu=vm;function Rm(e,t,r=0){let n=0;for(let o=r;o<e.length;++o)e[o]===" "?n=n+t-n%t:n++;return n}var gu=Rm;function Wm(e,t){let r=e.lastIndexOf(`
13
+ `);return r===-1?0:gu(e.slice(r+1).match(/^[\t ]*/)[0],t)}var hu=Wm;function Ln(e,t,r){if(Ym(e)){let i=Jm(e,t,r);if(i)return i}let n=Nt(e,t,r),o=e.map(({isLast:i,index:s})=>[r(),i?"":n[s]],"quasis");return[Se,"`",...o,"`"]}function Bu(e,t,r){let n=r("quasi"),{node:o}=e,i="",s=oe(o.quasi,T.Leading)[0];return s&&(te(t.originalText,S(o.typeArguments??o.tag),b(s))?i=D:i=" "),Et(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),i,Se,n])}function Jm(e,t,r){let{node:n}=e,o=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(o.length>1||o.some(i=>i.length>0)){t.__inJestEach=!0;let i=Nt(e,t,r);t.__inJestEach=!1;let s=i.map(y=>Uo(y,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted),u=[{hasLineBreak:!1,cells:[]}];for(let y=1;y<n.quasis.length;y++){let A=L(0,u,-1),x=s[y-1];A.cells.push(x),x.includes(`
14
+ `)&&(A.hasLineBreak=!0),n.quasis[y].value.raw.includes(`
15
+ `)&&u.push({hasLineBreak:!1,cells:[]})}let a=Math.max(o.length,...u.map(y=>y.cells.length)),c=Array.from({length:a},()=>0),m=[{cells:o},...u.filter(y=>y.cells.length>0)];for(let y of m)if(!y.hasLineBreak)for(let[A,x]of y.cells.entries())c[A]=Math.max(c[A],dt(x));return[Se,"`",f([d,w(d,m.map(y=>w(" | ",y.cells.map((A,x)=>y.hasLineBreak?A:A+" ".repeat(c[x]-dt(A))))))]),d,"`"]}}var Gm=new WeakMap;function Um(e,t){let{parent:r,index:n}=e;return Z(Gm,r,i=>{let{tabWidth:s}=t,u=0;return i.quasis.map(c=>{let m=c.value.raw,y=m.includes(`
16
+ `)?hu(m,s):u;return u=y,{indentSize:y,previousQuasiText:m}})})[n]}function qm(e,t,r){let{node:n,index:o}=e,i=r(),s=e.parent,{quasis:u}=s,a=S(u[o]),c=b(u[o+1]),m=te(t.originalText,a,c);if(!m){let x=Uo(i,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;x.includes(`
17
+ `)?m=!0:i=x}m&&(C(n)||n.type==="Identifier"||N(Pe(n))||n.type==="ConditionalExpression"||n.type==="SequenceExpression"||de(n)||Be(n))&&(i=[f([D,i]),D]);let{indentSize:y,previousQuasiText:A}=Um(e,t);return t.__inJestEach&&(y=Math.max(y,t.tabWidth)),i=y===0&&A.endsWith(`
18
+ `)?he(Number.NEGATIVE_INFINITY,i):Gs(i,y,t.tabWidth),p(["${",i,Se,"}"])}function Nt(e,t,r){return e.map(()=>qm(e,t,r),e.node.type==="TSTemplateLiteralType"?"types":"expressions")}function On(e,t){return gt(e,r=>typeof r=="string"?t?V(0,r,/(\\*)`/g,"$1$1\\`"):Zo(r):r)}function Zo(e){return V(0,e,/([\\`]|\$\{)/g,"\\$1")}var Su=/^[fx]?(?:describe|it|test)$/;function Ym({node:e,parent:t}){return e.type==="TemplateLiteral"&&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"&&Su.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"&&Su.test(t.tag.object.object.name))}var ti=[(e,t)=>t==="properties"&&e.type==="ObjectExpression",(e,t)=>t==="arguments"&&e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component",(e,t)=>t==="expression"&&e.type==="Decorator"];function bu(e){let t=n=>n.type==="TemplateLiteral",r=(n,o)=>We(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&o==="value";return e.match(t,(n,o)=>Y(n)&&o==="elements",r,...ti)||e.match(t,r,...ti)}function ri(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>We(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...ti)}function ei(e,t){return C(e,T.Block|T.Leading,({value:r})=>r===` ${t} `)}function Mn({node:e,parent:t},r){return ei(e,r)||Hm(t)&&ei(t,r)||t.type==="ExpressionStatement"&&ei(t,r)}function Hm(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Iu(e,t,r,n){let{node:o}=r,i="";for(let[c,m]of o.quasis.entries()){let{raw:y}=m.value;c>0&&(i+="@prettier-placeholder-"+(c-1)+"-id"),i+=y}let s=await e(i,{parser:"scss"}),u=Nt(r,n,t),a=Xm(s,u);if(!a)throw new Error("Couldn't insert all the expressions");return["`",f([d,a]),D,"`"]}function Xm(e,t){if(!j(t))return e;let r=0,n=gt(ur(e),o=>typeof o!="string"||!o.includes("@prettier-placeholder")?o:o.split(/@prettier-placeholder-(\d+)-id/).map((i,s)=>s%2===0?Xe(i):(r++,t[i])));return t.length===r?n:null}function Vm(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&lr(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function _n(e){return e.type==="Identifier"&&e.name==="styled"}function Pu(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Km({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 _n(t.object)||Pu(t);case"CallExpression":return _n(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(_n(t.callee.object.object)||Pu(t.callee.object))||t.callee.object.type==="CallExpression"&&_n(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function $m({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var ku=e=>Vm(e)||Km(e)||$m(e)||bu(e);async function wu(e,t,r,n){let{node:o}=r,i=o.quasis.length,s=Nt(r,n,t),u=[];for(let a=0;a<i;a++){let c=o.quasis[a],m=a===0,y=a===i-1,A=c.value.cooked,x=A.split(`
19
+ `),E=x.length;if(!y&&/#[^\n\r]*$/.test(x[E-1]))return null;let P=E>2&&x[0].trim()===""&&x[1].trim()==="",F=E>2&&x[E-1].trim()===""&&x[E-2].trim()==="",I=x.every(h=>/^\s*(?:#[^\n\r]*)?$/.test(h)),k;I?k=Qm(x):k=await e(A,{parser:"graphql"}),k?(k=On(k,!1),!m&&P&&u.push(""),u.push(k),!y&&F&&u.push("")):!m&&!y&&P&&u.push(""),y||u.push(s[a])}return["`",f([d,w(d,u)]),d,"`"]}function Qm(e){let t=[],r=!1,n=e.map(o=>o.trim());for(let[o,i]of n.entries())i!==""&&(n[o-1]===""&&r?t.push([d,i]):t.push(i),r=!0);return t.length===0?null:w(d,t)}function Lu({node:e,parent:t}){return Mn({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")}var ni=0;async function Ou(e,t,r,n,o){let{node:i}=n,s=ni;ni=ni+1>>>0;let u=I=>`PRETTIER_HTML_PLACEHOLDER_${I}_${s}_IN_JS`,a=i.quasis.map((I,k,h)=>k===h.length-1?I.value.cooked:I.value.cooked+u(k)).join(""),c=Nt(n,o,r),m=new RegExp(u("(\\d+)"),"g"),y=0,A=await t(a,{parser:e,__onHtmlRoot(I){y=I.children.length}}),x=gt(A,I=>{if(typeof I!="string")return I;let k=[],h=I.split(m);for(let v=0;v<h.length;v++){let U=h[v];if(v%2===0){U&&(U=Zo(U),o.__embeddedInHtml&&(U=V(0,U,/<\/(?=script\b)/gi,"<\\/")),k.push(U));continue}let ae=Number(U);k.push(c[ae])}return k}),E=/^\s/.test(a)?" ":"",P=/\s$/.test(a)?" ":"",F=o.htmlWhitespaceSensitivity==="ignore"?d:E&&P?g:null;return F?p(["`",f([F,p(x)]),F,"`"]):Et({hug:!1},p(["`",E,y>1?f(p(x)):p(x),P,"`"]))}function Mu(e){return Mn(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var _u=Ou.bind(void 0,"html"),Nu=Ou.bind(void 0,"angular");async function ju(e,t,r){let{node:n}=r,o=V(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(a,c)=>"\\".repeat(c.length/2)+"`"),i=zm(o),s=i!=="";s&&(o=V(0,o,new RegExp(`^${i}`,"gm"),""));let u=On(await e(o,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",s?f([D,u]):[ar,Ws(u)],D,"`"]}function zm(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}function vu({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Zm=[{test:ku,print:Iu},{test:Lu,print:wu},{test:Mu,print:_u},{test:ri,print:Nu},{test:vu,print:ju}].map(({test:e,print:t})=>({test:e,print:tf(t)}));function ef(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||rf(t))return;let r=Zm.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function tf(e){return async(...t)=>{let r=await e(...t);return r&&Et({embed:!0,...r.label},r)}}function rf({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Ru=ef;function Wu(e,t){e.type==="ChainExpression"?nf(t):(e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression")&&of(t)}function Ju(e){if(N(e))return"object";if(M(e))return"callee";if(Re(e))return"expression"}function Nn(e){let t=Ju(e);if(t)return e[t]}function nf(e){for(e=Nn(e);e.type==="MemberExpression"||e.type==="CallExpression"||e.type==="TSNonNullExpression";e=Nn(e)){let t=Ju(e),r=e[t];r.type==="ChainExpression"&&(e[t]=r.expression)}}function of(e){for(e=Nn(e);e.type==="MemberExpression"||e.type==="CallExpression";e=Nn(e))e.type=`Optional${e.type}`}function Gu(e,t,r){let n=t[r];(q(n)||Ee(n))&&(e[r]=String(n.value)),n.type==="Identifier"&&(e[r]=n.name)}function Uu(e,t){(e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="TSMethodSignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute"||e.type==="RecordDeclarationProperty"||e.type==="RecordDeclarationStaticProperty")&&!e.computed&&Gu(t,e,"key"),e.type==="TSEnumMember"&&Gu(t,e,"id")}function qu(e,t){e.type==="RegExpLiteral"&&(t.flags=[...e.flags].sort().join("")),e.type==="Literal"&&"regex"in e&&(t.regex.flags=[...e.regex.flags].sort().join(""))}var sf=new Set(["range","raw","comments","extra","start","end","loc","errors","tokens","trailingComma","docblock","__contentEnd"]),Er=e=>{for(let t of e.quasis)delete t.value};function oi(e,t,r){if(e.type==="Program"&&delete t.sourceType,Wu(e,t),Uu(e,t),qu(e,t),(Ji(e)||e.type==="BigIntLiteralTypeAnnotation")&&"bigint"in e&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!zt({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if(e.type==="JSXElement"&&e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.name==="jsx"))for(let{type:o,expression:i}of t.children)o==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&Er(i);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Er(t.value.expression),e.type==="JSXAttribute"&&q(e.value)&&/["']|&quot;|&apos;/.test(e.value.value)&&(t.value.value=V(0,e.value.value,/["']|&quot;|&apos;/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let o=e.expression.arguments[0].properties;for(let[i,s]of t.expression.arguments[0].properties.entries())switch(o[i].key.name){case"styles":Y(s.value)&&Er(s.value.elements[0]);break;case"template":s.value.type==="TemplateLiteral"&&Er(s.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Er(t.quasi),(e.type==="CallExpression"||e.type==="MemberExpression")&&!e.optional&&delete t.optional,e.type==="TemplateLiteral"&&Er(t)}oi.ignoredProperties=sf;var uf=/\*\/$/,af=/^\/\*\*?/,Vu=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,pf=/(^|\s+)\/\/([^\n\r]*)/g,Yu=/^(\r?\n)+/,cf=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Hu=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,lf=/(\r?\n|^) *\* ?/g,Ku=[];function $u(e){let t=e.match(Vu);return t?t[0].trimStart():""}function Qu(e){let r=e.match(Vu)?.[0];return r==null?e:e.slice(r.length)}function zu(e){e=V(0,e.replace(af,"").replace(uf,""),lf,"$1");let r="";for(;r!==e;)r=e,e=V(0,e,cf,`
23
20
  $1 $2
24
- `);e=e.replace(To,"").trimEnd();let n=Object.create(null),s=W(0,e,xo,"").replace(To,"").trimEnd(),i;for(;i=xo.exec(e);){let o=W(0,i[2],Xc,"");if(typeof n[i[1]]=="string"||Array.isArray(n[i[1]])){let u=n[i[1]];n[i[1]]=[...So,...Array.isArray(u)?u:[u],o]}else n[i[1]]=o}return{comments:s,pragmas:n}}function ko({comments:e="",pragmas:t={}}){let o=Object.keys(t),u=o.flatMap(c=>go(c,t[c])).map(c=>` * ${c}
25
- `).join("");if(!e){if(o.length===0)return"";if(o.length===1&&!Array.isArray(t[o[0]])){let c=t[o[0]];return`/** ${go(o[0],c)[0]} */`}}let p=e.split(`
21
+ `);e=e.replace(Yu,"").trimEnd();let n=Object.create(null),o=V(0,e,Hu,"").replace(Yu,"").trimEnd(),i;for(;i=Hu.exec(e);){let s=V(0,i[2],pf,"");if(typeof n[i[1]]=="string"||Array.isArray(n[i[1]])){let u=n[i[1]];n[i[1]]=[...Ku,...Array.isArray(u)?u:[u],s]}else n[i[1]]=s}return{comments:o,pragmas:n}}function Zu({comments:e="",pragmas:t={}}){let s=Object.keys(t),u=s.flatMap(c=>Xu(c,t[c])).map(c=>` * ${c}
22
+ `).join("");if(!e){if(s.length===0)return"";if(s.length===1&&!Array.isArray(t[s[0]])){let c=t[s[0]];return`/** ${Xu(s[0],c)[0]} */`}}let a=e.split(`
26
23
  `).map(c=>` * ${c}`).join(`
27
24
  `)+`
28
25
  `;return`/**
29
- `+(e?p:"")+(e&&o.length>0?` *
30
- `:"")+u+" */"}function go(e,t){return[...So,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var Io="format";function Kc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
31
- `);return t===-1?e:e.slice(0,t)}var Lo=Kc;function Qc(e){let t=Lo(e);t&&(e=e.slice(t.length+1));let r=Bo(e),{pragmas:n,comments:s}=Po(r);return{shebang:t,text:e,pragmas:n,comments:s}}function Oo(e){let{shebang:t,text:r,pragmas:n,comments:s}=Qc(e),i=bo(r),o=ko({pragmas:{[Io]:"",...n},comments:s.trimStart()});return(t?`${t}
32
- `:"")+o+(i.startsWith(`
26
+ `+(e?a:"")+(e&&s.length>0?` *
27
+ `:"")+u+" */"}function Xu(e,t){return[...Ku,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var ea="format";function mf(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
28
+ `);return t===-1?e:e.slice(0,t)}var ta=mf;function ff(e){let t=ta(e);t&&(e=e.slice(t.length+1));let r=$u(e),{pragmas:n,comments:o}=zu(r);return{shebang:t,text:e,pragmas:n,comments:o}}function ra(e){let{shebang:t,text:r,pragmas:n,comments:o}=ff(e),i=Qu(r),s=Zu({pragmas:{[ea]:"",...n},comments:o.trimStart()});return(t?`${t}
29
+ `:"")+s+(i.startsWith(`
33
30
  `)?`
34
31
  `:`
35
32
 
36
- `)+i}function zc(e){if(!ce(e))return!1;let t=`*${e.value}*`.split(`
37
- `);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var ds=new WeakMap;function Zc(e){return ds.has(e)||ds.set(e,zc(e)),ds.get(e)}var wo=Zc;function _o(e,t){let r=e.node;if(At(r))return t.originalText.slice(w(r),I(r)).trimEnd();if(wo(r))return el(r);if(ce(r))return["/*",qe(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function el(e){let t=e.value.split(`
38
- `);return["/*",L(E,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}function Cs(e,t){if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&sl(r)&&xr(e))return!0;if(tl(r))return!1;if(r.type==="Identifier"){if(r.extra?.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 i=e.findAncestor(o=>o.type==="ForOfStatement")?.left;if(i&&ye(i,o=>o===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let i=e.findAncestor(u=>u.type==="ExpressionStatement"||u.type==="ForStatement"||u.type==="ForInStatement"),o=i?i.type==="ExpressionStatement"?i.expression:i.type==="ForStatement"?i.init:i.left:void 0;if(o&&ye(o,u=>u===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 i=e.findAncestor(o=>!Ae(o));if(i!==s&&i.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let i=e.findAncestor(o=>o.type==="ExpressionStatement")?.expression;if(i&&ye(i,o=>o===r))return!0}if(r.type==="ObjectExpression"){let i=e.findAncestor(o=>o.type==="ArrowFunctionExpression")?.body;if(i&&i.type!=="SequenceExpression"&&i.type!=="AssignmentExpression"&&ye(i,o=>o===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"&&R(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return Mo(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!ol(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(i,o)=>o==="returnType"&&i.type==="ArrowFunctionExpression")&&nl(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,(i,o)=>o==="declarations"&&i.type==="VariableDeclaration",(i,o)=>o==="left"&&i.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"&&rl(e))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let i=e.grandparent;if(i.type==="BinaryExpression"&&i.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!Ae(r);case"ConditionalExpression":return Ae(r)||yi(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Ae(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:i,type:o}=r;if(!i&&o!=="TSTypeAssertion")return!0;let u=yr(i),p=s.operator,c=yr(p);return!!(c>u||n==="right"&&c===u||c===u&&!dr(p,i)||c<u&&i==="%"&&(p==="+"||p==="-")||Ti(p))}default:return!1}case"SequenceExpression":return s.type!=="ForStatement";case"YieldExpression":if(s.type==="AwaitExpression"||s.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!r.argument&&s.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(i=>i.type==="TSFunctionType",(i,o)=>o==="typeAnnotation"&&i.type==="TSTypeAnnotation",(i,o)=>o==="returnType"&&i.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&Ue(r)&&s.type===r.type||n==="checkType"&&Ue(s))return!0;if(n==="extendsType"&&s.type==="TSConditionalType"){let{typeAnnotation:i}=r.returnType||r.typeAnnotation;if(i.type==="TSTypePredicate"&&i.typeAnnotation&&(i=i.typeAnnotation.typeAnnotation),i.type==="TSInferType"&&i.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(Se(s)||xt(s))return!0;case"TSInferType":if(r.type==="TSInferType"){if(s.type==="TSRestType")return!1;if(n==="types"&&(s.type==="TSUnionType"||s.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeOperator":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||s.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="TypeOperator"||s.type==="KeyofTypeAnnotation"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(o,u)=>u==="typeAnnotation"&&o.type==="TypeAnnotation",(o,u)=>u==="returnType"&&o.type==="ArrowFunctionExpression")||e.match(void 0,(o,u)=>u==="typeAnnotation"&&o.type==="TypePredicate",(o,u)=>u==="typeAnnotation"&&o.type==="TypeAnnotation",(o,u)=>u==="returnType"&&o.type==="ArrowFunctionExpression"))return!0;let i=s.type==="NullableTypeAnnotation"?e.grandparent:s;return i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||i.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&K(r).some(o=>o.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&typeof s.directive!="string"){let i=e.grandparent;return i.type==="Program"||i.type==="BlockStatement"}return n==="object"&&J(s)&&Ce(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&s.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&s.type==="ExpressionStatement"||n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||n==="expressions"&&s.type==="SequenceExpression"&&e.match(void 0,void 0,(i,o)=>(o==="init"||o==="update")&&i.type==="ForStatement")||n==="value"&&s.type==="Property"&&e.match(void 0,void 0,(i,o)=>o==="properties"&&i.type==="ObjectPattern")||s.type==="NGChainedExpression"||n==="node"&&s.type==="JsExpressionRoot");case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(il(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let i=r;for(;i;)switch(i.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":i=i.object;break;case"TaggedTemplateExpression":i=i.tag;break;case"TSNonNullExpression":i=i.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&J(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!r.extra?.parenthesized||q(s)||n==="arguments"&&M(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!q(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!M(s)&&!Oe(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression"&&s.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&J(s);case"MatchOrPattern":return s.type==="MatchAsPattern"}return!1}var tl=k(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function rl(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if(n?.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function nl(e){return Er(e,t=>t.type==="ObjectTypeAnnotation"&&Er(t,r=>r.type==="FunctionTypeAnnotation"))}function sl(e){return se(e)}function xr(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(xr);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(xr);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(xr);break;case"UnaryExpression":if(t.prefix)return e.callParent(xr);break}return!1}function Mo(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Cs(e,t):!Xt(r)||n.type!=="ExportDefaultDeclaration"&&Cs(e,t)?!1:e.call(()=>Mo(e,t),...Rr(r))}function il(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function As(e){return e.type==="Identifier"?!0:J(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&As(e.object):!1}function ol(e){return e.type==="ChainExpression"&&(e=e.expression),As(e)||M(e)&&!e.optional&&As(e.callee)}var ge=Cs;function ul(e,t){let r=t-1;r=ze(e,r,{backwards:!0}),r=Ze(e,r,{backwards:!0}),r=ze(e,r,{backwards:!0});let n=Ze(e,r,{backwards:!0});return r!==n}var No=ul;var al=()=>!0;function Ts(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function pl(e,t){let r=e.node,n=[Ts(e,t)],{printer:s,originalText:i,locStart:o,locEnd:u}=t;if(s.isBlockComment?.(r)){let y=Z(i,u(r))?Z(i,o(r),{backwards:!0})?E:A:" ";n.push(y)}else n.push(E);let c=Ze(i,ze(i,u(r)));return c!==!1&&Z(i,c)&&n.push(E),n}function cl(e,t,r){let n=e.node,s=Ts(e,t),{printer:i,originalText:o,locStart:u}=t,p=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||Z(o,u(n),{backwards:!0})){let c=No(o,u(n));return{doc:as([E,c?E:"",s]),isBlock:p,hasLineSuffix:!0}}return!p||r?.hasLineSuffix?{doc:[as([" ",s]),ke],isBlock:p,hasLineSuffix:!0}:{doc:[" ",s],isBlock:p,hasLineSuffix:!1}}function v(e,t,r={}){let{node:n}=e;if(!R(n?.comments))return"";let{indent:s=!1,marker:i,filter:o=al}=r,u=[];if(e.each(({node:c})=>{c.leading||c.trailing||c.marker!==i||!o(c)||u.push(Ts(e,t))},"comments"),u.length===0)return"";let p=L(E,u);return s?m([E,p]):p}function Mt(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(p=>!n.has(p)).length===0)return{leading:"",trailing:""};let i=[],o=[],u;return e.each(()=>{let p=e.node;if(n?.has(p))return;let{leading:c,trailing:y}=p;c?i.push(pl(e,t)):y&&(u=cl(e,t,u),o.push(u.doc))},"comments"),{leading:i,trailing:o}}function De(e,t,r){let{leading:n,trailing:s}=Mt(e,r);return!n&&!s?t:Ar(t,i=>[n,i,s])}var Et=class extends Error{name="ArgExpansionBailout"};function Ke(e,t,r,n,s){let i=e.node,o=K(i),u=s&&i.typeParameters?r("typeParameters"):"";if(o.length===0)return[u,"(",v(e,t,{filter:d=>_e(t.originalText,I(d))===")"}),")"];let{parent:p}=e,c=It(p),y=jo(i),D=[];if(gi(e,(d,b)=>{let B=b===o.length-1;B&&i.rest&&D.push("..."),D.push(r()),!B&&(D.push(","),c||y?D.push(" "):oe(o[b],t)?D.push(E,E):D.push(A))}),n&&!ml(e)){if(ne(u)||ne(D))throw new Et;return l([_t(u),"(",_t(D),")"])}let F=o.every(d=>!R(d.decorators));return y&&F?[u,"(",...D,")"]:c?[u,"(",...D,")"]:(Gr(p)||Fi(p)||p.type==="TypeAlias"||p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="FunctionTypeAnnotation"&&p.returnType===i)&&o.length===1&&o[0].name===null&&i.this!==o[0]&&o[0].typeAnnotation&&i.typeParameters===null&&Vt(o[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...D,")"]:D:[u,"(",m([f,...D]),P(!xi(i)&&ie(t,"all")&&e.root.type!=="NGRoot"?",":""),f,")"]}function jo(e){if(!e)return!1;let t=K(e);if(t.length!==1)return!1;let[r]=t;return!T(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Je(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Je(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||se(r.right)&&r.right.properties.length===0||q(r.right)&&r.right.elements.length===0))}function ll(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function lt(e,t){let r=ll(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let s=n[0];if(s.constraint||s.default)return!1}}return K(e).length===1&&(Je(r)||ne(t))}function ml(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function vo(e){let t=K(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function Nt(e,t){return(t==="params"||t==="this"||t==="rest")&&jo(e)}function X(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":M(t)||J(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function sn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var Dl=k(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Q(e){let{node:t}=e;return t.declare||Dl(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var fl=k(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Zt({node:e}){return e.abstract||fl(e)?"abstract ":""}function Ft(e,t,r){return e.type==="EmptyStatement"?T(e,x.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:m([A,t])}function jt(e){return e.accessibility?e.accessibility+" ":""}var yl=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,El=e=>yl.test(e),Ro=El;function Fl(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var dt=Fl;var dl=0;function on(e,t,r){let{node:n,parent:s,grandparent:i,key:o}=e,u=o!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),p=n.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,c=xs(e,t,r,!1,u);if(u)return c;if(p)return l(c);if(o==="callee"&&(M(s)||s.type==="NewExpression")||s.type==="UnaryExpression"||J(s)&&!s.computed)return l([m([f,...c]),f]);let y=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!M(i)&&i.type!=="NewExpression"||s.type==="TemplateLiteral"||Al(e),D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Oe(s),F=Te(n.left)&&dr(n.operator,n.left.operator);if(y||er(n)&&!F||!er(n)&&D)return l(c);if(c.length===0)return"";let C=H(n.right),d=c.findIndex(S=>typeof S!="string"&&!Array.isArray(S)&&S.type===Fe),b=c.slice(0,d===-1?1:d+1),B=c.slice(b.length,C?-1:void 0),O=Symbol("logicalChain-"+ ++dl),h=l([...b,m(B)],{id:O});if(!C)return h;let g=N(0,c,-1);return l([h,yt(g,{groupId:O})])}function xs(e,t,r,n,s){let{node:i}=e;if(!Te(i))return[l(r())];let o=[];dr(i.operator,i.left.operator)?o=e.call(()=>xs(e,t,r,!0,s),"left"):o.push(l(r("left")));let u=er(i),p=i.right.type==="ChainExpression"?i.right.expression:i.right,c=(i.operator==="|>"||i.type==="NGPipeExpression"||Cl(e,t))&&!Ee(t.originalText,p),D=!T(p,x.Leading,Hr)&&Ee(t.originalText,p),F=i.type==="NGPipeExpression"?"|":i.operator,C=i.type==="NGPipeExpression"&&i.arguments.length>0?l(m([f,": ",L([A,": "],e.map(()=>xe(2,l(r())),"arguments"))])):"",d;if(u)d=[F,Ee(t.originalText,p)?m([A,r("right"),C]):[" ",r("right"),C]];else{let g=F==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>xs(e,t,r,!0,s),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let S="";if(D)switch(We(g)){case Be:S=g.splice(0,1)[0];break;case Pe:S=g.contents.splice(0,1)[0];break}d=[A,S,F," ",g,C]}else d=[c?A:"",F,c?" ":A,g,C]}let{parent:b}=e,B=T(i.left,x.Trailing|x.Line);if((B||!(s&&i.type==="LogicalExpression")&&b.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(d=l(d,{shouldBreak:B})),t.experimentalOperatorPosition==="start"?o.push(u||D?" ":"",d):o.push(c?"":" ",d),n&&T(i)){let h=Qt(De(e,o,t));return h.type===Me?h.parts:Array.isArray(h)?h:[h]}return o}function er(e){return e.type!=="LogicalExpression"?!1:!!(se(e.right)&&e.right.properties.length>0||q(e.right)&&e.right.elements.length>0||H(e.right))}var Jo=e=>e.type==="BinaryExpression"&&e.operator==="|";function Cl(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Jo(e.node)&&!e.hasAncestor(r=>!Jo(r)&&r.type!=="JsExpressionRoot")}function Al(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(M(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function un(e,t,r){let{node:n}=e,{parent:s}=e,i=s.type!=="TypeParameterInstantiation"&&(!Ue(s)||!t.experimentalTernaries)&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((Cr(s)||s.type==="VariableDeclarator")&&Ee(t.originalText,n))&&!(Cr(s)&&T(s.id,x.Trailing|x.Line)),o=gs(n),u=e.map(()=>{let C=r();return o||(C=xe(2,C)),De(e,C,t)},"types"),p="",c="";if(Yr(e)&&({leading:p,trailing:c}=Mt(e,t)),o)return[p,L(" | ",u),c];let y=i&&!Ee(t.originalText,n),D=[P([y?A:"","| "]),L([A,"| "],u)];if(ge(e,t))return[p,l([m(D),f]),c];let F=[p,l(D)];return(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?[l([m([P(["(",f]),F]),f,P(")")]),c]:[l(i?m(F):F),c]}var Tl=k(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),xl=k(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function gs(e){let{types:t}=e;if(t.some(n=>T(n)))return!1;let r=t.find(n=>xl(n));return r?t.every(n=>n===r||Tl(n)):!1}function Go(e){return Vt(e)||Je(e)?!0:Se(e)?gs(e):!1}var gl=new WeakSet;function G(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(Wo,r);(i==="=>"||i===":"&&T(n,x.Leading))&&(s=!0),gl.add(n)}return s?[" ",t(r)]:t(r)}var Wo=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function an(e,t,r){let n=Wo(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function hl(e,t,r,n){let{node:s}=e,i=s.inexact?"...":"";return T(s,x.Dangling)?l([r,i,v(e,t,{indent:!0}),f,n]):[r,i,n]}function tr(e,t,r){let{node:n}=e,s=[],i="[",o="]",u=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",p=n[u];if(p.length===0)s.push(hl(e,t,i,o));else{let c=N(0,p,-1),y=c?.type!=="RestElement"&&!n.inexact,D=c===null,F=Symbol("array"),C=!t.__inJestEach&&p.length>1&&p.every((B,O,h)=>{let g=B?.type;if(!q(B)&&!se(B))return!1;let S=h[O+1];if(S&&g!==S.type)return!1;let j=q(B)?"elements":"properties";return B[j]&&B[j].length>1}),d=hs(n,t),b=y?D?",":ie(t)?d?P(",","",{groupId:F}):P(","):"":"";s.push(l([i,m([f,d?Bl(e,t,r,b):[Sl(e,t,r,u,n.inexact),b],v(e,t)]),f,o],{shouldBreak:C,id:F}))}return s.push(X(e),G(e,r)),s}function hs(e,t){return q(e)&&e.elements.length>0&&e.elements.every(r=>r&&(Ce(r)||Xn(r)&&!T(r.argument))&&!T(r,x.Trailing|x.Line,n=>!Z(t.originalText,w(n),{backwards:!0})))}function qo({node:e},{originalText:t}){let r=I(e);if(r===w(e))return!1;let{length:n}=t;for(;r<n&&t[r]!==",";)r=qt(t,Ut(t,r+1));return Yt(t,r)}function Sl(e,t,r,n,s){let i=[];return e.each(({node:o,isLast:u})=>{i.push(o?l(r()):""),(!u||s)&&i.push([",",A,o&&qo(e,t)?f:""])},n),s&&i.push("..."),i}function Bl(e,t,r,n){let s=[];return e.each(({isLast:i,next:o})=>{s.push([r(),i?n:","]),i||s.push(qo(e,t)?[E,E]:T(o,x.Leading|x.Line)?E:A)},"elements"),zr(s)}function bl(e,t,r){let{node:n}=e,s=le(n);if(s.length===0)return["(",v(e,t),")"];let i=s.length-1;if(Il(s)){let D=["("];return $t(e,(F,C)=>{D.push(r()),C!==i&&D.push(", ")}),D.push(")"),D}let o=!1,u=[];$t(e,({node:D},F)=>{let C=r();F===i||(oe(D,t)?(o=!0,C=[C,",",E,E]):C=[C,",",A]),u.push(C)});let p=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&ie(t,"all")?",":"";function c(){return l(["(",m([A,...u]),p,A,")"],{shouldBreak:!0})}if(o||e.parent.type!=="Decorator"&&Ai(s))return c();if(kl(s)){let D=u.slice(1);if(D.some(ne))return c();let F;try{F=r(Kn(n,0),{expandFirstArg:!0})}catch(C){if(C instanceof Et)return c();throw C}return ne(F)?[ke,nt([["(",l(F,{shouldBreak:!0}),", ",...D,")"],c()])]:nt([["(",F,", ",...D,")"],["(",l(F,{shouldBreak:!0}),", ",...D,")"],c()])}if(Pl(s,u,t)){let D=u.slice(0,-1);if(D.some(ne))return c();let F;try{F=r(Kn(n,-1),{expandLastArg:!0})}catch(C){if(C instanceof Et)return c();throw C}return ne(F)?[ke,nt([["(",...D,l(F,{shouldBreak:!0}),")"],c()])]:nt([["(",...D,F,")"],["(",...D,l(F,{shouldBreak:!0}),")"],c()])}let y=["(",m([f,...u]),P(p),f,")"];return Ur(e)?y:l(y,{shouldBreak:u.some(ne)||o})}function gr(e,t=!1){return se(e)&&(e.properties.length>0||T(e))||q(e)&&(e.elements.length>0||T(e))||e.type==="TSTypeAssertion"&&gr(e.expression)||Ae(e)&&gr(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||Ll(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&gr(e.body,!0)||se(e.body)||q(e.body)||!t&&(M(e.body)||e.body.type==="ConditionalExpression")||H(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function Pl(e,t,r){let n=N(0,e,-1);if(e.length===1){let i=N(0,t,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let s=N(0,e,-2);return!T(n,x.Leading)&&!T(n,x.Trailing)&&gr(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!q(n))&&!(e.length>1&&hs(n,r))}function kl(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&Ol(r)?!0:!T(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Yo(r)&&!gr(r)}function Yo(e){if(e.type==="ParenthesizedExpression")return Yo(e.expression);if(Ae(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;r?.params.length===1&&(t=r.params[0])}return Vt(t)&&Re(e.expression,1)}return Dt(e)&&le(e).length>1?!1:Te(e)?Re(e.left,1)&&Re(e.right,1):Vn(e)||Re(e)}function Il(e){return e.length===2?Uo(e,0):e.length===3?e[0].type==="Identifier"&&Uo(e,1):!1}function Uo(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&K(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(s=>T(s))}function Ll(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||T(e,x.Dangling))}function Ol(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Oe(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||V(t.key)&&t.key.value==="type")&&V(t.value)&&t.value.value==="module":!1}var hr=bl;function Ho(e,t,r){return[r("object"),l(m([f,Ss(e,t,r)]))]}function Ss(e,t,r){return["::",r("callee")]}var wl=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),M(e)&&le(e).length>0);function _l(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(J(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function Xo(e,t,r){let n=r("object"),s=Bs(e,t,r),{node:i}=e,o=e.findAncestor(c=>!(J(c)||c.type==="TSNonNullExpression")),u=e.findAncestor(c=>!(c.type==="ChainExpression"||c.type==="TSNonNullExpression")),p=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||_l(e)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!J(u)||(u.type==="AssignmentExpression"||u.type==="VariableDeclarator")&&(wl(i.object)||n.label?.memberChain);return pt(n.label,[n,p?s:l(m([f,s]))])}function Bs(e,t,r){let n=r("property"),{node:s}=e,i=X(e);return s.computed?!s.property||Ce(s.property)?[i,"[",n,"]"]:l([i,"[",m([f,n]),f,"]"]):[i,".",n]}function Vo(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>Vo(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",s=[];function i(_){let{originalText:re}=t,ae=at(re,I(_));return re.charAt(ae)===")"?ae!==!1&&Yt(re,ae+1):oe(_,t)}function o(){let{node:_}=e;if(_.type==="ChainExpression")return e.call(o,"expression");if(M(_)&&(Tt(_.callee)||M(_.callee))){let re=i(_);s.unshift({node:_,hasTrailingEmptyLine:re,printed:[De(e,[X(e),r("typeArguments"),hr(e,t,r)],t),re?E:""]}),e.call(o,"callee")}else Tt(_)?(s.unshift({node:_,needsParens:ge(e,t),printed:De(e,J(_)?Bs(e,t,r):Ss(e,t,r),t)}),e.call(o,"object")):_.type==="TSNonNullExpression"?(s.unshift({node:_,printed:De(e,"!",t)}),e.call(o,"expression")):s.unshift({node:_,printed:r()})}let{node:u}=e;s.unshift({node:u,printed:[X(e),r("typeArguments"),hr(e,t,r)]}),u.callee&&e.call(o,"callee");let p=[],c=[s[0]],y=1;for(;y<s.length&&(s[y].node.type==="TSNonNullExpression"||M(s[y].node)||J(s[y].node)&&s[y].node.computed&&Ce(s[y].node.property));++y)c.push(s[y]);if(!M(s[0].node))for(;y+1<s.length&&(Tt(s[y].node)&&Tt(s[y+1].node));++y)c.push(s[y]);p.push(c),c=[];let D=!1;for(;y<s.length;++y){if(D&&Tt(s[y].node)){if(s[y].node.computed&&Ce(s[y].node.property)){c.push(s[y]);continue}p.push(c),c=[],D=!1}(M(s[y].node)||s[y].node.type==="ImportExpression")&&(D=!0),c.push(s[y]),T(s[y].node,x.Trailing)&&(p.push(c),c=[],D=!1)}c.length>0&&p.push(c);function F(_){return/^[A-Z]|^[$_]+$/u.test(_)}function C(_){return _.length<=t.tabWidth}function d(_){let re=_[1][0]?.node.computed;if(_[0].length===1){let it=_[0][0].node;return it.type==="ThisExpression"||it.type==="Identifier"&&(F(it.name)||n&&C(it.name)||re)}let ae=N(0,_[0],-1).node;return J(ae)&&ae.property.type==="Identifier"&&(F(ae.property.name)||re)}let b=p.length>=2&&!T(p[1][0].node)&&d(p);function B(_){let re=_.map(ae=>ae.printed);return _.length>0&&N(0,_,-1).needsParens?["(",...re,")"]:re}function O(_){return _.length===0?"":m([E,L(E,_.map(B))])}let h=p.map(B),g=h,S=b?3:2,j=p.flat(),U=j.slice(1,-1).some(_=>T(_.node,x.Leading))||j.slice(0,-1).some(_=>T(_.node,x.Trailing))||p[S]&&T(p[S][0].node,x.Leading);if(p.length<=S&&!U&&!p.some(_=>N(0,_,-1).hasTrailingEmptyLine))return Ur(e)?g:l(g);let fe=N(0,p[b?1:0],-1).node,Y=!M(fe)&&i(fe),z=[B(p[0]),b?p.slice(1,2).map(B):"",Y?E:"",O(p.slice(b?2:1))],ee=s.map(({node:_})=>_).filter(M);function Ie(){let _=N(0,N(0,p,-1),-1).node,re=N(0,h,-1);return M(_)&&ne(re)&&ee.slice(0,-1).some(ae=>ae.arguments.some(Ht))}let st;return U||ee.length>2&&ee.some(_=>!_.arguments.every(re=>Re(re)))||h.slice(0,-1).some(ne)||Ie()?st=l(z):st=[ne(g)||Y?ke:"",nt([g,z])],pt({memberChain:!0},st)}var $o=Vo;function vt(e,t,r){let{node:n}=e,s=n.type==="NewExpression",i=X(e),o=le(n),u=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",p=o.length===1&&Wr(o[0],t.originalText);if(p||Nl(e)||jl(e)||It(n,e.parent)){let D=[];if($t(e,()=>{D.push(r())}),!(p&&D[0].label?.embed))return[s?"new ":"",Ko(e,r),i,u,"(",L(", ",D),")"]}let c=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!c&&!s&&Tt(n.callee)&&!e.call(()=>ge(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return $o(e,t,r);let y=[s?"new ":"",Ko(e,r),i,u,hr(e,t,r)];return c||M(n.callee)?l(y):y}function Ko(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var Ml=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function Nl(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&Pt(t.callee,Ml)))return!1;let r=le(t);return r.length===1&&V(r[0])&&!T(r[0])}function jl(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=le(t);return t.callee.name==="require"?(r.length===1&&V(r[0])||r.length>1)&&!T(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&V(r[0])&&r[1].type==="ArrayExpression":!1}function ht(e,t,r,n,s,i){let o=vl(e,t,r,n,i),u=i?r(i,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return l([l(n),s,l(m([A,u]))]);case"never-break-after-operator":return l([l(n),s," ",u]);case"fluid":{let p=Symbol("assignment");return l([l(n),s,l(m(A),{id:p}),je,yt(u,{groupId:p})])}case"break-lhs":return l([n,s," ",l(u)]);case"chain":return[l(n),s,A,u];case"chain-tail":return[l(n),s,m([A,u])];case"chain-tail-arrow-chain":return[l(n),s,u];case"only-left":return n}}function Zo(e,t,r){let{node:n}=e;return ht(e,t,r,r("left"),[" ",n.operator],"right")}function eu(e,t,r){return ht(e,t,r,r("id")," =","init")}function vl(e,t,r,n,s){let{node:i}=e,o=i[s];if(!o)return"only-left";let u=!pn(o);if(e.match(pn,tu,F=>!u||F.type!=="ExpressionStatement"&&F.type!=="VariableDeclaration"))return u?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!u&&pn(o.right)||Ee(t.originalText,o))return"break-after-operator";if(i.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let y=Vi(n);if(Jl(i)||ql(i)||bs(i)&&y)return"break-lhs";let D=Ul(i,n,t);return e.call(()=>Rl(e,t,r,D),s)?"break-after-operator":Gl(i)?"break-lhs":!y&&(D||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||Ei(o)||Ce(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Rl(e,t,r,n){let s=e.node;if(Te(s)&&!er(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!Xl(s))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:c}=s;return Te(c)&&!er(c)}let{consequent:u,alternate:p}=s;return u.type==="ConditionalExpression"||p.type==="ConditionalExpression"}case"ClassExpression":return R(s.decorators)}if(n)return!1;let i=s,o=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,o.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,o.push("expression");else break;return!!(V(i)||e.call(()=>ru(e,t,r),...o))}function Jl(e){if(tu(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>Oe(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function pn(e){return e.type==="AssignmentExpression"}function tu(e){return pn(e)||e.type==="VariableDeclarator"}function Gl(e){let t=Wl(e);if(R(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function Wl(e){if(Cr(e))return e.typeParameters?.params}function ql(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=Qo(t.typeAnnotation);return R(r)&&r.length>1&&r.some(n=>R(Qo(n))||n.type==="TSConditionalType")}function bs(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function Qo(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function ru(e,t,r,n=!1){let{node:s}=e,i=()=>ru(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(i,"expression");if(M(s)){if(vt(e,t,r).label?.memberChain)return!1;let u=le(s);return!(u.length===0||u.length===1&&Fr(u[0],t))||Yl(s,r)?!1:e.call(i,"callee")}return J(s)?e.call(i,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}function Ul(e,t,r){return Oe(e)?(t=Qt(t),typeof t=="string"&&ot(t)<r.tabWidth+3):!1}function Yl(e,t){let r=Hl(e);if(R(r)){if(r.length>1)return!0;if(r.length===1){let s=r[0];if(Se(s)||xt(s)||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(ne(t(n)))return!0}return!1}function Hl(e){return(e.typeParameters??e.typeArguments)?.params}function zo(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function Xl(e){return zo(e.checkType)||zo(e.extendsType)}var cn=new WeakMap;function su(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function nu(e,t){return t.parser==="json"||t.parser==="jsonc"||!V(e.key)||ut(pe(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Ro(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||su(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Vl(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Ce(r)&&su(dt(pe(r)))&&String(r.value)===dt(pe(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&cn.get(e.parent))}function Ct(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:i}=n;if(t.quoteProps==="consistent"&&!cn.has(s)){let o=e.siblings.some(u=>!u.computed&&V(u.key)&&!nu(u,t));cn.set(s,o)}if(Vl(e,t)){let o=ut(JSON.stringify(i.type==="Identifier"?i.name:i.value.toString()),t);return e.call(()=>De(e,o,t),"key")}return nu(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!cn.get(s))?e.call(()=>De(e,/^\d/u.test(i.value)?dt(i.value):i.value,t),"key"):r("key")}function ln(e,t,r){let{node:n}=e;return n.shorthand?r("value"):ht(e,t,r,Ct(e,t,r),":","value")}var $l=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&mt(r));function mn(e,t,r,n){if($l(e))return Dn(e,t,r);let{node:s}=e,i=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&n?.expandLastArg){let{parent:y}=e;M(y)&&(le(y).length>1||K(s).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(i=!0)}let o=[Q(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?r("id"):""],u=Ke(e,t,r,i),p=rr(e,r),c=lt(s,p);return o.push(r("typeParameters"),l([c?l(u):u,p]),s.body?" ":"",r("body")),t.semi&&(s.declare||!s.body)&&o.push(";"),o}function Sr(e,t,r){let{node:n}=e,{kind:s}=n,i=n.value||n,o=[];return!s||s==="init"||s==="method"||s==="constructor"?i.async&&o.push("async "):(Le(s==="get"||s==="set"),o.push(s," ")),i.generator&&o.push("*"),o.push(Ct(e,t,r),n.optional?"?":"",n===i?Dn(e,t,r):r("value")),o}function Dn(e,t,r){let{node:n}=e,s=Ke(e,t,r),i=rr(e,r),o=vo(n),u=lt(n,i),p=[r("typeParameters"),l([o?l(s,{shouldBreak:!0}):u?l(s):s,i])];return n.body?p.push(" ",r("body")):p.push(t.semi?";":""),p}function Kl(e){let t=K(e);return t.length===1&&!e.typeParameters&&!T(e,x.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!T(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function fn(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return Kl(r)}return!1}function rr(e,t){let{node:r}=e,s=[G(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function iu(e,t,r){let{node:n}=e,s=[];if(n.argument){let u=r("argument");Ql(t,n.argument)?u=["(",m([E,u]),E,")"]:(Te(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(u=l([P("("),m([f,u]),f,P(")")])),s.push(" ",u)}let i=T(n,x.Dangling),o=t.semi&&i&&T(n,x.Last|x.Line);return o&&s.push(";"),i&&s.push(" ",v(e,t)),!o&&t.semi&&s.push(";"),s}function ou(e,t,r){return["return",iu(e,t,r)]}function uu(e,t,r){return["throw",iu(e,t,r)]}function Ql(e,t){if(Ee(e.originalText,t)||T(t,x.Leading,r=>ue(e.originalText,w(r),I(r)))&&!H(t))return!0;if(Xt(t)){let r=t,n;for(;n=Di(r);)if(r=n,Ee(e.originalText,r))return!0}return!1}function au(e,t){if(t.semi||ks(e,t)||Ls(e,t)||Is(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>pu(e,t),"expression"))}function pu(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!fn(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(H(r))return!0}return ge(e,t)?!0:Xt(r)?e.call(()=>pu(e,t),...Rr(r)):!1}var Ps=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function ks(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&Ps(e)&&H(e.node.expression)}function Is(e,t){return t.__isHtmlInlineEventHandler&&Ps(e)}function Ls(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&Ps(e)}var Os=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Qe=Os;function ws(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var _s=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let s=0;s<t.length&&r.has(t.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#e,n=0;for(let s=t.length-1;s>=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(N(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${ws([...this.#e].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,n=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(`
39
- `)){if(n.length===0)continue;let s=this.getLeadingWhitespaceCount(n);if(s===0)return 0;n.length!==s&&s<r&&(r=s)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#t(t);return r===0?t:t.split(`
33
+ `)+i}function Df(e){if(!le(e))return[];if(!e.value.includes(`
34
+ `))return[];let t=[];for(let r of`*${e.value}*`.split(`
35
+ `)){if(r=r.trimStart(),!r.startsWith("*"))return[];t.push(r)}return t}var yf=new WeakMap;function ii(e){return Z(yf,e,Df)}function jn(e){return ii(e).length>0}function na(e,t){let r=e.node;if(qe(r))return t.originalText.slice(b(r),S(r)).trimEnd();if(jn(r))return Ef(r);if(le(r))return["/*",Xe(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Ef(e){let t=ii(e),r=e.value[0]==="*"&&e.value[1]!=="*";return["/",t.map((n,o)=>{if(o===0)return[n.trimEnd(),d];if(o===t.length-1)return[" ",n];let i=n.trimEnd(),s=[" ",i];return r&&i!=="*"&&n.endsWith(" ")?[s," ",Js(ar)]:[s,d]}),"/"]}function si(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ui=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let o=0;o<t.length&&r.has(t.charAt(o));o++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#e,n=0;for(let o=t.length-1;o>=0&&r.has(t.charAt(o));o--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(L(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${si([...this.#e].join(""))}]+`,o=new RegExp(r?`(${n})`:n);return t.split(o)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,n=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(`
36
+ `)){if(n.length===0)continue;let o=this.getLeadingWhitespaceCount(n);if(o===0)return 0;n.length!==o&&o<r&&(r=o)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#t(t);return r===0?t:t.split(`
40
37
  `).map(n=>n.slice(r)).join(`
41
- `)}},cu=_s;var yn=new cu(`
42
- \r `),Ms=e=>e===""||e===A||e===E||e===f;function zl(e,t,r){let{node:n}=e;if(n.type==="JSXElement"&&Dm(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=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"),i];n.children=n.children.map(g=>fm(g)?{type:"JSXText",value:" ",raw:" "}:g);let o=n.children.some(H),u=n.children.filter(g=>g.type==="JSXExpressionContainer").length>1,p=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=ne(s)||o||p||u,y=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',F=y?A:P([D,f]," "),C=n.openingElement?.name?.name==="fbt",d=Zl(e,t,r,F,C),b=n.children.some(g=>Br(g));for(let g=d.length-2;g>=0;g--){let S=d[g]===""&&d[g+1]==="",j=d[g]===E&&d[g+1]===""&&d[g+2]===E,U=(d[g]===f||d[g]===E)&&d[g+1]===""&&d[g+2]===F,fe=d[g]===F&&d[g+1]===""&&(d[g+2]===f||d[g+2]===E),Y=d[g]===F&&d[g+1]===""&&d[g+2]===F,z=d[g]===f&&d[g+1]===""&&d[g+2]===E||d[g]===E&&d[g+1]===""&&d[g+2]===f;j&&b||S||U||Y||z?d.splice(g,2):fe&&d.splice(g+1,2)}for(;d.length>0&&Ms(N(0,d,-1));)d.pop();for(;d.length>1&&Ms(d[0])&&Ms(d[1]);)d.shift(),d.shift();let B=[""];for(let[g,S]of d.entries()){if(S===F){if(g===1&&$i(d[g-1])){if(d.length===2){B.push([B.pop(),D]);continue}B.push([D,E],"");continue}else if(g===d.length-1){B.push([B.pop(),D]);continue}else if(d[g-1]===""&&d[g-2]===E){B.push([B.pop(),D]);continue}}g%2===0?B.push([B.pop(),S]):B.push(S,""),ne(S)&&(c=!0)}let O=b?zr(B):l(B,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&n.children.includes(t.cursorNode)?O=[Tr,O,Tr]:t.nodeBeforeCursor?.type==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?O=[Tr,O]:t.nodeAfterCursor?.type==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(O=[O,Tr]),y)return O;let h=l([s,m([E,O]),E,i]);return c?h:nt([l([s,...d,i]),h])}function Zl(e,t,r,n,s){let i="",o=[i];function u(c){i=c,o.push([o.pop(),c])}function p(c){c!==""&&(i=c,o.push(c,""))}return e.each(({node:c,next:y})=>{if(c.type==="JSXText"){let D=pe(c);if(Br(c)){let F=yn.split(D,!0);F[0]===""&&(F.shift(),/\n/u.test(F[0])?p(mu(s,F[1],c,y)):p(n),F.shift());let C;if(N(0,F,-1)===""&&(F.pop(),C=F.pop()),F.length===0)return;for(let[d,b]of F.entries())d%2===1?p(A):u(b);C!==void 0?/\n/u.test(C)?p(mu(s,i,c,y)):p(n):p(lu(s,i,c,y))}else/\n/u.test(D)?D.match(/\n/gu).length>1&&p(E):p(n)}else{let D=r();if(u(D),y&&Br(y)){let C=yn.trim(pe(y)),[d]=yn.split(C);p(lu(s,d,c,y))}else p(E)}},"children"),o}function lu(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?t.length===1?f:E:f}function mu(e,t,r,n){return e?E:t.length===1?r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?E:f:E}var em=k(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function tm(e,t,r){let{parent:n}=e;if(em(n))return t;let s=rm(e),i=ge(e,r);return l([i?"":P("("),m([f,t]),f,i?"":P(")")],{shouldBreak:s})}function rm(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&M(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function nm(e,t,r){let{node:n}=e,s=[r("name")];if(n.value){let i;if(V(n.value)){let o=pe(n.value),u=W(0,W(0,o.slice(1,-1),"&apos;","'"),"&quot;",'"'),p=wr(u,t.jsxSingleQuote);u=p==='"'?W(0,u,'"',"&quot;"):W(0,u,"'","&apos;"),i=e.call(()=>De(e,qe(p+u+p),t),"value")}else i=r("value");s.push("=",i)}return s}function sm(e,t,r){let{node:n}=e,s=(i,o)=>i.type==="JSXEmptyExpression"||!T(i)&&(q(i)||se(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(s(i.argument,i)||i.argument.type==="JSXElement")||M(i)||i.type==="ChainExpression"&&M(i.expression)||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||H(o)&&(i.type==="ConditionalExpression"||Te(i)));return s(n.expression,e.parent)?l(["{",r("expression"),je,"}"]):l(["{",m([f,r("expression")]),f,je,"}"])}function im(e,t,r){let{node:n}=e,s=T(n.name)||T(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),r("typeArguments")," />"];if(n.attributes?.length===1&&V(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
43
- `)&&!s&&!T(n.attributes[0]))return l(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let i=n.attributes?.some(u=>V(u.value)&&u.value.value.includes(`
44
- `)),o=t.singleAttributePerLine&&n.attributes.length>1?E:A;return l(["<",r("name"),r("typeArguments"),m(e.map(()=>[o,r()],"attributes")),...om(n,t,s)],{shouldBreak:i})}function om(e,t,r){return e.selfClosing?[A,"/>"]:um(e,t,r)?[">"]:[f,">"]}function um(e,t,r){let n=e.attributes.length>0&&T(N(0,e.attributes,-1),x.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function am(e,t,r){let{node:n}=e,s=["</"],i=r("name");return T(n.name,x.Leading|x.Line)?s.push(m([E,i]),E):T(n.name,x.Leading|x.Block)?s.push(" ",i):s.push(i),s.push(">"),s}function pm(e,t){let{node:r}=e,n=T(r),s=T(r,x.Line),i=r.type==="JSXOpeningFragment";return[i?"<":"</",m([s?E:n&&!i?" ":"",v(e,t)]),s?E:"",">"]}function cm(e,t,r){let n=De(e,zl(e,t,r),t);return tm(e,n,t)}function lm(e,t){let{node:r}=e,n=T(r,x.Line);return[v(e,t,{indent:n}),n?E:""]}function mm(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let i=["...",r()];return T(s)?[m([f,De(e,i,t)]),f]:i},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Du(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return nm(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return L(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return L(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return mm(e,t,r);case"JSXExpressionContainer":return sm(e,t,r);case"JSXFragment":case"JSXElement":return cm(e,t,r);case"JSXOpeningElement":return im(e,t,r);case"JSXClosingElement":return am(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return pm(e,t);case"JSXEmptyExpression":return lm(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Qe(n,"JSX")}}function Dm(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Br(t)}function Br(e){return e.type==="JSXText"&&(yn.hasNonWhitespaceCharacter(pe(e))||!/\n/u.test(pe(e)))}function fm(e){return e.type==="JSXExpressionContainer"&&V(e.expression)&&e.expression.value===" "&&!T(e.expression)}function fu(e){let{node:t,parent:r}=e;if(!H(t)||!H(r))return!1;let{index:n,siblings:s}=e,i;for(let o=n;o>0;o--){let u=s[o-1];if(!(u.type==="JSXText"&&!Br(u))){i=u;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&Ot(i.expression)}function ym(e){return Ot(e.node)||fu(e)}var nr=ym;function Eu(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return on(e,t,r);case"NGChainedExpression":return l(L([";",A],e.map(()=>dm(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":yu(e)?" ":[";",A],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:i}=e,o=yu(e)||Em(e)||(s===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||s===2&&(n.key.name==="else"&&i.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[s-1].key.name==="then"||n.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),o?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Qe(n,"Angular")}}function yu({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function Em(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var Fm=k(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function dm({node:e}){return Er(e,Fm)}function Ns(e,t,r){let{node:n}=e;return l([L(A,e.map(r,"decorators")),Cu(n,t)?E:A])}function Fu(e,t,r){return Au(e.node)?[L(E,e.map(r,"declaration","decorators")),E]:""}function du(e,t,r){let{node:n,parent:s}=e,{decorators:i}=n;if(!R(i)||Au(s)||nr(e))return"";let o=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Cu(n,t);return[e.key==="declaration"&&fi(s)?E:o?ke:"",L(A,e.map(r,"decorators")),A]}function Cu(e,t){return e.decorators.some(r=>Z(t.originalText,I(r)))}function Au(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return R(t)&&bt(e,t[0])}var js=new WeakMap;function Tu(e){return js.has(e)||js.set(e,e.type==="ConditionalExpression"&&!ye(e,t=>t.type==="ObjectExpression")),js.get(e)}var Cm=e=>e.type==="SequenceExpression";function xu(e,t,r,n={}){let s=[],i,o=[],u=!1,p=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",c;(function O(){let{node:h}=e,g=Am(e,t,r,n);if(s.length===0)s.push(g);else{let{leading:S,trailing:j}=Mt(e,t);s.push([S,g]),o.unshift(j)}p&&(u||(u=h.returnType&&K(h).length>0||h.typeParameters||K(h).some(S=>S.type!=="Identifier"))),!p||h.body.type!=="ArrowFunctionExpression"?(i=r("body",n),c=h.body):e.call(O,"body")})();let y=!Ee(t.originalText,c)&&(Cm(c)||Tm(c,i,t)||!u&&Tu(c)),D=e.key==="callee"&&Dt(e.parent),F=Symbol("arrow-chain"),C=xm(e,n,{signatureDocs:s,shouldBreak:u}),d=!1,b=!1,B=!1;return p&&(D||n.assignmentLayout)&&(b=!0,B=!T(e.node,x.Leading&x.Line),d=n.assignmentLayout==="chain-tail-arrow-chain"||D&&!y),i=gm(e,t,n,{bodyDoc:i,bodyComments:o,functionBody:c,shouldPutBodyOnSameLine:y}),l([l(b?m([B?f:"",C]):C,{shouldBreak:d,id:F})," =>",p?yt(i,{groupId:F}):l(i),p&&D?P(f,"",{groupId:F}):""])}function Am(e,t,r,n){let{node:s}=e,i=[];if(s.async&&i.push("async "),fn(e,t))i.push(r(["params",0]));else{let u=n.expandLastArg||n.expandFirstArg,p=rr(e,r);if(u){if(ne(p))throw new Et;p=l(_t(p))}i.push(l([Ke(e,t,r,u,!0),p]))}let o=v(e,t,{filter(u){let p=at(t.originalText,I(u));return p!==!1&&t.originalText.slice(p,p+2)==="=>"}});return o&&i.push(" ",o),i}function Tm(e,t,r){return q(e)||se(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||H(e)||t.label?.hug!==!1&&(t.label?.embed||Wr(e,r.originalText))}function xm(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:i}=e;return i!=="callee"&&Dt(s)||Te(s)?l([r[0]," =>",m([A,L([" =>",A],r.slice(1))])],{shouldBreak:n}):i==="callee"&&Dt(s)||t.assignmentLayout?l(L([" =>",A],r),{shouldBreak:n}):l(m(L([" =>",A],r)),{shouldBreak:n})}function gm(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:i,shouldPutBodyOnSameLine:o}){let{node:u,parent:p}=e,c=r.expandLastArg&&ie(t,"all")?P(","):"",y=(r.expandLastArg||p.type==="JSXExpressionContainer")&&!T(u)?f:"";return o&&Tu(i)?[" ",l([P("","("),m([f,n]),P("",")"),c,y]),s]:o?[" ",n,s]:[m([A,n,s]),c,y]}var hm=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},Sm=Wt("findLast",function(){if(Array.isArray(this))return hm}),gu=Sm;function br(e,t,r,n){let{node:s}=e,i=[],o=gu(0,s[n],u=>u.type!=="EmptyStatement");return e.each(({node:u})=>{u.type!=="EmptyStatement"&&(i.push(r()),u!==o&&(i.push(E),oe(u,t)&&i.push(E)))},n),i}function En(e,t,r){let n=Bm(e,t,r),{node:s,parent:i}=e;if(s.type==="Program"&&i?.type!=="ModuleExpression")return n?[n,E]:"";let o=[];if(s.type==="StaticBlock"&&o.push("static "),o.push("{"),n)o.push(m([E,n]),E);else{let u=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!u.finalizer||i.type==="TSModuleDeclaration"||i.type==="MatchStatementCase"||s.type==="StaticBlock"||o.push(E)}return o.push("}"),o}function Bm(e,t,r){let{node:n}=e,s=R(n.directives),i=n.body.some(p=>p.type!=="EmptyStatement"),o=T(n,x.Dangling);if(!s&&!i&&!o)return"";let u=[];return s&&(u.push(br(e,t,r,"directives")),(i||o)&&(u.push(E),oe(N(0,n.directives,-1),t)&&u.push(E))),i&&u.push(br(e,t,r,"body")),o&&u.push(v(e,t)),u}function bm(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var hu=bm;function Rt(e,t,r){let{node:n}=e,s=[],i=n.type==="ObjectTypeAnnotation",o=!Bu(e),u=o?A:E,p=T(n,x.Dangling),[c,y]=i&&n.exact?["{|","|}"]:"{}",D;if(Pm(e,({node:F,next:C,isLast:d})=>{if(D??(D=F),s.push(r()),o&&i){let{parent:b}=e;b.inexact||!d?s.push(","):ie(t)&&s.push(P(","))}!o&&(km({node:F,next:C},t)||Pu({node:F,next:C},t))&&s.push(";"),d||(s.push(u),oe(F,t)&&s.push(E))}),p&&s.push(v(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let F;T(n,x.Dangling)?F=[T(n,x.Line)||Z(t.originalText,I(N(0,et(n),-1)))?E:A,"..."]:F=[D?A:"","..."],s.push(F)}if(o){let F=p||t.objectWrap==="preserve"&&D&&ue(t.originalText,w(n),w(D)),C;if(s.length===0)C=c+y;else{let d=t.bracketSpacing?A:f;C=[c,m([d,...s]),d,y]}return e.match(void 0,(d,b)=>b==="typeAnnotation",(d,b)=>b==="typeAnnotation",Nt)||e.match(void 0,(d,b)=>d.type==="FunctionTypeParam"&&b==="typeAnnotation",Nt)?C:l(C,{shouldBreak:F})}return[c,s.length>0?[m([E,s]),E]:"",y]}function Bu(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function Pm(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(s=>e.map(({node:i,index:o})=>({node:i,loc:w(i),selector:[s,o]}),s)).sort((s,i)=>s.loc-i.loc);for(let[s,{node:i,selector:o}]of n.entries())e.call(()=>t({node:i,next:n[s+1]?.node,isLast:s===n.length-1}),...o)}}function he(e,t){let{parent:r}=e;return e.callParent(Bu)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?P(";"):"":t.semi||Pu({node:e.node,next:e.next},t)?";":P("",";"):""}var Su=k(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),bu=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function km({node:e,next:t},r){if(r.semi||!Su(e))return!1;if(!e.value&&bu(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let n=t.key?.name;if(n==="in"||n==="instanceof")return!0}if(Su(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let s=t.value?t.value.generator:t.generator;return!!(t.computed||s)}case"TSIndexSignature":return!0}return!1}var Im=k(["TSPropertySignature"]);function Pu({node:e,next:t},r){if(r.semi||!Im(e))return!1;if(bu(e))return!0;if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":return!0}return!1}var Lm=hu("heritageGroup"),Om=k(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function sr(e,t,r){let{node:n}=e,s=Om(n),i=[Q(e),Zt(e),s?"interface":"class"],o=Iu(e),u=[],p=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&u.push(" ");for(let y of["id","typeParameters"])if(n[y]){let{leading:D,trailing:F}=e.call(()=>Mt(e,t),y);u.push(D,r(y),m(F))}}if(n.superClass){let y=[Mm(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],D=e.call(()=>["extends ",De(e,y,t)],"superClass");o?p.push(A,l(D)):p.push(" ",D)}else p.push(Rs(e,t,r,"extends"));p.push(Rs(e,t,r,"mixins"),Rs(e,t,r,"implements"));let c;return o?(c=Lm(n),i.push(l([...u,m(p)],{id:c}))):i.push(...u,...p),!s&&o&&wm(n.body)?i.push(P(E," ",{groupId:c})):i.push(" "),i.push(r("body")),i}function wm(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>R(e[t])):R(e.body)}function ku(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function _m(e){let{node:t}=e;if(T(t.id,x.Trailing)||T(t.typeParameters,x.Trailing)||T(t.superClass)||ku(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&J(t.superClass);let r=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&J(r.expression)&&!r.typeArguments:!1}var vs=new WeakMap;function Iu(e){let{node:t}=e;return vs.has(t)||vs.set(t,_m(e)),vs.get(t)}function Rs(e,t,r,n){let{node:s}=e;if(!R(s[n]))return"";let i=v(e,t,{marker:n}),o=L([",",A],e.map(r,n));if(!ku(s)){let u=[`${n} `,i,o];return Iu(e)?[A,l(u)]:[" ",u]}return[A,i,i&&E,n,l(m([A,o]))]}function Mm(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?l(P(["(",m([f,n]),f,")"],n)):n}function Fn(e,t,r){let{node:n}=e,s=[];return R(n.decorators)&&s.push(Ns(e,t,r)),s.push(jt(n)),n.static&&s.push("static "),s.push(Zt(e)),n.override&&s.push("override "),s.push(Sr(e,t,r)),s}function dn(e,t,r){let{node:n}=e,s=[];R(n.decorators)&&s.push(Ns(e,t,r)),s.push(Q(e),jt(n)),n.static&&s.push("static "),s.push(Zt(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(Ct(e,t,r),X(e),sn(e),G(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[ht(e,t,r,s," =",i?void 0:"value"),t.semi?";":""]}var Nm=k(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function Js(e){return Nm(e)?Js(e.expression):e}var Lu=k(["FunctionExpression","ArrowFunctionExpression"]);function Ou(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function jm(e,t){if(Ls(e,t)){let r=Js(e.node.expression);return Lu(r)||Ou(r)}return!(!t.semi||ks(e,t)||Is(e,t))}function wu(e,t,r){return[r("expression"),jm(e,t)?";":""]}function _u(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=L([",",A],n);return t.__isVueForBindingLeft?["(",m([f,l(s)]),f,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return L([",",A],n)}}function ju(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return Mu(r);case"BigIntLiteral":return Cn(r.extra.raw);case"NumericLiteral":return dt(r.extra.raw);case"StringLiteral":return qe(ut(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return Nu(r.extra.raw,t);case"Literal":{if(r.regex)return Mu(r.regex);if(r.bigint)return Cn(r.raw);let{value:n}=r;return typeof n=="number"?dt(r.raw):typeof n=="string"?vm(e)?Nu(r.raw,t):qe(ut(r.raw,t)):String(n)}}}function vm(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Cn(e){return e.toLowerCase()}function Mu({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var Rm="use strict";function Nu(e,t){let r=e.slice(1,-1);if(r===Rm||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function Jm(e,t,r){let n=e.originalText.slice(t,r);for(let s of e[Symbol.for("comments")]){let i=w(s);if(i>r)break;let o=I(s);if(o<t)continue;let u=i-t,p=o-t;n=n.slice(0,u)+W(0,n.slice(u,p),/[^\n]/gu," ")+n.slice(p)}return n}var Jt=Jm;var vu=k(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),Gm=k(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function ir(e,t,r){let{node:n,parent:s}=e,i=Gm(n),o=n.type==="TSEnumBody"||i,u=vu(n),p=i&&n.hasUnknownMembers,c=o?"members":u?"attributes":"properties",y=n[c],D=o||n.type==="ObjectPattern"&&s.type!=="FunctionDeclaration"&&s.type!=="FunctionExpression"&&s.type!=="ArrowFunctionExpression"&&s.type!=="ObjectMethod"&&s.type!=="ClassMethod"&&s.type!=="ClassPrivateMethod"&&s.type!=="AssignmentPattern"&&s.type!=="CatchClause"&&n.properties.some(B=>B.value&&(B.value.type==="ObjectPattern"||B.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&y.length>0&&Wm(n,y[0],t),F=[],C=e.map(({node:B})=>{let O=[...F,l(r())];return F=[",",A],oe(B,t)&&F.push(E),O},c);if(p){let B;if(T(n,x.Dangling)){let O=T(n,x.Line);B=[v(e,t),O||Z(t.originalText,I(N(0,et(n),-1)))?E:A,"..."]}else B=["..."];C.push([...F,...B])}let d=!(p||N(0,y,-1)?.type==="RestElement"),b;if(C.length===0){if(!T(n,x.Dangling))return["{}",G(e,r)];b=l(["{",v(e,t,{indent:!0}),f,"}",X(e),G(e,r)])}else{let B=t.bracketSpacing?A:f;b=["{",m([B,...C]),P(d&&ie(t)?",":""),B,"}",X(e),G(e,r)]}return e.match(B=>B.type==="ObjectPattern"&&!R(B.decorators),Nt)||Je(n)&&(e.match(void 0,(B,O)=>O==="typeAnnotation",(B,O)=>O==="typeAnnotation",Nt)||e.match(void 0,(B,O)=>B.type==="FunctionTypeParam"&&O==="typeAnnotation",Nt))||!D&&e.match(B=>B.type==="ObjectPattern",B=>B.type==="AssignmentExpression"||B.type==="VariableDeclarator")?b:l(b,{shouldBreak:D})}function Wm(e,t,r){let n=r.originalText,s=w(e),i=w(t);if(vu(e)){let o=w(e),u=Jt(r,o,i);s=o+u.lastIndexOf("{")}return ue(n,s,i)}function Ru(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",Ws(n),Wu(e,t,r),Gu(e,t,r),Uu(e,t,r),t.semi?";":""]}var Ju=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function An(e,t,r){let{node:n}=e,s=[Fu(e,t,r),Q(e),"export",Ju(n)?" default":""],{declaration:i,exported:o}=n;return T(n,x.Dangling)&&(s.push(" ",v(e,t)),qr(n)&&s.push(E)),i?s.push(" ",r("declaration")):(s.push(Ym(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),o&&s.push(" as ",r("exported"))):s.push(Wu(e,t,r)),s.push(Gu(e,t,r),Uu(e,t,r))),s.push(Um(n,t)),s}var qm=k(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Um(e,t){return t.semi&&(!e.declaration||Ju(e)&&!qm(e.declaration))?";":""}function Gs(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Ws(e,t){return Gs(e.importKind,t)}function Ym(e){return Gs(e.exportKind)}function Gu(e,t,r){let{node:n}=e;return n.source?[qu(n,t)?" from":""," ",r("source")]:""}function Wu(e,t,r){let{node:n}=e;if(!qu(n,t))return"";let s=[" "];if(R(n.specifiers)){let i=[],o=[];e.each(()=>{let u=e.node.type;if(u==="ExportNamespaceSpecifier"||u==="ExportDefaultSpecifier"||u==="ImportNamespaceSpecifier"||u==="ImportDefaultSpecifier")i.push(r());else if(u==="ExportSpecifier"||u==="ImportSpecifier")o.push(r());else throw new Qe(n,"specifier")},"specifiers"),s.push(L(", ",i)),o.length>0&&(i.length>0&&s.push(", "),o.length>1||i.length>0||n.specifiers.some(p=>T(p))?s.push(l(["{",m([t.bracketSpacing?A:f,L([",",A],o)]),P(ie(t)?",":""),t.bracketSpacing?A:f,"}"])):s.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function qu(e,t){return e.type!=="ImportDeclaration"||R(e.specifiers)||e.importKind==="type"?!0:Jt(t,w(e),w(e.source)).trimEnd().endsWith("from")}function Hm(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let r=Jt(t,I(e.source),e.attributes?.[0]?w(e.attributes[0]):I(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||R(e.attributes)?"with":void 0}var Xm=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:s,value:i}=r;return n==="ImportAttribute"&&(s.type==="Identifier"&&s.name==="type"||V(s)&&s.value==="type")&&V(i)&&!T(r)&&!T(s)&&!T(i)};function Uu(e,t,r){let{node:n}=e;if(!n.source)return"";let s=Hm(n,t);if(!s)return"";let i=ir(e,t,r);return Xm(n)&&(i=_t(i)),[` ${s} `,i]}function Yu(e,t,r){let{node:n}=e,{type:s}=n,i=s.startsWith("Import"),o=i?"imported":"local",u=i?"local":"exported",p=n[o],c=n[u],y="",D="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?y="*":p&&(y=r(o)),c&&!Vm(n)&&(D=r(u)),[Gs(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),y,y&&D?" as ":"",D]}function Vm(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!pi(t,r))return!1;if(V(t))return t.value===r.value&&pe(t)===pe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function or(e,t){return["...",t("argument"),G(e,t)]}function $m(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let s of["test","consequent","alternate"]){let i=n[s];if(H(i))return!0;i.type==="ConditionalExpression"&&t.push(i)}}return!1}function Km(e,t,r){let{node:n}=e,s=n.type==="ConditionalExpression",i=s?"alternate":"falseType",{parent:o}=e,u=s?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return o.type===n.type&&o[i]===n?xe(2,u):u}var Qm=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function zm(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let i=e.getParentNode(s);if(i.type==="ChainExpression"&&i.expression===n||M(i)&&i.callee===n||J(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||Ae(i)&&i.expression===n?(r=e.getParentNode(s+1),n=i):r=i}return n===t?!1:r[Qm.get(r.type)]===n}function Hu(e,t,r){let{node:n}=e,s=n.type==="ConditionalExpression",i=s?"consequent":"trueType",o=s?"alternate":"falseType",u=s?["test"]:["checkType","extendsType"],p=n[i],c=n[o],y=[],D=!1,{parent:F}=e,C=F.type===n.type&&u.some(Y=>F[Y]===n),d=F.type===n.type&&!C,b,B,O=0;do B=b||n,b=e.getParentNode(O),O++;while(b&&b.type===n.type&&u.every(Y=>b[Y]!==B));let h=b||F,g=B;if(s&&(H(n[u[0]])||H(p)||H(c)||$m(g))){D=!0,d=!0;let Y=ee=>[P("("),m([f,ee]),f,P(")")],z=ee=>ee.type==="NullLiteral"||ee.type==="Literal"&&ee.value===null||ee.type==="Identifier"&&ee.name==="undefined";y.push(" ? ",z(p)?r(i):Y(r(i))," : ",c.type===n.type||z(c)?r(o):Y(r(o)))}else{let Y=ee=>t.useTabs?m(r(ee)):xe(2,r(ee)),z=[A,"? ",p.type===n.type?P("","("):"",Y(i),p.type===n.type?P("",")"):"",A,": ",Y(o)];y.push(F.type!==n.type||F[o]===n||C?z:t.useTabs?Qr(m(z)):xe(Math.max(0,t.tabWidth-2),z))}let S=Y=>F===h?l(Y):Y,j=!D&&(J(F)||F.type==="NGPipeExpression"&&F.left===n)&&!F.computed,U=zm(e),fe=S([Km(e,t,r),d?y:m(y),s&&j&&!U?f:""]);return C||U?l([m([f,fe]),f]):fe}function Zm(e,t){return(J(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function eD(e,t,r,n){return[...e.map(i=>et(i)),et(t),et(r)].flat().some(i=>ce(i)&&ue(n.originalText,w(i),I(i)))}var tD=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function rD(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let i=e.getParentNode(s);if(i.type==="ChainExpression"&&i.expression===n||M(i)&&i.callee===n||J(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||Ae(i)&&i.expression===n?(r=e.getParentNode(s+1),n=i):r=i}return n===t?!1:r[tD.get(r.type)]===n}var qs=e=>[P("("),m([f,e]),f,P(")")];function ur(e,t,r,n){if(!t.experimentalTernaries)return Hu(e,t,r);let{node:s}=e,i=s.type==="ConditionalExpression",o=Ue(s),u=i?"consequent":"trueType",p=i?"alternate":"falseType",c=i?["test"]:["checkType","extendsType"],y=s[u],D=s[p],F=c.map(mr=>s[mr]),{parent:C}=e,d=C.type===s.type,b=d&&c.some(mr=>C[mr]===s),B=d&&C[p]===s,O=y.type===s.type,h=D.type===s.type,g=h||B,S=t.tabWidth>2||t.useTabs,j,U,fe=0;do U=j||s,j=e.getParentNode(fe),fe++;while(j&&j.type===s.type&&c.every(mr=>j[mr]!==U));let Y=j||C,z=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(C.type==="AssignmentExpression"||C.type==="VariableDeclarator"||C.type==="ClassProperty"||C.type==="PropertyDefinition"||C.type==="ClassPrivateProperty"||C.type==="ObjectProperty"||C.type==="Property"),ee=(C.type==="ReturnStatement"||C.type==="ThrowStatement")&&!(O||h),Ie=i&&Y.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",st=rD(e),_=Zm(s,C),re=o&&ge(e,t),ae=S?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",it=eD(F,y,D,t)||O||h,Bt=!g&&!d&&!o&&(Ie?y.type==="NullLiteral"||y.type==="Literal"&&y.value===null:Fr(y,t)&&$n(s.test,3)),Mn=g||B||o&&!d||d&&i&&$n(s.test,1)||Bt,Pr=[];!O&&T(y,x.Dangling)&&e.call(()=>{Pr.push(v(e,t),E)},"consequent");let cr=[];T(s.test,x.Dangling)&&e.call(()=>{cr.push(v(e,t))},"test"),!h&&T(D,x.Dangling)&&e.call(()=>{cr.push(v(e,t))},"alternate"),T(s,x.Dangling)&&cr.push(v(e,t));let $s=Symbol("test"),xa=Symbol("consequent"),kr=Symbol("test-and-consequent"),ga=i?[qs(r("test")),s.test.type==="ConditionalExpression"?ke:""]:[r("checkType")," ","extends"," ",Ue(s.extendsType)||s.extendsType.type==="TSMappedType"?r("extendsType"):l(qs(r("extendsType")))],Ks=l([ga," ?"],{id:$s}),ha=r(u),Ir=m([O||Ie&&(H(y)||d||g)?E:A,Pr,ha]),Sa=Mn?l([Ks,g?Ir:P(Ir,l(Ir,{id:xa}),{groupId:$s})],{id:kr}):[Ks,Ir],Nn=r(p),Qs=Bt?P(Nn,Qr(qs(Nn)),{groupId:kr}):Nn,lr=[Sa,cr.length>0?[m([E,cr]),E]:h?E:Bt?P(A," ",{groupId:kr}):A,":",h?" ":S?Mn?P(ae,P(g||Bt?" ":ae," "),{groupId:kr}):P(ae," "):" ",h?Qs:l([m(Qs),Ie&&!Bt?f:""]),_&&!st?f:"",it?ke:""];return z&&!it?l(m([f,l(lr)])):z||ee?l(m(lr)):st||o&&b?l([m([f,lr]),re?f:""]):C===Y?l(lr):lr}function Xu(e,t,r,n){let{node:s}=e;if(Jr(s))return ju(e,t);switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[v(e,t),r("node"),E];case"File":return _u(e,t,r)??r("program");case"ExpressionStatement":return wu(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!T(s.expression)&&(se(s.expression)||q(s.expression))?["(",r("expression"),")"]:l(["(",m([f,r("expression")]),f,")"]);case"AssignmentExpression":return Zo(e,t,r);case"VariableDeclarator":return eu(e,t,r);case"BinaryExpression":case"LogicalExpression":return on(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return Xo(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return Ho(e,t,r);case"Identifier":return[s.name,X(e),sn(e),G(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":return or(e,r);case"RestElement":return or(e,r);case"FunctionDeclaration":case"FunctionExpression":return mn(e,t,r,n);case"ArrowFunctionExpression":return xu(e,t,r,n);case"YieldExpression":return[`yield${s.delegate?"*":""}`,s.argument?[" ",r("argument")]:""];case"AwaitExpression":{let i=["await"];if(s.argument){i.push(" ",r("argument"));let{parent:o}=e;if(M(o)&&o.callee===s||J(o)&&o.object===s){i=[m([f,...i]),f];let u=e.findAncestor(p=>p.type==="AwaitExpression"||p.type==="BlockStatement");if(u?.type!=="AwaitExpression"||!ye(u.argument,p=>p===s))return l(i)}}return i}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return An(e,t,r);case"ImportDeclaration":return Ru(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Yu(e,t,r);case"ImportAttribute":return ln(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return En(e,t,r);case"ClassBody":return Rt(e,t,r);case"ThrowStatement":return uu(e,t,r);case"ReturnStatement":return ou(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return vt(e,t,r);case"ObjectExpression":case"ObjectPattern":return ir(e,t,r);case"Property":return mt(s)?Sr(e,t,r):ln(e,t,r);case"ObjectProperty":return ln(e,t,r);case"ObjectMethod":return Sr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return tr(e,t,r);case"SequenceExpression":{let{parent:i}=e;if(i.type==="ExpressionStatement"||i.type==="ForStatement"){let u=[];return e.each(({isFirst:p})=>{p?u.push(r()):u.push(",",m([A,r()]))},"expressions"),l(u)}let o=L([",",A],e.map(r,"expressions"));return(i.type==="ReturnStatement"||i.type==="ThrowStatement")&&e.key==="argument"||i.type==="ArrowFunctionExpression"&&e.key==="body"?l(P([m([f,o]),f],o)):l(o)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let i=[s.operator];return/[a-z]$/u.test(s.operator)&&i.push(" "),T(s.argument)?i.push(l(["(",m([f,r("argument")]),f,")"])):i.push(r("argument")),i}case"UpdateExpression":return[s.prefix?s.operator:"",r("argument"),s.prefix?"":s.operator];case"ConditionalExpression":return ur(e,t,r,n);case"VariableDeclaration":{let i=e.map(r,"declarations"),o=e.parent,u=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",p=s.declarations.some(y=>y.init),c;return i.length===1&&!T(s.declarations[0])?c=i[0]:i.length>0&&(c=m(i[0])),l([Q(e),s.kind,c?[" ",c]:"",m(i.slice(1).map(y=>[",",p&&!u?E:A,y])),t.semi&&!(u&&o.body!==s)?";":""])}case"WithStatement":return l(["with (",r("object"),")",Ft(s.body,r("body"))]);case"IfStatement":{let i=Ft(s.consequent,r("consequent")),u=[l(["if (",l([m([f,r("test")]),f]),")",i])];if(s.alternate){let p=T(s.consequent,x.Trailing|x.Line)||qr(s),c=s.consequent.type==="BlockStatement"&&!p;u.push(c?" ":E),T(s,x.Dangling)&&u.push(v(e,t),p?E:" "),u.push("else",l(Ft(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return u}case"ForStatement":{let i=Ft(s.body,r("body")),o=v(e,t),u=o?[o,f]:"";return!s.init&&!s.test&&!s.update?[u,l(["for (;;)",i])]:[u,l(["for (",l([m([f,r("init"),";",A,r("test"),";",s.update?[A,r("update")]:P("",A)]),f]),")",i])]}case"WhileStatement":return l(["while (",l([m([f,r("test")]),f]),")",Ft(s.body,r("body"))]);case"ForInStatement":return l(["for (",r("left")," in ",r("right"),")",Ft(s.body,r("body"))]);case"ForOfStatement":return l(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",Ft(s.body,r("body"))]);case"DoWhileStatement":{let i=Ft(s.body,r("body"));return[l(["do",i]),s.body.type==="BlockStatement"?" ":E,"while (",l([m([f,r("test")]),f]),")",t.semi?";":""]}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[s.type==="BreakStatement"?"break":"continue",s.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${s.body.type==="EmptyStatement"&&!T(s.body,x.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let i=T(s.param,u=>!ce(u)||u.leading&&Z(t.originalText,I(u))||u.trailing&&Z(t.originalText,w(u),{backwards:!0})),o=r("param");return["catch ",i?["(",m([f,o]),f,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[l(["switch (",m([f,r("discriminant")]),f,")"])," {",s.cases.length>0?m([E,L(E,e.map(({node:i,isLast:o})=>[r(),!o&&oe(i,t)?E:""],"cases"))]):"",E,"}"];case"SwitchCase":{let i=[];s.test?i.push("case ",r("test"),":"):i.push("default:"),T(s,x.Dangling)&&i.push(" ",v(e,t));let o=s.consequent.filter(u=>u.type!=="EmptyStatement");if(o.length>0){let u=br(e,t,r,"consequent");i.push(o.length===1&&o[0].type==="BlockStatement"?[" ",u]:m([E,u]))}return i}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return sr(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Fn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return dn(e,t,r);case"TemplateElement":return qe(s.value.raw);case"TemplateLiteral":return en(e,t,r);case"TaggedTemplateExpression":return oo(e,t,r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(kt(e))return";";case"InterpreterDirective":default:throw new Qe(s,"ESTree")}}function Tn(e){return[e("elementType"),"[]"]}var nD=k(["SatisfiesExpression","TSSatisfiesExpression"]);function xn(e,t,r){let{parent:n,node:s,key:i}=e,u=s.type==="AsConstExpression"?"const":r("typeAnnotation"),p=[r("expression")," ",nD(s)?"satisfies":"as"," ",u];return i==="callee"&&M(n)||i==="object"&&J(n)?l([m([f,...p]),f]):p}function Vu(e,t,r){let{node:n}=e,s=[Q(e),"component"];n.id&&s.push(" ",r("id")),s.push(r("typeParameters"));let i=sD(e,t,r);return n.rendersType?s.push(l([i," ",r("rendersType")])):s.push(l([i])),n.body&&s.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&s.push(";"),s}function sD(e,t,r){let{node:n}=e,s=n.params;if(n.rest&&(s=[...s,n.rest]),s.length===0)return["(",v(e,t,{filter:o=>_e(t.originalText,I(o))===")"}),")"];let i=[];return oD(e,(o,u)=>{let p=u===s.length-1;p&&n.rest&&i.push("..."),i.push(r()),!p&&(i.push(","),oe(s[u],t)?i.push(E,E):i.push(A))}),["(",m([f,...i]),P(ie(t,"all")&&!iD(n,s)?",":""),f,")"]}function iD(e,t){return e.rest||N(0,t,-1)?.type==="RestElement"}function oD(e,t){let{node:r}=e,n=0,s=i=>t(i,n++);e.each(s,"params"),r.rest&&e.call(s,"rest")}function $u(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function Ku(e,t,r){let{node:n}=e,s=[];return n.name&&s.push(r("name"),n.optional?"?: ":": "),s.push(r("typeAnnotation")),s}function Us(e,t,r){return ir(e,t,r)}function Qu(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",Us(e,t,r)]}function gn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function hn(e,t){let{node:r}=e;return[Q(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function Sn(e,t,r){let{node:n}=e,s=[Zt(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let i=Ke(e,t,r,!1,!0),o=[];return n.type==="FunctionTypeAnnotation"?o.push(uD(e)?" => ":": ",r("returnType")):o.push(G(e,r,"returnType")),lt(n,o)&&(i=l(i)),s.push(i,o),[l(s),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?he(e,t):""]}function uD(e){let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Gr(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&bt(r,t)||r.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function Zu(e,t,r){let{node:n}=e,s=["hook"];n.id&&s.push(" ",r("id"));let i=Ke(e,t,r,!1,!0),o=rr(e,r),u=lt(n,o);return s.push(l([u?l(i):i,o]),n.body?" ":"",r("body")),s}function ea(e,t,r){let{node:n}=e,s=[Q(e),"hook"];return n.id&&s.push(" ",r("id")),t.semi&&s.push(";"),s}function zu(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function ta(e,t,r){let{node:n}=e,s=Ke(e,t,r,!1,!0),i=[zu(e)?": ":" => ",r("returnType")];return l([zu(e)?"":"hook ",lt(n,i)?l(s):s,i])}function Bn(e,t,r){return[r("objectType"),X(e),"[",r("indexType"),"]"]}function bn(e,t,r){return["infer ",r("typeParameter")]}function Pn(e,t,r){let n=!1;return l(e.map(({isFirst:s,previous:i,node:o,index:u})=>{let p=r();if(s)return p;let c=Je(o),y=Je(i);return y&&c?[" & ",n?m(p):p]:!y&&!c||Ee(t.originalText,o)?t.experimentalOperatorPosition==="start"?m([A,"& ",p]):m([" &",A,p]):(u>1&&(n=!0),[" & ",u>1?m(p):p])},"types"))}function aD(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function na(e,t,r){let{node:n}=e;return[l([n.variance?r("variance"):"","[",m([r("keyTparam")," in ",r("sourceType")]),"]",aD(n.optional),": ",r("propType")]),he(e,t)]}function ra(e,t){return e==="+"||e==="-"?e+t:t}function sa(e,t,r){let{node:n}=e,s=!1;if(t.objectWrap==="preserve"){let i=w(n),o=Jt(t,i+1,w(n.key)),u=i+1+o.search(/\S/u);ue(t.originalText,i,u)&&(s=!0)}return l(["{",m([t.bracketSpacing?A:f,T(n,x.Dangling)?l([v(e,t),E]):"",l([n.readonly?[ra(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?ra(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?P(";"):""]),t.bracketSpacing?A:f,"}"],{shouldBreak:s})}function ia(e,t,r){let{node:n}=e;return[l(["match (",m([f,r("argument")]),f,")"])," {",n.cases.length>0?m([E,L(E,e.map(({node:s,isLast:i})=>[r(),!i&&oe(s,t)?E:""],"cases"))]):"",E,"}"]}function oa(e,t,r){let{node:n}=e,s=T(n,x.Dangling)?[" ",v(e,t)]:[],i=n.type==="MatchStatementCase"?[" ",r("body")]:m([A,r("body"),","]);return[r("pattern"),n.guard?l([m([A,"if (",r("guard"),")"])]):"",l([" =>",s,i])]}function ua(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return lD(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let s=n.property.type==="Identifier"?[".",r("property")]:["[",m([f,r("property")]),f,"]"];return l([r("base"),s])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let s=e.map(r,"properties");return n.rest&&s.push(r("rest")),l(["{",m([f,L([",",A],s)]),n.rest?"":P(","),f,"}"])}case"MatchArrayPattern":{let s=e.map(r,"elements");return n.rest&&s.push(r("rest")),l(["[",m([f,L([",",A],s)]),n.rest?"":P(","),f,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):l([r("key"),":",m([A,r("pattern")])]);case"MatchRestPattern":{let s=["..."];return n.argument&&s.push(r("argument")),s}}}var aa=k(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function pD(e){let{patterns:t}=e;if(t.some(n=>T(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||aa(n)):!1}function cD(e){return aa(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?pD(e):!1}function lD(e,t,r){let{node:n}=e,{parent:s}=e,i=s.type!=="MatchStatementCase"&&s.type!=="MatchExpressionCase"&&s.type!=="MatchArrayPattern"&&s.type!=="MatchObjectPatternProperty"&&!Ee(t.originalText,n),o=cD(n),u=e.map(()=>{let c=r();return o||(c=xe(2,c)),De(e,c,t)},"patterns");if(o)return L(" | ",u);let p=[P(["| "]),L([A,"| "],u)];return ge(e,t)?l([m([P([f]),p]),f]):s.type==="MatchArrayPattern"&&s.elements.length>1?l([m([P(["(",f]),p]),f,P(")")]):l(i?m(p):p)}function pa(e,t,r){let{node:n}=e,s=[Q(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&s.push(": ",r("supertype")),n.lowerBound||n.upperBound){let i=[];n.lowerBound&&i.push(m([A,"super ",r("lowerBound")])),n.upperBound&&i.push(m([A,"extends ",r("upperBound")])),s.push(l(i))}return n.impltype&&s.push(" = ",r("impltype")),s.push(t.semi?";":""),s}function kn(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function In(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function Ln(e,t,r){let{node:n}=e,s=[Q(e),"type ",r("id"),r("typeParameters")],i=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[ht(e,t,r,s," =",i),t.semi?";":""]}function mD(e,t,r){let{node:n}=e;return K(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Gt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let i=It(e.grandparent),o=e.match(c=>!(c[n].length===1&&Je(c[n][0])),void 0,(c,y)=>y==="typeAnnotation",c=>c.type==="Identifier",bs);if(s[n].length===0||!o&&(i||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||Go(s[n][0]))))return["<",L(", ",e.map(r,n)),DD(e,t),">"];let p=s.type==="TSTypeParameterInstantiation"?"":mD(e,t,n)?",":ie(t)?P(","):"";return l(["<",m([f,L([",",A],e.map(r,n))]),p,f,">"])}function DD(e,t){let{node:r}=e;if(!T(r,x.Dangling))return"";let n=!T(r,x.Line),s=v(e,t,{indent:!n});return n?s:[s,E]}function On(e,t,r){let{node:n}=e,s=[n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&s.push(r("variance")),n.in&&s.push("in "),n.out&&s.push("out "),s.push(i),n.bound&&(n.usesExtendsBound&&s.push(" extends "),s.push(G(e,r,"bound"))),n.constraint){let o=Symbol("constraint");s.push(" extends",l(m(A),{id:o}),je,yt(r("constraint"),{groupId:o}))}if(n.default){let o=Symbol("default");s.push(" =",l(m(A),{id:o}),je,yt(r("default"),{groupId:o}))}return l(s)}function wn(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",G(e,t)]:""]}function _n({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function ca(e,t,r){let{node:n}=e;if(Nr(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Vu(e,t,r);case"ComponentParameter":return $u(e,t,r);case"ComponentTypeParameter":return Ku(e,t,r);case"HookDeclaration":return Zu(e,t,r);case"DeclareHook":return ea(e,t,r);case"HookTypeAnnotation":return ta(e,t,r);case"DeclareFunction":return[Q(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",G(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Q(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return An(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return pa(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Ln(e,t,r);case"IntersectionTypeAnnotation":return Pn(e,t,r);case"UnionTypeAnnotation":return un(e,t,r);case"ConditionalTypeAnnotation":return ur(e,t,r);case"InferTypeAnnotation":return bn(e,t,r);case"FunctionTypeAnnotation":return Sn(e,t,r);case"TupleTypeAnnotation":return tr(e,t,r);case"TupleTypeLabeledElement":return In(e,t,r);case"TupleTypeSpreadElement":return kn(e,t,r);case"GenericTypeAnnotation":return[r("id"),Gt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Bn(e,t,r);case"TypeAnnotation":return an(e,t,r);case"TypeParameter":return On(e,t,r);case"TypeofTypeAnnotation":return _n(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return Tn(r);case"DeclareEnum":case"EnumDeclaration":return hn(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return Qu(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return gn(e,r);case"FunctionTypeParam":{let s=n.name?r("name"):e.parent.this===n?"this":"";return[s,X(e),s?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return sr(e,t,r);case"ObjectTypeAnnotation":return Rt(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:s}=n;return Le(s==="plus"||s==="minus"),s==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),he(e,t)];case"ObjectTypeMappedTypeProperty":return na(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),he(e,t)];case"ObjectTypeProperty":{let s="";return n.proto?s="proto ":n.static&&(s="static "),[s,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",Ct(e,t,r),X(e),mt(n)?"":": ",r("value"),he(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",X(e),n.method?"":": ",r("value"),he(e,t)];case"ObjectTypeSpreadProperty":return or(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return qe(ut(pe(n),t));case"NumberLiteralTypeAnnotation":return dt(pe(n));case"BigIntLiteralTypeAnnotation":return Cn(pe(n));case"TypeCastExpression":return["(",r("expression"),G(e,r),")"];case"TypePredicate":return wn(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Gt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return xn(e,t,r);case"MatchExpression":case"MatchStatement":return ia(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return oa(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return ua(e,t,r)}}function la(e,t,r){let{node:n}=e,s=n.parameters.length>1?P(ie(t)?",":""):"",i=l([m([f,L([", ",f],e.map(r,"parameters"))]),s,f]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?i:"","]",G(e,r),he(e,t)]}function Ys(e,t,r){let{node:n}=e;return[n.postfix?"":r,G(e,t),n.postfix?r:""]}function ma(e,t,r){let{node:n}=e,s=[],i=n.kind&&n.kind!=="method"?`${n.kind} `:"";s.push(jt(n),i,n.computed?"[":"",r("key"),n.computed?"]":"",X(e));let o=Ke(e,t,r,!1,!0),u=G(e,r,"returnType"),p=lt(n,u);return s.push(p?l(o):o),n.returnType&&s.push(l(u)),[l(s),he(e,t)]}function Da(e,t,r){let{node:n}=e;return[Q(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",l(r("body"))]:t.semi?";":""]}function fa(e,t,r){let{node:n}=e,s=!(q(n.expression)||se(n.expression)),i=l(["<",m([f,r("typeAnnotation")]),f,">"]),o=[P("("),m([f,r("expression")]),f,P(")")];return s?nt([[i,r("expression")],[i,l(o,{shouldBreak:!0})],[i,r("expression")]]):l([i,r("expression")])}function ya(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(jr(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return fa(e,t,r);case"TSDeclareFunction":return mn(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return En(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Rt(e,t,r);case"TSTypeAliasDeclaration":return Ln(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Fn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return dn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return en(e,t,r);case"TSNamedTupleMember":return In(e,t,r);case"TSRestType":return kn(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return sr(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Gt(e,t,r,"params");case"TSTypeParameter":return On(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return xn(e,t,r);case"TSArrayType":return Tn(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",Ct(e,t,r),X(e),G(e,r),he(e,t)];case"TSParameterProperty":return[jt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return _n(e,r);case"TSIndexSignature":return la(e,t,r);case"TSTypePredicate":return wn(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[vt(e,t,r),n.qualifier?[".",r("qualifier")]:"",Gt(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Bn(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return sa(e,t,r);case"TSMethodSignature":return ma(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return hn(e,r);case"TSEnumBody":return Us(e,t,r);case"TSEnumMember":return gn(e,r);case"TSImportEqualsDeclaration":return["import ",Ws(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return vt(e,t,r);case"TSModuleDeclaration":return Da(e,t,r);case"TSConditionalType":return ur(e,t,r);case"TSInferType":return bn(e,t,r);case"TSIntersectionType":return Pn(e,t,r);case"TSUnionType":return un(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Sn(e,t,r);case"TSTupleType":return tr(e,t,r);case"TSTypeReference":return[r("typeName"),Gt(e,t,r,"typeArguments")];case"TSTypeAnnotation":return an(e,t,r);case"TSEmptyBodyFunctionExpression":return Dn(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Ys(e,r,"?");case"TSJSDocNonNullableType":return Ys(e,r,"!");case"TSParenthesizedType":default:throw new Qe(n,"TypeScript")}}}function fD(e,t,r,n){for(let s of[Eu,Du,ca,ya,Xu]){let i=s(e,t,r,n);if(i!==void 0)return i}}var yD=k(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function ED(e,t,r,n){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:s}=e,i=nr(e)?t.originalText.slice(w(s),I(s)):fD(e,t,r,n);if(!i)return"";if(yD(s))return i;let o=R(s.decorators),u=du(e,t,r),p=s.type==="ClassExpression";if(o&&!p)return Ar(i,D=>l([u,D]));let c=ge(e,t),y=au(e,t);return!u&&!c&&!y?i:Ar(i,D=>[y?";":"",c?"(":"",c&&p&&o?[m([A,u,D]),A]:[u,D],c?")":""])}var Hs=ED;var FD={experimental_avoidAstMutation:!0};var Ea=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".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:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}];var Vs={};vn(Vs,{getVisitorKeys:()=>da,massageAstNode:()=>Aa,print:()=>CD});var ar=[[]],Fa={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:ar[0],BooleanLiteral:ar[0],StringLiteral:ar[0],NumericLiteral:ar[0],Identifier:ar[0],TemplateLiteral:["quasis"],TemplateElement:ar[0]};var dD=_r(Fa),da=dD;function CD(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),E];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",m([E,L([",",E],s)]),E,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",m([E,L([",",E],e.map(r,"properties"))]),E,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Ca(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Ca(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Qe(n,"JSON")}}function Ca(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var AD=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Aa(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Aa.ignoredProperties=AD;var pr={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var St="JavaScript",TD={arrowParens:{category:St,type:"choice",default:"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:pr.bracketSameLine,objectWrap:pr.objectWrap,bracketSpacing:pr.bracketSpacing,jsxBracketSameLine:{category:St,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:St,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:St,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:St,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:pr.singleQuote,jsxSingleQuote:{category:St,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:St,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:{category:St,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:pr.singleAttributePerLine},Ta=TD;var xD={estree:Xs,"estree-json":Vs},gD=[...zs,...Ea];return Ia(hD);});
38
+ `)}},oa=ui;var dr=new oa(`
39
+ \r `);function Xt(e){return e.type==="JSXText"&&(dr.hasNonWhitespaceCharacter(ye(e))||!/\n/.test(ye(e)))}function ia(e){let{node:t,parent:r}=e;if(!H(t)||!H(r))return!1;let{index:n,siblings:o}=e,i;for(let s=n;s>0;s--){let u=o[s-1];if(!(u.type==="JSXText"&&!Xt(u))){i=u;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&Lt(i.expression)}function df(e){return Lt(e.node)||ia(e)}var Cr=df;var ai=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},it=ai;function sa(e){return e.type==="CallExpression"&&!e.optional&&e.arguments.length===1&&e.callee.type==="Identifier"&&e.callee.name==="Boolean"}var Cf=0;function vn(e,t,r){let{node:n,parent:o,grandparent:i,key:s}=e,u=s!=="body"&&(o.type==="IfStatement"||o.type==="WhileStatement"||o.type==="SwitchStatement"||o.type==="DoWhileStatement"),a=n.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,c=pi(e,t,r,!1,u);if(u)return c;if(a)return p(c);if(s==="callee"&&Tt(o)||o.type==="UnaryExpression"&&!C(n)||N(o)&&!o.computed)return p([f([D,...c]),D]);let m=ut(o)||o.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||n.operator!=="|"&&o.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(o.type==="NGRoot"&&t.parser==="__ng_binding"||o.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||n===o.body&&o.type==="ArrowFunctionExpression"||n!==o.body&&o.type==="ForStatement"||o.type==="ConditionalExpression"&&!ut(i)&&!Tt(i)||o.type==="TemplateLiteral"||s==="argument"&&o.type==="UnaryExpression"||s==="arguments"&&sa(o),y=o.type==="AssignmentExpression"||o.type==="VariableDeclarator"||o.type==="ClassProperty"||o.type==="PropertyDefinition"||o.type==="TSAbstractPropertyDefinition"||o.type==="ClassPrivateProperty"||We(o),A=Be(n.left)&&Lr(n.operator,n.left.operator);if(m||Fr(n)&&!A||!Fr(n)&&y)return p(c);if(c.length===0)return"";let x=H(n.right),E=c.findIndex(v=>typeof v!="string"&&!Array.isArray(v)&&v.type===Te),P=c.slice(0,E===-1?1:E+1),F=c.slice(P.length,x?-1:void 0),I=Symbol("logicalChain-"+ ++Cf),k=p([...P,f(F)],{id:I});if(!x)return k;let h=L(0,c,-1);return p([k,ht(h,{groupId:I})])}function pi(e,t,r,n,o){let{node:i}=e;if(!Be(i))return[p(r())];let s=[];Lr(i.operator,i.left.operator)?s=e.call(()=>pi(e,t,r,!0,o),"left"):s.push(p(r("left")));let u=Fr(i),a=i.right.type==="ChainExpression"?i.right.expression:i.right,c=(i.type==="NGPipeExpression"||i.operator==="|>"||Ff(e,t))&&!Le(t.originalText,a),y=!C(a,T.Leading,nr)&&Le(t.originalText,a),A=i.type==="NGPipeExpression"?"|":i.operator,x=i.type==="NGPipeExpression"&&i.arguments.length>0?p(f([D,": ",w([g,": "],e.map(()=>he(2,p(r())),"arguments"))])):"",E;if(u)E=[A,Le(t.originalText,a)?f([g,r("right"),x]):[" ",r("right"),x]];else{let h=A==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>pi(e,t,r,!0,o),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let v="";if(y)switch(He(h)){case Oe:v=h[0],h.shift();break;case _e:v=h.contents[0],h.contents.shift();break}E=[g,v,A," ",h,x]}else E=[c?g:"",A,c?" ":g,h,x]}let{parent:P}=e,F=C(i.left,T.Trailing|T.Line);if((F||!(o&&i.type==="LogicalExpression")&&P.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(E=p(E,{shouldBreak:F})),t.experimentalOperatorPosition==="start"?s.push(u||y?" ":"",E):s.push(c?"":" ",E),n&&C(i)){let k=ur(Q(e,s,t));return k.type===Je?k.parts:Array.isArray(k)?k:[k]}return s}function Fr(e){return e.type!=="LogicalExpression"?!1:!!(ie(e.right)&&e.right.properties.length>0||Y(e.right)&&e.right.elements.length>0||H(e.right))}var ua=e=>e.type==="BinaryExpression"&&e.operator==="|";function Ff(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&ua(e.node)&&!e.hasAncestor(r=>!ua(r)&&r.type!=="JsExpressionRoot")}function pa(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return vn(e,t,r);case"NGChainedExpression":return p(w([";",g],e.map(()=>Tf(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":aa(e)?" ":[";",g],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:o,parent:i}=e,s=aa(e)||xf(e)||(o===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||o===2&&(n.key.name==="else"&&i.body[o-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[o-1].key.name==="then"||n.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),s?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new it(n,"Angular")}}function aa({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function xf(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var Af=B(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function Tf({node:e}){return _r(e,Af)}function ci(e,t,r){let{node:n}=e;return p([w(g,e.map(r,"decorators")),la(n,t)?d:g])}function ca(e,t,r){return ma(e.node)?[w(d,e.map(r,"declaration","decorators")),d]:""}function Rn(e,t,r){let{node:n,parent:o}=e,{decorators:i}=n;if(!j(i)||ma(o)||Cr(e))return"";let s=n.type==="ClassExpression"||n.type==="ClassDeclaration"||la(n,t);return[e.key==="declaration"&&qi(o)?d:s?Ne:"",w(g,e.map(r,"decorators")),g]}function la(e,t){return e.decorators.some(r=>J(t.originalText,S(r)))}function ma(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return j(t)&&kt(e,t[0])}function Wn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Ee(e.argument)}function xr(e,t,r){let{node:n}=e,o=[],i=Zt(n)?"elementTypes":"elements",s=n[i];if(s.length===0&&!n.inexact)o.push(p(["[",Mt(e,t),"]"]));else{let u=L(0,s,-1),a=u?.type!=="RestElement"&&!n.inexact,c=u===null,m=Symbol("array"),y=!t.__inJestEach&&s.length>1&&s.every((E,P,F)=>{if(!Y(E)&&!ie(E))return!1;let I=E?.type,k=F[P+1];if(k&&I!==k.type)return!1;let h=Y(E)?"elements":"properties";return E[h]&&E[h].length>1})||C(n,T.Dangling|T.Line),A=li(n,t),x=a?c?",":Tn(t)?A?O(",","",{groupId:m}):O(","):"":"";o.push(p(["[",f([D,A?hf(e,t,r,x):[gf(e,t,r,i,n.inexact),x],W(e,t)]),D,"]"],{shouldBreak:y,id:m}))}return o.push($(e),G(e,r)),o}function li(e,t){return Y(e)&&e.elements.length>0&&e.elements.every(r=>r&&(Ee(r)||Wn(r)&&!C(r.argument))&&!C(r,T.Trailing|T.Line,n=>!J(t.originalText,b(n),{backwards:!0})))}function fa({node:e},{originalText:t}){let r=S(e);if(r===b(e))return!1;let{length:n}=t;for(;r<n&&t[r]!==",";)r=tr(t,rr(t,r+1));return Gt(t,r)}function gf(e,t,r,n,o){let i=[];return e.each(({node:s,isLast:u})=>{i.push(s?p(r()):""),(!u||o)&&i.push([",",g,s&&fa(e,t)?D:""])},n),o&&i.push("..."),i}function hf(e,t,r,n){let o=[];return e.each(({isLast:i,next:s})=>{o.push([r(),i?n:","]),i||o.push(fa(e,t)?[d,d]:C(s,T.Leading|T.Line)?d:g)},"elements"),Dn(o)}function mi(e){return e.quasis.some(t=>t.value.raw.includes(`
40
+ `))}function Jn(e,t){return(e.type==="TemplateLiteral"&&mi(e)||e.type==="TaggedTemplateExpression"&&mi(e.quasi))&&!J(t,b(e),{backwards:!0})}var Sf=new WeakMap;function Da(e){return Z(Sf,e,t=>t.type==="ConditionalExpression"&&!Ce(t,r=>r.type==="ObjectExpression"))}var Bf=e=>e.type==="SequenceExpression";function ya(e,t,r,n={}){let o=[],i,s=[],u=!1,a=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",c;(function I(){let{node:k}=e,h=bf(e,t,r,n);if(o.length===0)o.push(h);else{let{leading:v,trailing:U}=An(e,t);o.push([v,h]),s.unshift(U)}a&&(u||(u=k.returnType&&ee(k).length>0||k.typeParameters||ee(k).some(v=>v.type!=="Identifier"))),!a||k.body.type!=="ArrowFunctionExpression"?(i=r("body",n),c=k.body):e.call(I,"body")})();let m=!Le(t.originalText,c)&&(Bf(c)||Pf(c,i,t)||!u&&Da(c)),y=e.key==="callee"&&Dt(e.parent),A=Symbol("arrow-chain"),x=If(e,n,{signatureDocs:o,shouldBreak:u}),E=!1,P=!1,F=!1;return a&&(y||n.assignmentLayout)&&(P=!0,F=!C(e.node,T.Leading&T.Line),E=n.assignmentLayout==="chain-tail-arrow-chain"||y&&!m),i=kf(e,t,n,{bodyDoc:i,bodyComments:s,functionBody:c,shouldPutBodyOnSameLine:m}),p([p(P?f([F?D:"",x]):x,{shouldBreak:E,id:A})," =>",a?ht(i,{groupId:A}):p(i),a&&y?O(D,"",{groupId:A}):""])}function bf(e,t,r,n){let{node:o}=e,i=[];if(o.async&&i.push("async "),In(e,t))i.push(r(["params",0]));else{let u=n.expandLastArg||n.expandFirstArg,a=kn(e,r);if(u){if(ue(a))throw new St;a=p(Jt(a))}i.push(p([Ve(e,t,r,u,!0),a]))}let s=W(e,t,{marker:"commentBeforeArrow"});return s&&i.push(" ",s),i}function Pf(e,t,r){return Y(e)||ie(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||H(e)||t.label?.hug!==!1&&(t.label?.embed||Jn(e,r.originalText))}function If(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:o,key:i}=e;return i!=="callee"&&Dt(o)||Be(o)?p([r[0]," =>",f([g,w([" =>",g],r.slice(1))])],{shouldBreak:n}):i==="callee"&&Dt(o)||t.assignmentLayout?p(w([" =>",g],r),{shouldBreak:n}):p(f(w([" =>",g],r)),{shouldBreak:n})}function kf(e,t,r,{bodyDoc:n,bodyComments:o,functionBody:i,shouldPutBodyOnSameLine:s}){let{node:u,parent:a}=e,c=r.expandLastArg?Ie(t,"all"):"",m=(r.expandLastArg||a.type==="JSXExpressionContainer")&&!C(u)?D:"";return s&&Da(i)?[" ",p([O("","("),f([D,n]),O("",")"),c,m]),o]:s?[" ",n,o]:[f([g,n,o]),c,m]}var wf=.25;function Wr(e,t){let{printWidth:r}=t;if(C(e))return!1;let n=r*wf;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||Wn(e)&&!C(e.argument))return!0;let o=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return o?o.length<=n:q(e)?ot(ye(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(`
41
+ `):e.type==="UnaryExpression"?Wr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:er(e)}function jt(e){return N(e)||e.type==="BindExpression"&&!!e.object}function Ea(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(wt(r)){if(t+=1,t>1)return!0}else if(r=Pe(r),M(r)){for(let n of se(r))if(wt(n))return!0}return!1}function Gn(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&M(t)&&M(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Lf=new Set(["!","-","+","~"]),Of=B(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]);function st(e,t=2){if(t<=0)return!1;let r=n=>st(n,t-1);if(e=Pe(e),Xr(e))return dt(e.pattern??e.regex.pattern)<=5;if(er(e)||Of(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
42
+ `))&&e.expressions.every(r);if(ie(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(Y(e))return e.elements.every(n=>n===null||r(n));if(Dt(e)){if(e.type==="ImportExpression"||st(e.callee,t)){let n=se(e);return n.length<=t&&n.every(r)}return!1}return N(e)?st(e.object,t)&&st(e.property,t):e.type==="UnaryExpression"&&Lf.has(e.operator)||e.type==="UpdateExpression"?st(e.argument,t):!1}function Mf(e,t,r){let{node:n}=e,o=se(n);if(o.length===0)return p(["(",Mt(e,t),")"]);let i=o.length-1;if(jf(o)){let y=["("];return kr(e,(A,x)=>{y.push(r()),x!==i&&y.push(", ")}),y.push(")"),y}let s=!1,u=[];kr(e,({node:y},A)=>{let x=r();A===i||(me(y,t)?(s=!0,x=[x,",",d,d]):x=[x,",",g]),u.push(x)});let a=e.root.type!=="NGRoot"&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"?Ie(t,"all"):"";function c(){return p(["(",f([g,...u]),a,g,")"],{shouldBreak:!0})}if(s||e.parent.type!=="Decorator"&&Ea(o))return c();if(Nf(o)){let y=u.slice(1);if(y.some(ue))return c();let A;try{A=r(go(n,0),{expandFirstArg:!0})}catch(x){if(x instanceof St)return c();throw x}return ue(A)?[Ne,mt([["(",p(A,{shouldBreak:!0}),", ",...y,")"],c()])]:mt([["(",A,", ",...y,")"],["(",p(A,{shouldBreak:!0}),", ",...y,")"],c()])}if(_f(o,u,t)){let y=u.slice(0,-1);if(y.some(ue))return c();let A;try{A=r(go(n,-1),{expandLastArg:!0})}catch(x){if(x instanceof St)return c();throw x}return ue(A)?[Ne,mt([["(",...y,p(A,{shouldBreak:!0}),")"],c()])]:mt([["(",...y,A,")"],["(",...y,p(A,{shouldBreak:!0}),")"],c()])}let m=["(",f([D,...u]),a,D,")"];return Gn(e)?m:p(m,{shouldBreak:u.some(ue)||s})}function Un(e,t=!1){if(ie(e)&&(e.properties.length>0||C(e))||Y(e)&&(e.elements.length>0||C(e))||(de(e)||e.type==="TSTypeAssertion")&&Un(e.expression)||e.type==="FunctionExpression"||e.type==="DoExpression"||e.type==="ModuleExpression")return!0;if(e.type==="ArrowFunctionExpression"){let{body:r}=e;if(r.type==="BlockStatement"||H(r)||ie(r)||Y(r)||r.type==="ArrowFunctionExpression"&&Un(r,!0)||!t&&(r.type==="ConditionalExpression"||M(Pe(r))))return!0}return!1}function _f(e,t,r){if(e.length===1){let i=L(0,t,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let n=L(0,e,-1),o=L(0,e,-2);return!C(n,T.Leading)&&!C(n,T.Trailing)&&Un(n)&&(!o||o.type!==n.type)&&(e.length!==2||o.type!=="ArrowFunctionExpression"||!Y(n))&&!(e.length>1&&li(n,r))}function Nf(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&vf(r)?!0:!C(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Ca(r)&&!Un(r)}function Ca(e){if(e.type==="ParenthesizedExpression")return Ca(e.expression);if(de(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;r?.params.length===1&&(t=r.params[0])}return cr(t)&&st(e.expression,1)}return Dt(e)&&se(e).length>1?!1:Be(e)?st(e.left,1)&&st(e.right,1):Xr(e)||st(e)}function jf(e){return e.length===2?da(e,0):e.length===3?e[0].type==="Identifier"&&da(e,1):!1}function da(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&ee(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&e.every(o=>!C(o))}function vf(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return We(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||q(t.key)&&t.key.value==="type")&&q(t.value)&&t.value.value==="module":!1}var Jr=Mf;function Fa(e,t,r){return[r("object"),p(f([D,fi(e,t,r)]))]}function fi(e,t,r){return["::",r("callee")]}var Rf=e=>M(e)&&se(e).length>0;function Wf(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(N(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function xa(e,t,r){let n=r("object"),o=Di(e,t,r),{node:i}=e,s=e.findAncestor(c=>!(N(c)||c.type==="TSNonNullExpression")),u=e.findAncestor(c=>!Re(c)),a=s.type==="BindExpression"||s.type==="AssignmentExpression"&&s.left.type!=="Identifier"||Wf(e)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!N(u)||(u.type==="AssignmentExpression"||u.type==="VariableDeclarator")&&(Rf(Pe(i.object))||n.label?.memberChain);return Et(n.label,[n,Se,a?o:p(f([D,o]))])}function Di(e,t,r){let n=r("property"),{node:o}=e,i=$(e);return o.computed?!o.property||Ee(o.property)?[i,"[",n,"]"]:p([i,"[",f([D,n]),D,"]"]):[i,".",n]}function Jf(e,t,r){let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",o=[];function i(_){let{originalText:Ae}=t,we=Wt(Ae,S(_));return Ae.charAt(we)===")"?we!==!1&&Gt(Ae,we+1):me(_,t)}function s(){let{node:_}=e;if(M(_)&&(jt(_.callee)||M(_.callee))&&!ne(e,t)){let Ae=i(_);o.unshift({node:_,hasTrailingEmptyLine:Ae,printed:[Q(e,[$(e),r("typeArguments"),Jr(e,t,r)],t),Ae?d:""]}),e.call(s,"callee")}else jt(_)&&!ne(e,t)?(o.unshift({node:_,printed:Q(e,N(_)?Di(e,t,r):fi(e,t,r),t)}),e.call(s,"object")):_.type==="ChainExpression"&&!ne(e,t)?e.call(s,"expression"):_.type==="TSNonNullExpression"&&!ne(e,t)?(o.unshift({node:_,printed:Q(e,"!",t)}),e.call(s,"expression")):o.unshift({node:_,printed:r()})}let{node:u}=e;o.unshift({node:u,printed:[$(e),r("typeArguments"),Jr(e,t,r)]}),u.callee&&e.call(s,"callee");let a=[],c=[o[0]],m=1;for(;m<o.length&&(o[m].node.type==="TSNonNullExpression"||o[m].node.type==="ChainExpression"||M(o[m].node)||N(o[m].node)&&o[m].node.computed&&Ee(o[m].node.property));++m)c.push(o[m]);if(!M(o[0].node))for(;m+1<o.length&&(jt(o[m].node)&&jt(o[m+1].node));++m)c.push(o[m]);a.push(c),c=[];let y=!1;for(;m<o.length;++m){if(y&&jt(o[m].node)){if(o[m].node.computed&&Ee(o[m].node.property)){c.push(o[m]);continue}a.push(c),c=[],y=!1}(M(o[m].node)||o[m].node.type==="ImportExpression")&&(y=!0),c.push(o[m]),C(o[m].node,T.Trailing)&&(a.push(c),c=[],y=!1)}c.length>0&&a.push(c);function A(_){return/^[A-Z]|^[$_]+$/.test(_)}function x(_){return _.length<=t.tabWidth}function E(_){let Ae=_[1][0]?.node.computed;if(_[0].length===1){let Pt=_[0][0].node;return Pt.type==="ThisExpression"||Pt.type==="Identifier"&&(A(Pt.name)||n&&x(Pt.name)||Ae)}let we=L(0,_[0],-1).node;return N(we)&&we.property.type==="Identifier"&&(A(we.property.name)||Ae)}let P=a.length>=2&&!C(a[1][0].node)&&E(a);function F(_){return _.map(Ae=>Ae.printed)}function I(_){return _.length===0?"":f([d,w(d,_.map(F))])}let k=a.map(F),h=k,v=P?3:2,U=a.flat(),ae=U.slice(1,-1).some(_=>C(_.node,T.Leading))||U.slice(0,-1).some(_=>C(_.node,T.Trailing))||a[v]&&C(a[v][0].node,T.Leading);if(a.length<=v&&!ae&&a.every(_=>!L(0,_,-1).hasTrailingEmptyLine))return Gn(e)?h:p(h);let fe=L(0,a[P?1:0],-1).node,z=!M(fe)&&i(fe),xe=[F(a[0]),P?a.slice(1,2).map(F):"",z?d:"",I(a.slice(P?2:1))],De=o.map(({node:_})=>_).filter(M);function xt(){let _=L(0,L(0,a,-1),-1).node,Ae=L(0,k,-1);return M(_)&&ue(Ae)&&De.slice(0,-1).some(we=>we.arguments.some(wt))}let bt;return ae||De.length>2&&De.some(_=>_.arguments.some(Ae=>!st(Ae)))||k.slice(0,-1).some(ue)||xt()?bt=p(xe):bt=[ue(h)||z?Ne:"",mt([h,xe])],Et({memberChain:!0},bt)}var Aa=Jf;function Vt(e,t,r){let{node:n}=e,o=n.type==="NewExpression",i=$(e),s=se(n),u=n.type!=="TSImportType"&&n.typeArguments?[r("typeArguments"),Se]:"",a=s.length===1&&Jn(s[0],t.originalText);if(a||Uf(e)||qf(e)||Ut(n,e.parent)){let y=[];if(kr(e,()=>{y.push(r())}),!(a&&y[0].label?.embed))return[Ta(e,r),i,u,"(",w(", ",y),")"]}let c=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!c&&!o&&jt(n.callee)&&!e.call(()=>ne(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return Aa(e,t,r);let m=[Ta(e,r),i,u,Jr(e,t,r)];return c||M(n.callee)?p(m):m}function Ta(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":[r.type==="NewExpression"?"new ":"",t("callee"),Se]}var Gf=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function Uf(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&lr(t.callee,Gf)))return!1;let r=se(t);return r.length===1&&q(r[0])&&!C(r[0])}function qf(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=se(t);return t.callee.name==="require"?(r.length===1&&q(r[0])||r.length>1)&&!C(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&q(r[0])&&r[1].type==="ArrayExpression":!1}function vt(e,t,r,n,o,i){let s=Yf(e,t,r,n,i),u=i?r(i,{assignmentLayout:s}):"";switch(s){case"break-after-operator":return p([p(n),o,p(f([g,u]))]);case"never-break-after-operator":return p([p(n),o," ",u]);case"fluid":{let a=Symbol("assignment");return p([p(n),o,p(f(g),{id:a}),Se,ht(u,{groupId:a})])}case"break-lhs":return p([n,o," ",p(u)]);case"chain":return[p(n),o,g,u];case"chain-tail":return[p(n),o,f([g,u])];case"chain-tail-arrow-chain":return[p(n),o,u];case"only-left":return n}}function Sa(e,t,r){let{node:n}=e;return vt(e,t,r,r("left"),[" ",n.operator],"right")}function Ba(e,t,r){return vt(e,t,r,r("id")," =","init")}function Yf(e,t,r,n,o){let{node:i}=e,s=i[o];if(!s)return"only-left";let u=!qn(s);if(e.match(qn,ba,A=>!u||A.type!=="ExpressionStatement"&&A.type!=="VariableDeclaration"))return u?s.type==="ArrowFunctionExpression"&&s.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!u&&qn(s.right)||pe(s)&&!Ht(s)||Le(t.originalText,s)||C(s,T.Leading,jn))return"break-after-operator";if(i.type==="ImportAttribute"||s.type==="CallExpression"&&s.callee.name==="require"||e.root.type==="JsonRoot")return"never-break-after-operator";let m=Ns(n);if(Xf(i)||$f(i)||yi(i)&&m)return"break-lhs";let y=Qf(i,n,t);return e.call(()=>Hf(e,t,r,y),o)?"break-after-operator":Vf(i)?"break-lhs":!m&&(y||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||Gi(s)||Ee(s)||s.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Hf(e,t,r,n){let o=e.node;if(Be(o)&&!Fr(o))return!0;switch(o.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!Zf(o))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:c}=o;return Be(c)&&!Fr(c)}let{consequent:u,alternate:a}=o;return u.type==="ConditionalExpression"||a.type==="ConditionalExpression"}case"ClassExpression":return j(o.decorators)}if(n)return!1;let i=o,s=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,s.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,s.push("expression");else break;return!!(q(i)||e.call(()=>Pa(e,t,r),...s))}function Xf(e){if(ba(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>We(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function qn(e){return e.type==="AssignmentExpression"}function ba(e){return qn(e)||e.type==="VariableDeclarator"}function Vf(e){let t=Kf(e);if(j(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function Kf(e){if(Vr(e))return e.typeParameters?.params}function $f(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=ga(t.typeAnnotation);return j(r)&&r.length>1&&r.some(n=>j(ga(n))||n.type==="TSConditionalType")}function yi(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function ga(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function Pa(e,t,r,n=!1){let{node:o}=e,i=()=>Pa(e,t,r,!0);if(Re(o))return e.call(i,"expression");if(M(o)){if(Vt(e,t,r).label?.memberChain)return!1;let u=se(o);return!(u.length===0||u.length===1&&Wr(u[0],t))||zf(o,r)?!1:e.call(i,"callee")}return N(o)?e.call(i,"object"):n&&(o.type==="Identifier"||o.type==="ThisExpression")}function Qf(e,t,r){return We(e)?(t=ur(t),typeof t=="string"&&dt(t)<r.tabWidth+3):!1}function zf(e,t){let r=e.typeArguments?.params;if(j(r)){if(r.length>1)return!0;if(r.length===1){let n=r[0];if(pe(n)||At(n)||n.type==="TSTypeLiteral"||n.type==="ObjectTypeAnnotation")return!0}if(ue(t("typeArguments")))return!0}return!1}function ha(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function Zf(e){return ha(e.checkType)||ha(e.extendsType)}function Ia(e,t,r){let{node:n}=e,o=["await"];if(n.argument){o.push(" ",r("argument"));let{parent:i}=e;if(M(i)&&i.callee===n||N(i)&&i.object===n){o=[f([D,...o]),D];let s=e.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if(s?.type!=="AwaitExpression"||!Ce(s.argument,u=>u===n))return p(o)}}return o}var eD=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},tD=Qt("findLast",function(){if(Array.isArray(this))return eD}),ka=tD;function Gr(e,t,r,n){let{node:o}=e,i=[],s=ka(0,o[n],u=>u.type!=="EmptyStatement");return e.each(({node:u})=>{u.type!=="EmptyStatement"&&(i.push(r()),u!==s&&(i.push(d),me(u,t)&&i.push(d)))},n),i}function Yn(e,t,r){let n=rD(e,t,r),{node:o,parent:i}=e;if(o.type==="Program"&&i?.type!=="ModuleExpression")return n?[n,d]:"";let s=[];if(o.type==="StaticBlock"&&s.push("static "),s.push("{"),n)s.push(f([d,n]),d);else{let u=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!u.finalizer||i.type==="TSModuleDeclaration"||i.type==="MatchStatementCase"||o.type==="StaticBlock"||s.push(d)}return s.push("}"),s}function rD(e,t,r){let{node:n}=e,o=j(n.directives),i=n.body.some(a=>a.type!=="EmptyStatement"),s=C(n,T.Dangling);if(!o&&!i&&!s)return"";let u=[];return o&&(u.push(Gr(e,t,r,"directives")),(i||s)&&(u.push(d),me(L(0,n.directives,-1),t)&&u.push(d))),i&&u.push(Gr(e,t,r,"body")),s&&u.push(W(e,t)),u}function nD(e){let t=new WeakMap;return r=>Z(t,r,()=>Symbol(e))}var wa=nD;var La=["properties","indexers","callProperties","internalSlots"];function Oa(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="RecordDeclarationBody"){e.each(t,"elements");return}if(r.type==="ObjectTypeAnnotation"){let n=La.flatMap(o=>e.map(({node:i,index:s})=>({node:i,loc:b(i),selector:[o,s]}),o)).sort((o,i)=>o.loc-i.loc);for(let[o,{node:i,selector:s}]of n.entries())e.call(()=>t({node:i,next:n[o+1]?.node,isLast:o===n.length-1}),...s)}}function Ma(e){if(e.type==="ObjectTypeAnnotation")return La.some(r=>j(e[r]));let t=e.type==="RecordDeclarationBody"?e.elements:e.body;return j(t)}function Kt(e,t,r){let{node:n}=e,o=[],i=n.type==="ObjectTypeAnnotation",s=n.type==="RecordDeclarationBody",u=!Na(e),a=u?g:d,c=C(n,T.Dangling),[m,y]=i&&n.exact?["{|","|}"]:"{}",A;if(Oa(e,({node:x,next:E,isLast:P})=>{if(A??(A=x),o.push(r()),!s&&u&&i){let{parent:F}=e;F.inexact||!P?o.push(","):o.push(Ie(t))}s&&x.type!=="MethodDefinition"&&o.push(","),!s&&!u&&(oD({node:x,next:E},t)||va({node:x,next:E},t))&&o.push(";"),P||(o.push(a),me(x,t)&&o.push(d))}),c&&o.push(W(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let x;C(n,T.Dangling)?x=[C(n,T.Line)||J(t.originalText,S(L(0,oe(n),-1)))?d:g,"..."]:x=[A?g:"","..."],o.push(x)}if(u){let x=C(n,T.Dangling|T.Line)||t.objectWrap==="preserve"&&A&&te(t.originalText,b(n),b(A)),E;if(o.length===0)E=m+y;else{let P=t.bracketSpacing?g:D;E=[m,f([P,...o]),P,y]}return e.match(void 0,(P,F)=>F==="typeAnnotation",(P,F)=>F==="typeAnnotation",Yt)||e.match(void 0,(P,F)=>P.type==="FunctionTypeParam"&&F==="typeAnnotation",Yt)?E:p(E,{shouldBreak:x})}return[m,o.length>0?[f([d,o]),d]:"",y]}function Na(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"||t.type==="RecordDeclarationBody"}function ke(e,t){let{parent:r}=e;return e.callParent(Na)?r.type==="ObjectTypeAnnotation"?";":R(t):r.type==="TSTypeLiteral"?e.isLast?t.semi?O(";"):"":t.semi||va({node:e.node,next:e.next},t)?";":O("",";"):""}var _a=B(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),ja=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function oD({node:e,next:t},r){if(r.semi||!_a(e))return!1;if(!e.value&&ja(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let n=t.key?.name;if(n==="in"||n==="instanceof")return!0}if(_a(t)&&!t.static&&t.variance&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let o=t.value?t.value.generator:t.generator;return!!(t.computed||o)}case"TSIndexSignature":return!0}return!1}var iD=B(["TSPropertySignature"]);function va({node:e,next:t},r){return r.semi||!iD(e)?!1:ja(e)?!0:t&&t.type==="TSCallSignatureDeclaration"?!(e.type==="TSPropertySignature"&&e.typeAnnotation):!1}var sD=wa("heritageGroup"),uD=B(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Ar(e,t,r){let n=aD(e,t,r),{node:o}=e;if(o.type==="ClassExpression"&&j(o.decorators)){let i=Rn(e,t,r);return ne(e,t)?[f([D,i,n]),D]:[i,n]}return n}function aD(e,t,r){let{node:n}=e,o=uD(n),i=n.type==="RecordDeclaration",s=o?"interface":i?"record":"class",u=[re(e),mr(e),s],a=Wa(e),c=[],m=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&c.push(" ");for(let A of["id","typeParameters"])if(n[A]){let{leading:x,trailing:E}=e.call(()=>An(e,t),A);c.push(x,r(A),f(E))}}if(n.superClass){let A=[lD(e,t,r),r("superTypeArguments")],x=e.call(()=>["extends ",Q(e,A,t)],"superClass");a?m.push(g,p(x)):m.push(" ",x)}else m.push(Ei(e,t,r,"extends"));m.push(Ei(e,t,r,"mixins"),Ei(e,t,r,"implements"));let y;return a?(y=sD(n),u.push(p([...c,f(m)],{id:y}))):u.push(...c,...m),!o&&a&&Ma(n.body)?u.push(O(d," ",{groupId:y})):u.push(" "),u.push(r("body")),u}function Ra(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function pD(e){let{node:t}=e;if(C(t.id,T.Trailing)||C(t.typeParameters,T.Trailing)||C(t.superClass)||Ra(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!t.superTypeArguments&&N(Pe(t.superClass));let r=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&N(r.expression)&&!r.typeArguments:!1}var cD=new WeakMap;function Wa(e){return Z(cD,e.node,()=>pD(e))}function Ei(e,t,r,n){let{node:o}=e;if(!j(o[n]))return"";let i=W(e,t,{marker:n}),s=w([",",g],e.map(r,n));if(!Ra(o)){let u=[`${n} `,i,s];return Wa(e)?[g,p(u)]:[" ",u]}return[g,i,i&&d,n,p(f([g,s]))]}function lD(e,t,r){let n=r("superClass"),{parent:o}=e;return o.type==="AssignmentExpression"?p(O(["(",f([D,n]),D,")"],n)):n}function Hn(e,t,r){let{node:n}=e,o=[];return j(n.decorators)&&o.push(ci(e,t,r)),o.push(qt(n)),n.static&&o.push("static "),o.push(mr(e)),n.override&&o.push("override "),o.push(Rr(e,t,r)),o}function Xn(e,t,r){let{node:n}=e,o=[];j(n.decorators)&&o.push(ci(e,t,r)),o.push(re(e),qt(n)),n.static&&o.push("static "),o.push(mr(e)),n.override&&o.push("override "),n.readonly&&o.push("readonly "),n.variance&&o.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&o.push("accessor "),o.push(je(e,t,r),$(e),gn(e),G(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[vt(e,t,r,o," =",i?void 0:"value"),R(t)]}function mD(e,t){let r=oe(e,T.Leading);if(r.length===0)return!1;let[n]=r,o=t.originalText,i=b(n);return te(o,i,S(n))||J(o,i,{backwards:!0})}function Ft(e,t,r,n="body"){return e.call(({node:o})=>{let i=r();if(o.type==="EmptyStatement")return C(o,T.Leading)?[" ",i]:i;let s=o.type==="BlockStatement";return mD(o,t)?s?[d,i]:f([d,i]):s||o.type==="IfStatement"&&e.parent.type==="IfStatement"&&e.key==="alternate"?[" ",i]:f([g,i])},n)}var Ja=(e,t,r)=>Ft(e,t,r,"consequent"),Ga=(e,t,r)=>Ft(e,t,r,"alternate");function Ua(e,t,r){return[p(["do",Ft(e,t,r)]),e.node.body.type==="BlockStatement"?" ":d,"while (",fr(e,t,r),")",R(t)]}var fD=B(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function di(e){return fD(e)?di(e.expression):e}var qa=B(["FunctionExpression","ArrowFunctionExpression"]);function Ya(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function DD(e,t){if(zo(e,t)){let r=di(e.node.expression);return qa(r)||Ya(r)}return!(!t.semi||$o(e,t)||Qo(e,t))}function Ha(e,t,r){let n=[r("expression")];if(yr(e,t)){if(wn(e,t)){let{node:o}=e,i=L(0,oe(o,T.Leading),-1),s=xn(e,t,{filter:u=>u===i});return Q(e,[";",s,...n],t,{filter:u=>u!==i})}n.unshift(";")}else DD(e,t)&&n.push(";");return n}function Xa(e,t,r){let{node:n}=e,o=Ft(e,t,r),i=W(e,t),s=i?[i,D]:"";return!n.init&&!n.test&&!n.update?[s,p(["for (;;)",o])]:[s,p(["for (",p([f([D,r("init"),";",g,r("test"),";",n.update?[g,r("update")]:""]),D]),")",o])]}function Va(e,t,r){let{node:n}=e,o=n.type==="ForOfStatement";return p(["for",o&&n.await?" await":""," (",r("left")," ",o?"of":"in"," ",r("right"),")",Ft(e,t,r)])}function Ka(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let o=w([",",g],n);return t.__isVueForBindingLeft?["(",f([D,p(o)]),D,")"]:o}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return w([",",g],n)}}var $a=(e,{originalText:t})=>Fn(t,b(e));function Vn(e){return qe(L(0,oe(e,T.Dangling),-1))}function Qa(e,t,r){let{node:n}=e,o=p(["if (",fr(e,t,r),")",Ja(e,t,r)]);if(!n.alternate)return o;let{consequent:i}=n,s=i.type==="BlockStatement",u=[o],a=s;s||(u.push(d),a=!1);let c=oe(n,T.Dangling);if(c.length>0){let[m]=c;$a(m,t)?u.push(s?[d,d]:d):J(t.originalText,b(m),{backwards:!0})?u.push(s?d:""):u.push(" "),u.push(W(e,t),Vn(n)||J(t.originalText,S(L(0,c,-1)))?d:" "),a=!1}return u.push(a?" ":"","else",p(Ga(e,t,r))),u}function ep(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return za(r);case"BigIntLiteral":return Kn(r.extra.raw);case"NumericLiteral":return _t(r.extra.raw);case"StringLiteral":return Xe(ot(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return Za(r.extra.raw,t);case"Literal":{if(r.regex)return za(r.regex);if(r.bigint)return Kn(r.raw);let{value:n}=r;return typeof n=="number"?_t(r.raw):typeof n=="string"?yD(e)?Za(r.raw,t):Xe(ot(r.raw,t)):String(n)}}}function yD(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Kn(e){return e.toLowerCase()}function za({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var ED="use strict";function Za(e,t){let r=e.slice(1,-1);if(r===ED||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}var tp=B(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),dD=B(["EnumBody","EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function ft(e,t,r){let{node:n,parent:o}=e,i=dD(n),s=n.type==="TSEnumBody"||i,u=tp(n),a=i&&n.hasUnknownMembers,c=s?"members":u?"attributes":"properties",m=n[c],y=s||n.type==="ObjectPattern"&&o.type!=="FunctionDeclaration"&&o.type!=="FunctionExpression"&&o.type!=="ArrowFunctionExpression"&&o.type!=="ObjectMethod"&&o.type!=="ClassMethod"&&o.type!=="ClassPrivateMethod"&&o.type!=="AssignmentPattern"&&o.type!=="CatchClause"&&n.properties.some(F=>F.value&&(F.value.type==="ObjectPattern"||F.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&m.length>0&&CD(n,m[0],t),A=[],x=e.map(({node:F})=>{let I=[...A,r()];return A=[",",g],me(F,t)&&A.push(d),I},c);if(a){let F;if(C(n,T.Dangling)){let I=C(n,T.Line);F=[W(e,t),I||J(t.originalText,S(L(0,oe(n),-1)))?d:g,"..."]}else F=["..."];x.push([...A,...F])}let E=!(a||L(0,m,-1)?.type==="RestElement"),P;if(x.length===0)P=p(["{",Mt(e,t),"}",$(e),G(e,r)]);else{let F=t.bracketSpacing?g:D;P=["{",f([F,...x]),E?Ie(t):"",F,"}",$(e),G(e,r)]}return e.match(F=>F.type==="ObjectPattern"&&!j(F.decorators),Yt)||Ue(n)&&(e.match(void 0,(F,I)=>I==="typeAnnotation",(F,I)=>I==="typeAnnotation",Yt)||e.match(void 0,(F,I)=>F.type==="FunctionTypeParam"&&I==="typeAnnotation",Yt))||!y&&e.match(F=>F.type==="ObjectPattern",F=>F.type==="AssignmentExpression"||F.type==="VariableDeclarator")?P:p(P,{shouldBreak:y})}function CD(e,t,r){let n=r.originalText,o=b(t),i=b(e);return tp(e)&&(i=ce(r).lastIndexOf("{",o)),te(n,i,o)}function rp(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",Fi(n),ip(e,t,r),op(e,t,r),up(e,t,r),R(t)]}var np=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function $n(e,t,r){let{node:n}=e,o=[ca(e,t,r),re(e),"export",np(n)?" default":""],{declaration:i,exported:s}=n;return C(n,T.Dangling)&&(o.push(" ",W(e,t)),Vn(n)&&o.push(d)),i?o.push(" ",r("declaration")):(o.push(AD(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(o.push(" *"),s&&o.push(" as ",r("exported"))):o.push(ip(e,t,r)),o.push(op(e,t,r),up(e,t,r))),o.push(xD(n,t)),o}var FD=B(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function xD(e,t){return!e.declaration||np(e)&&!FD(e.declaration)?R(t):""}function Ci(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Fi(e,t){return Ci(e.importKind,t)}function AD(e){return Ci(e.exportKind)}function op(e,t,r){let{node:n}=e;return n.source?[sp(n,t)?" from":""," ",r("source")]:""}function ip(e,t,r){let{node:n}=e;if(!sp(n,t))return"";let o=[" "];if(j(n.specifiers)){let i=[],s=[];e.each(()=>{let u=e.node.type;if(u==="ExportNamespaceSpecifier"||u==="ExportDefaultSpecifier"||u==="ImportNamespaceSpecifier"||u==="ImportDefaultSpecifier")i.push(r());else if(u==="ExportSpecifier"||u==="ImportSpecifier")s.push(r());else throw new it(n,"specifier")},"specifiers"),o.push(w(", ",i)),s.length>0&&(i.length>0&&o.push(", "),s.length>1||i.length>0||n.specifiers.some(a=>C(a))?o.push(p(["{",f([t.bracketSpacing?g:D,w([",",g],s)]),Ie(t),t.bracketSpacing?g:D,"}"])):o.push(["{",t.bracketSpacing?" ":"",...s,t.bracketSpacing?" ":"","}"]))}else o.push("{}");return o}function sp(e,t){return e.type!=="ImportDeclaration"||j(e.specifiers)||e.importKind==="type"?!0:ce(t).slice(b(e),b(e.source)).trimEnd().endsWith("from")}function TD(e,t){let r=ce(t).slice(S(e.source),e.attributes?.[0]?b(e.attributes[0]):S(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||j(e.attributes)?"with":void 0}var gD=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:o,value:i}=r;return n==="ImportAttribute"&&(o.type==="Identifier"&&o.name==="type"||q(o)&&o.value==="type")&&q(i)&&!C(r)&&!C(o)&&!C(i)};function up(e,t,r){let{node:n}=e;if(!n.source)return"";let o=TD(n,t);if(!o)return"";let i=ft(e,t,r);return gD(n)&&(i=Jt(i)),[` ${o} `,i]}function ap(e,t,r){let{node:n}=e,{type:o}=n,i=o.startsWith("Import"),s=i?"imported":"local",u=i?"local":"exported",a=n[s],c=n[u],m="",y="";return o==="ExportNamespaceSpecifier"||o==="ImportNamespaceSpecifier"?m="*":a&&(m=r(s)),c&&!Ir(n)&&(y=r(u)),[Ci(o==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&y?" as ":"",y]}function Qn(e,t,r){let{node:n}=e;return n.shorthand?r("value"):vt(e,t,r,je(e,t,r),":","value")}function Tr(e,t){return["...",t("argument"),G(e,t)]}function hD(e,t,r){let{node:n}=e,o=r();return an(n,t)?["(",f([d,o]),d,")"]:Be(n)||t.experimentalTernaries&&n.type==="ConditionalExpression"&&(n.consequent.type==="ConditionalExpression"||n.alternate.type==="ConditionalExpression")?p([O("("),f([D,o]),D,O(")")]):o}function zn(e,t,r){let{node:n}=e;return[n.type==="ThrowStatement"?"throw":"return",n.argument?[" ",e.call(()=>hD(e,t,r),"argument")]:"",R(t)]}function SD(e,t){let{key:r,parent:n}=e;return!!(r==="argument"&&ut(n)&&ne(e,t)||r==="body"&&n.type==="ArrowFunctionExpression")}function pp(e,t,r){let{parent:n}=e;if(n.type==="ExpressionStatement"||n.type==="ForStatement"){let i=[];return e.each(({isFirst:s})=>{s?i.push(r()):i.push(",",f([g,r()]))},"expressions"),p(i)}let o=w([",",g],e.map(r,"expressions"));return SD(e,t)?p(O([f([D,o]),D],o)):p(o)}function cp(e,t,r){return[p(["switch (",f([D,r("discriminant")]),D,")"])," {",e.node.cases.length>0?f([d,w(d,e.map(({node:n,isLast:o})=>[r(),!o&&me(n,t)?d:""],"cases"))]):"",d,"}"]}function lp(e,t,r){let{node:n}=e,o=[];n.test?o.push("case ",r("test"),":"):o.push("default:"),C(n,T.Dangling)&&o.push(" ",W(e,t));let i=n.consequent.filter(s=>s.type!=="EmptyStatement");if(i.length>0){let s=Gr(e,t,r,"consequent");o.push(i.length===1&&i[0].type==="BlockStatement"?[" ",s]:f([d,s]))}return o}function mp(e,t){let r=0;for(let n in e){let o=e[n];if(nn(o)&&typeof o.type=="string"&&(r++,r+=mp(o,t-r)),r>t)return r}return r}function xi(e,t=5){return mp(e,t)<=t}function BD(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let o of["test","consequent","alternate"]){let i=n[o];if(H(i))return!0;i.type==="ConditionalExpression"&&t.push(i)}}return!1}function bD(e,t,r){let{node:n}=e,o=n.type==="ConditionalExpression",i=o?"alternate":"falseType",{parent:s}=e,u=o?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return s.type===n.type&&s[i]===n?he(2,u):u}var PD=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function ID(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let o=0;!r;o++){let i=e.getParentNode(o);if(Re(i)&&i.expression===n||M(i)&&i.callee===n||N(i)&&i.object===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||de(i)&&i.expression===n?(r=e.getParentNode(o+1),n=i):r=i}return n===t?!1:r[PD.get(r.type)]===n}function fp(e,t,r){let{node:n}=e,o=n.type==="ConditionalExpression",i=o?"consequent":"trueType",s=o?"alternate":"falseType",u=o?["test"]:["checkType","extendsType"],a=n[i],c=n[s],m=[],y=!1,{parent:A}=e,x=A.type===n.type&&u.some(z=>A[z]===n),E=A.type===n.type&&!x,P,F,I=0;do F=P||n,P=e.getParentNode(I),I++;while(P&&P.type===n.type&&u.every(z=>P[z]!==F));let k=P||A,h=F;if(o&&(H(n[u[0]])||H(a)||H(c)||BD(h))){y=!0,E=!0;let z=De=>[O("("),f([D,De]),D,O(")")],xe=De=>De.type==="NullLiteral"||De.type==="Literal"&&De.value===null||De.type==="Identifier"&&De.name==="undefined";m.push(" ? ",xe(a)?r(i):z(r(i))," : ",c.type===n.type||xe(c)?r(s):z(r(s)))}else{let z=De=>t.useTabs?f(r(De)):he(2,r(De)),xe=[g,"? ",a.type===n.type?O("","("):"",z(i),a.type===n.type?O("",")"):"",g,": ",z(s)];m.push(A.type!==n.type||A[s]===n||x?xe:t.useTabs?fn(f(xe)):he(Math.max(0,t.tabWidth-2),xe))}let v=z=>A===k?p(z):z,U=!y&&(N(A)||A.type==="NGPipeExpression"&&A.left===n)&&!A.computed,ae=ID(e),fe=v([bD(e,t,r),E?m:f(m),o&&U&&!ae?D:""]);return x||ae?p([f([D,fe]),D]):fe}function kD(e,t){return(N(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function wD(e,t,r,n){return[...e.map(i=>oe(i)),oe(t),oe(r)].flat().some(i=>le(i)&&te(n.originalText,b(i),S(i)))}var LD=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function OD(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let o=0;!r;o++){let i=e.getParentNode(o);if(Re(i)&&i.expression===n||M(i)&&i.callee===n||N(i)&&i.object===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||de(i)&&i.expression===n?(r=e.getParentNode(o+1),n=i):r=i}return n===t?!1:r[LD.get(r.type)]===n}var Ai=e=>[O("("),f([D,e]),D,O(")")];function gr(e,t,r,n){if(!t.experimentalTernaries)return fp(e,t,r);let{node:o}=e,i=o.type==="ConditionalExpression",s=$e(o),u=i?"consequent":"trueType",a=i?"alternate":"falseType",c=i?["test"]:["checkType","extendsType"],m=o[u],y=o[a],A=c.map(br=>o[br]),{parent:x}=e,E=x.type===o.type,P=E&&c.some(br=>x[br]===o),F=E&&x[a]===o,I=m.type===o.type,k=y.type===o.type,h=k||F,v=t.tabWidth>2||t.useTabs,U,ae,fe=0;do ae=U||o,U=e.getParentNode(fe),fe++;while(U&&U.type===o.type&&c.every(br=>U[br]!==ae));let z=U||x,xe=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(x.type==="AssignmentExpression"||x.type==="VariableDeclarator"||x.type==="ClassProperty"||x.type==="PropertyDefinition"||x.type==="ClassPrivateProperty"||x.type==="ObjectProperty"||x.type==="Property"),De=ut(x)&&!(I||k),xt=i&&z.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",bt=OD(e),_=kD(o,x),Ae=s&&ne(e,t),we=v?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Pt=wD(A,m,y,t)||I||k,Sr=!h&&!E&&!s&&(xt?m.type==="NullLiteral"||m.type==="Literal"&&m.value===null:Wr(m,t)&&xi(o.test,3)),ki=h||F||s&&!E||E&&i&&xi(o.test,1)||Sr,qr=[];C(o.test,T.Dangling)&&e.call(()=>{qr.push(W(e,t))},"test"),C(o,T.Dangling)&&qr.push(W(e,t));let wi=Symbol("test"),Vp=Symbol("consequent"),Yr=Symbol("test-and-consequent"),Kp=i?[Ai(r("test")),o.test.type==="ConditionalExpression"?Ne:""]:[r("checkType")," ","extends"," ",$e(o.extendsType)||o.extendsType.type==="TSMappedType"?r("extendsType"):p(Ai(r("extendsType")))],Li=p([Kp," ?"],{id:wi}),$p=r(u),Hr=f([I||xt&&(H(m)||E||h)?d:g,$p]),Qp=ki?p([Li,h?Hr:O(Hr,p(Hr,{id:Vp}),{groupId:wi})],{id:Yr}):[Li,Hr],yo=r(a),Oi=Sr?O(yo,fn(Ai(yo)),{groupId:Yr}):yo,Br=[Qp,qr.length>0?[f([d,qr]),d]:k?d:Sr?O(g," ",{groupId:Yr}):g,":",k||!v?" ":ki?O(we,O(h||Sr?" ":we," "),{groupId:Yr}):O(we," "),k?Oi:p([f(Oi),xt&&!Sr?D:""]),_&&!bt?D:"",Pt?Ne:""];return xe&&!Pt?p(f([D,p(Br)])):xe||De?p(f(Br)):bt||s&&P?p([f([D,Br]),Ae?D:""]):x===z?p(Br):Br}function Dp(e,t,r){let{node:n}=e;return["try ",r("block"),n.handler?[" ",r("handler")]:"",n.finalizer?[" finally ",r("finalizer")]:""]}function yp(e,t,r){let{node:n}=e;if(n.param){let o=C(n.param,s=>!le(s)||s.leading&&J(t.originalText,S(s))||s.trailing&&J(t.originalText,b(s),{backwards:!0})),i=r("param");return["catch ",o?["(",f([D,i]),D,") "]:["(",i,") "],r("body")]}return["catch ",r("body")]}function Zn(e,t,r){let{node:n}=e,o=e.map(r,"declarations"),i=e.key==="init"&&e.parent.type==="ForStatement"||e.key==="left"&&(e.parent.type==="ForInStatement"||e.parent.type==="ForOfStatement"),s=n.declarations.some(a=>a.init),u;return o.length===1&&!C(n.declarations[0])?u=o[0]:u=f(o[0]),p([re(e),n.kind,u?[" ",u]:"",f(o.slice(1).map(a=>[",",s&&!i?d:g,a])),i?"":R(t)])}function Ep(e,t,r){let{node:n}=e,o=n.type==="WithStatement"?"with":"while";return p([o," (",fr(e,t,r),")",Ft(e,t,r)])}function dp(e,t,r,n){let{node:o}=e;if(er(o))return ep(e,t);switch(o.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[W(e,t),r("node"),d];case"File":return Ka(e,t,r)??r("program");case"ExpressionStatement":return Ha(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!C(o.expression)&&(ie(o.expression)||Y(o.expression))?["(",r("expression"),")"]:p(["(",f([D,r("expression")]),D,")"]);case"AssignmentExpression":return Sa(e,t,r);case"VariableDeclarator":return Ba(e,t,r);case"BinaryExpression":case"LogicalExpression":return vn(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return xa(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return Fa(e,t,r);case"Identifier":return[o.name,$(e),gn(e),G(e,r)];case"V8IntrinsicIdentifier":return["%",o.name];case"SpreadElement":return Tr(e,r);case"RestElement":return Tr(e,r);case"FunctionDeclaration":case"FunctionExpression":return Dr(e,t,r,n);case"ArrowFunctionExpression":return ya(e,t,r,n);case"YieldExpression":return[`yield${o.delegate?"*":""}`,o.argument?[" ",r("argument")]:""];case"AwaitExpression":return Ia(e,t,r);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return $n(e,t,r);case"ImportDeclaration":return rp(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return ap(e,t,r);case"ImportAttribute":return Qn(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return Yn(e,t,r);case"ClassBody":return Kt(e,t,r);case"ThrowStatement":return zn(e,t,r);case"ReturnStatement":return zn(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Vt(e,t,r);case"ObjectExpression":case"ObjectPattern":return ft(e,t,r);case"Property":return Ke(o)?Rr(e,t,r):Qn(e,t,r);case"ObjectProperty":return Qn(e,t,r);case"ObjectMethod":return Rr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return xr(e,t,r);case"SequenceExpression":return pp(e,t,r);case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),R(t)];case"UnaryExpression":{let i=[o.operator];/[a-z]$/.test(o.operator)&&i.push(" ");let s=r("argument");return C(o.argument)?i.push(p(["(",f([D,s]),D,")"])):i.push(s),i}case"UpdateExpression":return[o.prefix?o.operator:"",r("argument"),o.prefix?"":o.operator];case"ConditionalExpression":return gr(e,t,r,n);case"VariableDeclaration":return Zn(e,t,r);case"IfStatement":return Qa(e,t,r);case"ForStatement":return Xa(e,t,r);case"WithStatement":case"WhileStatement":return Ep(e,t,r);case"DoWhileStatement":return Ua(e,t,r);case"ForInStatement":case"ForOfStatement":return Va(e,t,r);case"DoExpression":return[o.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[o.type==="BreakStatement"?"break":"continue",o.label?[" ",r("label")]:"",R(t)];case"LabeledStatement":return[r("label"),`:${o.body.type==="EmptyStatement"&&!C(o.body,T.Leading)?"":" "}`,r("body")];case"TryStatement":return Dp(e,t,r);case"CatchClause":return yp(e,t,r);case"SwitchStatement":return cp(e,t,r);case"SwitchCase":return lp(e,t,r);case"DebuggerStatement":return["debugger",R(t)];case"ClassDeclaration":case"ClassExpression":return Ar(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Hn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Xn(e,t,r);case"TemplateElement":return Xe(o.value.raw);case"TemplateLiteral":return Ln(e,t,r);case"TaggedTemplateExpression":return Bu(e,t,r);case"PrivateIdentifier":return["#",o.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(zt(e))return";";default:throw new it(o,"ESTree")}}function eo(e){return[e("elementType"),"[]"]}function to(e,t,r){let{parent:n,node:o,key:i}=e,u=o.type==="AsConstExpression"?"const":r("typeAnnotation"),a=[r("expression")," ",Ui(o)?"satisfies":"as"," ",u];return i==="callee"&&Tt(n)||i==="object"&&N(n)?p([f([D,...a]),D]):a}function Cp(e,t,r){let{node:n}=e,o=[re(e),n.async?"async ":"","component"];n.id&&o.push(" ",r("id")),o.push(r("typeParameters"));let i=Ve(e,t,r);return n.rendersType?o.push(p([i," ",r("rendersType")])):o.push(p([i])),n.body&&o.push(" ",r("body")),n.type==="DeclareComponent"&&o.push(R(t)),o}function Fp(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function xp(e,t,r){let{node:n}=e,o=[];return n.name&&o.push(r("name"),n.optional?"?: ":": "),o.push(r("typeAnnotation")),o}function Ap(e,t,r){let{node:n}=e;return[n.explicitType?`of ${n.explicitType} `:"",ft(e,t,r)]}function Tp(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",ft(e,t,r)]}function ro(e,t,r){let{node:n}=e,o=n.type==="TSEnumMember",i=o?je(e,t,r):r("id"),s=o?"initializer":"init";return n[s]?[i," = ",r(s)]:i}function no(e,t){let{node:r}=e;return[re(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function oo(e,t,r){let{node:n}=e,o=[mr(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&o.push("new ");let i=Ve(e,t,r,!1,!0),s=[];return n.type==="FunctionTypeAnnotation"?s.push(MD(e)?" => ":": ",r("returnType")):s.push(G(e,r,"returnType")),Bt(n,s)&&(i=p(i)),o.push(i,s),[p(o),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?ke(e,t):""]}function MD(e){let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(pr(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&kt(r,t)||r.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function hp(e,t,r){return[re(e),"hook",e.node.id?[" ",r("id")]:"",R(t)]}function gp(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function Sp(e,t,r){let{node:n}=e,o=Ve(e,t,r,!1,!0),i=[gp(e)?": ":" => ",r("returnType")];return p([gp(e)?"":"hook ",Bt(n,i)?p(o):o,i])}function io(e,t,r){return[r("objectType"),$(e),"[",r("indexType"),"]"]}function so(e,t,r){return["infer ",r("typeParameter")]}function uo(e,t,r){let n=!1;return p(e.map(({isFirst:o,previous:i,node:s,index:u})=>{let a=r();if(o)return a;let c=Ue(s),m=Ue(i);return m&&c?[" & ",n?f(a):a]:!m&&!c||Le(t.originalText,s)?t.experimentalOperatorPosition==="start"?f([g,"& ",a]):f([" &",g,a]):(u>1&&(n=!0),[" & ",u>1?f(a):a])},"types"))}function _D(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function bp(e,t,r){let{node:n}=e;return[p([n.variance?r("variance"):"",p(["[",f([D,r("keyTparam")," in ",r("sourceType")]),D,"]"]),_D(n.optional),": ",r("propType")]),ke(e,t)]}function Bp(e,t){return e==="+"||e==="-"?e+t:t}function Pp(e,t,r){let{node:n}=e,o=!1;if(t.objectWrap==="preserve"){let u=ce(t),a=b(n)+1,c=u.slice(a),m=a+c.search(/\S/);te(t.originalText,a,m)&&(o=!0)}let i=[],s=oe(n,T.Dangling);if(s.length>0){let u=L(0,s,-1),a=W(e,t);i.push(...a.slice(0,-1),p([L(0,a,-1),qe(u)||J(t.originalText,S(u))?d:g]))}return p(["{",f([t.bracketSpacing?g:D,...i,n.readonly?[Bp(n.readonly,"readonly")," "]:"",p(["[",f([D,r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:""]),D,"]"]),n.optional?Bp(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation"),t.semi?O(";"):""]),t.bracketSpacing?g:D,"}"],{shouldBreak:o})}function Ip(e,t,r){let{node:n}=e;return[p(["match (",f([D,r("argument")]),D,")"])," {",n.cases.length>0?f([d,w(d,e.map(({node:o,isLast:i})=>[r(),!i&&me(o,t)?d:""],"cases"))]):"",d,"}"]}function kp(e,t,r){let{node:n}=e,o=C(n,T.Dangling)?[" ",W(e,t)]:[],i=n.type==="MatchStatementCase"?[" ",r("body")]:f([g,r("body"),","]);return[r("pattern"),n.guard?p([f([g,"if (",r("guard"),")"])]):"",p([" =>",o,i])]}function wp(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return RD(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let o=n.property.type==="Identifier"?[".",r("property")]:["[",f([D,r("property")]),D,"]"];return p([r("base"),o])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":case"MatchInstanceObjectPattern":return ND(e,t,r);case"MatchInstancePattern":return p([r("targetConstructor")," ",r("properties")]);case"MatchArrayPattern":{let o=e.map(r,"elements");return n.rest&&o.push(r("rest")),p(["[",f([D,w([",",g],o)]),n.rest?"":O(","),D,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):p([r("key"),":",f([g,r("pattern")])]);case"MatchRestPattern":{let o=["..."];return n.argument&&o.push(r("argument")),o}}}function ND(e,t,r){let{node:n}=e,o=e.map(r,"properties");return n.rest&&o.push(r("rest")),p(["{",f([D,w([",",g],o)]),n.rest?"":O(","),D,"}"])}var Lp=B(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function jD(e){let{patterns:t}=e;if(t.some(n=>C(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||Lp(n)):!1}function vD(e){return Lp(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?jD(e):!1}function RD(e,t,r){let{node:n}=e,{parent:o}=e,i=o.type!=="MatchStatementCase"&&o.type!=="MatchExpressionCase"&&o.type!=="MatchArrayPattern"&&o.type!=="MatchObjectPatternProperty"&&!Le(t.originalText,n),s=vD(n),u=e.map(()=>{let c=r();return s||(c=he(2,c)),Q(e,c,t)},"patterns");if(s)return w(" | ",u);let a=[O(["| "]),w([g,"| "],u)];return ne(e,t)?p([f([O([D]),a]),D]):o.type==="MatchArrayPattern"&&o.elements.length>1?p([f([O(["(",D]),a]),D,O(")")]):p(i?f(a):a)}function Op(e,t,r){let{node:n}=e,o=[re(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&o.push(": ",r("supertype")),n.lowerBound||n.upperBound){let i=[];n.lowerBound&&i.push(f([g,"super ",r("lowerBound")])),n.upperBound&&i.push(f([g,"extends ",r("upperBound")])),o.push(p(i))}return n.impltype&&o.push(" = ",r("impltype")),o.push(R(t)),o}function ao(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function po(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function co(e,t,r){let{node:n}=e,o=[re(e),"type ",r("id"),r("typeParameters")],i=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[vt(e,t,r,o," =",i),R(t)]}function WD(e,t,r){let{node:n}=e;return ee(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/.test(t.filepath))}function $t(e,t,r,n){let{node:o}=e,i=o[n];if(!i)return"";if(!Array.isArray(i))return r(n);let s=Ut(e.grandparent),u=e.match(m=>!(m[n].length===1&&Ue(m[n][0])),void 0,(m,y)=>y==="typeAnnotation",m=>m.type==="Identifier",yi);if(i.length===0||!u&&(s||i.length===1&&(i[0].type==="NullableTypeAnnotation"||Fu(i[0])))&&!i.some(m=>C(m,T.Line)||C(m,T.Last,y=>J(t.originalText,S(y)))))return["<",w(", ",e.map(r,n)),JD(e,t),">"];let c=o.type==="TSTypeParameterInstantiation"?"":WD(e,t,n)?",":Ie(t);return p(["<",f([D,w([",",g],e.map(r,n))]),c,D,">"])}function JD(e,t){let{node:r}=e;if(!C(r,T.Dangling))return"";let n=!C(r,T.Line),o=W(e,t,{indent:!n});return n?o:[o,d]}function lo(e,t,r){let{node:n}=e,o=[n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&o.push(r("variance")),n.in&&o.push("in "),n.out&&o.push("out "),o.push(i),n.bound&&(n.usesExtendsBound&&o.push(" extends "),o.push(G(e,r,"bound"))),n.constraint){let s=Symbol("constraint");o.push(" extends",p(f(g),{id:s}),Se,ht(r("constraint"),{groupId:s}))}if(n.default){let s=Symbol("default");o.push(" =",p(f(g),{id:s}),Se,ht(r("default"),{groupId:s}))}return p(o)}function mo(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",G(e,t)]:""]}function fo({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function Mp(e,t,r,n){let{node:o}=e;if(dn(o))return o.type.slice(0,-14).toLowerCase();switch(o.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Cp(e,t,r);case"ComponentParameter":return Fp(e,t,r);case"ComponentTypeParameter":return xp(e,t,r);case"HookDeclaration":return Dr(e,t,r);case"DeclareHook":return hp(e,t,r);case"HookTypeAnnotation":return Sp(e,t,r);case"DeclareFunction":return[re(e),"function ",r("id"),r("predicate"),R(t)];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",G(e,r),R(t)];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return Array.isArray(o.declarations)?Zn(e,t,r):[re(e),o.kind??"var"," ",r("id"),R(t)];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return $n(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Op(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return co(e,t,r);case"IntersectionTypeAnnotation":return uo(e,t,r);case"UnionTypeAnnotation":return Bn(e,t,r,n);case"ConditionalTypeAnnotation":return gr(e,t,r);case"InferTypeAnnotation":return so(e,t,r);case"FunctionTypeAnnotation":return oo(e,t,r);case"TupleTypeAnnotation":return xr(e,t,r);case"TupleTypeLabeledElement":return po(e,t,r);case"TupleTypeSpreadElement":return ao(e,t,r);case"GenericTypeAnnotation":return[r("id"),$t(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return io(e,t,r);case"TypeAnnotation":return bn(e,t,r);case"TypeParameter":return lo(e,t,r);case"TypeofTypeAnnotation":return fo(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return eo(r);case"DeclareEnum":case"EnumDeclaration":return no(e,r);case"EnumBody":return Ap(e,t,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return Tp(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return ro(e,t,r);case"FunctionTypeParam":{let i=o.name?r("name"):e.parent.this===o?"this":"";return[i,$(e),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"RecordDeclaration":return Ar(e,t,r);case"ObjectTypeAnnotation":case"RecordDeclarationBody":return Kt(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"RecordDeclarationImplements":return[r("id"),r("typeArguments")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:i}=o;return ve(i==="plus"||i==="minus"||i==="readonly"||i==="writeonly"||i==="in"||i==="out"),i==="plus"?"+":i==="minus"?"-":`${i} `}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[o.static?"static ":"",r("value"),ke(e,t)];case"ObjectTypeMappedTypeProperty":return bp(e,t,r);case"ObjectTypeIndexer":return[o.static?"static ":"",o.variance?r("variance"):"","[",r("id"),o.id?": ":"",r("key"),"]: ",r("value"),ke(e,t)];case"ObjectTypeProperty":{let i="";return o.proto?i="proto ":o.static&&(i="static "),[i,o.kind!=="init"?o.kind+" ":"",o.variance?r("variance"):"",je(e,t,r),$(e),Ke(o)?"":": ",r("value"),ke(e,t)]}case"ObjectTypeInternalSlot":return[o.static?"static ":"","[[",r("id"),"]]",$(e),o.method?"":": ",r("value"),ke(e,t)];case"ObjectTypeSpreadProperty":return Tr(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(o.value);case"StringLiteralTypeAnnotation":return Xe(ot(ye(o),t));case"NumberLiteralTypeAnnotation":return _t(ye(o));case"BigIntLiteralTypeAnnotation":return Kn(ye(o));case"TypeCastExpression":return["(",r("expression"),G(e,r),")"];case"TypePredicate":return mo(e,r);case"TypeOperator":return[o.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return $t(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...o.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return to(e,t,r);case"MatchExpression":case"MatchStatement":return Ip(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return kp(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchInstancePattern":case"MatchInstanceObjectPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return wp(e,t,r);case"RecordExpression":return[r("recordConstructor"),r("typeArguments")," ",r("properties")];case"RecordExpressionProperties":return ft(e,t,r);case"RecordDeclarationProperty":case"RecordDeclarationStaticProperty":{let i=o.type==="RecordDeclarationStaticProperty",s=i?"value":"defaultValue";return[i?"static ":"",je(e,t,r),G(e,r),o[s]?[" = ",r(s)]:""]}}}function _p(e,t){let{node:r}=e,n=t.originalText.slice(b(r),S(r));return t.semi&&Pr(r)?n+=";":yr(e,t)&&(n=`;${n}`),r.type==="ClassExpression"&&j(r.decorators)?[f([D,n]),D]:n}var Ti=e=>e===""||e===g||e===d||e===D;function GD(e,t,r){let{node:n}=e;if(n.type==="JSXElement"&&ny(n))return[r("openingElement"),r("closingElement")];let o=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=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[o,...e.map(r,"children"),i];n.children=n.children.map(h=>oy(h)?{type:"JSXText",value:" ",raw:" "}:h);let s=n.children.some(H),u=n.children.filter(h=>h.type==="JSXExpressionContainer").length>1,a=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=ue(o)||s||a||u,m=e.parent.rootMarker==="mdx",y=t.singleQuote?"{' '}":'{" "}',A=m?g:O([y,D]," "),x=n.openingElement?.name?.name==="fbt",E=UD(e,t,r,A,x),P=n.children.some(h=>Xt(h));for(let h=E.length-2;h>=0;h--){let v=E[h]===""&&E[h+1]==="",U=E[h]===d&&E[h+1]===""&&E[h+2]===d,ae=(E[h]===D||E[h]===d)&&E[h+1]===""&&E[h+2]===A,fe=E[h]===A&&E[h+1]===""&&(E[h+2]===D||E[h+2]===d),z=E[h]===A&&E[h+1]===""&&E[h+2]===A,xe=E[h]===D&&E[h+1]===""&&E[h+2]===d||E[h]===d&&E[h+1]===""&&E[h+2]===D;U&&P||v||ae||z||xe?E.splice(h,2):fe&&E.splice(h+1,2)}for(;E.length>0&&Ti(L(0,E,-1));)E.pop();for(;E.length>1&&Ti(E[0])&&Ti(E[1]);)E.shift(),E.shift();let F=[""];for(let[h,v]of E.entries()){if(v===A){if(h===1&&js(E[h-1])){if(E.length===2){F.push([F.pop(),y]);continue}F.push([y,d],"");continue}if(h===E.length-1){F.push([F.pop(),y]);continue}if(E[h-1]===""&&E[h-2]===d){F.push([F.pop(),y]);continue}}h%2===0?F.push([F.pop(),v]):F.push(v,""),ue(v)&&(c=!0)}let I=P?Dn(F):p(F,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&n.children.includes(t.cursorNode)?I=[jr,I,jr]:t.nodeBeforeCursor?.type==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?I=[jr,I]:t.nodeAfterCursor?.type==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(I=[I,jr]),m)return I;let k=p([o,f([d,I]),d,i]);return c?k:mt([p([o,...E,i]),k])}function UD(e,t,r,n,o){let i="",s=[i];function u(c){i=c,s.push([s.pop(),c])}function a(c){c!==""&&(i=c,s.push(c,""))}return e.each(({node:c,next:m})=>{if(c.type==="JSXText"){let y=ye(c);if(Xt(c)){let A=dr.split(y,!0);A[0]===""&&(A.shift(),/\n/.test(A[0])?a(jp(o,A[1],c,m)):a(n),A.shift());let x;if(L(0,A,-1)===""&&(A.pop(),x=A.pop()),A.length===0)return;for(let[E,P]of A.entries())E%2===1?a(g):u(P);x!==void 0?/\n/.test(x)?a(jp(o,i,c,m)):a(n):a(Np(o,i,c,m))}else/\n/.test(y)?y.match(/\n/g).length>1&&a(d):a(n)}else{let y=r();if(u(y),m&&Xt(m)){let x=dr.trim(ye(m)),[E]=dr.split(x);a(Np(o,E,c,m))}else a(d)}},"children"),s}function Np(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?t.length===1?D:d:D}function jp(e,t,r,n){return e?d:t.length===1?r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?d:D:d}var qD=B(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function YD(e,t,r){let{parent:n}=e;if(qD(n))return t;let o=HD(e),i=ne(e,r);return p([i?"":O("("),f([D,t]),D,i?"":O(")")],{shouldBreak:o})}function HD(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&M(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function XD(e,t,r){let{node:n}=e,o=[r("name")];if(n.value){let i;if(q(n.value)){let s=ye(n.value),u=V(0,V(0,s.slice(1,-1),"&apos;","'"),"&quot;",'"'),a=hn(u,t.jsxSingleQuote);u=a==='"'?V(0,u,'"',"&quot;"):V(0,u,"'","&apos;"),i=e.call(()=>Q(e,Xe(a+u+a),t),"value")}else i=r("value");o.push("=",i)}return o}function VD(e,t,r){let{node:n}=e,o=(i,s)=>i.type==="JSXEmptyExpression"||!C(i)&&(Y(i)||ie(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(o(i.argument,i)||i.argument.type==="JSXElement")||M(Pe(i))||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||H(s)&&(i.type==="ConditionalExpression"||Be(i)));return o(n.expression,e.parent)?p(["{",r("expression"),Se,"}"]):p(["{",f([D,r("expression")]),D,Se,"}"])}function KD(e,t,r){let{node:n}=e,o=C(n.name)||C(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!o)return["<",r("name"),r("typeArguments")," />"];if(n.attributes?.length===1&&q(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
43
+ `)&&!o&&!C(n.attributes[0]))return p(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let i=n.attributes?.some(u=>q(u.value)&&u.value.value.includes(`
44
+ `)),s=t.singleAttributePerLine&&n.attributes.length>1?d:g;return p(["<",r("name"),r("typeArguments"),f(e.map(({isFirst:u,previous:a})=>[u?s:me(a,t)?[d,d]:s,r()],"attributes")),...$D(n,t,o)],{shouldBreak:i})}function $D(e,t,r){return e.selfClosing?[g,"/>"]:QD(e,t,r)?[">"]:[D,">"]}function QD(e,t,r){let n=e.attributes.length>0&&C(L(0,e.attributes,-1),T.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function zD(e,t,r){let{node:n}=e,o=["</"],i=r("name");return C(n.name,T.Leading|T.Line)?o.push(f([d,i]),d):C(n.name,T.Leading|T.Block)?o.push(" ",i):o.push(i),o.push(">"),o}function ZD(e,t){let{node:r}=e,n=C(r),o=C(r,T.Line),i=r.type==="JSXOpeningFragment";return[i?"<":"</",f([o?d:n&&!i?" ":"",W(e,t)]),o?d:"",">"]}function ey(e,t,r){let n=Q(e,GD(e,t,r),t);return YD(e,n,t)}function ty(e,t){let{node:r}=e,n=C(r,T.Line);return[W(e,t,{indent:n}),n?d:""]}function ry(e,t,r){let{node:n}=e;return["{",e.call(({node:o})=>{let i=["...",r()];return C(o)?[f([D,Q(e,i,t)]),D]:i},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function vp(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return XD(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return w(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return w(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ry(e,t,r);case"JSXExpressionContainer":return VD(e,t,r);case"JSXFragment":case"JSXElement":return ey(e,t,r);case"JSXOpeningElement":return KD(e,t,r);case"JSXClosingElement":return zD(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return ZD(e,t);case"JSXEmptyExpression":return ty(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new it(n,"JSX")}}function ny(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Xt(t)}function oy(e){return e.type==="JSXExpressionContainer"&&q(e.expression)&&e.expression.value===" "&&!C(e.expression)}function Rp(e,t,r){let{node:n}=e,o=n.parameters.length>1?Ie(t):"",i=p([f([D,w([", ",D],e.map(r,"parameters"))]),o,D]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?i:"","]",G(e,r),ke(e,t)]}function gi(e,t,r){let{node:n}=e;return[n.postfix?"":r,G(e,t),n.postfix?r:""]}function Wp(e,t,r){let{node:n}=e,o=[],i=n.kind&&n.kind!=="method"?`${n.kind} `:"";o.push(qt(n),i,je(e,t,r),$(e));let s=Ve(e,t,r,!1,!0),u=G(e,r,"returnType"),a=Bt(n,u);return o.push(a?p(s):s),n.returnType&&o.push(p(u)),[p(o),ke(e,t)]}function Jp(e,t,r){let{node:n}=e;return[re(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",p(r("body"))]:R(t)]}function Gp(e,t,r){let{node:n}=e,o=!(Y(n.expression)||ie(n.expression)),i=p(["<",f([D,r("typeAnnotation")]),D,">"]),s=[O("("),f([D,r("expression")]),D,O(")")];return o?mt([[i,r("expression")],[i,p(s,{shouldBreak:!0})],[i,r("expression")]]):p([i,r("expression")])}function Up(e,t,r,n){let{node:o}=e;if(o.type.startsWith("TS")){if(Cn(o))return o.type.slice(2,-7).toLowerCase();switch(o.type){case"TSThisType":return"this";case"TSTypeAssertion":return Gp(e,t,r);case"TSDeclareFunction":return Dr(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),R(t)];case"TSModuleBlock":return Yn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Kt(e,t,r);case"TSTypeAliasDeclaration":return co(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Hn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Xn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return Ln(e,t,r);case"TSNamedTupleMember":return po(e,t,r);case"TSRestType":return ao(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Ar(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return $t(e,t,r,"params");case"TSTypeParameter":return lo(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return to(e,t,r);case"TSArrayType":return eo(r);case"TSPropertySignature":return[o.readonly?"readonly ":"",je(e,t,r),$(e),G(e,r),ke(e,t)];case"TSParameterProperty":return[qt(o),o.static?"static ":"",o.override?"override ":"",o.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return fo(e,r);case"TSIndexSignature":return Rp(e,t,r);case"TSTypePredicate":return mo(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[Vt(e,t,r),o.qualifier?[".",r("qualifier")]:"",$t(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return io(e,t,r);case"TSTypeOperator":return[o.operator," ",r("typeAnnotation")];case"TSMappedType":return Pp(e,t,r);case"TSMethodSignature":return Wp(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),R(t)];case"TSEnumDeclaration":return no(e,r);case"TSEnumBody":return ft(e,t,r);case"TSEnumMember":return ro(e,t,r);case"TSImportEqualsDeclaration":return["import ",Fi(o,!1),r("id")," = ",r("moduleReference"),R(t)];case"TSExternalModuleReference":return Vt(e,t,r);case"TSModuleDeclaration":return Jp(e,t,r);case"TSConditionalType":return gr(e,t,r);case"TSInferType":return so(e,t,r);case"TSIntersectionType":return uo(e,t,r);case"TSUnionType":return Bn(e,t,r,n);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return oo(e,t,r);case"TSTupleType":return xr(e,t,r);case"TSTypeReference":return[r("typeName"),$t(e,t,r,"typeArguments")];case"TSTypeAnnotation":return bn(e,t,r);case"TSEmptyBodyFunctionExpression":return Pn(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return gi(e,r,"?");case"TSJSDocNonNullableType":return gi(e,r,"!");default:throw new it(o,"TypeScript")}}}function iy(e,t,r,n){for(let o of[pa,vp,Mp,Up,dp]){let i=o(e,t,r,n);if(i!==void 0)return i}}var sy=B(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function hi(e,t,r,n){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:o}=e,i=Cr(e)?_p(e,t):iy(e,t,r,n);if(!i)return"";if(sy(o))return i;i=uy(e,t,i);let s=o.type!=="ClassExpression"&&j(o.decorators)?Rn(e,t,r):"",u=ne(e,t);return!s&&!u?i:ln(i,a=>[u?"(":"",s?p([s,a]):a,u?")":""])}function uy(e,t,r){let{node:n}=e;return(C(n,T.Leading)||C(n,T.Trailing))&&en(e)?[f([D,Q(e,r,t)]),D]:r}var ay={experimental_avoidAstMutation:!0,experimental_locForRangeFormat:{locStart:b,locEnd:It}},Si={features:ay,massageAstNode:oi,canAttachComment:Vi,handleComments:ds,isGap:Cs,willPrintOwnComments:Tu,embed:Ru,insertPragma:ra,printComment:na,printPrettierIgnored:hi,print:hi,getVisitorKeys:sn,isBlockComment:le,hasPrettierIgnore:Cr};var bi=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".slnlaunch",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".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:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}];var Do={};Co(Do,{estree:()=>Si,"estree-json":()=>ly});var qp={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]};var py=on(qp),Yp=py;function Ur(e){return e.extra.raw}var cy=new Set(["start","end","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Pi(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;if(n.type==="Identifier"){let{name:o}=n;t.key={type:"StringLiteral",value:o,extra:{rawValue:o}}}else if(n.type==="NumericLiteral"){let o=Ur(n);String(Number(o))===o&&(t.key={type:"StringLiteral",value:o,extra:{rawValue:o}})}}if(r==="StringLiteral"&&delete t.extra.raw,r==="UnaryExpression"&&e.operator==="+")return t.argument;if((r==="ArrayExpression"||r==="ObjectExpression")&&(t.extra??(t.extra={}),e.extra?.trailingComma&&delete t.extra.trailingComma),r==="ArrayExpression"){for(let[n,o]of e.elements.entries())o===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral"){let n=e.quasis[0].value.cooked;return{type:"StringLiteral",value:n,extra:{rawValue:n}}}}Pi.ignoredProperties=cy;function Ii(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),d];case"ArrayExpression":{if(n.elements.length===0)return"[]";let o=e.map(()=>e.node===null?"null":r(),"elements");return["[",f([d,w([",",d],o)]),d,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",f([d,w([",",d],e.map(r,"properties"))]),d,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return ot(Ur(n),t);case"NumericLiteral":{let o=Ur(n);return Hp(e)&&String(Number(o))===o?`"${o}"`:o}case"Identifier":return Hp(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new it(n,"JSON")}}function Hp(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var ly={massageAstNode:Pi,print:Ii,getVisitorKeys:Yp};var hr={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Rt="JavaScript",my={arrowParens:{category:Rt,type:"choice",default:"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:hr.bracketSameLine,objectWrap:hr.objectWrap,bracketSpacing:hr.bracketSpacing,jsxBracketSameLine:{category:Rt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Rt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Rt,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Rt,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:hr.singleQuote,jsxSingleQuote:{category:Rt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Rt,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:{category:Rt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:hr.singleAttributePerLine},Xp=my;var fy={...Bi,...Do},Dy=[...Mi,...bi];return rc(yy);});