@shopify/create-hydrogen 5.0.28 → 5.0.30

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.
Files changed (67) hide show
  1. package/dist/acorn-CAM24XUM.js +17 -0
  2. package/dist/angular-DNP7YRKH.js +5 -0
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +47 -0
  4. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +4 -2
  5. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +6 -3
  6. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +117 -23
  7. package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -3
  8. package/dist/assets/hydrogen/starter/app/components/MockShopNotice.tsx +20 -0
  9. package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -3
  10. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +14 -53
  11. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +15 -9
  12. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -1
  13. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +13 -13
  14. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -1
  15. package/dist/assets/hydrogen/starter/app/routes/account.tsx +4 -7
  16. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +2 -9
  17. package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -4
  18. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +1 -5
  19. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +1 -3
  20. package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +2 -8
  21. package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -4
  22. package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
  23. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +2 -9
  24. package/dist/assets/hydrogen/starter/app/routes/search.tsx +18 -12
  25. package/dist/assets/hydrogen/starter/app/styles/app.css +51 -0
  26. package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +3 -3
  27. package/dist/assets/hydrogen/starter/guides/search/search.md +1 -1
  28. package/dist/assets/hydrogen/starter/package.json +10 -10
  29. package/dist/assets/hydrogen/starter/vite.config.ts +1 -1
  30. package/dist/assets/hydrogen/vite/vite.config.js +1 -1
  31. package/dist/babel-Q7WGFTYC.js +16 -0
  32. package/dist/chunk-6JMCCVMB.js +1178 -0
  33. package/dist/chunk-AMAQOLRU.js +51 -0
  34. package/dist/{chunk-RUCJI22O.js → chunk-FOFKID43.js} +1 -1
  35. package/dist/{chunk-6YUUFKYO.js → chunk-KP5HTXEK.js} +1 -1
  36. package/dist/{chunk-Y5VZE2FH.js → chunk-MLIZM3D3.js} +1 -1
  37. package/dist/{chunk-VXJIQGAB.js → chunk-SOYTF5NM.js} +1 -1
  38. package/dist/chunk-SSCFXJTG.js +2 -0
  39. package/dist/chunk-TDF32DPQ.js +5 -0
  40. package/dist/create-app.js +185 -934
  41. package/dist/{del-VDYQZFAQ.js → del-SDQ4S47S.js} +1 -1
  42. package/dist/devtools-RYOXA5H7.js +8 -0
  43. package/dist/error-handler-SA6VDSNI.js +2 -0
  44. package/dist/estree-V6MYQTSR.js +45 -0
  45. package/dist/flow-6QBD7VFZ.js +21 -0
  46. package/dist/glimmer-F25SYUSG.js +38 -0
  47. package/dist/graphql-DIAYZHIY.js +29 -0
  48. package/dist/html-AE7KHAJ7.js +26 -0
  49. package/dist/{is-wsl-52AELLDM.js → is-wsl-7NORHMI2.js} +1 -1
  50. package/dist/markdown-W7E2MOQ2.js +63 -0
  51. package/dist/meriyah-37WUJX22.js +6 -0
  52. package/dist/{morph-S2LU6PQ4.js → morph-IIMCOPW3.js} +114 -114
  53. package/dist/{multipart-parser-MX4R5XJM.js → multipart-parser-JT5WYXDW.js} +1 -1
  54. package/dist/open-VLBBYVPL.js +2 -0
  55. package/dist/{out-U7AI7XUQ.js → out-YA75DDJD.js} +1 -1
  56. package/dist/postcss-7X2D3S46.js +62 -0
  57. package/dist/typescript-AXPPFPUX.js +22 -0
  58. package/dist/yaml-U74YVCK4.js +160 -0
  59. package/package.json +10 -9
  60. package/dist/chunk-AUULK6IN.js +0 -5
  61. package/dist/chunk-CJKPLQJ7.js +0 -51
  62. package/dist/chunk-YKN6SEJT.js +0 -1189
  63. package/dist/chunk-ZLNTSIDN.js +0 -2
  64. package/dist/devtools-3BYEW2L2.js +0 -8
  65. package/dist/error-handler-2JZDGPAN.js +0 -2
  66. package/dist/open-PMJ32HTM.js +0 -2
  67. /package/dist/{chunk-LBUW5UHX.js → chunk-Y52UPHAG.js} +0 -0
@@ -0,0 +1,45 @@
1
+ import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
2
+ import{i as Sr}from"./chunk-Y52UPHAG.js";Sr();var mo=Object.defineProperty,Wn=(e,t)=>{for(var n in t)mo(e,n,{get:t[n],enumerable:!0})},fo={};Wn(fo,{languages:()=>Ay,options:()=>Fy,printers:()=>Ey});var Fo=[{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}],nu={};Wn(nu,{canAttachComment:()=>Oi,embed:()=>Pp,features:()=>py,getVisitorKeys:()=>pu,handleComments:()=>Es,hasPrettierIgnore:()=>mr,insertPragma:()=>Wp,isBlockComment:()=>he,isGap:()=>gs,massageAstNode:()=>wi,print:()=>eu,printComment:()=>Vp,printPrettierIgnored:()=>eu,willPrintOwnComments:()=>xs});var $n=(e,t)=>(n,r,...u)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,u),Eo=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Ao=$n("replaceAll",function(){if(typeof this=="string")return Eo}),z=Ao;function go(e){return this[e<0?this.length+e:e]}var Co=$n("at",function(){if(Array.isArray(this)||typeof this=="string")return go}),O=Co;function ho(e){return e!==null&&typeof e=="object"}var ru=ho;function*xo(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,u=a=>ru(a)&&r(a);for(let a of n(e)){let o=e[a];if(Array.isArray(o))for(let i of o)u(i)&&(yield i);else u(o)&&(yield o)}}function*To(e,t){let n=[e];for(let r=0;r<n.length;r++){let u=n[r];for(let a of xo(u,t))yield a,n.push(a)}}function So(e,{getVisitorKeys:t,predicate:n}){for(let r of To(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var bo=()=>/[#*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 Bo(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function vo(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 Po="\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",ko=/[^\x20-\x7F]/u,wo=new Set(Po);function Io(e){if(!e)return 0;if(!ko.test(e))return e.length;e=e.replace(bo(),n=>wo.has(n)?" ":" ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(t+=Bo(r)||vo(r)?2:1)}return t}var lt=Io;function un(e){return(t,n,r)=>{let u=!!r?.backwards;if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let i=t.charAt(o);if(e instanceof RegExp){if(!e.test(i))return o}else if(!e.includes(i))return o;u?o--:o++}return o===-1||o===a?o:!1}}var gy=un(/\s/u),ct=un(" "),No=un(",; "),jo=un(/[^\n\r]/u),br=e=>e===`
3
+ `||e==="\r"||e==="\u2028"||e==="\u2029";function Mo(e,t,n){let r=!!n?.backwards;if(t===!1)return!1;let u=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&u===`
4
+ `)return t-2;if(br(u))return t-1}else{if(u==="\r"&&e.charAt(t+1)===`
5
+ `)return t+2;if(br(u))return t+1}return t}var Dt=Mo;function Lo(e,t,n={}){let r=ct(e,n.backwards?t-1:t,n),u=Dt(e,r,n);return r!==u}var ie=Lo;function Oo(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Un=Oo;function Jo(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?jo(e,t):t}var Gn=Jo;function qo(e,t){let n=null,r=t;for(;r!==n;)n=r,r=No(e,r),r=Un(e,r),r=ct(e,r);return r=Gn(e,r),r=Dt(e,r),r!==!1&&ie(e,r)}var Vn=qo;function Xo(e){return Array.isArray(e)&&e.length>0}var _=Xo,Ro=()=>{},Qe=Ro,uu=Object.freeze({character:"'",codePoint:39}),au=Object.freeze({character:'"',codePoint:34}),_o=Object.freeze({preferred:uu,alternate:au}),Wo=Object.freeze({preferred:au,alternate:uu});function $o(e,t){let{preferred:n,alternate:r}=t===!0||t==="'"?_o:Wo,{length:u}=e,a=0,o=0;for(let i=0;i<u;i++){let p=e.charCodeAt(i);p===n.codePoint?a++:p===r.codePoint&&o++}return(a>o?r:n).character}var ou=$o,Uo=/\\(["'\\])|(["'])/gu;function Go(e,t){let n=t==='"'?"'":'"',r=z(0,e,Uo,(u,a,o)=>a?a===n?n:u:o===t?"\\"+o:o);return t+r+t}var Vo=Go;function Ko(e,t){Qe(/^(?<quote>["']).*\k<quote>$/su.test(e));let n=e.slice(1,-1),r=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":ou(n,t.singleQuote);return e.charAt(0)===r?e:Vo(n,r)}var yt=Ko,iu=e=>Number.isInteger(e)&&e>=0;function j(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(j(n),t):t}function N(e){return e.range?.[1]??e.end}function an(e,t){let n=j(e);return iu(n)&&n===j(t)}function Ho(e,t){let n=N(e);return iu(n)&&n===N(t)}function zo(e,t){return an(e,t)&&Ho(e,t)}var St=null;function vt(e){if(St!==null&&typeof St.property){let t=St;return St=vt.prototype=null,t}return St=vt.prototype=e??Object.create(null),new vt}var Yo=10;for(let e=0;e<=Yo;e++)vt();function Qo(e){return vt(e)}function Zo(e,t="type"){Qo(e);function n(r){let u=r[t],a=e[u];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${u}'.`),{node:r});return a}return n}var su=Zo,s=[["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"]],ei={AccessorProperty:s[0],AnyTypeAnnotation:s[1],ArgumentPlaceholder:s[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:s[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:s[3],AsExpression:s[4],AssignmentExpression:s[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:s[6],BigIntLiteral:s[1],BigIntLiteralTypeAnnotation:s[1],BigIntTypeAnnotation:s[1],BinaryExpression:s[5],BindExpression:["object","callee"],BlockStatement:s[7],BooleanLiteral:s[1],BooleanLiteralTypeAnnotation:s[1],BooleanTypeAnnotation:s[1],BreakStatement:s[8],CallExpression:s[9],CatchClause:["param","body"],ChainExpression:s[3],ClassAccessorProperty:s[0],ClassBody:s[10],ClassDeclaration:s[11],ClassExpression:s[11],ClassImplements:s[12],ClassMethod:s[13],ClassPrivateMethod:s[13],ClassPrivateProperty:s[14],ClassProperty:s[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:s[15],ConditionalExpression:s[16],ConditionalTypeAnnotation:s[17],ContinueStatement:s[8],DebuggerStatement:s[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:s[18],DeclareEnum:s[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:s[20],DeclareFunction:["id","predicate"],DeclareHook:s[21],DeclareInterface:s[22],DeclareModule:s[19],DeclareModuleExports:s[23],DeclareNamespace:s[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:s[24],DeclareVariable:s[21],Decorator:s[3],Directive:s[18],DirectiveLiteral:s[1],DoExpression:s[10],DoWhileStatement:s[25],EmptyStatement:s[1],EmptyTypeAnnotation:s[1],EnumBigIntBody:s[26],EnumBigIntMember:s[27],EnumBooleanBody:s[26],EnumBooleanMember:s[27],EnumDeclaration:s[19],EnumDefaultedMember:s[21],EnumNumberBody:s[26],EnumNumberMember:s[27],EnumStringBody:s[26],EnumStringMember:s[27],EnumSymbolBody:s[26],ExistsTypeAnnotation:s[1],ExperimentalRestProperty:s[6],ExperimentalSpreadProperty:s[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:s[28],ExportNamedDeclaration:s[20],ExportNamespaceSpecifier:s[28],ExportSpecifier:["local","exported"],ExpressionStatement:s[3],File:["program"],ForInStatement:s[29],ForOfStatement:s[29],ForStatement:["init","test","update","body"],FunctionDeclaration:s[30],FunctionExpression:s[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:s[15],GenericTypeAnnotation:s[12],HookDeclaration:s[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:s[16],ImportAttribute:s[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:s[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:s[33],ImportSpecifier:["imported","local"],IndexedAccessType:s[34],InferredPredicate:s[1],InferTypeAnnotation:s[35],InterfaceDeclaration:s[22],InterfaceExtends:s[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:s[1],IntersectionTypeAnnotation:s[36],JsExpressionRoot:s[37],JsonRoot:s[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:s[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:s[1],JSXExpressionContainer:s[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:s[1],JSXMemberExpression:s[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:s[1],JSXSpreadAttribute:s[6],JSXSpreadChild:s[3],JSXText:s[1],KeyofTypeAnnotation:s[6],LabeledStatement:["label","body"],Literal:s[1],LogicalExpression:s[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:s[21],MatchExpression:s[39],MatchExpressionCase:s[40],MatchIdentifierPattern:s[21],MatchLiteralPattern:s[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:s[6],MatchStatement:s[39],MatchStatementCase:s[40],MatchUnaryPattern:s[6],MatchWildcardPattern:s[1],MemberExpression:s[38],MetaProperty:["meta","property"],MethodDefinition:s[42],MixedTypeAnnotation:s[1],ModuleExpression:s[10],NeverTypeAnnotation:s[1],NewExpression:s[9],NGChainedExpression:s[43],NGEmptyExpression:s[1],NGMicrosyntax:s[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:s[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:s[32],NGPipeExpression:["left","right","arguments"],NGRoot:s[37],NullableTypeAnnotation:s[23],NullLiteral:s[1],NullLiteralTypeAnnotation:s[1],NumberLiteralTypeAnnotation:s[1],NumberTypeAnnotation:s[1],NumericLiteral:s[1],ObjectExpression:["properties"],ObjectMethod:s[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:s[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:s[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:s[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:s[9],OptionalIndexedAccessType:s[34],OptionalMemberExpression:s[38],ParenthesizedExpression:s[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:s[1],PipelineTopicExpression:s[3],Placeholder:s[1],PrivateIdentifier:s[1],PrivateName:s[21],Program:s[7],Property:s[32],PropertyDefinition:s[14],QualifiedTypeIdentifier:s[44],QualifiedTypeofIdentifier:s[44],RegExpLiteral:s[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:s[6],SatisfiesExpression:s[4],SequenceExpression:s[43],SpreadElement:s[6],StaticBlock:s[10],StringLiteral:s[1],StringLiteralTypeAnnotation:s[1],StringTypeAnnotation:s[1],Super:s[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:s[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:s[1],TemplateLiteral:["quasis","expressions"],ThisExpression:s[1],ThisTypeAnnotation:s[1],ThrowStatement:s[6],TopicReference:s[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:s[45],TSAbstractKeyword:s[1],TSAbstractMethodDefinition:s[32],TSAbstractPropertyDefinition:s[45],TSAnyKeyword:s[1],TSArrayType:s[2],TSAsExpression:s[4],TSAsyncKeyword:s[1],TSBigIntKeyword:s[1],TSBooleanKeyword:s[1],TSCallSignatureDeclaration:s[46],TSClassImplements:s[47],TSConditionalType:s[17],TSConstructorType:s[46],TSConstructSignatureDeclaration:s[46],TSDeclareFunction:s[31],TSDeclareKeyword:s[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:s[26],TSEnumDeclaration:s[19],TSEnumMember:["id","initializer"],TSExportAssignment:s[3],TSExportKeyword:s[1],TSExternalModuleReference:s[3],TSFunctionType:s[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:s[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:s[35],TSInstantiationExpression:s[47],TSInterfaceBody:s[10],TSInterfaceDeclaration:s[22],TSInterfaceHeritage:s[47],TSIntersectionType:s[36],TSIntrinsicKeyword:s[1],TSJSDocAllType:s[1],TSJSDocNonNullableType:s[23],TSJSDocNullableType:s[23],TSJSDocUnknownType:s[1],TSLiteralType:s[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:s[10],TSModuleDeclaration:s[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:s[21],TSNeverKeyword:s[1],TSNonNullExpression:s[3],TSNullKeyword:s[1],TSNumberKeyword:s[1],TSObjectKeyword:s[1],TSOptionalType:s[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:s[23],TSPrivateKeyword:s[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:s[1],TSPublicKeyword:s[1],TSQualifiedName:s[5],TSReadonlyKeyword:s[1],TSRestType:s[23],TSSatisfiesExpression:s[4],TSStaticKeyword:s[1],TSStringKeyword:s[1],TSSymbolKeyword:s[1],TSTemplateLiteralType:["quasis","types"],TSThisType:s[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:s[23],TSTypeAssertion:s[4],TSTypeLiteral:s[26],TSTypeOperator:s[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:s[48],TSTypeParameterInstantiation:s[48],TSTypePredicate:s[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:s[1],TSUnionType:s[36],TSUnknownKeyword:s[1],TSVoidKeyword:s[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:s[24],TypeAnnotation:s[23],TypeCastExpression:s[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:s[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:s[48],TypeParameterInstantiation:s[48],TypePredicate:s[49],UnaryExpression:s[6],UndefinedTypeAnnotation:s[1],UnionTypeAnnotation:s[36],UnknownTypeAnnotation:s[1],UpdateExpression:s[6],V8IntrinsicIdentifier:s[1],VariableDeclaration:["declarations"],VariableDeclarator:s[27],Variance:s[1],VoidPattern:s[1],VoidTypeAnnotation:s[1],WhileStatement:s[25],WithStatement:["object","body"],YieldExpression:s[6]},ti=su(ei),pu=ti;function ni(e){let t=new Set(e);return n=>t.has(n?.type)}var w=ni;function ri(e){return e.extra?.raw??e.raw}var se=ri,ui=w(["Block","CommentBlock","MultiLine"]),he=ui,ai=w(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),lu=ai,oi=w(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Ot=oi;function ii(e,t){let n=t.split(".");for(let r=n.length-1;r>=0;r--){let u=n[r];if(r===0)return e.type==="Identifier"&&e.name===u;if(r===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===u){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===u){e=e.object;continue}return!1}}function si(e,t){return t.some(n=>ii(e,n))}var Kn=si;function pi({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var cu=pi;function li({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 Hn=li;function vn(e,t){return t(e)||So(e,{getVisitorKeys:pu,predicate:t})}function zn(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||R(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Fe(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function ci(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Du(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 Di=w(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),ee=w(["ArrayExpression"]),Ae=w(["ObjectExpression"]);function yi(e){return e.type==="LogicalExpression"&&e.operator==="??"}function be(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function di(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function yu(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&be(e.argument)}function Q(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function du(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var Yn=w(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),mi=w(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Re=w(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),It=w(["FunctionExpression","ArrowFunctionExpression"]);function fi(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function mn(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var Y=w(["JSXElement","JSXFragment"]);function Jt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function mu(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&&!an(e,e.typeAnnotation)}var je=w(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function pt(e){return R(e)||e.type==="BindExpression"&&!!e.object}var Ei=w(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Qn(e){return cu(e)||lu(e)||Ei(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function Ai(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var gi=["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 Ci(e){return Kn(e,gi)}function on(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let n=ye(e);if(n.length===1){if(mn(e)&&on(t))return It(n[0]);if(Ai(e.callee))return mn(n[0])}else if((n.length===2||n.length===3)&&(n[0].type==="TemplateLiteral"||Q(n[0]))&&Ci(e.callee))return n[2]&&!be(n[2])?!1:(n.length===2?It(n[1]):fi(n[1])&&te(n[1]).length<=1)||mn(n[1]);return!1}var fu=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),L=fu(w(["CallExpression","OptionalCallExpression"])),R=fu(w(["MemberExpression","OptionalMemberExpression"]));function Br(e,t=5){return Fu(e,t)<=t}function Fu(e,t){let n=0;for(let r in e){let u=e[r];if(ru(u)&&typeof u.type=="string"&&(n++,n+=Fu(u,t-n)),n>t)return n}return n}var hi=.25;function Zn(e,t){let{printWidth:n}=t;if(g(e))return!1;let r=n*hi;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||yu(e)&&!g(e.argument))return!0;let u=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return u?u.length<=r:Q(e)?yt(se(e),t).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
6
+ `):e.type==="UnaryExpression"?Zn(e.argument,{printWidth:n}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=r-2:Yn(e)}function Ee(e,t){return Y(t)?sn(t):g(t,b.Leading,n=>ie(e,N(n)))}function vr(e){return e.quasis.some(t=>t.value.raw.includes(`
7
+ `))}function Eu(e,t){return(e.type==="TemplateLiteral"&&vr(e)||e.type==="TaggedTemplateExpression"&&vr(e.quasi))&&!ie(t,j(e),{backwards:!0})}function Au(e){if(!g(e))return!1;let t=O(0,ze(e,b.Dangling),-1);return t&&!he(t)}function xi(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(It(n)){if(t+=1,t>1)return!0}else if(L(n)){for(let r of ye(n))if(It(r))return!0}return!1}function gu(e){let{node:t,parent:n,key:r}=e;return r==="callee"&&L(t)&&L(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var Ti=new Set(["!","-","+","~"]);function fe(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return fe(e.expression,t);let n=r=>fe(r,t-1);if(du(e))return lt(e.pattern??e.regex.pattern)<=5;if(Yn(e)||mi(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(r=>!r.value.raw.includes(`
8
+ `))&&e.expressions.every(n);if(Ae(e))return e.properties.every(r=>!r.computed&&(r.shorthand||r.value&&n(r.value)));if(ee(e))return e.elements.every(r=>r===null||n(r));if(mt(e)){if(e.type==="ImportExpression"||fe(e.callee,t)){let r=ye(e);return r.length<=t&&r.every(n)}return!1}return R(e)?fe(e.object,t)&&fe(e.property,t):e.type==="UnaryExpression"&&Ti.has(e.operator)||e.type==="UpdateExpression"?fe(e.argument,t):!1}function ke(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ne(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ne(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ne(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ne(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ne(e.callee,t);case"ConditionalExpression":return ne(e.test,t);case"UpdateExpression":return!e.prefix&&ne(e.argument,t);case"BindExpression":return e.object&&ne(e.object,t);case"SequenceExpression":return ne(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ne(e.expression,t);default:return t(e)}}var Pr={"==":!0,"!=":!0,"===":!0,"!==":!0},Gt={"*":!0,"/":!0,"%":!0},Pn={">>":!0,">>>":!0,"<<":!0};function er(e,t){return!(Zt(t)!==Zt(e)||e==="**"||Pr[e]&&Pr[t]||t==="%"&&Gt[e]||e==="%"&&Gt[t]||t!==e&&Gt[t]&&Gt[e]||Pn[e]&&Pn[t])}var Si=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(n=>[n,t])));function Zt(e){return Si.get(e)}function bi(e){return!!Pn[e]||e==="|"||e==="^"||e==="&"}function Bi(e){if(e.rest)return!0;let t=te(e);return O(0,t,-1)?.type==="RestElement"}var fn=new WeakMap;function te(e){if(fn.has(e))return fn.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),fn.set(e,t),t}function vi(e,t){let{node:n}=e,r=0,u=()=>t(e,r++);n.this&&e.call(u,"this"),e.each(u,"params"),n.rest&&e.call(u,"rest")}var Fn=new WeakMap;function ye(e){if(Fn.has(e))return Fn.get(e);if(e.type==="ChainExpression")return ye(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,Fn.set(e,t),t}function en(e,t){let{node:n}=e;if(n.type==="ChainExpression")return e.call(()=>en(e,t),"expression");n.type==="ImportExpression"||n.type==="TSImportType"?(e.call(()=>t(e,0),"source"),n.options&&e.call(()=>t(e,1),"options")):n.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function kr(e,t){let n=[];if(e.type==="ChainExpression"&&(e=e.expression,n.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...n,"source"];if(e.options&&(t===1||t===-1))return[...n,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...n,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[...n,"arguments",t];throw new RangeError("Invalid argument index")}function dt(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function sn(e){return e?.prettierIgnore||g(e,b.PrettierIgnore)}var b={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Cu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(n,r,u)=>!(e&b.Leading&&!n.leading||e&b.Trailing&&!n.trailing||e&b.Dangling&&(n.leading||n.trailing)||e&b.Block&&!he(n)||e&b.Line&&!Ot(n)||e&b.First&&r!==0||e&b.Last&&r!==u.length-1||e&b.PrettierIgnore&&!dt(n)||t&&!t(n))};function g(e,t,n){if(!_(e?.comments))return!1;let r=Cu(t,n);return r?e.comments.some(r):!0}function ze(e,t,n){if(!Array.isArray(e?.comments))return[];let r=Cu(t,n);return r?e.comments.filter(r):e.comments}var we=(e,{originalText:t})=>Vn(t,N(e));function mt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function We(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!Jt(e))}var Fe=w(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Be=w(["TSUnionType","UnionTypeAnnotation"]),qt=w(["TSIntersectionType","IntersectionTypeAnnotation"]),_e=w(["TSConditionalType","ConditionalTypeAnnotation"]),Pi=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",kn=w(["TSTypeAliasDeclaration","TypeAlias"]);function hu({key:e,parent:t}){return!(e==="types"&&Be(t)||e==="types"&&qt(t))}var ki=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),it=e=>{for(let t of e.quasis)delete t.value};function xu(e,t,n){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!Hn({node:e,parent:n})||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:u}=e;Q(u)||be(u)?t.key=String(u.value):u.type==="Identifier"&&(t.key=u.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(u=>u.type==="JSXAttribute"&&u.name.name==="jsx"))for(let{type:u,expression:a}of t.children)u==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&it(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&it(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|&quot;|&apos;/u.test(e.value.value)&&(t.value.value=z(0,e.value.value,/["']|&quot;|&apos;/gu,'"'));let r=e.expression||e.callee;if(e.type==="Decorator"&&r.type==="CallExpression"&&r.callee.name==="Component"&&r.arguments.length===1){let u=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(u[a].key.name){case"styles":ee(o.value)&&it(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&it(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")&&it(t.quasi),e.type==="TemplateLiteral"&&it(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}xu.ignoredProperties=ki;var wi=xu,Ii=w(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),Ni=(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&&!Jt(t)&&t.value!==t.key,ji=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&te(e).length===0&&!e.returnType&&!_(e.typeParameters)&&e.body),wr=(e,[t])=>t?.typeAnnotation===e&&Pi(t),Mi=(e,[t,...n])=>wr(e,[t])||t?.typeName===e&&wr(t,n);function Li(e,t){return Ii(e)||Ni(e,t)||ji(e,t)?!1:e.type==="EmptyStatement"?Hn({node:e,parent:t[0]}):!(Mi(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var Oi=Li;function Ji(e){let t=e.type||e.kind||"(unknown type)",n=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 n.length>20&&(n=n.slice(0,19)+"\u2026"),t+(n?" "+n:"")}function tr(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Ji(e)}function V(e,t){t.leading=!0,t.trailing=!1,tr(e,t)}function le(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),tr(e,t)}function W(e,t){t.leading=!1,t.trailing=!0,tr(e,t)}function qi(e,t){let n=null,r=t;for(;r!==n;)n=r,r=ct(e,r),r=Un(e,r),r=Gn(e,r),r=Dt(e,r);return r}var Ft=qi;function Xi(e,t){let n=Ft(e,t);return n===!1?"":e.charAt(n)}var ge=Xi;function Ri(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
9
+ `)return!0;return!1}var ce=Ri,En=new WeakMap;function _i(e){return En.has(e)||En.set(e,he(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),En.get(e)}var Tu=_i,nr=(e,t)=>Ot(e)||!ce(t,j(e),N(e));function Wi(e){return[Nu,bu,ku,es,Vi,rr,ur,Su,Bu,as,ns,rs,or,Iu,os,vu,wu,ar,Ki,ys,ju,ir].some(t=>t(e))}function $i(e){return[Gi,ku,bu,Iu,rr,ur,Su,Bu,wu,ts,us,or,ps,ar,cs,Ds,ds,ju,fs,ms,ir].some(t=>t(e))}function Ui(e){return[Nu,rr,ur,Zi,vu,or,Qi,Yi,ar,ls,ir].some(t=>t(e))}function Ze(e,t){let n=(e.body||e.properties).find(({type:r})=>r!=="EmptyStatement");n?V(n,t):le(e,t)}function wn(e,t){e.type==="BlockStatement"?Ze(e,t):V(e,t)}function Gi({comment:e,followingNode:t}){return t&&Tu(e)?(V(t,e),!0):!1}function rr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){if(n?.type!=="IfStatement"||!r)return!1;if(ge(u,N(e))===")")return W(t,e),!0;if(r.type==="BlockStatement"&&r===n.consequent&&j(e)>=N(t)&&N(e)<=j(r))return V(r,e),!0;if(t===n.consequent&&r===n.alternate){let a=Ft(u,N(n.consequent));if(r.type==="BlockStatement"&&j(e)>=a&&N(e)<=j(r))return V(r,e),!0;if(j(e)<a||n.alternate.type==="BlockStatement")return t.type==="BlockStatement"||nr(e,u)&&!ce(u,j(t),j(e))?(W(t,e),!0):(le(n,e),!0)}return r.type==="BlockStatement"?(Ze(r,e),!0):r.type==="IfStatement"?(wn(r.consequent,e),!0):n.consequent===r?(V(r,e),!0):!1}function ur({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return n?.type!=="WhileStatement"||!r?!1:ge(u,N(e))===")"?(W(t,e),!0):r.type==="BlockStatement"?(Ze(r,e),!0):n.body===r?(V(r,e),!0):!1}function Su({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n?.type!=="TryStatement"&&n?.type!=="CatchClause"||!r?!1:n.type==="CatchClause"&&t?(W(t,e),!0):r.type==="BlockStatement"?(Ze(r,e),!0):r.type==="TryStatement"?(wn(r.finalizer,e),!0):r.type==="CatchClause"?(wn(r.body,e),!0):!1}function Vi({comment:e,enclosingNode:t,followingNode:n}){return R(t)&&n?.type==="Identifier"?(V(t,e),!0):!1}function Ki({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!(t?.type==="ConditionalExpression"||_e(t))?!1:n?.type==="ConditionalExpression"||_e(n)?(le(t,e),!0):!1}function bu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=t&&!ce(u,N(t),j(e));return(!t||!o)&&(n?.type==="ConditionalExpression"||_e(n))&&r?a.experimentalTernaries&&n.alternate===r&&!(he(e)&&!ce(a.originalText,j(e),N(e)))?(le(n,e),!0):(V(r,e),!0):!1}var Hi=w(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Bu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(Hi(n)){if(_(n.decorators)&&r?.type!=="Decorator")return W(O(0,n.decorators,-1),e),!0;if(n.body&&r===n.body)return Ze(n.body,e),!0;if(r){if(n.superClass&&r===n.superClass&&t&&(t===n.id||t===n.typeParameters))return W(t,e),!0;for(let u of["implements","extends","mixins"])if(n[u]&&r===n[u][0])return t&&(t===n.id||t===n.typeParameters||t===n.superClass)?W(t,e):le(n,e,u),!0}}return!1}var zi=w(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function vu({comment:e,precedingNode:t,enclosingNode:n,text:r}){return n&&t&&ge(r,N(e))==="("&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&n.key===t&&ge(r,N(t))!==":"||t?.type==="Decorator"&&zi(n)&&(Ot(e)||e.placement==="ownLine")?(W(t,e),!0):!1}var Pu=w(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Yi({comment:e,precedingNode:t,enclosingNode:n,text:r}){return ge(r,N(e))!=="("?!1:t&&Pu(n)?(W(t,e),!0):!1}function Qi({comment:e,enclosingNode:t,text:n}){if(t?.type!=="ArrowFunctionExpression")return!1;let r=Ft(n,N(e));return r!==!1&&n.slice(r,r+2)==="=>"?(le(t,e),!0):!1}function Zi({comment:e,enclosingNode:t,text:n}){return ge(n,N(e))!==")"?!1:t&&(Mu(t)&&te(t).length===0||mt(t)&&ye(t).length===0)?(le(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&te(t.value).length===0?(le(t.value,e),!0):!1}function es({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return t?.type==="ComponentTypeParameter"&&(n?.type==="DeclareComponent"||n?.type==="ComponentTypeAnnotation")&&r?.type!=="ComponentTypeParameter"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&n?.type==="ComponentDeclaration"&&ge(u,N(e))===")"?(W(t,e),!0):!1}function ku({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return t?.type==="FunctionTypeParam"&&n?.type==="FunctionTypeAnnotation"&&r?.type!=="FunctionTypeParam"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&Mu(n)&&ge(u,N(e))===")"?(W(t,e),!0):!he(e)&&r?.type==="BlockStatement"&&Pu(n)&&(n.type==="MethodDefinition"?n.value.body:n.body)===r&&Ft(u,N(e))===j(r)?(Ze(r,e),!0):!1}function wu({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(V(t,e),!0):!1}function ar({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?(W(t,e),!0):!1}function ts({comment:e,precedingNode:t,enclosingNode:n}){return L(n)&&t&&n.callee===t&&n.arguments.length>0?(V(n.arguments[0],e),!0):!1}function ns({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return Be(n)?(dt(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(W(t,e),!0):!1):(Be(r)&&dt(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function rs({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n&&n.type==="MatchOrPattern"?(dt(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(W(t,e),!0):!1):(r&&r.type==="MatchOrPattern"&&dt(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function us({comment:e,enclosingNode:t}){return We(t)?(V(t,e),!0):!1}function or({comment:e,enclosingNode:t,ast:n,isLastComment:r}){return n?.body?.length===0?(r?le(n,e):V(n,e),!0):t?.type==="Program"&&t.body.length===0&&!_(t.directives)?(r?le(t,e):V(t,e),!0):!1}function as({comment:e,enclosingNode:t,followingNode:n}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&n!==t.body?(V(t,e),!0):!1}function Iu({comment:e,precedingNode:t,enclosingNode:n,text:r}){if(n?.type==="ImportSpecifier"||n?.type==="ExportSpecifier")return V(n,e),!0;let u=t?.type==="ImportSpecifier"&&n?.type==="ImportDeclaration",a=t?.type==="ExportSpecifier"&&n?.type==="ExportNamedDeclaration";return(u||a)&&ie(r,N(e))?(W(t,e),!0):!1}function os({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(V(t,e),!0):!1}var is=w(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ss=w(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ps({comment:e,enclosingNode:t,followingNode:n}){return is(t)&&n&&(ss(n)||he(e))?(V(n,e),!0):!1}function ls({comment:e,enclosingNode:t,precedingNode:n,followingNode:r,text:u}){return!r&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!n||n!==t.returnType)&&ge(u,N(e))===";"?(W(t,e),!0):!1}function Nu({comment:e,enclosingNode:t,followingNode:n}){if(dt(e)&&t?.type==="TSMappedType"&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function ju({comment:e,precedingNode:t,enclosingNode:n}){if(n?.type==="TSMappedType"&&!t)return le(n,e),!0}function cs({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!=="SwitchCase"||t.test||!n||n!==t.consequent[0]?!1:(n.type==="BlockStatement"&&Ot(e)?Ze(n,e):le(t,e),!0)}function Ds({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return Be(t)&&((n.type==="TSArrayType"||n.type==="ArrayTypeAnnotation")&&!r||qt(n))?(W(O(0,t.types,-1),e),!0):!1}function ys({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&r?.type==="TSTypeAnnotation")return n?W(n,e):le(t,e),!0}function ds({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return!r&&n?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&ce(u,j(n.argument),j(t.right))&&nr(e,u)&&!ce(u,j(t.right),j(e))?(W(t.right,e),!0):!1}function ms({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(Be(t)||qt(t)))return V(t,n),!0}function ir({enclosingNode:e,precedingNode:t,followingNode:n,comment:r,text:u}){if(Fe(e)&&t===e.expression&&!nr(r,u))return n?V(n,r):W(e,r),!0}function fs({comment:e,enclosingNode:t,followingNode:n,precedingNode:r}){return t&&n&&r&&t.type==="ArrowFunctionExpression"&&t.returnType===r&&(r.type==="TSTypeAnnotation"||r.type==="TypeAnnotation")?(V(n,e),!0):!1}var Mu=w(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),Fs={endOfLine:$i,ownLine:Wi,remaining:Ui},Es=Fs;function As(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=z(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var gs=As,Cs=w(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function hs(e){let{key:t,parent:n}=e;if(t==="types"&&Be(n)||t==="argument"&&n.type==="JSXSpreadAttribute"||t==="expression"&&n.type==="JSXSpreadChild"||t==="superClass"&&(n.type==="ClassDeclaration"||n.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&Cs(n)||t==="patterns"&&n.type==="MatchOrPattern")return!0;let{node:r}=e;return sn(r)?!1:Be(r)?hu(e):!!Y(r)}var xs=hs,et="string",Me="array",Et="cursor",tt="indent",nt="align",rt="trim",me="group",$e="fill",Se="if-break",ut="indent-if-break",at="line-suffix",Ue="line-suffix-boundary",pe="line",Oe="label",Je="break-parent",Lu=new Set([Et,tt,nt,rt,me,$e,Se,ut,at,Ue,pe,Oe,Je]);function Ts(e){if(typeof e=="string")return et;if(Array.isArray(e))return Me;if(!e)return;let{type:t}=e;if(Lu.has(t))return t}var Ge=Ts,Ss=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function bs(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
10
+ Expected it to be 'string' or 'object'.`;if(Ge(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Ss([...Lu].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'.
11
+ Expected it to be ${r}.`}var Bs=class extends Error{name="InvalidDocError";constructor(e){super(bs(e)),this.doc=e}},Nt=Bs,Ir={};function vs(e,t,n,r){let u=[e];for(;u.length>0;){let a=u.pop();if(a===Ir){n(u.pop());continue}n&&u.push(a,Ir);let o=Ge(a);if(!o)throw new Nt(a);if(t?.(a)!==!1)switch(o){case Me:case $e:{let i=o===Me?a:a.parts;for(let p=i.length,l=p-1;l>=0;--l)u.push(i[l]);break}case Se:u.push(a.flatContents,a.breakContents);break;case me:if(r&&a.expandedStates)for(let i=a.expandedStates.length,p=i-1;p>=0;--p)u.push(a.expandedStates[p]);else u.push(a.contents);break;case nt:case tt:case ut:case Oe:case at:u.push(a.contents);break;case et:case Et:case rt:case Ue:case pe:case Je:break;default:throw new Nt(a)}}}var sr=vs;function At(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(a){if(n.has(a))return n.get(a);let o=u(a);return n.set(a,o),o}function u(a){switch(Ge(a)){case Me:return t(a.map(r));case $e:return t({...a,parts:a.parts.map(r)});case Se:return t({...a,breakContents:r(a.breakContents),flatContents:r(a.flatContents)});case me:{let{expandedStates:o,contents:i}=a;return o?(o=o.map(r),i=o[0]):i=r(i),t({...a,contents:i,expandedStates:o})}case nt:case tt:case ut:case Oe:case at:return t({...a,contents:r(a.contents)});case et:case Et:case rt:case Ue:case pe:case Je:return t(a);default:throw new Nt(a)}}}function Ou(e,t,n){let r=n,u=!1;function a(o){if(u)return!1;let i=t(o);i!==void 0&&(u=!0,r=i)}return sr(e,a),r}function Ps(e){if(e.type===me&&e.break||e.type===pe&&e.hard||e.type===Je)return!0}function re(e){return Ou(e,Ps,!1)}function Nr(e){if(e.length>0){let t=O(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function ks(e){let t=new Set,n=[];function r(a){if(a.type===Je&&Nr(n),a.type===me){if(n.push(a),t.has(a))return!1;t.add(a)}}function u(a){a.type===me&&n.pop().break&&Nr(n)}sr(e,r,u,!0)}function ws(e){return e.type===pe&&!e.hard?e.soft?"":" ":e.type===Se?e.flatContents:e}function tn(e){return At(e,ws)}function Is(e){switch(Ge(e)){case $e:if(e.parts.every(t=>t===""))return"";break;case me:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===me&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case nt:case tt:case ut:case at:if(!e.contents)return"";break;case Se:if(!e.flatContents&&!e.breakContents)return"";break;case Me:{let t=[];for(let n of e){if(!n)continue;let[r,...u]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof O(0,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case et:case Et:case rt:case Ue:case pe:case Oe:case Je:break;default:throw new Nt(e)}return e}function pr(e){return At(e,t=>Is(t))}function Ye(e,t=_u){return At(e,n=>typeof n=="string"?M(t,n.split(`
12
+ `)):n)}function Ns(e){if(e.type===pe)return!0}function js(e){return Ou(e,Ns,!1)}function In(e,t){return e.type===Oe?{...e,contents:t(e.contents)}:t(e)}function Ms(e){let t=!0;return sr(e,n=>{switch(Ge(n)){case et:if(n==="")break;case rt:case Ue:case pe:case Je:return t=!1,!1}}),t}var ve=Qe,Ju=Qe,Ls=Qe,Os=Qe;function E(e){return ve(e),{type:tt,contents:e}}function Ce(e,t){return Os(e),ve(t),{type:nt,contents:t,n:e}}function Js(e){return Ce(Number.NEGATIVE_INFINITY,e)}function qu(e){return Ce(-1,e)}function qs(e,t,n){ve(e);let r=e;if(t>0){for(let u=0;u<Math.floor(t/n);++u)r=E(r);r=Ce(t%n,r),r=Ce(Number.NEGATIVE_INFINITY,r)}return r}var Le={type:Je},Vt={type:Et};function Xu(e){return Ls(e),{type:$e,parts:e}}function c(e,t={}){return ve(e),Ju(t.expandedStates,!0),{type:me,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function He(e,t){return c(e[0],{...t,expandedStates:e})}function k(e,t="",n={}){return ve(e),t!==""&&ve(t),{type:Se,breakContents:e,flatContents:t,groupId:n.groupId}}function jt(e,t){return ve(e),{type:ut,contents:e,groupId:t.groupId,negate:t.negate}}function M(e,t){ve(e),Ju(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Xt(e,t){return ve(t),e?{type:Oe,label:e,contents:t}:t}var x={type:pe},f={type:pe,soft:!0},Ru={type:pe,hard:!0},A=[Ru,Le],Xs={type:pe,hard:!0,literal:!0},_u=[Xs,Le];function jr(e){return ve(e),{type:at,contents:e}}var Pe={type:Ue},Rs="cr",_s="crlf",Ws="\r",$s=`\r
13
+ `,Us=`
14
+ `,Gs=Us;function Vs(e){return e===Rs?Ws:e===_s?$s:Gs}var Ks={type:0},Hs={type:1},Wu={value:"",length:0,queue:[],get root(){return Wu}};function $u(e,t,n){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],u="",a=0,o=0,i=0;for(let F of r)switch(F.type){case 0:y(),n.useTabs?p(1):l(n.tabWidth);break;case 3:{let{string:B}=F;y(),u+=B,a+=B.length;break}case 2:{let{width:B}=F;o+=1,i+=B;break}default:throw new Error(`Unexpected indent comment '${F.type}'.`)}return d(),{...e,value:u,length:a,queue:r};function p(F){u+=" ".repeat(F),a+=n.tabWidth*F}function l(F){u+=" ".repeat(F),a+=F}function y(){n.useTabs?D():d()}function D(){o>0&&p(o),m()}function d(){i>0&&l(i),m()}function m(){o=0,i=0}}function zs(e,t,n){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof t=="number"?t<0?r=Hs:r={type:2,width:t}:r={type:3,string:t},$u(e,r,n)}function Ys(e,t){return $u(e,Ks,t)}function Qs(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===" "||r===" ")t++;else break}return t}function Uu(e){let t=Qs(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var oe=Symbol("MODE_BREAK"),Te=Symbol("MODE_FLAT"),Nn=Symbol("DOC_FILL_PRINTED_LENGTH");function Kt(e,t,n,r,u,a){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,i=!1,p=[e],l="";for(;n>=0;){if(p.length===0){if(o===0)return!0;p.push(t[--o]);continue}let{mode:y,doc:D}=p.pop(),d=Ge(D);switch(d){case et:D&&(i&&(l+=" ",n-=1,i=!1),l+=D,n-=lt(D));break;case Me:case $e:{let m=d===Me?D:D.parts,F=D[Nn]??0;for(let B=m.length-1;B>=F;B--)p.push({mode:y,doc:m[B]});break}case tt:case nt:case ut:case Oe:p.push({mode:y,doc:D.contents});break;case rt:{let{text:m,count:F}=Uu(l);l=m,n+=F;break}case me:{if(a&&D.break)return!1;let m=D.break?oe:y,F=D.expandedStates&&m===oe?O(0,D.expandedStates,-1):D.contents;p.push({mode:m,doc:F});break}case Se:{let m=(D.groupId?u[D.groupId]||Te:y)===oe?D.breakContents:D.flatContents;m&&p.push({mode:y,doc:m});break}case pe:if(y===oe||D.hard)return!0;D.soft||(i=!0);break;case at:r=!0;break;case Ue:if(r)return!1;break}}return!1}function Gu(e,t){let n=Object.create(null),r=t.printWidth,u=Vs(t.endOfLine),a=0,o=[{indent:Wu,mode:oe,doc:e}],i="",p=!1,l=[],y=[],D=[],d=[],m=0;for(ks(e);o.length>0;){let{indent:S,mode:h,doc:T}=o.pop();switch(Ge(T)){case et:{let I=u!==`
15
+ `?z(0,T,`
16
+ `,u):T;I&&(i+=I,o.length>0&&(a+=lt(I)));break}case Me:for(let I=T.length-1;I>=0;I--)o.push({indent:S,mode:h,doc:T[I]});break;case Et:if(y.length>=2)throw new Error("There are too many 'cursor' in doc.");y.push(m+i.length);break;case tt:o.push({indent:Ys(S,t),mode:h,doc:T.contents});break;case nt:o.push({indent:zs(S,T.n,t),mode:h,doc:T.contents});break;case rt:v();break;case me:switch(h){case Te:if(!p){o.push({indent:S,mode:T.break?oe:Te,doc:T.contents});break}case oe:{p=!1;let I={indent:S,mode:Te,doc:T.contents},J=r-a,H=l.length>0;if(!T.break&&Kt(I,o,J,H,n))o.push(I);else if(T.expandedStates){let q=O(0,T.expandedStates,-1);if(T.break){o.push({indent:S,mode:oe,doc:q});break}else for(let $=1;$<T.expandedStates.length+1;$++)if($>=T.expandedStates.length){o.push({indent:S,mode:oe,doc:q});break}else{let U=T.expandedStates[$],ae={indent:S,mode:Te,doc:U};if(Kt(ae,o,J,H,n)){o.push(ae);break}}}else o.push({indent:S,mode:oe,doc:T.contents});break}}T.id&&(n[T.id]=O(0,o,-1).mode);break;case $e:{let I=r-a,J=T[Nn]??0,{parts:H}=T,q=H.length-J;if(q===0)break;let $=H[J+0],U=H[J+1],ae={indent:S,mode:Te,doc:$},xe={indent:S,mode:oe,doc:$},P=Kt(ae,[],I,l.length>0,n,!0);if(q===1){P?o.push(ae):o.push(xe);break}let G={indent:S,mode:Te,doc:U},K={indent:S,mode:oe,doc:U};if(q===2){P?o.push(G,ae):o.push(K,xe);break}let Ie=H[J+2],Ke={indent:S,mode:h,doc:{...T,[Nn]:J+2}},Wt=Kt({indent:S,mode:Te,doc:[$,U,Ie]},[],I,l.length>0,n,!0);o.push(Ke),Wt?o.push(G,ae):P?o.push(K,ae):o.push(K,xe);break}case Se:case ut:{let I=T.groupId?n[T.groupId]:h;if(I===oe){let J=T.type===Se?T.breakContents:T.negate?T.contents:E(T.contents);J&&o.push({indent:S,mode:h,doc:J})}if(I===Te){let J=T.type===Se?T.flatContents:T.negate?E(T.contents):T.contents;J&&o.push({indent:S,mode:h,doc:J})}break}case at:l.push({indent:S,mode:h,doc:T.contents});break;case Ue:l.length>0&&o.push({indent:S,mode:h,doc:Ru});break;case pe:switch(h){case Te:if(T.hard)p=!0;else{T.soft||(i+=" ",a+=1);break}case oe:if(l.length>0){o.push({indent:S,mode:h,doc:T},...l.reverse()),l.length=0;break}T.literal?(i+=u,a=0,S.root&&(S.root.value&&(i+=S.root.value),a=S.root.length)):(v(),i+=u+S.value,a=S.length);break}break;case Oe:o.push({indent:S,mode:h,doc:T.contents});break;case Je:break;default:throw new Nt(T)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let F=D.join("")+i,B=[...d,...y];if(B.length!==2)return{formatted:F};let C=B[0];return{formatted:F,cursorNodeStart:C,cursorNodeText:F.slice(C,O(0,B,-1))};function v(){let{text:S,count:h}=Uu(i);S&&(D.push(S),m+=S.length),i="",a-=h,y.length>0&&(d.push(...y.map(T=>Math.min(T,m))),y.length=0)}}function Zs(e,t,n=0){let r=0;for(let u=n;u<e.length;++u)e[u]===" "?r=r+t-r%t:r++;return r}var ep=Zs;function tp(e,t){let n=e.lastIndexOf(`
17
+ `);return n===-1?0:ep(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var np=tp;function Vu(e,t,n){let{node:r}=e;if(r.type==="TemplateLiteral"&&op(e)){let p=up(e,t,n);if(p)return p}let u="expressions";r.type==="TSTemplateLiteralType"&&(u="types");let a=[],o=e.map(n,u);a.push(Pe,"`");let i=0;return e.each(({index:p,node:l})=>{if(a.push(n()),l.tail)return;let{tabWidth:y}=t,D=l.value.raw,d=D.includes(`
18
+ `)?np(D,y):i;i=d;let m=o[p],F=r[u][p],B=ce(t.originalText,N(l),j(r.quasis[p+1]));if(!B){let v=Gu(m,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;v.includes(`
19
+ `)?B=!0:m=v}B&&(g(F)||F.type==="Identifier"||R(F)||F.type==="ConditionalExpression"||F.type==="SequenceExpression"||Fe(F)||je(F))&&(m=[E([f,m]),f]);let C=d===0&&D.endsWith(`
20
+ `)?Ce(Number.NEGATIVE_INFINITY,m):qs(m,d,y);a.push(c(["${",C,Pe,"}"]))},"quasis"),a.push("`"),a}function rp(e,t,n){let r=n("quasi"),{node:u}=e,a="",o=ze(u.quasi,b.Leading)[0];return o&&(ce(t.originalText,N(u.typeArguments??u.tag),j(o))?a=f:a=" "),Xt(r.label&&{tagged:!0,...r.label},[n("tag"),n("typeArguments"),a,Pe,r])}function up(e,t,n){let{node:r}=e,u=r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(u.length>1||u.some(a=>a.length>0)){t.__inJestEach=!0;let a=e.map(n,"expressions");t.__inJestEach=!1;let o=a.map(D=>"${"+Gu(D,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),i=[{hasLineBreak:!1,cells:[]}];for(let D=1;D<r.quasis.length;D++){let d=O(0,i,-1),m=o[D-1];d.cells.push(m),m.includes(`
21
+ `)&&(d.hasLineBreak=!0),r.quasis[D].value.raw.includes(`
22
+ `)&&i.push({hasLineBreak:!1,cells:[]})}let p=Math.max(u.length,...i.map(D=>D.cells.length)),l=Array.from({length:p}).fill(0),y=[{cells:u},...i.filter(D=>D.cells.length>0)];for(let{cells:D}of y.filter(d=>!d.hasLineBreak))for(let[d,m]of D.entries())l[d]=Math.max(l[d],lt(m));return[Pe,"`",E([A,M(A,y.map(D=>M(" | ",D.cells.map((d,m)=>D.hasLineBreak?d:d+" ".repeat(l[m]-lt(d))))))]),A,"`"]}}function ap(e,t){let{node:n}=e,r=t();return g(n)&&(r=c([E([f,r]),f])),["${",r,Pe,"}"]}function lr(e,t){return e.map(()=>ap(e,t),"expressions")}function Ku(e,t){return At(e,n=>typeof n=="string"?t?z(0,n,/(\\*)`/gu,"$1$1\\`"):Hu(n):n)}function Hu(e){return z(0,e,/([\\`]|\$\{)/gu,"\\$1")}function op({node:e,parent:t}){let n=/^[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"&&n.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"&&n.test(t.tag.object.object.name))}var jn=[(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 ip(e){let t=r=>r.type==="TemplateLiteral",n=(r,u)=>We(r)&&!r.computed&&r.key.type==="Identifier"&&r.key.name==="styles"&&u==="value";return e.match(t,(r,u)=>ee(r)&&u==="elements",n,...jn)||e.match(t,n,...jn)}function sp(e){return e.match(t=>t.type==="TemplateLiteral",(t,n)=>We(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&n==="value",...jn)}function An(e,t){return g(e,b.Block|b.Leading,({value:n})=>n===` ${t} `)}function zu({node:e,parent:t},n){return An(e,n)||pp(t)&&An(t,n)||t.type==="ExpressionStatement"&&An(t,n)}function pp(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function lp(e,t,n){let{node:r}=n,u="";for(let[p,l]of r.quasis.entries()){let{raw:y}=l.value;p>0&&(u+="@prettier-placeholder-"+(p-1)+"-id"),u+=y}let a=await e(u,{parser:"scss"}),o=lr(n,t),i=cp(a,o);if(!i)throw new Error("Couldn't insert all the expressions");return["`",E([A,i]),f,"`"]}function cp(e,t){if(!_(t))return e;let n=0,r=At(pr(e),u=>typeof u!="string"||!u.includes("@prettier-placeholder")?u:u.split(/@prettier-placeholder-(\d+)-id/u).map((a,o)=>o%2===0?Ye(a):(n++,t[a])));return t.length===n?r:null}function Dp(e){return e.match(void 0,(t,n)=>n==="quasi"&&t.type==="TaggedTemplateExpression"&&Kn(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer",(t,n)=>n==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(r=>r.type==="JSXAttribute"&&r.name.type==="JSXIdentifier"&&r.name.name==="jsx"))}function Ht(e){return e.type==="Identifier"&&e.name==="styled"}function Mr(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function yp({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 Ht(t.object)||Mr(t);case"CallExpression":return Ht(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Ht(t.callee.object.object)||Mr(t.callee.object))||t.callee.object.type==="CallExpression"&&Ht(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function dp({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var mp=e=>Dp(e)||yp(e)||dp(e)||ip(e);async function fp(e,t,n){let{node:r}=n,u=r.quasis.length,a=lr(n,t),o=[];for(let i=0;i<u;i++){let p=r.quasis[i],l=i===0,y=i===u-1,D=p.value.cooked,d=D.split(`
23
+ `),m=d.length,F=a[i],B=m>2&&d[0].trim()===""&&d[1].trim()==="",C=m>2&&d[m-1].trim()===""&&d[m-2].trim()==="",v=d.every(h=>/^\s*(?:#[^\n\r]*)?$/u.test(h));if(!y&&/#[^\n\r]*$/u.test(d[m-1]))return null;let S=null;v?S=Fp(d):S=await e(D,{parser:"graphql"}),S?(S=Ku(S,!1),!l&&B&&o.push(""),o.push(S),!y&&C&&o.push("")):!l&&!y&&B&&o.push(""),F&&o.push(F)}return["`",E([A,M(A,o)]),A,"`"]}function Fp(e){let t=[],n=!1,r=e.map(u=>u.trim());for(let[u,a]of r.entries())a!==""&&(r[u-1]===""&&n?t.push([A,a]):t.push(a),n=!0);return t.length===0?null:M(A,t)}function Ep({node:e,parent:t}){return zu({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 gn=0;async function Yu(e,t,n,r,u){let{node:a}=r,o=gn;gn=gn+1>>>0;let i=v=>`PRETTIER_HTML_PLACEHOLDER_${v}_${o}_IN_JS`,p=a.quasis.map((v,S,h)=>S===h.length-1?v.value.cooked:v.value.cooked+i(S)).join(""),l=lr(r,n),y=new RegExp(i("(\\d+)"),"gu"),D=0,d=await t(p,{parser:e,__onHtmlRoot(v){D=v.children.length}}),m=At(d,v=>{if(typeof v!="string")return v;let S=[],h=v.split(y);for(let T=0;T<h.length;T++){let I=h[T];if(T%2===0){I&&(I=Hu(I),u.__embeddedInHtml&&(I=z(0,I,/<\/(?=script\b)/giu,"<\\/")),S.push(I));continue}let J=Number(I);S.push(l[J])}return S}),F=/^\s/u.test(p)?" ":"",B=/\s$/u.test(p)?" ":"",C=u.htmlWhitespaceSensitivity==="ignore"?A:F&&B?x:null;return C?c(["`",E([C,c(m)]),C,"`"]):Xt({hug:!1},c(["`",F,D>1?E(c(m)):c(m),B,"`"]))}function Ap(e){return zu(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,n)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&n==="quasi")}var gp=Yu.bind(void 0,"html"),Cp=Yu.bind(void 0,"angular");async function hp(e,t,n){let{node:r}=n,u=z(0,r.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(p,l)=>"\\".repeat(l.length/2)+"`"),a=xp(u),o=a!=="";o&&(u=z(0,u,new RegExp(`^${a}`,"gmu"),""));let i=Ku(await e(u,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?E([f,i]):[_u,Js(i)],f,"`"]}function xp(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Tp({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 Sp=[{test:mp,print:lp},{test:Ep,print:fp},{test:Ap,print:gp},{test:sp,print:Cp},{test:Tp,print:hp}].map(({test:e,print:t})=>({test:e,print:Bp(t)}));function bp(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||vp(t))return;let n=Sp.find(({test:r})=>r(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":n.print}function Bp(e){return async(...t)=>{let n=await e(...t);return n&&Xt({embed:!0,...n.label},n)}}function vp({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Pp=bp,kp=/\*\/$/,wp=/^\/\*\*?/,Qu=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ip=/(^|\s+)\/\/([^\n\r]*)/g,Lr=/^(\r?\n)+/,Np=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Or=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,jp=/(\r?\n|^) *\* ?/g,Zu=[];function Mp(e){let t=e.match(Qu);return t?t[0].trimStart():""}function Lp(e){let t=e.match(Qu)?.[0];return t==null?e:e.slice(t.length)}function Op(e){e=z(0,e.replace(wp,"").replace(kp,""),jp,"$1");let t="";for(;t!==e;)t=e,e=z(0,e,Np,`
24
+ $1 $2
25
+ `);e=e.replace(Lr,"").trimEnd();let n=Object.create(null),r=z(0,e,Or,"").replace(Lr,"").trimEnd(),u;for(;u=Or.exec(e);){let a=z(0,u[2],Ip,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let o=n[u[1]];n[u[1]]=[...Zu,...Array.isArray(o)?o:[o],a]}else n[u[1]]=a}return{comments:r,pragmas:n}}function Jp({comments:e="",pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(a=>Jr(a,t[a])).map(a=>` * ${a}
26
+ `).join("");if(!e){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let a=t[n[0]];return`/** ${Jr(n[0],a)[0]} */`}}let u=e.split(`
27
+ `).map(a=>` * ${a}`).join(`
28
+ `)+`
29
+ `;return`/**
30
+ `+(e?u:"")+(e&&n.length>0?` *
31
+ `:"")+r+" */"}function Jr(e,t){return[...Zu,...Array.isArray(t)?t:[t]].map(n=>`@${e} ${n}`.trim())}var qp="format";function Xp(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
32
+ `);return t===-1?e:e.slice(0,t)}var Rp=Xp;function _p(e){let t=Rp(e);t&&(e=e.slice(t.length+1));let n=Mp(e),{pragmas:r,comments:u}=Op(n);return{shebang:t,text:e,pragmas:r,comments:u}}function Wp(e){let{shebang:t,text:n,pragmas:r,comments:u}=_p(e),a=Lp(n),o=Jp({pragmas:{[qp]:"",...r},comments:u.trimStart()});return(t?`${t}
33
+ `:"")+o+(a.startsWith(`
34
+ `)?`
35
+ `:`
36
+
37
+ `)+a}function $p(e){if(!he(e))return!1;let t=`*${e.value}*`.split(`
38
+ `);return t.length>1&&t.every(n=>n.trimStart()[0]==="*")}var Cn=new WeakMap;function Up(e){return Cn.has(e)||Cn.set(e,$p(e)),Cn.get(e)}var Gp=Up;function Vp(e,t){let n=e.node;if(Ot(n))return t.originalText.slice(j(n),N(n)).trimEnd();if(Gp(n))return Kp(n);if(he(n))return["/*",Ye(n.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(n))}function Kp(e){let t=e.value.split(`
39
+ `);return["/*",M(A,t.map((n,r)=>r===0?n.trimEnd():" "+(r<t.length-1?n.trim():n.trimStart()))),"*/"]}function Mn(e,t){if(e.isRoot)return!1;let{node:n,key:r,parent:u}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Qp(n)&&Bt(e))return!0;if(Hp(n))return!1;if(n.type==="Identifier"){if(n.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(n.name)||r==="left"&&(n.name==="async"&&!u.await||n.name==="let")&&u.type==="ForOfStatement")return!0;if(n.name==="let"){let a=e.findAncestor(o=>o.type==="ForOfStatement")?.left;if(a&&ne(a,o=>o===n))return!0}if(r==="object"&&n.name==="let"&&u.type==="MemberExpression"&&u.computed&&!u.optional){let a=e.findAncestor(i=>i.type==="ExpressionStatement"||i.type==="ForStatement"||i.type==="ForInStatement"),o=a?a.type==="ExpressionStatement"?a.expression:a.type==="ForStatement"?a.init:a.left:void 0;if(o&&ne(o,i=>i===n))return!0}if(r==="expression")switch(n.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let a=e.findAncestor(o=>!Fe(o));if(a!==u&&a.type==="ExpressionStatement")return!0}}return!1}if(n.type==="ObjectExpression"||n.type==="FunctionExpression"||n.type==="ClassExpression"||n.type==="DoExpression"){let a=e.findAncestor(o=>o.type==="ExpressionStatement")?.expression;if(a&&ne(a,o=>o===n))return!0}if(n.type==="ObjectExpression"){let a=e.findAncestor(o=>o.type==="ArrowFunctionExpression")?.body;if(a&&a.type!=="SequenceExpression"&&a.type!=="AssignmentExpression"&&ne(a,o=>o===n))return!0}switch(u.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(r==="superClass"&&(n.type==="ArrowFunctionExpression"||n.type==="AssignmentExpression"||n.type==="AwaitExpression"||n.type==="BinaryExpression"||n.type==="ConditionalExpression"||n.type==="LogicalExpression"||n.type==="NewExpression"||n.type==="ObjectExpression"||n.type==="SequenceExpression"||n.type==="TaggedTemplateExpression"||n.type==="UnaryExpression"||n.type==="UpdateExpression"||n.type==="YieldExpression"||n.type==="TSNonNullExpression"||n.type==="ClassExpression"&&_(n.decorators)))return!0;break;case"ExportDefaultDeclaration":return ea(e,t)||n.type==="SequenceExpression";case"Decorator":if(r==="expression"&&!el(n))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(a,o)=>o==="returnType"&&a.type==="ArrowFunctionExpression")&&Yp(n))return!0;break;case"BinaryExpression":if(r==="left"&&(u.operator==="in"||u.operator==="instanceof")&&n.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(r==="init"&&e.match(void 0,void 0,(a,o)=>o==="declarations"&&a.type==="VariableDeclaration",(a,o)=>o==="left"&&a.type==="ForInStatement"))return!0;break}switch(n.type){case"UpdateExpression":if(u.type==="UnaryExpression")return n.prefix&&(n.operator==="++"&&u.operator==="+"||n.operator==="--"&&u.operator==="-");case"UnaryExpression":switch(u.type){case"UnaryExpression":return n.operator===u.operator&&(n.operator==="+"||n.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return r==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"BinaryExpression":return r==="left"&&u.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(u.type==="UpdateExpression"||n.operator==="in"&&zp(e))return!0;if(n.operator==="|>"&&n.extra?.parenthesized){let a=e.grandparent;if(a.type==="BinaryExpression"&&a.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(u.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Fe(n);case"ConditionalExpression":return Fe(n)||yi(n);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return r==="callee";case"ClassExpression":case"ClassDeclaration":return r==="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 r==="object";case"AssignmentExpression":case"AssignmentPattern":return r==="left"&&(n.type==="TSTypeAssertion"||Fe(n));case"LogicalExpression":if(n.type==="LogicalExpression")return u.operator!==n.operator;case"BinaryExpression":{let{operator:a,type:o}=n;if(!a&&o!=="TSTypeAssertion")return!0;let i=Zt(a),p=u.operator,l=Zt(p);return!!(l>i||r==="right"&&l===i||l===i&&!er(p,a)||l<i&&a==="%"&&(p==="+"||p==="-")||bi(p))}default:return!1}case"SequenceExpression":return u.type!=="ForStatement";case"YieldExpression":if(u.type==="AwaitExpression"||u.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(u.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 r==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"ConditionalExpression":return r==="test";case"BinaryExpression":return!(!n.argument&&u.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(a=>a.type==="TSFunctionType",(a,o)=>o==="typeAnnotation"&&a.type==="TSTypeAnnotation",(a,o)=>o==="returnType"&&a.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(r==="extendsType"&&_e(n)&&u.type===n.type||r==="checkType"&&_e(u))return!0;if(r==="extendsType"&&u.type==="TSConditionalType"){let{typeAnnotation:a}=n.returnType||n.typeAnnotation;if(a.type==="TSTypePredicate"&&a.typeAnnotation&&(a=a.typeAnnotation.typeAnnotation),a.type==="TSInferType"&&a.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(Be(u)||qt(u))return!0;case"TSInferType":if(n.type==="TSInferType"){if(u.type==="TSRestType")return!1;if(r==="types"&&(u.type==="TSUnionType"||u.type==="TSIntersectionType")&&n.typeParameter.type==="TSTypeParameter"&&n.typeParameter.constraint)return!0}case"TSTypeOperator":return u.type==="TSArrayType"||u.type==="TSOptionalType"||u.type==="TSRestType"||r==="objectType"&&u.type==="TSIndexedAccessType"||u.type==="TSTypeOperator"||u.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return r==="objectType"&&u.type==="TSIndexedAccessType"||r==="elementType"&&u.type==="TSArrayType";case"TypeOperator":return u.type==="ArrayTypeAnnotation"||u.type==="NullableTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType")||u.type==="TypeOperator";case"TypeofTypeAnnotation":return r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType")||r==="elementType"&&u.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return u.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return u.type==="TypeOperator"||u.type==="KeyofTypeAnnotation"||u.type==="ArrayTypeAnnotation"||u.type==="NullableTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="UnionTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return u.type==="ArrayTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(n.type==="ComponentTypeAnnotation"&&(n.rendersType===null||n.rendersType===void 0))return!1;if(e.match(void 0,(o,i)=>i==="typeAnnotation"&&o.type==="TypeAnnotation",(o,i)=>i==="returnType"&&o.type==="ArrowFunctionExpression")||e.match(void 0,(o,i)=>i==="typeAnnotation"&&o.type==="TypePredicate",(o,i)=>i==="typeAnnotation"&&o.type==="TypeAnnotation",(o,i)=>i==="returnType"&&o.type==="ArrowFunctionExpression"))return!0;let a=u.type==="NullableTypeAnnotation"?e.grandparent:u;return a.type==="UnionTypeAnnotation"||a.type==="IntersectionTypeAnnotation"||a.type==="ArrayTypeAnnotation"||r==="objectType"&&(a.type==="IndexedAccessType"||a.type==="OptionalIndexedAccessType")||r==="checkType"&&u.type==="ConditionalTypeAnnotation"||r==="extendsType"&&u.type==="ConditionalTypeAnnotation"&&n.returnType?.type==="InferTypeAnnotation"&&n.returnType?.typeParameter.bound||a.type==="NullableTypeAnnotation"||u.type==="FunctionTypeParam"&&u.name===null&&te(n).some(o=>o.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return r==="objectType"&&u.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof n.value=="string"&&u.type==="ExpressionStatement"&&typeof u.directive!="string"){let a=e.grandparent;return a.type==="Program"||a.type==="BlockStatement"}return r==="object"&&R(u)&&be(n);case"AssignmentExpression":return!((r==="init"||r==="update")&&u.type==="ForStatement"||r==="expression"&&n.left.type!=="ObjectPattern"&&u.type==="ExpressionStatement"||r==="key"&&u.type==="TSPropertySignature"||u.type==="AssignmentExpression"||r==="expressions"&&u.type==="SequenceExpression"&&e.match(void 0,void 0,(a,o)=>(o==="init"||o==="update")&&a.type==="ForStatement")||r==="value"&&u.type==="Property"&&e.match(void 0,void 0,(a,o)=>o==="properties"&&a.type==="ObjectPattern")||u.type==="NGChainedExpression"||r==="node"&&u.type==="JsExpressionRoot");case"ConditionalExpression":switch(u.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 r==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:r==="test";case"MemberExpression":case"OptionalMemberExpression":return r==="object";default:return!1}case"FunctionExpression":switch(u.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(u.type){case"BinaryExpression":return u.operator!=="|>"||n.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"MemberExpression":case"OptionalMemberExpression":return r==="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 r==="expression";case"ConditionalExpression":return r==="test";default:return!1}case"ClassExpression":return u.type==="NewExpression"?r==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(Zp(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(r==="callee"&&(u.type==="BindExpression"||u.type==="NewExpression")){let a=n;for(;a;)switch(a.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":a=a.object;break;case"TaggedTemplateExpression":a=a.tag;break;case"TSNonNullExpression":a=a.expression;break;default:return!1}}return!1;case"BindExpression":return r==="callee"&&(u.type==="BindExpression"||u.type==="NewExpression")||r==="object"&&R(u);case"NGPipeExpression":return!(u.type==="NGRoot"||u.type==="NGMicrosyntaxExpression"||u.type==="ObjectProperty"&&!n.extra?.parenthesized||ee(u)||r==="arguments"&&L(u)||r==="right"&&u.type==="NGPipeExpression"||r==="property"&&u.type==="MemberExpression"||u.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return r==="callee"||r==="left"&&u.type==="BinaryExpression"&&u.operator==="<"||!ee(u)&&u.type!=="ArrowFunctionExpression"&&u.type!=="AssignmentExpression"&&u.type!=="AssignmentPattern"&&u.type!=="BinaryExpression"&&u.type!=="NewExpression"&&u.type!=="ConditionalExpression"&&u.type!=="ExpressionStatement"&&u.type!=="JsExpressionRoot"&&u.type!=="JSXAttribute"&&u.type!=="JSXElement"&&u.type!=="JSXExpressionContainer"&&u.type!=="JSXFragment"&&u.type!=="LogicalExpression"&&!L(u)&&!We(u)&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&u.type!=="TypeCastExpression"&&u.type!=="VariableDeclarator"&&u.type!=="YieldExpression"&&u.type!=="MatchExpressionCase";case"TSInstantiationExpression":return r==="object"&&R(u);case"MatchOrPattern":return u.type==="MatchAsPattern"}return!1}var Hp=w(["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 zp(e){let t=0,{node:n}=e;for(;n;){let r=e.getParentNode(t++);if(r?.type==="ForStatement"&&r.init===n)return!0;n=r}return!1}function Yp(e){return vn(e,t=>t.type==="ObjectTypeAnnotation"&&vn(t,n=>n.type==="FunctionTypeAnnotation"))}function Qp(e){return Ae(e)}function Bt(e){let{parent:t,key:n}=e;switch(t.type){case"NGPipeExpression":if(n==="arguments"&&e.isLast)return e.callParent(Bt);break;case"ObjectProperty":if(n==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(Bt);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(Bt);break;case"UnaryExpression":if(t.prefix)return e.callParent(Bt);break}return!1}function ea(e,t){let{node:n,parent:r}=e;return n.type==="FunctionExpression"||n.type==="ClassExpression"?r.type==="ExportDefaultDeclaration"||!Mn(e,t):!zn(n)||r.type!=="ExportDefaultDeclaration"&&Mn(e,t)?!1:e.call(()=>ea(e,t),...Du(n))}function Zp(e){return!!(e.match(void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,n)=>n==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||n==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression"))}function Ln(e){return e.type==="Identifier"?!0:R(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Ln(e.object):!1}function el(e){return e.type==="ChainExpression"&&(e=e.expression),Ln(e)||L(e)&&!e.optional&&Ln(e.callee)}var Ve=Mn;function tl(e,t){let n=t-1;n=ct(e,n,{backwards:!0}),n=Dt(e,n,{backwards:!0}),n=ct(e,n,{backwards:!0});let r=Dt(e,n,{backwards:!0});return n!==r}var nl=tl,rl=()=>!0;function cr(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function ul(e,t){let n=e.node,r=[cr(e,t)],{printer:u,originalText:a,locStart:o,locEnd:i}=t;if(u.isBlockComment?.(n)){let l=ie(a,i(n))?ie(a,o(n),{backwards:!0})?A:x:" ";r.push(l)}else r.push(A);let p=Dt(a,ct(a,i(n)));return p!==!1&&ie(a,p)&&r.push(A),r}function al(e,t,n){let r=e.node,u=cr(e,t),{printer:a,originalText:o,locStart:i}=t,p=a.isBlockComment?.(r);if(n?.hasLineSuffix&&!n?.isBlock||ie(o,i(r),{backwards:!0})){let l=nl(o,i(r));return{doc:jr([A,l?A:"",u]),isBlock:p,hasLineSuffix:!0}}return!p||n?.hasLineSuffix?{doc:[jr([" ",u]),Le],isBlock:p,hasLineSuffix:!0}:{doc:[" ",u],isBlock:p,hasLineSuffix:!1}}function X(e,t,n={}){let{node:r}=e;if(!_(r?.comments))return"";let{indent:u=!1,marker:a,filter:o=rl}=n,i=[];if(e.each(({node:l})=>{l.leading||l.trailing||l.marker!==a||!o(l)||i.push(cr(e,t))},"comments"),i.length===0)return"";let p=M(A,i);return u?E([A,p]):p}function pn(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if((n.comments||[]).filter(i=>!r.has(i)).length===0)return{leading:"",trailing:""};let u=[],a=[],o;return e.each(()=>{let i=e.node;if(r?.has(i))return;let{leading:p,trailing:l}=i;p?u.push(ul(e,t)):l&&(o=al(e,t,o),a.push(o.doc))},"comments"),{leading:u,trailing:a}}function de(e,t,n){let{leading:r,trailing:u}=pn(e,n);return!r&&!u?t:In(t,a=>[r,a,u])}var nn=class extends Error{name="ArgExpansionBailout"};function ot(e,t,n,r,u){let a=e.node,o=te(a),i=u&&a.typeParameters?n("typeParameters"):"";if(o.length===0)return[i,"(",X(e,t,{filter:m=>ge(t.originalText,N(m))===")"}),")"];let{parent:p}=e,l=on(p),y=ta(a),D=[];if(vi(e,(m,F)=>{let B=F===o.length-1;B&&a.rest&&D.push("..."),D.push(n()),!B&&(D.push(","),l||y?D.push(" "):we(o[F],t)?D.push(A,A):D.push(x))}),r&&!il(e)){if(re(i)||re(D))throw new nn;return c([tn(i),"(",tn(D),")"])}let d=o.every(m=>!_(m.decorators));return y&&d?[i,"(",...D,")"]:l?[i,"(",...D,")"]:(mu(p)||Fi(p)||p.type==="TypeAlias"||p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="FunctionTypeAnnotation"&&p.returnType===a)&&o.length===1&&o[0].name===null&&a.this!==o[0]&&o[0].typeAnnotation&&a.typeParameters===null&&Qn(o[0].typeAnnotation)&&!a.rest?t.arrowParens==="always"||a.type==="HookTypeAnnotation"?["(",...D,")"]:D:[i,"(",E([f,...D]),k(!Bi(a)&&ke(t,"all")?",":""),f,")"]}function ta(e){if(!e)return!1;let t=te(e);if(t.length!==1)return!1;let[n]=t;return!g(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&Re(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&Re(n.typeAnnotation)&&n!==e.rest||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||Ae(n.right)&&n.right.properties.length===0||ee(n.right)&&n.right.elements.length===0))}function ol(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function gt(e,t){let n=ol(e);if(!n)return!1;let r=e.typeParameters?.params;if(r){if(r.length>1)return!1;if(r.length===1){let u=r[0];if(u.constraint||u.default)return!1}}return te(e).length===1&&(Re(n)||re(t))}function il(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,n)=>{if(t.type==="CallExpression"&&n==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let r=t.callee.callee;return r.type==="Identifier"||r.type==="MemberExpression"&&!r.computed&&r.object.type==="Identifier"&&r.property.type==="Identifier"}return!1},(t,n)=>t.type==="VariableDeclarator"&&n==="init"||t.type==="ExportDefaultDeclaration"&&n==="declaration"||t.type==="TSExportAssignment"&&n==="expression"||t.type==="AssignmentExpression"&&n==="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 sl(e){let t=te(e);return t.length>1&&t.some(n=>n.type==="TSParameterProperty")}function Pt(e,t){return(t==="params"||t==="this"||t==="rest")&&ta(e)}function ue(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":L(t)||R(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function na(e){return e.node.definite||e.match(void 0,(t,n)=>n==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var pl=w(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function De(e){let{node:t}=e;return t.declare||pl(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var ll=w(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function ln({node:e}){return e.abstract||ll(e)?"abstract ":""}function qe(e,t,n){return e.type==="EmptyStatement"?g(e,b.Leading)?[" ",t]:t:e.type==="BlockStatement"||n?[" ",t]:E([x,t])}function cn(e){return e.accessibility?e.accessibility+" ":""}var cl=/^[\$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]*$/,Dl=e=>cl.test(e),yl=Dl;function dl(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 ft=dl,ml=0;function ra(e,t,n){let{node:r,parent:u,grandparent:a,key:o}=e,i=o!=="body"&&(u.type==="IfStatement"||u.type==="WhileStatement"||u.type==="SwitchStatement"||u.type==="DoWhileStatement"),p=r.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,l=On(e,t,n,!1,i);if(i)return l;if(p)return c(l);if(o==="callee"&&(L(u)||u.type==="NewExpression")||u.type==="UnaryExpression"||R(u)&&!u.computed)return c([E([f,...l]),f]);let y=u.type==="ReturnStatement"||u.type==="ThrowStatement"||u.type==="JSXExpressionContainer"&&a.type==="JSXAttribute"||r.operator!=="|"&&u.type==="JsExpressionRoot"||r.type!=="NGPipeExpression"&&(u.type==="NGRoot"&&t.parser==="__ng_binding"||u.type==="NGMicrosyntaxExpression"&&a.type==="NGMicrosyntax"&&a.body.length===1)||r===u.body&&u.type==="ArrowFunctionExpression"||r!==u.body&&u.type==="ForStatement"||u.type==="ConditionalExpression"&&a.type!=="ReturnStatement"&&a.type!=="ThrowStatement"&&!L(a)&&a.type!=="NewExpression"||u.type==="TemplateLiteral"||Fl(e),D=u.type==="AssignmentExpression"||u.type==="VariableDeclarator"||u.type==="ClassProperty"||u.type==="PropertyDefinition"||u.type==="TSAbstractPropertyDefinition"||u.type==="ClassPrivateProperty"||We(u),d=je(r.left)&&er(r.operator,r.left.operator);if(y||Mt(r)&&!d||!Mt(r)&&D)return c(l);if(l.length===0)return"";let m=Y(r.right),F=l.findIndex(T=>typeof T!="string"&&!Array.isArray(T)&&T.type===me),B=l.slice(0,F===-1?1:F+1),C=l.slice(B.length,m?-1:void 0),v=Symbol("logicalChain-"+ ++ml),S=c([...B,E(C)],{id:v});if(!m)return S;let h=O(0,l,-1);return c([S,jt(h,{groupId:v})])}function On(e,t,n,r,u){let{node:a}=e;if(!je(a))return[c(n())];let o=[];er(a.operator,a.left.operator)?o=e.call(()=>On(e,t,n,!0,u),"left"):o.push(c(n("left")));let i=Mt(a),p=a.right.type==="ChainExpression"?a.right.expression:a.right,l=(a.operator==="|>"||a.type==="NGPipeExpression"||fl(e,t))&&!Ee(t.originalText,p),y=!g(p,b.Leading,Tu)&&Ee(t.originalText,p),D=a.type==="NGPipeExpression"?"|":a.operator,d=a.type==="NGPipeExpression"&&a.arguments.length>0?c(E([f,": ",M([x,": "],e.map(()=>Ce(2,c(n())),"arguments"))])):"",m;if(i)m=[D,Ee(t.originalText,p)?E([x,n("right"),d]):[" ",n("right"),d]];else{let C=D==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>On(e,t,n,!0,u),"right"):n("right");if(t.experimentalOperatorPosition==="start"){let v="";if(y)switch(Ge(C)){case Me:v=C.splice(0,1)[0];break;case Oe:v=C.contents.splice(0,1)[0];break}m=[x,v,D," ",C,d]}else m=[l?x:"",D,l?" ":x,C,d]}let{parent:F}=e,B=g(a.left,b.Trailing|b.Line);if((B||!(u&&a.type==="LogicalExpression")&&F.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(m=c(m,{shouldBreak:B})),t.experimentalOperatorPosition==="start"?o.push(i||y?" ":"",m):o.push(l?"":" ",m),r&&g(a)){let C=pr(de(e,o,t));return C.type===$e?C.parts:Array.isArray(C)?C:[C]}return o}function Mt(e){return e.type!=="LogicalExpression"?!1:!!(Ae(e.right)&&e.right.properties.length>0||ee(e.right)&&e.right.elements.length>0||Y(e.right))}var qr=e=>e.type==="BinaryExpression"&&e.operator==="|";function fl(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&qr(e.node)&&!e.hasAncestor(n=>!qr(n)&&n.type!=="JsExpressionRoot")}function Fl(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(L(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:n}=t;return n.type==="Identifier"&&n.name==="Boolean"}function ua(e,t,n){let{node:r}=e,{parent:u}=e,a=u.type!=="TypeParameterInstantiation"&&(!_e(u)||!t.experimentalTernaries)&&u.type!=="TSTypeParameterInstantiation"&&u.type!=="GenericTypeAnnotation"&&u.type!=="TSTypeReference"&&u.type!=="TSTypeAssertion"&&u.type!=="TupleTypeAnnotation"&&u.type!=="TSTupleType"&&!(u.type==="FunctionTypeParam"&&!u.name&&e.grandparent.this!==u)&&!((kn(u)||u.type==="VariableDeclarator")&&Ee(t.originalText,r))&&!(kn(u)&&g(u.id,b.Trailing|b.Line)),o=aa(r),i=e.map(()=>{let m=n();return o||(m=Ce(2,m)),de(e,m,t)},"types"),p="",l="";if(hu(e)&&({leading:p,trailing:l}=pn(e,t)),o)return[p,M(" | ",i),l];let y=a&&!Ee(t.originalText,r),D=[k([y?x:"","| "]),M([x,"| "],i)];if(Ve(e,t))return[p,c([E(D),f]),l];let d=[p,c(D)];return(u.type==="TupleTypeAnnotation"||u.type==="TSTupleType")&&u[u.type==="TupleTypeAnnotation"&&u.types?"types":"elementTypes"].length>1?[c([E([k(["(",f]),d]),f,k(")")]),l]:[c(a?E(d):d),l]}var El=w(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Al=w(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function aa(e){let{types:t}=e;if(t.some(r=>g(r)))return!1;let n=t.find(r=>Al(r));return n?t.every(r=>r===n||El(r)):!1}function gl(e){return Qn(e)||Re(e)?!0:Be(e)?aa(e):!1}var Cl=new WeakSet;function Z(e,t,n="typeAnnotation"){let{node:{[n]:r}}=e;if(!r)return"";let u=!1;if(r.type==="TSTypeAnnotation"||r.type==="TypeAnnotation"){let a=e.call(oa,n);(a==="=>"||a===":"&&g(r,b.Leading))&&(u=!0),Cl.add(r)}return u?[" ",t(n)]:t(n)}var oa=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>(n==="returnType"||n==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>n==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function ia(e,t,n){let r=oa(e);return r?[r," ",n("typeAnnotation")]:n("typeAnnotation")}function hl(e,t,n,r){let{node:u}=e,a=u.inexact?"...":"";return g(u,b.Dangling)?c([n,a,X(e,t,{indent:!0}),f,r]):[n,a,r]}function Dr(e,t,n){let{node:r}=e,u=[],a="[",o="]",i=r.type==="TupleTypeAnnotation"&&r.types?"types":r.type==="TSTupleType"||r.type==="TupleTypeAnnotation"?"elementTypes":"elements",p=r[i];if(p.length===0)u.push(hl(e,t,a,o));else{let l=O(0,p,-1),y=l?.type!=="RestElement"&&!r.inexact,D=l===null,d=Symbol("array"),m=!t.__inJestEach&&p.length>1&&p.every((C,v,S)=>{let h=C?.type;if(!ee(C)&&!Ae(C))return!1;let T=S[v+1];if(T&&h!==T.type)return!1;let I=ee(C)?"elements":"properties";return C[I]&&C[I].length>1}),F=sa(r,t),B=y?D?",":ke(t)?F?k(",","",{groupId:d}):k(","):"":"";u.push(c([a,E([f,F?Tl(e,t,n,B):[xl(e,t,n,i,r.inexact),B],X(e,t)]),f,o],{shouldBreak:m,id:d}))}return u.push(ue(e),Z(e,n)),u}function sa(e,t){return ee(e)&&e.elements.length>0&&e.elements.every(n=>n&&(be(n)||yu(n)&&!g(n.argument))&&!g(n,b.Trailing|b.Line,r=>!ie(t.originalText,j(r),{backwards:!0})))}function pa({node:e},{originalText:t}){let n=N(e);if(n===j(e))return!1;let{length:r}=t;for(;n<r&&t[n]!==",";)n=Un(t,Gn(t,n+1));return Vn(t,n)}function xl(e,t,n,r,u){let a=[];return e.each(({node:o,isLast:i})=>{a.push(o?c(n()):""),(!i||u)&&a.push([",",x,o&&pa(e,t)?f:""])},r),u&&a.push("..."),a}function Tl(e,t,n,r){let u=[];return e.each(({isLast:a,next:o})=>{u.push([n(),a?r:","]),a||u.push(pa(e,t)?[A,A]:g(o,b.Leading|b.Line)?A:x)},"elements"),Xu(u)}function Sl(e,t,n){let{node:r}=e,u=ye(r);if(u.length===0)return["(",X(e,t),")"];let a=u.length-1;if(vl(u)){let D=["("];return en(e,(d,m)=>{D.push(n()),m!==a&&D.push(", ")}),D.push(")"),D}let o=!1,i=[];en(e,({node:D},d)=>{let m=n();d===a||(we(D,t)?(o=!0,m=[m,",",A,A]):m=[m,",",x]),i.push(m)});let p=!t.parser.startsWith("__ng_")&&r.type!=="ImportExpression"&&r.type!=="TSImportType"&&r.type!=="TSExternalModuleReference"&&ke(t,"all")?",":"";function l(){return c(["(",E([x,...i]),p,x,")"],{shouldBreak:!0})}if(o||e.parent.type!=="Decorator"&&xi(u))return l();if(Bl(u)){let D=i.slice(1);if(D.some(re))return l();let d;try{d=n(kr(r,0),{expandFirstArg:!0})}catch(m){if(m instanceof nn)return l();throw m}return re(d)?[Le,He([["(",c(d,{shouldBreak:!0}),", ",...D,")"],l()])]:He([["(",d,", ",...D,")"],["(",c(d,{shouldBreak:!0}),", ",...D,")"],l()])}if(bl(u,i,t)){let D=i.slice(0,-1);if(D.some(re))return l();let d;try{d=n(kr(r,-1),{expandLastArg:!0})}catch(m){if(m instanceof nn)return l();throw m}return re(d)?[Le,He([["(",...D,c(d,{shouldBreak:!0}),")"],l()])]:He([["(",...D,d,")"],["(",...D,c(d,{shouldBreak:!0}),")"],l()])}let y=["(",E([f,...i]),k(p),f,")"];return gu(e)?y:c(y,{shouldBreak:i.some(re)||o})}function kt(e,t=!1){return Ae(e)&&(e.properties.length>0||g(e))||ee(e)&&(e.elements.length>0||g(e))||e.type==="TSTypeAssertion"&&kt(e.expression)||Fe(e)&&kt(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||Pl(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&kt(e.body,!0)||Ae(e.body)||ee(e.body)||!t&&(L(e.body)||e.body.type==="ConditionalExpression")||Y(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function bl(e,t,n){let r=O(0,e,-1);if(e.length===1){let a=O(0,t,-1);if(a.label?.embed&&a.label?.hug!==!1)return!0}let u=O(0,e,-2);return!g(r,b.Leading)&&!g(r,b.Trailing)&&kt(r)&&(!u||u.type!==r.type)&&(e.length!==2||u.type!=="ArrowFunctionExpression"||!ee(r))&&!(e.length>1&&sa(r,n))}function Bl(e){if(e.length!==2)return!1;let[t,n]=e;return t.type==="ModuleExpression"&&kl(n)?!0:!g(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ConditionalExpression"&&la(n)&&!kt(n)}function la(e){if(e.type==="ParenthesizedExpression")return la(e.expression);if(Fe(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 n=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;n?.params.length===1&&(t=n.params[0])}return Qn(t)&&fe(e.expression,1)}return mt(e)&&ye(e).length>1?!1:je(e)?fe(e.left,1)&&fe(e.right,1):du(e)||fe(e)}function vl(e){return e.length===2?Xr(e,0):e.length===3?e[0].type==="Identifier"&&Xr(e,1):!1}function Xr(e,t){let n=e[t],r=e[t+1];return n.type==="ArrowFunctionExpression"&&te(n).length===0&&n.body.type==="BlockStatement"&&r.type==="ArrayExpression"&&!e.some(u=>g(u))}function Pl(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||g(e,b.Dangling))}function kl(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 Jn=Sl;function wl(e,t,n){return[n("object"),c(E([f,ca(e,t,n)]))]}function ca(e,t,n){return["::",n("callee")]}var Il=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),L(e)&&ye(e).length>0);function Nl(e){let{node:t,ancestors:n}=e;for(let r of n){if(!(R(r)&&r.object===t||r.type==="TSNonNullExpression"&&r.expression===t))return r.type==="NewExpression"&&r.callee===t;t=r}return!1}function jl(e,t,n){let r=n("object"),u=Da(e,t,n),{node:a}=e,o=e.findAncestor(l=>!(R(l)||l.type==="TSNonNullExpression")),i=e.findAncestor(l=>!(l.type==="ChainExpression"||l.type==="TSNonNullExpression")),p=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||Nl(e)||a.computed||a.object.type==="Identifier"&&a.property.type==="Identifier"&&!R(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(Il(a.object)||r.label?.memberChain);return Xt(r.label,[r,p?u:c(E([f,u]))])}function Da(e,t,n){let r=n("property"),{node:u}=e,a=ue(e);return u.computed?!u.property||be(u.property)?[a,"[",r,"]"]:c([a,"[",E([f,r]),f,"]"]):[a,".",r]}function ya(e,t,n){if(e.node.type==="ChainExpression")return e.call(()=>ya(e,t,n),"expression");let r=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",u=[];function a(P){let{originalText:G}=t,K=Ft(G,N(P));return G.charAt(K)===")"?K!==!1&&Vn(G,K+1):we(P,t)}function o(){let{node:P}=e;if(P.type==="ChainExpression")return e.call(o,"expression");if(L(P)&&(pt(P.callee)||L(P.callee))){let G=a(P);u.unshift({node:P,hasTrailingEmptyLine:G,printed:[de(e,[ue(e),n("typeArguments"),Jn(e,t,n)],t),G?A:""]}),e.call(o,"callee")}else pt(P)?(u.unshift({node:P,needsParens:Ve(e,t),printed:de(e,R(P)?Da(e,t,n):ca(e,t,n),t)}),e.call(o,"object")):P.type==="TSNonNullExpression"?(u.unshift({node:P,printed:de(e,"!",t)}),e.call(o,"expression")):u.unshift({node:P,printed:n()})}let{node:i}=e;u.unshift({node:i,printed:[ue(e),n("typeArguments"),Jn(e,t,n)]}),i.callee&&e.call(o,"callee");let p=[],l=[u[0]],y=1;for(;y<u.length&&(u[y].node.type==="TSNonNullExpression"||L(u[y].node)||R(u[y].node)&&u[y].node.computed&&be(u[y].node.property));++y)l.push(u[y]);if(!L(u[0].node))for(;y+1<u.length&&pt(u[y].node)&&pt(u[y+1].node);++y)l.push(u[y]);p.push(l),l=[];let D=!1;for(;y<u.length;++y){if(D&&pt(u[y].node)){if(u[y].node.computed&&be(u[y].node.property)){l.push(u[y]);continue}p.push(l),l=[],D=!1}(L(u[y].node)||u[y].node.type==="ImportExpression")&&(D=!0),l.push(u[y]),g(u[y].node,b.Trailing)&&(p.push(l),l=[],D=!1)}l.length>0&&p.push(l);function d(P){return/^[A-Z]|^[$_]+$/u.test(P)}function m(P){return P.length<=t.tabWidth}function F(P){let G=P[1][0]?.node.computed;if(P[0].length===1){let Ie=P[0][0].node;return Ie.type==="ThisExpression"||Ie.type==="Identifier"&&(d(Ie.name)||r&&m(Ie.name)||G)}let K=O(0,P[0],-1).node;return R(K)&&K.property.type==="Identifier"&&(d(K.property.name)||G)}let B=p.length>=2&&!g(p[1][0].node)&&F(p);function C(P){let G=P.map(K=>K.printed);return P.length>0&&O(0,P,-1).needsParens?["(",...G,")"]:G}function v(P){return P.length===0?"":E([A,M(A,P.map(C))])}let S=p.map(C),h=S,T=B?3:2,I=p.flat(),J=I.slice(1,-1).some(P=>g(P.node,b.Leading))||I.slice(0,-1).some(P=>g(P.node,b.Trailing))||p[T]&&g(p[T][0].node,b.Leading);if(p.length<=T&&!J&&!p.some(P=>O(0,P,-1).hasTrailingEmptyLine))return gu(e)?h:c(h);let H=O(0,p[B?1:0],-1).node,q=!L(H)&&a(H),$=[C(p[0]),B?p.slice(1,2).map(C):"",q?A:"",v(p.slice(B?2:1))],U=u.map(({node:P})=>P).filter(L);function ae(){let P=O(0,O(0,p,-1),-1).node,G=O(0,S,-1);return L(P)&&re(G)&&U.slice(0,-1).some(K=>K.arguments.some(It))}let xe;return J||U.length>2&&U.some(P=>!P.arguments.every(G=>fe(G)))||S.slice(0,-1).some(re)||ae()?xe=c($):xe=[re(h)||q?Le:"",He([h,$])],Xt({memberChain:!0},xe)}var Ml=ya;function rn(e,t,n){let{node:r}=e,u=r.type==="NewExpression",a=ue(e),o=ye(r),i=r.type!=="TSImportType"&&r.typeArguments?n("typeArguments"):"",p=o.length===1&&Eu(o[0],t.originalText);if(p||Ol(e)||Jl(e)||on(r,e.parent)){let D=[];if(en(e,()=>{D.push(n())}),!(p&&D[0].label?.embed))return[u?"new ":"",Rr(e,n),a,i,"(",M(", ",D),")"]}let l=r.type==="ImportExpression"||r.type==="TSImportType"||r.type==="TSExternalModuleReference";if(!l&&!u&&pt(r.callee)&&!e.call(()=>Ve(e,t),"callee",...r.callee.type==="ChainExpression"?["expression"]:[]))return Ml(e,t,n);let y=[u?"new ":"",Rr(e,n),a,i,Jn(e,t,n)];return l||L(r.callee)?c(y):y}function Rr(e,t){let{node:n}=e;return n.type==="ImportExpression"?`import${n.phase?`.${n.phase}`:""}`:n.type==="TSImportType"?"import":n.type==="TSExternalModuleReference"?"require":t("callee")}var Ll=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function Ol(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&Kn(t.callee,Ll)))return!1;let n=ye(t);return n.length===1&&Q(n[0])&&!g(n[0])}function Jl(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let n=ye(t);return t.callee.name==="require"?(n.length===1&&Q(n[0])||n.length>1)&&!g(n[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?n.length===1||n.length===2&&n[0].type==="ArrayExpression"||n.length===3&&Q(n[0])&&n[1].type==="ArrayExpression":!1}function Rt(e,t,n,r,u,a){let o=Rl(e,t,n,r,a),i=a?n(a,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return c([c(r),u,c(E([x,i]))]);case"never-break-after-operator":return c([c(r),u," ",i]);case"fluid":{let p=Symbol("assignment");return c([c(r),u,c(E(x),{id:p}),Pe,jt(i,{groupId:p})])}case"break-lhs":return c([r,u," ",c(i)]);case"chain":return[c(r),u,x,i];case"chain-tail":return[c(r),u,E([x,i])];case"chain-tail-arrow-chain":return[c(r),u,i];case"only-left":return r}}function ql(e,t,n){let{node:r}=e;return Rt(e,t,n,n("left"),[" ",r.operator],"right")}function Xl(e,t,n){return Rt(e,t,n,n("id")," =","init")}function Rl(e,t,n,r,u){let{node:a}=e,o=a[u];if(!o)return"only-left";let i=!zt(o);if(e.match(zt,da,y=>!i||y.type!=="ExpressionStatement"&&y.type!=="VariableDeclaration"))return i?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!i&&zt(o.right)||Ee(t.originalText,o))return"break-after-operator";if(a.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let p=js(r);if(Wl(a)||Gl(a)||ma(a)&&p)return"break-lhs";let l=Vl(a,r,t);return e.call(()=>_l(e,t,n,l),u)?"break-after-operator":$l(a)?"break-lhs":!p&&(l||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||di(o)||be(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function _l(e,t,n,r){let u=e.node;if(je(u)&&!Mt(u))return!0;switch(u.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!zl(u))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:l}=u;return je(l)&&!Mt(l)}let{consequent:i,alternate:p}=u;return i.type==="ConditionalExpression"||p.type==="ConditionalExpression"}case"ClassExpression":return _(u.decorators)}if(r)return!1;let a=u,o=[];for(;;)if(a.type==="UnaryExpression"||a.type==="AwaitExpression"||a.type==="YieldExpression"&&a.argument!==null)a=a.argument,o.push("argument");else if(a.type==="TSNonNullExpression")a=a.expression,o.push("expression");else break;return!!(Q(a)||e.call(()=>fa(e,t,n),...o))}function Wl(e){if(da(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(n=>We(n)&&(!n.shorthand||n.value?.type==="AssignmentPattern"))}return!1}function zt(e){return e.type==="AssignmentExpression"}function da(e){return zt(e)||e.type==="VariableDeclarator"}function $l(e){let t=Ul(e);if(_(t)){let n=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(r=>r[n]||r.default))return!0}return!1}function Ul(e){if(kn(e))return e.typeParameters?.params}function Gl(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=_r(t.typeAnnotation);return _(n)&&n.length>1&&n.some(r=>_(_r(r))||r.type==="TSConditionalType")}function ma(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function _r(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function fa(e,t,n,r=!1){let{node:u}=e,a=()=>fa(e,t,n,!0);if(u.type==="ChainExpression"||u.type==="TSNonNullExpression")return e.call(a,"expression");if(L(u)){if(rn(e,t,n).label?.memberChain)return!1;let o=ye(u);return!(o.length===0||o.length===1&&Zn(o[0],t))||Kl(u,n)?!1:e.call(a,"callee")}return R(u)?e.call(a,"object"):r&&(u.type==="Identifier"||u.type==="ThisExpression")}function Vl(e,t,n){return We(e)?(t=pr(t),typeof t=="string"&&lt(t)<n.tabWidth+3):!1}function Kl(e,t){let n=Hl(e);if(_(n)){if(n.length>1)return!0;if(n.length===1){let u=n[0];if(Be(u)||qt(u)||u.type==="TSTypeLiteral"||u.type==="ObjectTypeAnnotation")return!0}let r=e.typeParameters?"typeParameters":"typeArguments";if(re(t(r)))return!0}return!1}function Hl(e){return(e.typeParameters??e.typeArguments)?.params}function Wr(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function zl(e){return Wr(e.checkType)||Wr(e.extendsType)}var Yt=new WeakMap;function Fa(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function $r(e,t){return t.parser==="json"||t.parser==="jsonc"||!Q(e.key)||yt(se(e.key),t).slice(1,-1)!==e.key.value?!1:!!(yl(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||Fa(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 Yl(e,t){let{key:n}=e.node;return(n.type==="Identifier"||be(n)&&Fa(ft(se(n)))&&String(n.value)===ft(se(n))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Yt.get(e.parent))}function _t(e,t,n){let{node:r}=e;if(r.computed)return["[",n("key"),"]"];let{parent:u}=e,{key:a}=r;if(t.quoteProps==="consistent"&&!Yt.has(u)){let o=e.siblings.some(i=>!i.computed&&Q(i.key)&&!$r(i,t));Yt.set(u,o)}if(Yl(e,t)){let o=yt(JSON.stringify(a.type==="Identifier"?a.name:a.value.toString()),t);return e.call(()=>de(e,o,t),"key")}return $r(r,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Yt.get(u))?e.call(()=>de(e,/^\d/u.test(a.value)?ft(a.value):a.value,t),"key"):n("key")}function hn(e,t,n){let{node:r}=e;return r.shorthand?n("value"):Rt(e,t,n,_t(e,t,n),":","value")}var Ql=({node:e,key:t,parent:n})=>t==="value"&&e.type==="FunctionExpression"&&(n.type==="ObjectMethod"||n.type==="ClassMethod"||n.type==="ClassPrivateMethod"||n.type==="MethodDefinition"||n.type==="TSAbstractMethodDefinition"||n.type==="TSDeclareMethod"||n.type==="Property"&&Jt(n));function Ea(e,t,n,r){if(Ql(e))return yr(e,t,n);let{node:u}=e,a=!1;if((u.type==="FunctionDeclaration"||u.type==="FunctionExpression")&&r?.expandLastArg){let{parent:y}=e;L(y)&&(ye(y).length>1||te(u).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(a=!0)}let o=[De(e),u.async?"async ":"",`function${u.generator?"*":""} `,u.id?n("id"):""],i=ot(e,t,n,a),p=Dn(e,n),l=gt(u,p);return o.push(n("typeParameters"),c([l?c(i):i,p]),u.body?" ":"",n("body")),t.semi&&(u.declare||!u.body)&&o.push(";"),o}function qn(e,t,n){let{node:r}=e,{kind:u}=r,a=r.value||r,o=[];return!u||u==="init"||u==="method"||u==="constructor"?a.async&&o.push("async "):(Qe(u==="get"||u==="set"),o.push(u," ")),a.generator&&o.push("*"),o.push(_t(e,t,n),r.optional?"?":"",r===a?yr(e,t,n):n("value")),o}function yr(e,t,n){let{node:r}=e,u=ot(e,t,n),a=Dn(e,n),o=sl(r),i=gt(r,a),p=[n("typeParameters"),c([o?c(u,{shouldBreak:!0}):i?c(u):u,a])];return r.body?p.push(" ",n("body")):p.push(t.semi?";":""),p}function Zl(e){let t=te(e);return t.length===1&&!e.typeParameters&&!g(e,b.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!g(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Aa(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:n}=e;return Zl(n)}return!1}function Dn(e,t){let{node:n}=e,r=[Z(e,t,"returnType")];return n.predicate&&r.push(t("predicate")),r}function ga(e,t,n){let{node:r}=e,u=[];if(r.argument){let i=n("argument");nc(t,r.argument)?i=["(",E([A,i]),A,")"]:(je(r.argument)||t.experimentalTernaries&&r.argument.type==="ConditionalExpression"&&(r.argument.consequent.type==="ConditionalExpression"||r.argument.alternate.type==="ConditionalExpression"))&&(i=c([k("("),E([f,i]),f,k(")")])),u.push(" ",i)}let a=g(r,b.Dangling),o=t.semi&&a&&g(r,b.Last|b.Line);return o&&u.push(";"),a&&u.push(" ",X(e,t)),!o&&t.semi&&u.push(";"),u}function ec(e,t,n){return["return",ga(e,t,n)]}function tc(e,t,n){return["throw",ga(e,t,n)]}function nc(e,t){if(Ee(e.originalText,t)||g(t,b.Leading,n=>ce(e.originalText,j(n),N(n)))&&!Y(t))return!0;if(zn(t)){let n=t,r;for(;r=ci(n);)if(n=r,Ee(e.originalText,n))return!0}return!1}function rc(e,t){if(t.semi||ha(e,t)||Ta(e,t)||xa(e,t))return!1;let{node:n,key:r,parent:u}=e;return!!(n.type==="ExpressionStatement"&&(r==="body"&&(u.type==="Program"||u.type==="BlockStatement"||u.type==="StaticBlock"||u.type==="TSModuleBlock")||r==="consequent"&&u.type==="SwitchCase")&&e.call(()=>Ca(e,t),"expression"))}function Ca(e,t){let{node:n}=e;switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!Aa(e,t))return!0;break;case"UnaryExpression":{let{prefix:r,operator:u}=n;if(r&&(u==="+"||u==="-"))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(Y(n))return!0}return Ve(e,t)?!0:zn(n)?e.call(()=>Ca(e,t),...Du(n)):!1}var dr=({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 ha(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&dr(e)&&Y(e.node.expression)}function xa(e,t){return t.__isHtmlInlineEventHandler&&dr(e)}function Ta(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&dr(e)}var uc=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Ct=uc;function ac(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var oc=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=this.#e,n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(O(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${ac([...this.#e].join(""))}]+`,r=new RegExp(t?`(${n})`:n,"u");return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,n=>t.has(n))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,n=>!t.has(n))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,n=>t.has(n))}#t(e){let t=Number.POSITIVE_INFINITY;for(let n of e.split(`
40
+ `)){if(n.length===0)continue;let r=this.getLeadingWhitespaceCount(n);if(r===0)return 0;n.length!==r&&r<t&&(t=r)}return t===Number.POSITIVE_INFINITY?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
41
+ `).map(n=>n.slice(t)).join(`
42
+ `)}},ic=oc,Qt=new ic(`
43
+ \r `),xn=e=>e===""||e===x||e===A||e===f;function sc(e,t,n){let{node:r}=e;if(r.type==="JSXElement"&&Tc(r))return[n("openingElement"),n("closingElement")];let u=r.type==="JSXElement"?n("openingElement"):n("openingFragment"),a=r.type==="JSXElement"?n("closingElement"):n("closingFragment");if(r.children.length===1&&r.children[0].type==="JSXExpressionContainer"&&(r.children[0].expression.type==="TemplateLiteral"||r.children[0].expression.type==="TaggedTemplateExpression"))return[u,...e.map(n,"children"),a];r.children=r.children.map(h=>Sc(h)?{type:"JSXText",value:" ",raw:" "}:h);let o=r.children.some(Y),i=r.children.filter(h=>h.type==="JSXExpressionContainer").length>1,p=r.type==="JSXElement"&&r.openingElement.attributes.length>1,l=re(u)||o||p||i,y=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',d=y?x:k([D,f]," "),m=r.openingElement?.name?.name==="fbt",F=pc(e,t,n,d,m),B=r.children.some(h=>Lt(h));for(let h=F.length-2;h>=0;h--){let T=F[h]===""&&F[h+1]==="",I=F[h]===A&&F[h+1]===""&&F[h+2]===A,J=(F[h]===f||F[h]===A)&&F[h+1]===""&&F[h+2]===d,H=F[h]===d&&F[h+1]===""&&(F[h+2]===f||F[h+2]===A),q=F[h]===d&&F[h+1]===""&&F[h+2]===d,$=F[h]===f&&F[h+1]===""&&F[h+2]===A||F[h]===A&&F[h+1]===""&&F[h+2]===f;I&&B||T||J||q||$?F.splice(h,2):H&&F.splice(h+1,2)}for(;F.length>0&&xn(O(0,F,-1));)F.pop();for(;F.length>1&&xn(F[0])&&xn(F[1]);)F.shift(),F.shift();let C=[""];for(let[h,T]of F.entries()){if(T===d){if(h===1&&Ms(F[h-1])){if(F.length===2){C.push([C.pop(),D]);continue}C.push([D,A],"");continue}else if(h===F.length-1){C.push([C.pop(),D]);continue}else if(F[h-1]===""&&F[h-2]===A){C.push([C.pop(),D]);continue}}h%2===0?C.push([C.pop(),T]):C.push(T,""),re(T)&&(l=!0)}let v=B?Xu(C):c(C,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&r.children.includes(t.cursorNode)?v=[Vt,v,Vt]:t.nodeBeforeCursor?.type==="JSXText"&&r.children.includes(t.nodeBeforeCursor)?v=[Vt,v]:t.nodeAfterCursor?.type==="JSXText"&&r.children.includes(t.nodeAfterCursor)&&(v=[v,Vt]),y)return v;let S=c([u,E([A,v]),A,a]);return l?S:He([c([u,...F,a]),S])}function pc(e,t,n,r,u){let a="",o=[a];function i(l){a=l,o.push([o.pop(),l])}function p(l){l!==""&&(a=l,o.push(l,""))}return e.each(({node:l,next:y})=>{if(l.type==="JSXText"){let D=se(l);if(Lt(l)){let d=Qt.split(D,!0);d[0]===""&&(d.shift(),/\n/u.test(d[0])?p(Gr(u,d[1],l,y)):p(r),d.shift());let m;if(O(0,d,-1)===""&&(d.pop(),m=d.pop()),d.length===0)return;for(let[F,B]of d.entries())F%2===1?p(x):i(B);m!==void 0?/\n/u.test(m)?p(Gr(u,a,l,y)):p(r):p(Ur(u,a,l,y))}else/\n/u.test(D)?D.match(/\n/gu).length>1&&p(A):p(r)}else{let D=n();if(i(D),y&&Lt(y)){let d=Qt.trim(se(y)),[m]=Qt.split(d);p(Ur(u,m,l,y))}else p(A)}},"children"),o}function Ur(e,t,n,r){return e?"":n.type==="JSXElement"&&!n.closingElement||r?.type==="JSXElement"&&!r.closingElement?t.length===1?f:A:f}function Gr(e,t,n,r){return e?A:t.length===1?n.type==="JSXElement"&&!n.closingElement||r?.type==="JSXElement"&&!r.closingElement?A:f:A}var lc=w(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function cc(e,t,n){let{parent:r}=e;if(lc(r))return t;let u=Dc(e),a=Ve(e,n);return c([a?"":k("("),E([f,t]),f,a?"":k(")")],{shouldBreak:u})}function Dc(e){return e.match(void 0,(t,n)=>n==="body"&&t.type==="ArrowFunctionExpression",(t,n)=>n==="arguments"&&L(t))&&(e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer"))}function yc(e,t,n){let{node:r}=e,u=[n("name")];if(r.value){let a;if(Q(r.value)){let o=se(r.value),i=z(0,z(0,o.slice(1,-1),"&apos;","'"),"&quot;",'"'),p=ou(i,t.jsxSingleQuote);i=p==='"'?z(0,i,'"',"&quot;"):z(0,i,"'","&apos;"),a=e.call(()=>de(e,Ye(p+i+p),t),"value")}else a=n("value");u.push("=",a)}return u}function dc(e,t,n){let{node:r}=e,u=(a,o)=>a.type==="JSXEmptyExpression"||!g(a)&&(ee(a)||Ae(a)||a.type==="ArrowFunctionExpression"||a.type==="AwaitExpression"&&(u(a.argument,a)||a.argument.type==="JSXElement")||L(a)||a.type==="ChainExpression"&&L(a.expression)||a.type==="FunctionExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||a.type==="DoExpression"||Y(o)&&(a.type==="ConditionalExpression"||je(a)));return u(r.expression,e.parent)?c(["{",n("expression"),Pe,"}"]):c(["{",E([f,n("expression")]),f,Pe,"}"])}function mc(e,t,n){let{node:r}=e,u=g(r.name)||g(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!u)return["<",n("name"),n("typeArguments")," />"];if(r.attributes?.length===1&&Q(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
44
+ `)&&!u&&!g(r.attributes[0]))return c(["<",n("name"),n("typeArguments")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);let a=r.attributes?.some(i=>Q(i.value)&&i.value.value.includes(`
45
+ `)),o=t.singleAttributePerLine&&r.attributes.length>1?A:x;return c(["<",n("name"),n("typeArguments"),E(e.map(()=>[o,n()],"attributes")),...fc(r,t,u)],{shouldBreak:a})}function fc(e,t,n){return e.selfClosing?[x,"/>"]:Fc(e,t,n)?[">"]:[f,">"]}function Fc(e,t,n){let r=e.attributes.length>0&&g(O(0,e.attributes,-1),b.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function Ec(e,t,n){let{node:r}=e,u=["</"],a=n("name");return g(r.name,b.Leading|b.Line)?u.push(E([A,a]),A):g(r.name,b.Leading|b.Block)?u.push(" ",a):u.push(a),u.push(">"),u}function Ac(e,t){let{node:n}=e,r=g(n),u=g(n,b.Line),a=n.type==="JSXOpeningFragment";return[a?"<":"</",E([u?A:r&&!a?" ":"",X(e,t)]),u?A:"",">"]}function gc(e,t,n){let r=de(e,sc(e,t,n),t);return cc(e,r,t)}function Cc(e,t){let{node:n}=e,r=g(n,b.Line);return[X(e,t,{indent:r}),r?A:""]}function hc(e,t,n){let{node:r}=e;return["{",e.call(({node:u})=>{let a=["...",n()];return g(u)?[E([f,de(e,a,t)]),f]:a},r.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function xc(e,t,n){let{node:r}=e;if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return yc(e,t,n);case"JSXIdentifier":return r.name;case"JSXNamespacedName":return M(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return M(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(e,t,n);case"JSXExpressionContainer":return dc(e,t,n);case"JSXFragment":case"JSXElement":return gc(e,t,n);case"JSXOpeningElement":return mc(e,t,n);case"JSXClosingElement":return Ec(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return Ac(e,t);case"JSXEmptyExpression":return Cc(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Ct(r,"JSX")}}function Tc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Lt(t)}function Lt(e){return e.type==="JSXText"&&(Qt.hasNonWhitespaceCharacter(se(e))||!/\n/u.test(se(e)))}function Sc(e){return e.type==="JSXExpressionContainer"&&Q(e.expression)&&e.expression.value===" "&&!g(e.expression)}function bc(e){let{node:t,parent:n}=e;if(!Y(t)||!Y(n))return!1;let{index:r,siblings:u}=e,a;for(let o=r;o>0;o--){let i=u[o-1];if(!(i.type==="JSXText"&&!Lt(i))){a=i;break}}return a?.type==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&sn(a.expression)}function Bc(e){return sn(e.node)||bc(e)}var mr=Bc;function vc(e,t,n){let{node:r}=e;if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return n("node");case"NGPipeExpression":return ra(e,t,n);case"NGChainedExpression":return c(M([";",x],e.map(()=>wc(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Vr(e)?" ":[";",x],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),r.alias===null?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:u,parent:a}=e,o=Vr(e)||Pc(e)||(u===1&&(r.key.name==="then"||r.key.name==="else"||r.key.name==="as")||u===2&&(r.key.name==="else"&&a.body[u-1].type==="NGMicrosyntaxKeyedExpression"&&a.body[u-1].key.name==="then"||r.key.name==="track"))&&a.body[0].type==="NGMicrosyntaxExpression";return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),r.value===null?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new Ct(r,"Angular")}}function Vr({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function Pc(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 kc=w(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function wc({node:e}){return vn(e,kc)}function Sa(e,t,n){let{node:r}=e;return c([M(x,e.map(n,"decorators")),ba(r,t)?A:x])}function Ic(e,t,n){return Ba(e.node)?[M(A,e.map(n,"declaration","decorators")),A]:""}function Nc(e,t,n){let{node:r,parent:u}=e,{decorators:a}=r;if(!_(a)||Ba(u)||mr(e))return"";let o=r.type==="ClassExpression"||r.type==="ClassDeclaration"||ba(r,t);return[e.key==="declaration"&&Di(u)?A:o?Le:"",M(x,e.map(n,"decorators")),x]}function ba(e,t){return e.decorators.some(n=>ie(t.originalText,N(n)))}function Ba(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return _(t)&&an(e,t[0])}var Tn=new WeakMap;function va(e){return Tn.has(e)||Tn.set(e,e.type==="ConditionalExpression"&&!ne(e,t=>t.type==="ObjectExpression")),Tn.get(e)}var jc=e=>e.type==="SequenceExpression";function Mc(e,t,n,r={}){let u=[],a,o=[],i=!1,p=!r.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",l;(function v(){let{node:S}=e,h=Lc(e,t,n,r);if(u.length===0)u.push(h);else{let{leading:T,trailing:I}=pn(e,t);u.push([T,h]),o.unshift(I)}p&&(i||(i=S.returnType&&te(S).length>0||S.typeParameters||te(S).some(T=>T.type!=="Identifier"))),!p||S.body.type!=="ArrowFunctionExpression"?(a=n("body",r),l=S.body):e.call(v,"body")})();let y=!Ee(t.originalText,l)&&(jc(l)||Oc(l,a,t)||!i&&va(l)),D=e.key==="callee"&&mt(e.parent),d=Symbol("arrow-chain"),m=Jc(e,r,{signatureDocs:u,shouldBreak:i}),F=!1,B=!1,C=!1;return p&&(D||r.assignmentLayout)&&(B=!0,C=!g(e.node,b.Leading&b.Line),F=r.assignmentLayout==="chain-tail-arrow-chain"||D&&!y),a=qc(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:l,shouldPutBodyOnSameLine:y}),c([c(B?E([C?f:"",m]):m,{shouldBreak:F,id:d})," =>",p?jt(a,{groupId:d}):c(a),p&&D?k(f,"",{groupId:d}):""])}function Lc(e,t,n,r){let{node:u}=e,a=[];if(u.async&&a.push("async "),Aa(e,t))a.push(n(["params",0]));else{let i=r.expandLastArg||r.expandFirstArg,p=Dn(e,n);if(i){if(re(p))throw new nn;p=c(tn(p))}a.push(c([ot(e,t,n,i,!0),p]))}let o=X(e,t,{filter(i){let p=Ft(t.originalText,N(i));return p!==!1&&t.originalText.slice(p,p+2)==="=>"}});return o&&a.push(" ",o),a}function Oc(e,t,n){return ee(e)||Ae(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Y(e)||t.label?.hug!==!1&&(t.label?.embed||Eu(e,n.originalText))}function Jc(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:u,key:a}=e;return a!=="callee"&&mt(u)||je(u)?c([n[0]," =>",E([x,M([" =>",x],n.slice(1))])],{shouldBreak:r}):a==="callee"&&mt(u)||t.assignmentLayout?c(M([" =>",x],n),{shouldBreak:r}):c(E(M([" =>",x],n)),{shouldBreak:r})}function qc(e,t,n,{bodyDoc:r,bodyComments:u,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:i,parent:p}=e,l=n.expandLastArg&&ke(t,"all")?k(","):"",y=(n.expandLastArg||p.type==="JSXExpressionContainer")&&!g(i)?f:"";return o&&va(a)?[" ",c([k("","("),E([f,r]),k("",")"),l,y]),u]:o?[" ",r,u]:[E([x,r,u]),l,y]}var Xc=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},Rc=$n("findLast",function(){if(Array.isArray(this))return Xc}),_c=Rc;function Xn(e,t,n,r){let{node:u}=e,a=[],o=_c(0,u[r],i=>i.type!=="EmptyStatement");return e.each(({node:i})=>{i.type!=="EmptyStatement"&&(a.push(n()),i!==o&&(a.push(A),we(i,t)&&a.push(A)))},r),a}function Pa(e,t,n){let r=Wc(e,t,n),{node:u,parent:a}=e;if(u.type==="Program"&&a?.type!=="ModuleExpression")return r?[r,A]:"";let o=[];if(u.type==="StaticBlock"&&o.push("static "),o.push("{"),r)o.push(E([A,r]),A);else{let i=e.grandparent;a.type==="ArrowFunctionExpression"||a.type==="FunctionExpression"||a.type==="FunctionDeclaration"||a.type==="ComponentDeclaration"||a.type==="HookDeclaration"||a.type==="ObjectMethod"||a.type==="ClassMethod"||a.type==="ClassPrivateMethod"||a.type==="ForStatement"||a.type==="WhileStatement"||a.type==="DoWhileStatement"||a.type==="DoExpression"||a.type==="ModuleExpression"||a.type==="CatchClause"&&!i.finalizer||a.type==="TSModuleDeclaration"||a.type==="MatchStatementCase"||u.type==="StaticBlock"||o.push(A)}return o.push("}"),o}function Wc(e,t,n){let{node:r}=e,u=_(r.directives),a=r.body.some(p=>p.type!=="EmptyStatement"),o=g(r,b.Dangling);if(!u&&!a&&!o)return"";let i=[];return u&&(i.push(Xn(e,t,n,"directives")),(a||o)&&(i.push(A),we(O(0,r.directives,-1),t)&&i.push(A))),a&&i.push(Xn(e,t,n,"body")),o&&i.push(X(e,t)),i}function $c(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}var Uc=$c;function fr(e,t,n){let{node:r}=e,u=[],a=r.type==="ObjectTypeAnnotation",o=!ka(e),i=o?x:A,p=g(r,b.Dangling),[l,y]=a&&r.exact?["{|","|}"]:"{}",D;if(Gc(e,({node:d,next:m,isLast:F})=>{if(D??(D=d),u.push(n()),o&&a){let{parent:B}=e;B.inexact||!F?u.push(","):ke(t)&&u.push(k(","))}!o&&(Vc({node:d,next:m},t)||Ia({node:d,next:m},t))&&u.push(";"),F||(u.push(i),we(d,t)&&u.push(A))}),p&&u.push(X(e,t)),r.type==="ObjectTypeAnnotation"&&r.inexact){let d;g(r,b.Dangling)?d=[g(r,b.Line)||ie(t.originalText,N(O(0,ze(r),-1)))?A:x,"..."]:d=[D?x:"","..."],u.push(d)}if(o){let d=p||t.objectWrap==="preserve"&&D&&ce(t.originalText,j(r),j(D)),m;if(u.length===0)m=l+y;else{let F=t.bracketSpacing?x:f;m=[l,E([F,...u]),F,y]}return e.match(void 0,(F,B)=>B==="typeAnnotation",(F,B)=>B==="typeAnnotation",Pt)||e.match(void 0,(F,B)=>F.type==="FunctionTypeParam"&&B==="typeAnnotation",Pt)?m:c(m,{shouldBreak:d})}return[l,u.length>0?[E([A,u]),A]:"",y]}function ka(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:n,parent:r}=e;return n==="body"&&(r.type==="InterfaceDeclaration"||r.type==="DeclareInterface"||r.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function Gc(e,t){let{node:n}=e;if(n.type==="ClassBody"||n.type==="TSInterfaceBody"){e.each(t,"body");return}if(n.type==="TSTypeLiteral"){e.each(t,"members");return}if(n.type==="ObjectTypeAnnotation"){let r=["properties","indexers","callProperties","internalSlots"].flatMap(u=>e.map(({node:a,index:o})=>({node:a,loc:j(a),selector:[u,o]}),u)).sort((u,a)=>u.loc-a.loc);for(let[u,{node:a,selector:o}]of r.entries())e.call(()=>t({node:a,next:r[u+1]?.node,isLast:u===r.length-1}),...o)}}function Ne(e,t){let{parent:n}=e;return e.callParent(ka)?t.semi||n.type==="ObjectTypeAnnotation"?";":"":n.type==="TSTypeLiteral"?e.isLast?t.semi?k(";"):"":t.semi||Ia({node:e.node,next:e.next},t)?";":k("",";"):""}var Kr=w(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),wa=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:n}=e.key;return t==="Identifier"&&(n==="static"||n==="get"||n==="set")};function Vc({node:e,next:t},n){if(n.semi||!Kr(e))return!1;if(!e.value&&wa(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let r=t.key?.name;if(r==="in"||r==="instanceof")return!0}if(Kr(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 r=t.value?t.value.generator:t.generator;return!!(t.computed||r)}case"TSIndexSignature":return!0}return!1}var Kc=w(["TSPropertySignature"]);function Ia({node:e,next:t},n){return n.semi||!Kc(e)?!1:wa(e)?!0:t?t.type==="TSCallSignatureDeclaration":!1}var Hc=Uc("heritageGroup"),zc=w(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Fr(e,t,n){let{node:r}=e,u=zc(r),a=[De(e),ln(e),u?"interface":"class"],o=ja(e),i=[],p=[];if(r.type!=="InterfaceTypeAnnotation"){r.id&&i.push(" ");for(let y of["id","typeParameters"])if(r[y]){let{leading:D,trailing:d}=e.call(()=>pn(e,t),y);i.push(D,n(y),E(d))}}if(r.superClass){let y=[Zc(e,t,n),n(r.superTypeArguments?"superTypeArguments":"superTypeParameters")],D=e.call(()=>["extends ",de(e,y,t)],"superClass");o?p.push(x,c(D)):p.push(" ",D)}else p.push(bn(e,t,n,"extends"));p.push(bn(e,t,n,"mixins"),bn(e,t,n,"implements"));let l;return o?(l=Hc(r),a.push(c([...i,E(p)],{id:l}))):a.push(...i,...p),!u&&o&&Yc(r.body)?a.push(k(A," ",{groupId:l})):a.push(" "),a.push(n("body")),a}function Yc(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>_(e[t])):_(e.body)}function Na(e){let t=e.superClass?1:0;for(let n of["extends","mixins","implements"])if(Array.isArray(e[n])&&(t+=e[n].length),t>1)return!0;return t>1}function Qc(e){let{node:t}=e;if(g(t.id,b.Trailing)||g(t.typeParameters,b.Trailing)||g(t.superClass)||Na(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&R(t.superClass);let n=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return n?n.type==="InterfaceExtends"&&n.id.type==="QualifiedTypeIdentifier"&&!n.typeParameters||(n.type==="TSClassImplements"||n.type==="TSInterfaceHeritage")&&R(n.expression)&&!n.typeArguments:!1}var Sn=new WeakMap;function ja(e){let{node:t}=e;return Sn.has(t)||Sn.set(t,Qc(e)),Sn.get(t)}function bn(e,t,n,r){let{node:u}=e;if(!_(u[r]))return"";let a=X(e,t,{marker:r}),o=M([",",x],e.map(n,r));if(!Na(u)){let i=[`${r} `,a,o];return ja(e)?[x,c(i)]:[" ",i]}return[x,a,a&&A,r,c(E([x,o]))]}function Zc(e,t,n){let r=n("superClass"),{parent:u}=e;return u.type==="AssignmentExpression"?c(k(["(",E([f,r]),f,")"],r)):r}function Ma(e,t,n){let{node:r}=e,u=[];return _(r.decorators)&&u.push(Sa(e,t,n)),u.push(cn(r)),r.static&&u.push("static "),u.push(ln(e)),r.override&&u.push("override "),u.push(qn(e,t,n)),u}function La(e,t,n){let{node:r}=e,u=[];_(r.decorators)&&u.push(Sa(e,t,n)),u.push(De(e),cn(r)),r.static&&u.push("static "),u.push(ln(e)),r.override&&u.push("override "),r.readonly&&u.push("readonly "),r.variance&&u.push(n("variance")),(r.type==="ClassAccessorProperty"||r.type==="AccessorProperty"||r.type==="TSAbstractAccessorProperty")&&u.push("accessor "),u.push(_t(e,t,n),ue(e),na(e),Z(e,n));let a=r.type==="TSAbstractPropertyDefinition"||r.type==="TSAbstractAccessorProperty";return[Rt(e,t,n,u," =",a?void 0:"value"),t.semi?";":""]}var eD=w(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function Oa(e){return eD(e)?Oa(e.expression):e}var tD=w(["FunctionExpression","ArrowFunctionExpression"]);function nD(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function rD(e,t){if(Ta(e,t)){let n=Oa(e.node.expression);return tD(n)||nD(n)}return!(!t.semi||ha(e,t)||xa(e,t))}function uD(e,t,n){return[n("expression"),rD(e,t)?";":""]}function aD(e,t,n){if(t.__isVueBindings||t.__isVueForBindingLeft){let r=e.map(n,"program","body",0,"params");if(r.length===1)return r[0];let u=M([",",x],r);return t.__isVueForBindingLeft?["(",E([f,c(u)]),f,")"]:u}if(t.__isEmbeddedTypescriptGenericParameters){let r=e.map(n,"program","body",0,"typeParameters","params");return M([",",x],r)}}function oD(e,t){let{node:n}=e;switch(n.type){case"RegExpLiteral":return Hr(n);case"BigIntLiteral":return Rn(n.extra.raw);case"NumericLiteral":return ft(n.extra.raw);case"StringLiteral":return Ye(yt(n.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DirectiveLiteral":return zr(n.extra.raw,t);case"Literal":{if(n.regex)return Hr(n.regex);if(n.bigint)return Rn(n.raw);let{value:r}=n;return typeof r=="number"?ft(n.raw):typeof r=="string"?iD(e)?zr(n.raw,t):Ye(yt(n.raw,t)):String(r)}}}function iD(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Rn(e){return e.toLowerCase()}function Hr({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var sD="use strict";function zr(e,t){let n=e.slice(1,-1);if(n===sD||!(n.includes('"')||n.includes("'"))){let r=t.singleQuote?"'":'"';return r+n+r}return e}function pD(e,t,n){let r=e.originalText.slice(t,n);for(let u of e[Symbol.for("comments")]){let a=j(u);if(a>n)break;let o=N(u);if(o<t)continue;let i=a-t,p=o-t;r=r.slice(0,i)+z(0,r.slice(i,p),/[^\n]/gu," ")+r.slice(p)}return r}var yn=pD,Ja=w(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),lD=w(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function Er(e,t,n){let{node:r,parent:u}=e,a=lD(r),o=r.type==="TSEnumBody"||a,i=Ja(r),p=a&&r.hasUnknownMembers,l=o?"members":i?"attributes":"properties",y=r[l],D=o||r.type==="ObjectPattern"&&u.type!=="FunctionDeclaration"&&u.type!=="FunctionExpression"&&u.type!=="ArrowFunctionExpression"&&u.type!=="ObjectMethod"&&u.type!=="ClassMethod"&&u.type!=="ClassPrivateMethod"&&u.type!=="AssignmentPattern"&&u.type!=="CatchClause"&&r.properties.some(C=>C.value&&(C.value.type==="ObjectPattern"||C.value.type==="ArrayPattern"))||r.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&y.length>0&&cD(r,y[0],t),d=[],m=e.map(({node:C})=>{let v=[...d,c(n())];return d=[",",x],we(C,t)&&d.push(A),v},l);if(p){let C;if(g(r,b.Dangling)){let v=g(r,b.Line);C=[X(e,t),v||ie(t.originalText,N(O(0,ze(r),-1)))?A:x,"..."]}else C=["..."];m.push([...d,...C])}let F=!(p||O(0,y,-1)?.type==="RestElement"),B;if(m.length===0){if(!g(r,b.Dangling))return["{}",Z(e,n)];B=c(["{",X(e,t,{indent:!0}),f,"}",ue(e),Z(e,n)])}else{let C=t.bracketSpacing?x:f;B=["{",E([C,...m]),k(F&&ke(t)?",":""),C,"}",ue(e),Z(e,n)]}return e.match(C=>C.type==="ObjectPattern"&&!_(C.decorators),Pt)||Re(r)&&(e.match(void 0,(C,v)=>v==="typeAnnotation",(C,v)=>v==="typeAnnotation",Pt)||e.match(void 0,(C,v)=>C.type==="FunctionTypeParam"&&v==="typeAnnotation",Pt))||!D&&e.match(C=>C.type==="ObjectPattern",C=>C.type==="AssignmentExpression"||C.type==="VariableDeclarator")?B:c(B,{shouldBreak:D})}function cD(e,t,n){let r=n.originalText,u=j(e),a=j(t);if(Ja(e)){let o=j(e),i=yn(n,o,a);u=o+i.lastIndexOf("{")}return ce(r,u,a)}function DD(e,t,n){let{node:r}=e;return["import",r.phase?` ${r.phase}`:"",Ra(r),Wa(e,t,n),_a(e,t,n),Ua(e,t,n),t.semi?";":""]}var qa=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function Xa(e,t,n){let{node:r}=e,u=[Ic(e,t,n),De(e),"export",qa(r)?" default":""],{declaration:a,exported:o}=r;return g(r,b.Dangling)&&(u.push(" ",X(e,t)),Au(r)&&u.push(A)),a?u.push(" ",n("declaration")):(u.push(mD(r)),r.type==="ExportAllDeclaration"||r.type==="DeclareExportAllDeclaration"?(u.push(" *"),o&&u.push(" as ",n("exported"))):u.push(Wa(e,t,n)),u.push(_a(e,t,n),Ua(e,t,n))),u.push(dD(r,t)),u}var yD=w(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function dD(e,t){return t.semi&&(!e.declaration||qa(e)&&!yD(e.declaration))?";":""}function Ar(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Ra(e,t){return Ar(e.importKind,t)}function mD(e){return Ar(e.exportKind)}function _a(e,t,n){let{node:r}=e;return r.source?[$a(r,t)?" from":""," ",n("source")]:""}function Wa(e,t,n){let{node:r}=e;if(!$a(r,t))return"";let u=[" "];if(_(r.specifiers)){let a=[],o=[];e.each(()=>{let i=e.node.type;if(i==="ExportNamespaceSpecifier"||i==="ExportDefaultSpecifier"||i==="ImportNamespaceSpecifier"||i==="ImportDefaultSpecifier")a.push(n());else if(i==="ExportSpecifier"||i==="ImportSpecifier")o.push(n());else throw new Ct(r,"specifier")},"specifiers"),u.push(M(", ",a)),o.length>0&&(a.length>0&&u.push(", "),o.length>1||a.length>0||r.specifiers.some(i=>g(i))?u.push(c(["{",E([t.bracketSpacing?x:f,M([",",x],o)]),k(ke(t)?",":""),t.bracketSpacing?x:f,"}"])):u.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else u.push("{}");return u}function $a(e,t){return e.type!=="ImportDeclaration"||_(e.specifiers)||e.importKind==="type"?!0:yn(t,j(e),j(e.source)).trimEnd().endsWith("from")}function fD(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let n=yn(t,N(e.source),e.attributes?.[0]?j(e.attributes[0]):N(e)).trimStart();return n.startsWith("assert")?"assert":n.startsWith("with")||_(e.attributes)?"with":void 0}var FD=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[n]=t,{type:r,key:u,value:a}=n;return r==="ImportAttribute"&&(u.type==="Identifier"&&u.name==="type"||Q(u)&&u.value==="type")&&Q(a)&&!g(n)&&!g(u)&&!g(a)};function Ua(e,t,n){let{node:r}=e;if(!r.source)return"";let u=fD(r,t);if(!u)return"";let a=Er(e,t,n);return FD(r)&&(a=tn(a)),[` ${u} `,a]}function ED(e,t,n){let{node:r}=e,{type:u}=r,a=u.startsWith("Import"),o=a?"imported":"local",i=a?"local":"exported",p=r[o],l=r[i],y="",D="";return u==="ExportNamespaceSpecifier"||u==="ImportNamespaceSpecifier"?y="*":p&&(y=n(o)),l&&!AD(r)&&(D=n(i)),[Ar(u==="ImportSpecifier"?r.importKind:r.exportKind,!1),y,y&&D?" as ":"",D]}function AD(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:n}=e;return t.type!==n.type||!zo(t,n)?!1:Q(t)?t.value===n.value&&se(t)===se(n):t.type==="Identifier"?t.name===n.name:!1}function _n(e,t){return["...",t("argument"),Z(e,t)]}function gD(e){let t=[e];for(let n=0;n<t.length;n++){let r=t[n];for(let u of["test","consequent","alternate"]){let a=r[u];if(Y(a))return!0;a.type==="ConditionalExpression"&&t.push(a)}}return!1}function CD(e,t,n){let{node:r}=e,u=r.type==="ConditionalExpression",a=u?"alternate":"falseType",{parent:o}=e,i=u?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return o.type===r.type&&o[a]===r?Ce(2,i):i}var hD=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function xD(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,r=t;for(let u=0;!n;u++){let a=e.getParentNode(u);if(a.type==="ChainExpression"&&a.expression===r||L(a)&&a.callee===r||R(a)&&a.object===r||a.type==="TSNonNullExpression"&&a.expression===r){r=a;continue}a.type==="NewExpression"&&a.callee===r||Fe(a)&&a.expression===r?(n=e.getParentNode(u+1),r=a):n=a}return r===t?!1:n[hD.get(n.type)]===r}function TD(e,t,n){let{node:r}=e,u=r.type==="ConditionalExpression",a=u?"consequent":"trueType",o=u?"alternate":"falseType",i=u?["test"]:["checkType","extendsType"],p=r[a],l=r[o],y=[],D=!1,{parent:d}=e,m=d.type===r.type&&i.some(q=>d[q]===r),F=d.type===r.type&&!m,B,C,v=0;do C=B||r,B=e.getParentNode(v),v++;while(B&&B.type===r.type&&i.every(q=>B[q]!==C));let S=B||d,h=C;if(u&&(Y(r[i[0]])||Y(p)||Y(l)||gD(h))){D=!0,F=!0;let q=U=>[k("("),E([f,U]),f,k(")")],$=U=>U.type==="NullLiteral"||U.type==="Literal"&&U.value===null||U.type==="Identifier"&&U.name==="undefined";y.push(" ? ",$(p)?n(a):q(n(a))," : ",l.type===r.type||$(l)?n(o):q(n(o)))}else{let q=U=>t.useTabs?E(n(U)):Ce(2,n(U)),$=[x,"? ",p.type===r.type?k("","("):"",q(a),p.type===r.type?k("",")"):"",x,": ",q(o)];y.push(d.type!==r.type||d[o]===r||m?$:t.useTabs?qu(E($)):Ce(Math.max(0,t.tabWidth-2),$))}let T=q=>d===S?c(q):q,I=!D&&(R(d)||d.type==="NGPipeExpression"&&d.left===r)&&!d.computed,J=xD(e),H=T([CD(e,t,n),F?y:E(y),u&&I&&!J?f:""]);return m||J?c([E([f,H]),f]):H}function SD(e,t){return(R(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function bD(e,t,n,r){return[...e.map(u=>ze(u)),ze(t),ze(n)].flat().some(u=>he(u)&&ce(r.originalText,j(u),N(u)))}var BD=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function vD(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,r=t;for(let u=0;!n;u++){let a=e.getParentNode(u);if(a.type==="ChainExpression"&&a.expression===r||L(a)&&a.callee===r||R(a)&&a.object===r||a.type==="TSNonNullExpression"&&a.expression===r){r=a;continue}a.type==="NewExpression"&&a.callee===r||Fe(a)&&a.expression===r?(n=e.getParentNode(u+1),r=a):n=a}return r===t?!1:n[BD.get(n.type)]===r}var Bn=e=>[k("("),E([f,e]),f,k(")")];function gr(e,t,n,r){if(!t.experimentalTernaries)return TD(e,t,n);let{node:u}=e,a=u.type==="ConditionalExpression",o=_e(u),i=a?"consequent":"trueType",p=a?"alternate":"falseType",l=a?["test"]:["checkType","extendsType"],y=u[i],D=u[p],d=l.map(Tt=>u[Tt]),{parent:m}=e,F=m.type===u.type,B=F&&l.some(Tt=>m[Tt]===u),C=F&&m[p]===u,v=y.type===u.type,S=D.type===u.type,h=S||C,T=t.tabWidth>2||t.useTabs,I,J,H=0;do J=I||u,I=e.getParentNode(H),H++;while(I&&I.type===u.type&&l.every(Tt=>I[Tt]!==J));let q=I||m,$=r&&r.assignmentLayout&&r.assignmentLayout!=="break-after-operator"&&(m.type==="AssignmentExpression"||m.type==="VariableDeclarator"||m.type==="ClassProperty"||m.type==="PropertyDefinition"||m.type==="ClassPrivateProperty"||m.type==="ObjectProperty"||m.type==="Property"),U=(m.type==="ReturnStatement"||m.type==="ThrowStatement")&&!(v||S),ae=a&&q.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",xe=vD(e),P=SD(u,m),G=o&&Ve(e,t),K=T?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Ie=bD(d,y,D,t)||v||S,Ke=!h&&!F&&!o&&(ae?y.type==="NullLiteral"||y.type==="Literal"&&y.value===null:Zn(y,t)&&Br(u.test,3)),Wt=h||C||o&&!F||F&&a&&Br(u.test,1)||Ke,Cr=[];!v&&g(y,b.Dangling)&&e.call(()=>{Cr.push(X(e,t),A)},"consequent");let ht=[];g(u.test,b.Dangling)&&e.call(()=>{ht.push(X(e,t))},"test"),!S&&g(D,b.Dangling)&&e.call(()=>{ht.push(X(e,t))},"alternate"),g(u,b.Dangling)&&ht.push(X(e,t));let hr=Symbol("test"),lo=Symbol("consequent"),$t=Symbol("test-and-consequent"),co=a?[Bn(n("test")),u.test.type==="ConditionalExpression"?Le:""]:[n("checkType")," ","extends"," ",_e(u.extendsType)||u.extendsType.type==="TSMappedType"?n("extendsType"):c(Bn(n("extendsType")))],xr=c([co," ?"],{id:hr}),Do=n(i),Ut=E([v||ae&&(Y(y)||F||h)?A:x,Cr,Do]),yo=Wt?c([xr,h?Ut:k(Ut,c(Ut,{id:lo}),{groupId:hr})],{id:$t}):[xr,Ut],dn=n(p),Tr=Ke?k(dn,qu(Bn(dn)),{groupId:$t}):dn,xt=[yo,ht.length>0?[E([A,ht]),A]:S?A:Ke?k(x," ",{groupId:$t}):x,":",S?" ":T?Wt?k(K,k(h||Ke?" ":K," "),{groupId:$t}):k(K," "):" ",S?Tr:c([E(Tr),ae&&!Ke?f:""]),P&&!xe?f:"",Ie?Le:""];return $&&!Ie?c(E([f,c(xt)])):$||U?c(E(xt)):xe||o&&B?c([E([f,xt]),G?f:""]):m===q?c(xt):xt}function PD(e,t,n,r){let{node:u}=e;if(Yn(u))return oD(e,t);switch(u.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[X(e,t),n("node"),A];case"File":return aD(e,t,n)??n("program");case"ExpressionStatement":return uD(e,t,n);case"ChainExpression":return n("expression");case"ParenthesizedExpression":return!g(u.expression)&&(Ae(u.expression)||ee(u.expression))?["(",n("expression"),")"]:c(["(",E([f,n("expression")]),f,")"]);case"AssignmentExpression":return ql(e,t,n);case"VariableDeclarator":return Xl(e,t,n);case"BinaryExpression":case"LogicalExpression":return ra(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return jl(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return wl(e,t,n);case"Identifier":return[u.name,ue(e),na(e),Z(e,n)];case"V8IntrinsicIdentifier":return["%",u.name];case"SpreadElement":return _n(e,n);case"RestElement":return _n(e,n);case"FunctionDeclaration":case"FunctionExpression":return Ea(e,t,n,r);case"ArrowFunctionExpression":return Mc(e,t,n,r);case"YieldExpression":return[`yield${u.delegate?"*":""}`,u.argument?[" ",n("argument")]:""];case"AwaitExpression":{let a=["await"];if(u.argument){a.push(" ",n("argument"));let{parent:o}=e;if(L(o)&&o.callee===u||R(o)&&o.object===u){a=[E([f,...a]),f];let i=e.findAncestor(p=>p.type==="AwaitExpression"||p.type==="BlockStatement");if(i?.type!=="AwaitExpression"||!ne(i.argument,p=>p===u))return c(a)}}return a}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Xa(e,t,n);case"ImportDeclaration":return DD(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return ED(e,t,n);case"ImportAttribute":return hn(e,t,n);case"Program":case"BlockStatement":case"StaticBlock":return Pa(e,t,n);case"ClassBody":return fr(e,t,n);case"ThrowStatement":return tc(e,t,n);case"ReturnStatement":return ec(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return rn(e,t,n);case"ObjectExpression":case"ObjectPattern":return Er(e,t,n);case"Property":return Jt(u)?qn(e,t,n):hn(e,t,n);case"ObjectProperty":return hn(e,t,n);case"ObjectMethod":return qn(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":return Dr(e,t,n);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let i=[];return e.each(({isFirst:p})=>{p?i.push(n()):i.push(",",E([x,n()]))},"expressions"),c(i)}let o=M([",",x],e.map(n,"expressions"));return(a.type==="ReturnStatement"||a.type==="ThrowStatement")&&e.key==="argument"||a.type==="ArrowFunctionExpression"&&e.key==="body"?c(k([E([f,o]),f],o)):c(o)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),t.semi?";":""];case"UnaryExpression":{let a=[u.operator];return/[a-z]$/u.test(u.operator)&&a.push(" "),g(u.argument)?a.push(c(["(",E([f,n("argument")]),f,")"])):a.push(n("argument")),a}case"UpdateExpression":return[u.prefix?u.operator:"",n("argument"),u.prefix?"":u.operator];case"ConditionalExpression":return gr(e,t,n,r);case"VariableDeclaration":{let a=e.map(n,"declarations"),o=e.parent,i=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",p=u.declarations.some(y=>y.init),l;return a.length===1&&!g(u.declarations[0])?l=a[0]:a.length>0&&(l=E(a[0])),c([De(e),u.kind,l?[" ",l]:"",E(a.slice(1).map(y=>[",",p&&!i?A:x,y])),t.semi&&!(i&&o.body!==u)?";":""])}case"WithStatement":return c(["with (",n("object"),")",qe(u.body,n("body"))]);case"IfStatement":{let a=qe(u.consequent,n("consequent")),o=[c(["if (",c([E([f,n("test")]),f]),")",a])];if(u.alternate){let i=g(u.consequent,b.Trailing|b.Line)||Au(u),p=u.consequent.type==="BlockStatement"&&!i;o.push(p?" ":A),g(u,b.Dangling)&&o.push(X(e,t),i?A:" "),o.push("else",c(qe(u.alternate,n("alternate"),u.alternate.type==="IfStatement")))}return o}case"ForStatement":{let a=qe(u.body,n("body")),o=X(e,t),i=o?[o,f]:"";return!u.init&&!u.test&&!u.update?[i,c(["for (;;)",a])]:[i,c(["for (",c([E([f,n("init"),";",x,n("test"),";",u.update?[x,n("update")]:k("",x)]),f]),")",a])]}case"WhileStatement":return c(["while (",c([E([f,n("test")]),f]),")",qe(u.body,n("body"))]);case"ForInStatement":return c(["for (",n("left")," in ",n("right"),")",qe(u.body,n("body"))]);case"ForOfStatement":return c(["for",u.await?" await":""," (",n("left")," of ",n("right"),")",qe(u.body,n("body"))]);case"DoWhileStatement":{let a=qe(u.body,n("body"));return[c(["do",a]),u.body.type==="BlockStatement"?" ":A,"while (",c([E([f,n("test")]),f]),")",t.semi?";":""]}case"DoExpression":return[u.async?"async ":"","do ",n("body")];case"BreakStatement":case"ContinueStatement":return[u.type==="BreakStatement"?"break":"continue",u.label?[" ",n("label")]:"",t.semi?";":""];case"LabeledStatement":return[n("label"),`:${u.body.type==="EmptyStatement"&&!g(u.body,b.Leading)?"":" "}`,n("body")];case"TryStatement":return["try ",n("block"),u.handler?[" ",n("handler")]:"",u.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(u.param){let a=g(u.param,i=>!he(i)||i.leading&&ie(t.originalText,N(i))||i.trailing&&ie(t.originalText,j(i),{backwards:!0})),o=n("param");return["catch ",a?["(",E([f,o]),f,") "]:["(",o,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[c(["switch (",E([f,n("discriminant")]),f,")"])," {",u.cases.length>0?E([A,M(A,e.map(({node:a,isLast:o})=>[n(),!o&&we(a,t)?A:""],"cases"))]):"",A,"}"];case"SwitchCase":{let a=[];u.test?a.push("case ",n("test"),":"):a.push("default:"),g(u,b.Dangling)&&a.push(" ",X(e,t));let o=u.consequent.filter(i=>i.type!=="EmptyStatement");if(o.length>0){let i=Xn(e,t,n,"consequent");a.push(o.length===1&&o[0].type==="BlockStatement"?[" ",i]:E([A,i]))}return a}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Fr(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Ma(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return La(e,t,n);case"TemplateElement":return Ye(u.value.raw);case"TemplateLiteral":return Vu(e,t,n);case"TaggedTemplateExpression":return rp(e,t,n);case"PrivateIdentifier":return["#",u.name];case"PrivateName":return["#",n("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",n("body")];case"VoidPattern":return"void";case"EmptyStatement":if(Hn(e))return";";default:throw new Ct(u,"ESTree")}}function Ga(e){return[e("elementType"),"[]"]}var kD=w(["SatisfiesExpression","TSSatisfiesExpression"]);function Va(e,t,n){let{parent:r,node:u,key:a}=e,o=u.type==="AsConstExpression"?"const":n("typeAnnotation"),i=[n("expression")," ",kD(u)?"satisfies":"as"," ",o];return a==="callee"&&L(r)||a==="object"&&R(r)?c([E([f,...i]),f]):i}function wD(e,t,n){let{node:r}=e,u=[De(e),"component"];r.id&&u.push(" ",n("id")),u.push(n("typeParameters"));let a=ID(e,t,n);return r.rendersType?u.push(c([a," ",n("rendersType")])):u.push(c([a])),r.body&&u.push(" ",n("body")),t.semi&&r.type==="DeclareComponent"&&u.push(";"),u}function ID(e,t,n){let{node:r}=e,u=r.params;if(r.rest&&(u=[...u,r.rest]),u.length===0)return["(",X(e,t,{filter:o=>ge(t.originalText,N(o))===")"}),")"];let a=[];return jD(e,(o,i)=>{let p=i===u.length-1;p&&r.rest&&a.push("..."),a.push(n()),!p&&(a.push(","),we(u[i],t)?a.push(A,A):a.push(x))}),["(",E([f,...a]),k(ke(t,"all")&&!ND(r,u)?",":""),f,")"]}function ND(e,t){return e.rest||O(0,t,-1)?.type==="RestElement"}function jD(e,t){let{node:n}=e,r=0,u=a=>t(a,r++);e.each(u,"params"),n.rest&&e.call(u,"rest")}function MD(e,t,n){let{node:r}=e;return r.shorthand?n("local"):[n("name")," as ",n("local")]}function LD(e,t,n){let{node:r}=e,u=[];return r.name&&u.push(n("name"),r.optional?"?: ":": "),u.push(n("typeAnnotation")),u}function Ka(e,t,n){return Er(e,t,n)}function OD(e,t,n){let{node:r}=e;return[r.type==="EnumSymbolBody"||r.explicitType?`of ${r.type.slice(4,-4).toLowerCase()} `:"",Ka(e,t,n)]}function Ha(e,t){let{node:n}=e,r=t("id");n.computed&&(r=["[",r,"]"]);let u="";return n.initializer&&(u=t("initializer")),n.init&&(u=t("init")),u?[r," = ",u]:r}function za(e,t){let{node:n}=e;return[De(e),n.const?"const ":"","enum ",t("id")," ",t("body")]}function Ya(e,t,n){let{node:r}=e,u=[ln(e)];(r.type==="TSConstructorType"||r.type==="TSConstructSignatureDeclaration")&&u.push("new ");let a=ot(e,t,n,!1,!0),o=[];return r.type==="FunctionTypeAnnotation"?o.push(JD(e)?" => ":": ",n("returnType")):o.push(Z(e,n,"returnType")),gt(r,o)&&(a=c(a)),u.push(a,o),[c(u),r.type==="TSConstructSignatureDeclaration"||r.type==="TSCallSignatureDeclaration"?Ne(e,t):""]}function JD(e){let{node:t,parent:n}=e;return t.type==="FunctionTypeAnnotation"&&(mu(n)||!((n.type==="ObjectTypeProperty"||n.type==="ObjectTypeInternalSlot")&&!n.variance&&!n.optional&&an(n,t)||n.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function qD(e,t,n){let{node:r}=e,u=["hook"];r.id&&u.push(" ",n("id"));let a=ot(e,t,n,!1,!0),o=Dn(e,n),i=gt(r,o);return u.push(c([i?c(a):a,o]),r.body?" ":"",n("body")),u}function XD(e,t,n){let{node:r}=e,u=[De(e),"hook"];return r.id&&u.push(" ",n("id")),t.semi&&u.push(";"),u}function Yr(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function RD(e,t,n){let{node:r}=e,u=ot(e,t,n,!1,!0),a=[Yr(e)?": ":" => ",n("returnType")];return c([Yr(e)?"":"hook ",gt(r,a)?c(u):u,a])}function Qa(e,t,n){return[n("objectType"),ue(e),"[",n("indexType"),"]"]}function Za(e,t,n){return["infer ",n("typeParameter")]}function eo(e,t,n){let r=!1;return c(e.map(({isFirst:u,previous:a,node:o,index:i})=>{let p=n();if(u)return p;let l=Re(o),y=Re(a);return y&&l?[" & ",r?E(p):p]:!y&&!l||Ee(t.originalText,o)?t.experimentalOperatorPosition==="start"?E([x,"& ",p]):E([" &",x,p]):(i>1&&(r=!0),[" & ",i>1?E(p):p])},"types"))}function _D(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function WD(e,t,n){let{node:r}=e;return[c([r.variance?n("variance"):"","[",E([n("keyTparam")," in ",n("sourceType")]),"]",_D(r.optional),": ",n("propType")]),Ne(e,t)]}function Qr(e,t){return e==="+"||e==="-"?e+t:t}function $D(e,t,n){let{node:r}=e,u=!1;if(t.objectWrap==="preserve"){let a=j(r),o=yn(t,a+1,j(r.key)),i=a+1+o.search(/\S/u);ce(t.originalText,a,i)&&(u=!0)}return c(["{",E([t.bracketSpacing?x:f,g(r,b.Dangling)?c([X(e,t),A]):"",c([r.readonly?[Qr(r.readonly,"readonly")," "]:"","[",n("key")," in ",n("constraint"),r.nameType?[" as ",n("nameType")]:"","]",r.optional?Qr(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation")]),t.semi?k(";"):""]),t.bracketSpacing?x:f,"}"],{shouldBreak:u})}function UD(e,t,n){let{node:r}=e;return[c(["match (",E([f,n("argument")]),f,")"])," {",r.cases.length>0?E([A,M(A,e.map(({node:u,isLast:a})=>[n(),!a&&we(u,t)?A:""],"cases"))]):"",A,"}"]}function GD(e,t,n){let{node:r}=e,u=g(r,b.Dangling)?[" ",X(e,t)]:[],a=r.type==="MatchStatementCase"?[" ",n("body")]:E([x,n("body"),","]);return[n("pattern"),r.guard?c([E([x,"if (",n("guard"),")"])]):"",c([" =>",u,a])]}function VD(e,t,n){let{node:r}=e;switch(r.type){case"MatchOrPattern":return zD(e,t,n);case"MatchAsPattern":return[n("pattern")," as ",n("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return n("literal");case"MatchUnaryPattern":return[r.operator,n("argument")];case"MatchIdentifierPattern":return n("id");case"MatchMemberPattern":{let u=r.property.type==="Identifier"?[".",n("property")]:["[",E([f,n("property")]),f,"]"];return c([n("base"),u])}case"MatchBindingPattern":return[r.kind," ",n("id")];case"MatchObjectPattern":{let u=e.map(n,"properties");return r.rest&&u.push(n("rest")),c(["{",E([f,M([",",x],u)]),r.rest?"":k(","),f,"}"])}case"MatchArrayPattern":{let u=e.map(n,"elements");return r.rest&&u.push(n("rest")),c(["[",E([f,M([",",x],u)]),r.rest?"":k(","),f,"]"])}case"MatchObjectPatternProperty":return r.shorthand?n("pattern"):c([n("key"),":",E([x,n("pattern")])]);case"MatchRestPattern":{let u=["..."];return r.argument&&u.push(n("argument")),u}}}var to=w(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function KD(e){let{patterns:t}=e;if(t.some(r=>g(r)))return!1;let n=t.find(r=>r.type==="MatchObjectPattern");return n?t.every(r=>r===n||to(r)):!1}function HD(e){return to(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?KD(e):!1}function zD(e,t,n){let{node:r}=e,{parent:u}=e,a=u.type!=="MatchStatementCase"&&u.type!=="MatchExpressionCase"&&u.type!=="MatchArrayPattern"&&u.type!=="MatchObjectPatternProperty"&&!Ee(t.originalText,r),o=HD(r),i=e.map(()=>{let l=n();return o||(l=Ce(2,l)),de(e,l,t)},"patterns");if(o)return M(" | ",i);let p=[k(["| "]),M([x,"| "],i)];return Ve(e,t)?c([E([k([f]),p]),f]):u.type==="MatchArrayPattern"&&u.elements.length>1?c([E([k(["(",f]),p]),f,k(")")]):c(a?E(p):p)}function YD(e,t,n){let{node:r}=e,u=[De(e),"opaque type ",n("id"),n("typeParameters")];if(r.supertype&&u.push(": ",n("supertype")),r.lowerBound||r.upperBound){let a=[];r.lowerBound&&a.push(E([x,"super ",n("lowerBound")])),r.upperBound&&a.push(E([x,"extends ",n("upperBound")])),u.push(c(a))}return r.impltype&&u.push(" = ",n("impltype")),u.push(t.semi?";":""),u}function no(e,t,n){let{node:r}=e;return["...",...r.type==="TupleTypeSpreadElement"&&r.label?[n("label"),": "]:[],n("typeAnnotation")]}function ro(e,t,n){let{node:r}=e;return[r.variance?n("variance"):"",n("label"),r.optional?"?":"",": ",n("elementType")]}function uo(e,t,n){let{node:r}=e,u=[De(e),"type ",n("id"),n("typeParameters")],a=r.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Rt(e,t,n,u," =",a),t.semi?";":""]}function QD(e,t,n){let{node:r}=e;return te(r).length===1&&r.type.startsWith("TS")&&!r[n][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function wt(e,t,n,r){let{node:u}=e;if(!u[r])return"";if(!Array.isArray(u[r]))return n(r);let a=on(e.grandparent),o=e.match(p=>!(p[r].length===1&&Re(p[r][0])),void 0,(p,l)=>l==="typeAnnotation",p=>p.type==="Identifier",ma);if(u[r].length===0||!o&&(a||u[r].length===1&&(u[r][0].type==="NullableTypeAnnotation"||gl(u[r][0]))))return["<",M(", ",e.map(n,r)),ZD(e,t),">"];let i=u.type==="TSTypeParameterInstantiation"?"":QD(e,t,r)?",":ke(t)?k(","):"";return c(["<",E([f,M([",",x],e.map(n,r))]),i,f,">"])}function ZD(e,t){let{node:n}=e;if(!g(n,b.Dangling))return"";let r=!g(n,b.Line),u=X(e,t,{indent:!r});return r?u:[u,A]}function ao(e,t,n){let{node:r}=e,u=[r.const?"const ":""],a=r.type==="TSTypeParameter"?n("name"):r.name;if(r.variance&&u.push(n("variance")),r.in&&u.push("in "),r.out&&u.push("out "),u.push(a),r.bound&&(r.usesExtendsBound&&u.push(" extends "),u.push(Z(e,n,"bound"))),r.constraint){let o=Symbol("constraint");u.push(" extends",c(E(x),{id:o}),Pe,jt(n("constraint"),{groupId:o}))}if(r.default){let o=Symbol("default");u.push(" =",c(E(x),{id:o}),Pe,jt(n("default"),{groupId:o}))}return c(u)}function oo(e,t){let{node:n}=e;return[n.type==="TSTypePredicate"&&n.asserts?"asserts ":n.type==="TypePredicate"&&n.kind?`${n.kind} `:"",t("parameterName"),n.typeAnnotation?[" is ",Z(e,t)]:""]}function io({node:e},t){let n=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(n),t("typeArguments")]}function ey(e,t,n){let{node:r}=e;if(lu(r))return r.type.slice(0,-14).toLowerCase();switch(r.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return wD(e,t,n);case"ComponentParameter":return MD(e,t,n);case"ComponentTypeParameter":return LD(e,t,n);case"HookDeclaration":return qD(e,t,n);case"DeclareHook":return XD(e,t,n);case"HookTypeAnnotation":return RD(e,t,n);case"DeclareFunction":return[De(e),"function ",n("id"),n("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",n("id")," ",n("body")];case"DeclareModuleExports":return["declare module.exports",Z(e,n),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",n("id")," ",n("body")];case"DeclareVariable":return[De(e),r.kind??"var"," ",n("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Xa(e,t,n);case"DeclareOpaqueType":case"OpaqueType":return YD(e,t,n);case"DeclareTypeAlias":case"TypeAlias":return uo(e,t,n);case"IntersectionTypeAnnotation":return eo(e,t,n);case"UnionTypeAnnotation":return ua(e,t,n);case"ConditionalTypeAnnotation":return gr(e,t,n);case"InferTypeAnnotation":return Za(e,t,n);case"FunctionTypeAnnotation":return Ya(e,t,n);case"TupleTypeAnnotation":return Dr(e,t,n);case"TupleTypeLabeledElement":return ro(e,t,n);case"TupleTypeSpreadElement":return no(e,t,n);case"GenericTypeAnnotation":return[n("id"),wt(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Qa(e,t,n);case"TypeAnnotation":return ia(e,t,n);case"TypeParameter":return ao(e,t,n);case"TypeofTypeAnnotation":return io(e,n);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return Ga(n);case"DeclareEnum":case"EnumDeclaration":return za(e,n);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return OD(e,t,n);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Ha(e,n);case"FunctionTypeParam":{let u=r.name?n("name"):e.parent.this===r?"this":"";return[u,ue(e),u?": ":"",n("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Fr(e,t,n);case"ObjectTypeAnnotation":return fr(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{let{kind:u}=r;return Qe(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",n("argument")];case"ObjectTypeCallProperty":return[r.static?"static ":"",n("value"),Ne(e,t)];case"ObjectTypeMappedTypeProperty":return WD(e,t,n);case"ObjectTypeIndexer":return[r.static?"static ":"",r.variance?n("variance"):"","[",n("id"),r.id?": ":"",n("key"),"]: ",n("value"),Ne(e,t)];case"ObjectTypeProperty":{let u="";return r.proto?u="proto ":r.static&&(u="static "),[u,r.kind!=="init"?r.kind+" ":"",r.variance?n("variance"):"",_t(e,t,n),ue(e),Jt(r)?"":": ",n("value"),Ne(e,t)]}case"ObjectTypeInternalSlot":return[r.static?"static ":"","[[",n("id"),"]]",ue(e),r.method?"":": ",n("value"),Ne(e,t)];case"ObjectTypeSpreadProperty":return _n(e,n);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(r.value);case"StringLiteralTypeAnnotation":return Ye(yt(se(r),t));case"NumberLiteralTypeAnnotation":return ft(se(r));case"BigIntLiteralTypeAnnotation":return Rn(se(r));case"TypeCastExpression":return["(",n("expression"),Z(e,n),")"];case"TypePredicate":return oo(e,n);case"TypeOperator":return[r.operator," ",n("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return wt(e,t,n,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...r.type==="DeclaredPredicate"?["(",n("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Va(e,t,n);case"MatchExpression":case"MatchStatement":return UD(e,t,n);case"MatchExpressionCase":case"MatchStatementCase":return GD(e,t,n);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 VD(e,t,n)}}function ty(e,t,n){let{node:r}=e,u=r.parameters.length>1?k(ke(t)?",":""):"",a=c([E([f,M([", ",f],e.map(n,"parameters"))]),u,f]);return[e.key==="body"&&e.parent.type==="ClassBody"&&r.static?"static ":"",r.readonly?"readonly ":"","[",r.parameters?a:"","]",Z(e,n),Ne(e,t)]}function Zr(e,t,n){let{node:r}=e;return[r.postfix?"":n,Z(e,t),r.postfix?n:""]}function ny(e,t,n){let{node:r}=e,u=[],a=r.kind&&r.kind!=="method"?`${r.kind} `:"";u.push(cn(r),a,r.computed?"[":"",n("key"),r.computed?"]":"",ue(e));let o=ot(e,t,n,!1,!0),i=Z(e,n,"returnType"),p=gt(r,i);return u.push(p?c(o):o),r.returnType&&u.push(c(i)),[c(u),Ne(e,t)]}function ry(e,t,n){let{node:r}=e;return[De(e),r.kind==="global"?"":`${r.kind} `,n("id"),r.body?[" ",c(n("body"))]:t.semi?";":""]}function uy(e,t,n){let{node:r}=e,u=!(ee(r.expression)||Ae(r.expression)),a=c(["<",E([f,n("typeAnnotation")]),f,">"]),o=[k("("),E([f,n("expression")]),f,k(")")];return u?He([[a,n("expression")],[a,c(o,{shouldBreak:!0})],[a,n("expression")]]):c([a,n("expression")])}function ay(e,t,n){let{node:r}=e;if(r.type.startsWith("TS")){if(cu(r))return r.type.slice(2,-7).toLowerCase();switch(r.type){case"TSThisType":return"this";case"TSTypeAssertion":return uy(e,t,n);case"TSDeclareFunction":return Ea(e,t,n);case"TSExportAssignment":return["export = ",n("expression"),t.semi?";":""];case"TSModuleBlock":return Pa(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return fr(e,t,n);case"TSTypeAliasDeclaration":return uo(e,t,n);case"TSQualifiedName":return[n("left"),".",n("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Ma(e,t,n);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return La(e,t,n);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[n("expression"),n("typeArguments")];case"TSTemplateLiteralType":return Vu(e,t,n);case"TSNamedTupleMember":return ro(e,t,n);case"TSRestType":return no(e,t,n);case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Fr(e,t,n);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return wt(e,t,n,"params");case"TSTypeParameter":return ao(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":return Va(e,t,n);case"TSArrayType":return Ga(n);case"TSPropertySignature":return[r.readonly?"readonly ":"",_t(e,t,n),ue(e),Z(e,n),Ne(e,t)];case"TSParameterProperty":return[cn(r),r.static?"static ":"",r.override?"override ":"",r.readonly?"readonly ":"",n("parameter")];case"TSTypeQuery":return io(e,n);case"TSIndexSignature":return ty(e,t,n);case"TSTypePredicate":return oo(e,n);case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[rn(e,t,n),r.qualifier?[".",n("qualifier")]:"",wt(e,t,n,"typeArguments")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return Qa(e,t,n);case"TSTypeOperator":return[r.operator," ",n("typeAnnotation")];case"TSMappedType":return $D(e,t,n);case"TSMethodSignature":return ny(e,t,n);case"TSNamespaceExportDeclaration":return["export as namespace ",n("id"),t.semi?";":""];case"TSEnumDeclaration":return za(e,n);case"TSEnumBody":return Ka(e,t,n);case"TSEnumMember":return Ha(e,n);case"TSImportEqualsDeclaration":return["import ",Ra(r,!1),n("id")," = ",n("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return rn(e,t,n);case"TSModuleDeclaration":return ry(e,t,n);case"TSConditionalType":return gr(e,t,n);case"TSInferType":return Za(e,t,n);case"TSIntersectionType":return eo(e,t,n);case"TSUnionType":return ua(e,t,n);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Ya(e,t,n);case"TSTupleType":return Dr(e,t,n);case"TSTypeReference":return[n("typeName"),wt(e,t,n,"typeArguments")];case"TSTypeAnnotation":return ia(e,t,n);case"TSEmptyBodyFunctionExpression":return yr(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Zr(e,n,"?");case"TSJSDocNonNullableType":return Zr(e,n,"!");default:throw new Ct(r,"TypeScript")}}}function oy(e,t,n,r){for(let u of[vc,xc,ey,ay,PD]){let a=u(e,t,n,r);if(a!==void 0)return a}}var iy=w(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function sy(e,t,n,r){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:u}=e,a=mr(e)?t.originalText.slice(j(u),N(u)):oy(e,t,n,r);if(!a)return"";if(iy(u))return a;let o=_(u.decorators),i=Nc(e,t,n),p=u.type==="ClassExpression";if(o&&!p)return In(a,D=>c([i,D]));let l=Ve(e,t),y=rc(e,t);return!i&&!l&&!y?a:In(a,D=>[y?";":"",l?"(":"",l&&p&&o?[E([x,i,D]),x]:[i,D],l?")":""])}var eu=sy,py={experimental_avoidAstMutation:!0},ly=[{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}],so={};Wn(so,{getVisitorKeys:()=>yy,massageAstNode:()=>po,print:()=>dy});var st=[[]],cy={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:st[0],BooleanLiteral:st[0],StringLiteral:st[0],NumericLiteral:st[0],Identifier:st[0],TemplateLiteral:["quasis"],TemplateElement:st[0]},Dy=su(cy),yy=Dy;function dy(e,t,n){let{node:r}=e;switch(r.type){case"JsonRoot":return[n("node"),A];case"ArrayExpression":{if(r.elements.length===0)return"[]";let u=e.map(()=>e.node===null?"null":n(),"elements");return["[",E([A,M([",",A],u)]),A,"]"]}case"ObjectExpression":return r.properties.length===0?"{}":["{",E([A,M([",",A],e.map(n,"properties"))]),A,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return[r.operator==="+"?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":return JSON.stringify(r.value);case"NumericLiteral":return tu(e)?JSON.stringify(String(r.value)):JSON.stringify(r.value);case"Identifier":return tu(e)?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Ct(r,"JSON")}}function tu(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var my=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function po(e,t){let{type:n}=e;if(n==="ObjectProperty"){let{key:r}=e;r.type==="Identifier"?t.key={type:"StringLiteral",value:r.name}:r.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(r.value)});return}if(n==="UnaryExpression"&&e.operator==="+")return t.argument;if(n==="ArrayExpression"){for(let[r,u]of e.elements.entries())u===null&&t.elements.splice(r,0,{type:"NullLiteral"});return}if(n==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}po.ignoredProperties=my;var bt={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."}},Xe="JavaScript",fy={arrowParens:{category:Xe,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:bt.bracketSameLine,objectWrap:bt.objectWrap,bracketSpacing:bt.bracketSpacing,jsxBracketSameLine:{category:Xe,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Xe,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Xe,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:Xe,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:bt.singleQuote,jsxSingleQuote:{category:Xe,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Xe,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:Xe,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:bt.singleAttributePerLine},Fy=fy,Ey={estree:nu,"estree-json":so},Ay=[...Fo,...ly];export{fo as default,Ay as languages,Fy as options,Ey as printers};