collabmd 0.1.47 → 0.1.49

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 (305) hide show
  1. package/README.md +70 -11
  2. package/bin/collabmd.js +3 -0
  3. package/dist/client/assets/CodeMirrorEditor-UCMRAMCV-C-nmgL5g.js +1 -0
  4. package/dist/client/assets/JetBrainsMono-Regular-BQaDgvhP.woff2 +0 -0
  5. package/dist/client/assets/abnfDiagram-VCTEODGH-CdVZqicp.js +1 -0
  6. package/dist/client/assets/{architectureDiagram-5GKGNRK7-I39sYjHI.js → architectureDiagram-5GKGNRK7-wUo0bXif.js} +3 -3
  7. package/dist/client/assets/babel-CY5KOv-I.js +16 -0
  8. package/dist/client/assets/{blockDiagram-NRAW4CY4-C6DtJy5Y.js → blockDiagram-I7D4REHJ-BRSK3m49.js} +4 -4
  9. package/dist/client/assets/browser-utils-DbXSMI-6.js +1 -0
  10. package/dist/client/assets/{c4Diagram-UCG6FXSJ-CtWtxS9_.js → c4Diagram-7LVT6UL2-yD2poxqw.js} +1 -1
  11. package/dist/client/assets/channel-Fa4GS_-F.js +1 -0
  12. package/dist/client/assets/chunk-2E4U76K2-BPnTT-J3.js +2 -0
  13. package/dist/client/assets/{chunk-TEH6E4GO-DVayPj-q.js → chunk-4HAMMTFA-DStbIfJ1.js} +20 -20
  14. package/dist/client/assets/{chunk-75Z2AOVW-CdFSaPjz.js → chunk-75Z2AOVW-C5pGd3W9.js} +1 -1
  15. package/dist/client/assets/{chunk-CLGD4ZFX-DQLgbQrv.js → chunk-CLGD4ZFX-BMeArk03.js} +1 -1
  16. package/dist/client/assets/chunk-DU6HZSFF-Zkp69c6c.js +127 -0
  17. package/dist/client/assets/{chunk-F27PBJKO-CNHIFhjo.js → chunk-F27PBJKO-D4xNct1r.js} +1 -1
  18. package/dist/client/assets/{chunk-GMAD6QVW-CbcBqPM5.js → chunk-GMAD6QVW-NZ6WpDb8.js} +1 -1
  19. package/dist/client/assets/{chunk-OBVCFTLP-BJR7u1jh.js → chunk-GVQU2GXP-D8SDprfX.js} +1 -1
  20. package/dist/client/assets/{chunk-G27WJ6UU-D9-eg537.js → chunk-IMKFNOWR-D8jEuU3Q.js} +2 -2
  21. package/dist/client/assets/{chunk-JQ64N6SF-DSFNH4bh.js → chunk-L3NEJ4N5-aijKP-eh.js} +1 -1
  22. package/dist/client/assets/chunk-OSK3NFVY-CCbLQAMa.js +10 -0
  23. package/dist/client/assets/{chunk-P2QGCYS3-BRpqY32H.js → chunk-P2QGCYS3-Oag_FdCq.js} +1 -1
  24. package/dist/client/assets/{chunk-POPQ4Y6H-Cb4SlVZF.js → chunk-POPQ4Y6H-CYnpIgXT.js} +1 -1
  25. package/dist/client/assets/{chunk-PWAF6VOD-Cz8IwBB5.js → chunk-PWAF6VOD-JSNrcBmP.js} +1 -1
  26. package/dist/client/assets/{chunk-RM4UPSZO-CWRwxNWJ.js → chunk-RM4UPSZO-DOWllDY8.js} +4 -4
  27. package/dist/client/assets/{chunk-RHFEMEQ7-CWY8cf4H.js → chunk-SHT3W25Y-BiQGljao.js} +5 -5
  28. package/dist/client/assets/{chunk-SVP7TREG-CyHOmcac.js → chunk-SVP7TREG-DB485R5x.js} +1 -1
  29. package/dist/client/assets/{chunk-LCL6LL3I-DmDkVukh.js → chunk-TICWLB2K-8rAVvoS3.js} +4 -4
  30. package/dist/client/assets/{chunk-CKBBP62Z-DG26UiBv.js → chunk-TLUHSLCS-DTY5v0aj.js} +2 -2
  31. package/dist/client/assets/classDiagram-ZZMXUADV-BsQWoR3Q.js +1 -0
  32. package/dist/client/assets/classDiagram-v2-VYDZK3BY-BsQWoR3Q.js +1 -0
  33. package/dist/client/assets/{comment-thread-store-CdcwrObc.js → comment-thread-store-CX98zR6q.js} +1 -1
  34. package/dist/client/assets/comment-threads-BnRwo5B9.js +4 -0
  35. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-CdTPi2yO.js → cynefinDiagram-5FMLGOSQ-rTz9RhFH.js} +1 -1
  36. package/dist/client/assets/{dagre-3AP2YEHR-5gtJtd0O.js → dagre-GXQ25YYZ-Cr67wLpQ.js} +2 -2
  37. package/dist/client/assets/{diagram-S7CK7UJ4-BudWz9WU.js → diagram-S7CK7UJ4-DywERe__.js} +2 -2
  38. package/dist/client/assets/{diagram-UQ7AKVKN-3v4rbH-s.js → diagram-UQ7AKVKN-CNYlXtu4.js} +1 -1
  39. package/dist/client/assets/diagram-VSXAHHWV-0H1a61Bn.js +3 -0
  40. package/dist/client/assets/{diagram-VX7I27RA-C_-rj0sw.js → diagram-VX7I27RA-CsJbsx5F.js} +1 -1
  41. package/dist/client/assets/{diagram-Z3DM3KII-B4yxavgj.js → diagram-Z3DM3KII-D0mLxEgI.js} +1 -1
  42. package/dist/client/assets/dist--hk9I5HQ.js +1 -0
  43. package/dist/client/assets/{dist-DutPuFmC.js → dist-B1XEa-Zs.js} +1 -1
  44. package/dist/client/assets/dist-Bd1JucQF.js +1 -0
  45. package/dist/client/assets/{dist-DZAAWTG-.js → dist-C0G3AaXG.js} +1 -1
  46. package/dist/client/assets/dist-ChRoo3IB.js +9 -0
  47. package/dist/client/assets/dist-Dm4w5UId.js +1 -0
  48. package/dist/client/assets/{dist-B_yQaEv_.js → dist-DpYDHR9p.js} +1 -1
  49. package/dist/client/assets/{dist-CietwTVS.js → dist-DzNmC81X.js} +1 -1
  50. package/dist/client/assets/{dist-DDUn5zTz.js → dist-GvvCNBe4.js} +1 -1
  51. package/dist/client/assets/dist-JaU3aRlD.js +19 -0
  52. package/dist/client/assets/{dist-Bw3VIE_v.js → dist-TW8iFRyW.js} +1 -1
  53. package/dist/client/assets/{dist-Dir5dDKZ.js → dist-jVU5Be5P.js} +1 -1
  54. package/dist/client/assets/document-formatter-rDDjRfZ2.js +2 -0
  55. package/dist/client/assets/drawioEditor-JubEEha7.js +9 -0
  56. package/dist/client/assets/ebnfDiagram-PWID7BFC-HeTxHpCU.js +1 -0
  57. package/dist/client/assets/editor-session-Bk6oIvSr.js +54 -0
  58. package/dist/client/assets/embedded-editor-base-BlCgz6mw.css +1 -0
  59. package/dist/client/assets/{erDiagram-SSCWMZ5O-C-iy6VkX.js → erDiagram-RLTQ6QDP-CbrDdd5P.js} +2 -2
  60. package/dist/client/assets/{es-CAsWR6hG.js → es-Bfdp096f.js} +13 -13
  61. package/dist/client/assets/estree-CuT_pB8K.js +44 -0
  62. package/dist/client/assets/excalidraw-element-link-YLIaTnVF.js +7 -0
  63. package/dist/client/assets/{excalidraw-scene-BOben2gr.js → excalidraw-scene-6uROebca.js} +1 -1
  64. package/dist/client/assets/{excalidraw-editor-BlcN6umJ.css → excalidrawEditor-BbSbI80a.css} +1 -1
  65. package/dist/client/assets/excalidrawEditor-dBMbRX_S.js +9 -0
  66. package/dist/client/assets/export-page-CRRQ2NEl.js +57 -0
  67. package/dist/client/assets/exportDocument-BlQRd9_m.js +2 -0
  68. package/dist/client/assets/exportDocument-CNSbjZwu.css +1 -0
  69. package/dist/client/assets/{file-icon-svg-CQAjlWjK.js → file-icon-svg-Y_kpF957.js} +1 -1
  70. package/dist/client/assets/file-kind-BwMIcZbi.js +1 -0
  71. package/dist/client/assets/file-search-DDLyyLDU.js +1 -0
  72. package/dist/client/assets/flowDiagram-HODETNUW-D5Gy0wmg.js +1 -0
  73. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-DtKHAbez.js → ganttDiagram-EL5Y4UJY-BHgOYiZz.js} +1 -1
  74. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-oue8fQ5o.js → gitGraphDiagram-WWUBYQGX-Dl__X3Sk.js} +1 -1
  75. package/dist/client/assets/html-Cdnr2qzU.js +25 -0
  76. package/dist/client/assets/image-ZVKINSPA-DgzW5zAy.js +1 -0
  77. package/dist/client/assets/index-D3RER1SZ.js +1023 -0
  78. package/dist/client/assets/index-DREVKl_K.css +1 -0
  79. package/dist/client/assets/{infoDiagram-RXCK75RN-BMzo6KIn.js → infoDiagram-27XIBGKW-DBpoANC9.js} +1 -1
  80. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-BIM3h287.js → ishikawaDiagram-5VMMS53U-BMPC6hfp.js} +1 -1
  81. package/dist/client/assets/{journeyDiagram-EYS64GPL-mF6Lh8O-.js → journeyDiagram-3NMN7TZE-B1sApUmM.js} +2 -2
  82. package/dist/client/assets/{kanban-definition-3QL26DDD-DLN2NyoR.js → kanban-definition-UXKFOSKX-C9yP4td1.js} +4 -4
  83. package/dist/client/assets/{line-BfTWJmgf.js → line-BFl3ujec.js} +1 -1
  84. package/dist/client/assets/markdown-CByV-4CU.js +70 -0
  85. package/dist/client/assets/{mermaid.core-CLZBlpIW.js → mermaid.core-BrY09czX.js} +5 -5
  86. package/dist/client/assets/mermaid.core-DfcNfOTv.js +1 -0
  87. package/dist/client/assets/{mindmap-definition-FBJOCRG2-CRyHaHTk.js → mindmap-definition-YA3MSWOX-BUQHcYbK.js} +8 -8
  88. package/dist/client/assets/pegDiagram-XKGWAZYB-Bi2Iml7Z.js +1 -0
  89. package/dist/client/assets/{pieDiagram-E7YTZNPT-B5OZPb88.js → pieDiagram-E7YTZNPT-_gYXnMoi.js} +1 -1
  90. package/dist/client/assets/preview-render-compiler-CfxJYldJ.js +41 -0
  91. package/dist/client/assets/preview-render-compiler-Cu8_i9iS.js +1 -0
  92. package/dist/client/assets/{preview-render-worker-BmN79bVc.js → preview-render-worker-c4Yi93qW.js} +41 -35
  93. package/dist/client/assets/prod-BiJL30sl.js +1 -0
  94. package/dist/client/assets/prod-qAk7rHa4.js +177 -0
  95. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-Drrw14YH.js → quadrantDiagram-AXDQQJYC-DwexhEhd.js} +1 -1
  96. package/dist/client/assets/quick-switcher-controller-BoIK_wuG.js +1 -0
  97. package/dist/client/assets/railroadDiagram-O6MQD6OU-BVA5UbMu.js +1 -0
  98. package/dist/client/assets/{requirementDiagram-EFPCY7ZU-CRZG6mRB.js → requirementDiagram-BXWQKSXE-C4cKwiIw.js} +2 -2
  99. package/dist/client/assets/runtime-config-DcmnGcXU.js +1 -0
  100. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-DvarEJpo.js → sankeyDiagram-P5KCCOFB-B5HHkRT2.js} +1 -1
  101. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-B4oWlb-w.js → sequenceDiagram-WJ2MYXX4-BX6jqJFD.js} +6 -6
  102. package/dist/client/assets/standalone-6z5x8CWe.js +29 -0
  103. package/dist/client/assets/{stateDiagram-HBIQ2CUA-qbHIIqRZ.js → stateDiagram-D77RDMKH-CmqxyRGx.js} +1 -1
  104. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-zoLLQVyh.js +1 -0
  105. package/dist/client/assets/{swimlanes-XN3QIQJK-xB6CtUGj.js → swimlanes-42K2YHIH-Bmgb9Zld.js} +1 -1
  106. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DS-KQN37.js +8 -0
  107. package/dist/client/assets/{timeline-definition-24CTP7MA-Lj_yTNlY.js → timeline-definition-24CTP7MA-BA-lVH6P.js} +1 -1
  108. package/dist/client/assets/vault-api-client-iZLhMJKe.js +6 -0
  109. package/dist/client/assets/{vennDiagram-4TSXK5OY-BekRp5Y0.js → vennDiagram-4TSXK5OY-DNdUC_Xj.js} +1 -1
  110. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-kdnV_Hdm.js → wardleyDiagram-VM6X3IG4-C2oY-YbF.js} +1 -1
  111. package/dist/client/assets/wiki-link-resolver-DFIwErjc.js +1 -0
  112. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-DufGwNSB.js → xychartDiagram-S5SC5T6Z-CoIR8CBX.js} +1 -1
  113. package/dist/client/assets/yaml-9ltHPDNO.js +154 -0
  114. package/dist/client/assets/{yjs-provider-reset-guard-DE0vINDP.js → yjs-provider-reset-guard-9ul1qF6k.js} +1 -1
  115. package/dist/client/drawio-editor.html +11 -3
  116. package/dist/client/excalidraw-editor.html +45 -2
  117. package/dist/client/export-document.html +3 -3
  118. package/dist/client/index.html +106 -52
  119. package/integrations/pi/index.ts +94 -0
  120. package/package.json +41 -29
  121. package/src/client/app/drawio-editor.html +2 -2
  122. package/src/client/app/excalidraw-editor.html +2 -2
  123. package/src/client/app/export-document.html +1 -1
  124. package/src/client/app/index.html +88 -50
  125. package/src/client/app/main-entry.js +15 -1
  126. package/src/client/application/app-shell/chat-feature.js +7 -22
  127. package/src/client/application/app-shell/export-feature.js +17 -1
  128. package/src/client/application/app-shell/git-feature.js +51 -14
  129. package/src/client/application/app-shell/presence-feature.js +8 -25
  130. package/src/client/application/app-shell/ui-feature-identity.js +13 -0
  131. package/src/client/application/app-shell/ui-feature-shell.js +199 -99
  132. package/src/client/application/app-shell/ui-feature-sidebar.js +43 -7
  133. package/src/client/application/app-shell/ui-feature-tab-activity.js +19 -6
  134. package/src/client/application/app-shell/ui-feature-toolbar.js +16 -129
  135. package/src/client/application/app-shell-elements.js +8 -0
  136. package/src/client/application/preview-render-compiler.js +1 -87
  137. package/src/client/application/preview-render-scheduler.js +8 -24
  138. package/src/client/application/preview-renderer.js +2 -2
  139. package/src/client/application/webmcp-diagram-renderer.js +47 -0
  140. package/src/client/application/workspace-coordinator.js +23 -4
  141. package/src/client/application/workspace-preview-controller.js +120 -2
  142. package/src/client/application/workspace-route-controller.js +11 -1
  143. package/src/client/assets/vendor/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  144. package/src/client/assets/vendor/jetbrains-mono/OFL.txt +93 -0
  145. package/src/client/bootstrap/collabmd-app-shell.js +99 -6
  146. package/src/client/domain/document-formatter.js +193 -0
  147. package/src/client/domain/excalidraw-element-link.js +73 -0
  148. package/src/client/domain/excalidraw-scene.js +21 -0
  149. package/src/client/domain/file-search.js +73 -0
  150. package/src/client/domain/git-labels.js +5 -0
  151. package/src/client/domain/hash-routes.js +8 -0
  152. package/src/client/domain/room.js +1 -5
  153. package/src/client/domain/runtime-paths.js +5 -0
  154. package/src/client/domain/vault-paths.js +6 -4
  155. package/src/client/domain/wiki-link-completions.js +20 -20
  156. package/src/client/drawio-editor.js +8 -3
  157. package/src/client/excalidraw-editor.js +287 -16
  158. package/src/client/export/export-host.js +59 -36
  159. package/src/client/export/export-page.js +14 -4
  160. package/src/client/export/export-pipeline.js +270 -42
  161. package/src/client/infrastructure/agent-connection-api-client.js +23 -0
  162. package/src/client/infrastructure/auth-client.js +3 -13
  163. package/src/client/infrastructure/editor-session.js +15 -0
  164. package/src/client/infrastructure/editor-view-adapter.js +73 -14
  165. package/src/client/infrastructure/excalidraw-room-client.js +80 -1
  166. package/src/client/infrastructure/git-api-client.js +39 -33
  167. package/src/client/infrastructure/lobby-presence.js +2 -5
  168. package/src/client/infrastructure/runtime-config.js +11 -1
  169. package/src/client/infrastructure/tab-activity-lock.js +2 -5
  170. package/src/client/infrastructure/vault-api-client.js +33 -26
  171. package/src/client/infrastructure/webmcp-tool-registry.js +283 -0
  172. package/src/client/infrastructure/workspace-sync-client.js +6 -4
  173. package/src/client/presentation/agent-connection-controller.js +255 -0
  174. package/src/client/presentation/backlinks-panel.js +3 -0
  175. package/src/client/presentation/bases-preview-controller.js +59 -26
  176. package/src/client/presentation/comment-ui/comment-ui-card.js +4 -2
  177. package/src/client/presentation/create-menu-presenter.js +19 -16
  178. package/src/client/presentation/excalidraw-embed-controller.js +164 -4
  179. package/src/client/presentation/file-action-controller.js +15 -2
  180. package/src/client/presentation/file-explorer-controller.js +3 -0
  181. package/src/client/presentation/file-explorer-view.js +71 -12
  182. package/src/client/presentation/file-history-view-controller.js +19 -12
  183. package/src/client/presentation/file-tree-state.js +1 -11
  184. package/src/client/presentation/git-diff-view-controller.js +70 -53
  185. package/src/client/presentation/git-panel-controller.js +86 -32
  186. package/src/client/presentation/image-lightbox-controller.js +20 -16
  187. package/src/client/presentation/layout-controller.js +3 -1
  188. package/src/client/presentation/quick-switcher-controller.js +74 -232
  189. package/src/client/presentation/quick-switcher-text-search.js +10 -14
  190. package/src/client/styles/components/navigation.css +1 -2
  191. package/src/client/styles/components/scrollbars.css +10 -0
  192. package/src/client/styles/export-document.css +44 -29
  193. package/src/client/styles/features/agent-connection.css +202 -0
  194. package/src/client/styles/features/collaboration-chat.css +8 -1
  195. package/src/client/styles/features/collaboration-dialogs.css +16 -1
  196. package/src/client/styles/features/collaboration-presence.css +30 -5
  197. package/src/client/styles/features/diff-toolbar.css +1 -1
  198. package/src/client/styles/features/media-lightbox.css +12 -3
  199. package/src/client/styles/features/preview-markdown.css +54 -0
  200. package/src/client/styles/features/quick-switcher.css +20 -11
  201. package/src/client/styles/foundation/themes.css +2 -0
  202. package/src/client/styles/foundation/tokens.css +8 -0
  203. package/src/client/styles/layout/editor-page.css +25 -11
  204. package/src/client/styles/layout/responsive.css +2 -20
  205. package/src/client/styles/layout/shell.css +77 -24
  206. package/src/client/styles/layout/sidebar.css +7 -4
  207. package/src/client/styles/layout/view-modes.css +2 -0
  208. package/src/client/styles/overrides/codemirror.css +31 -19
  209. package/src/client/styles/primitives/controls.css +21 -54
  210. package/src/client/styles/style.css +1 -0
  211. package/src/client/styles/surfaces/excalidraw-editor.css +42 -0
  212. package/src/domain/agent-tool-definitions.js +796 -0
  213. package/src/domain/collabmd-content-capabilities.js +149 -0
  214. package/src/domain/collaboration-protocol.js +2 -0
  215. package/src/domain/comment-threads.js +3 -5
  216. package/src/domain/diagram-source.js +50 -0
  217. package/src/domain/editable-content-revision.js +10 -0
  218. package/src/domain/editable-text.js +3 -0
  219. package/src/domain/exact-text-edits.js +69 -0
  220. package/src/domain/excalidraw-agent-scene.js +522 -0
  221. package/src/domain/excalidraw-agent-verification.js +460 -0
  222. package/src/domain/excalidraw-room-codec.js +1 -5
  223. package/src/domain/file-kind.js +12 -1
  224. package/src/domain/video-embed.js +76 -0
  225. package/src/server/application/agent-connection-service.js +178 -0
  226. package/src/server/application/agent-content-service.js +773 -0
  227. package/src/server/application/workspace-reconciliation.js +5 -7
  228. package/src/server/config/env.js +51 -1
  229. package/src/server/create-app-server.js +36 -0
  230. package/src/server/domain/bases/base-query-service.js +1 -5
  231. package/src/server/domain/collaboration/collaboration-room.js +121 -25
  232. package/src/server/domain/collaboration/protocol.js +4 -0
  233. package/src/server/domain/hosted-workspace.js +21 -0
  234. package/src/server/domain/markdown-reference-extractor.js +15 -1
  235. package/src/server/domain/ripgrep-search-service.js +110 -37
  236. package/src/server/infrastructure/git/git-service.js +19 -1
  237. package/src/server/infrastructure/git/history-service.js +1 -1
  238. package/src/server/infrastructure/git/local-exclude.js +25 -0
  239. package/src/server/infrastructure/git/parsers.js +19 -17
  240. package/src/server/infrastructure/git/path-utils.js +0 -16
  241. package/src/server/infrastructure/git/status-service.js +1 -1
  242. package/src/server/infrastructure/git/untracked-files.js +12 -21
  243. package/src/server/infrastructure/http/create-agent-api-handler.js +171 -0
  244. package/src/server/infrastructure/http/create-git-api-command-handler.js +32 -0
  245. package/src/server/infrastructure/http/create-request-handler.js +28 -0
  246. package/src/server/infrastructure/http/create-static-handler.js +6 -0
  247. package/src/server/infrastructure/mcp/create-agent-mcp-handler.js +199 -0
  248. package/src/server/infrastructure/persistence/agent-connection-store.js +120 -0
  249. package/src/server/infrastructure/persistence/path-utils.js +10 -4
  250. package/src/server/infrastructure/persistence/pull-backup-store.js +2 -27
  251. package/src/server/infrastructure/persistence/vault-file-store.js +11 -2
  252. package/src/server/shared/agent-tool-image.js +22 -0
  253. package/src/server/shared/agent-tool-rate-limiter.js +20 -0
  254. package/src/server/startup/git-remote-bootstrap.js +5 -33
  255. package/dist/client/assets/CodeMirrorEditor-UCMRAMCV-BPH4FJkv.js +0 -1
  256. package/dist/client/assets/abnfDiagram-VCTEODGH-BNDLzJ7L.js +0 -1
  257. package/dist/client/assets/browser-utils--H_DkyEF.js +0 -1
  258. package/dist/client/assets/channel-CaoKA_We.js +0 -1
  259. package/dist/client/assets/chunk-DSNCTWBM-8xkug7fQ.js +0 -2
  260. package/dist/client/assets/chunk-DU6HZSFF-COXDzJK1.js +0 -127
  261. package/dist/client/assets/chunk-R7TYR2AO-CTd0Yj98.js +0 -10
  262. package/dist/client/assets/classDiagram-DTDB5LWJ-7fEmn0zV.js +0 -1
  263. package/dist/client/assets/classDiagram-v2-JRS7N3AN-7fEmn0zV.js +0 -1
  264. package/dist/client/assets/comment-threads-9J6Em-_y.js +0 -4
  265. package/dist/client/assets/comment-ui-shared-DWkk9Vh3.js +0 -7
  266. package/dist/client/assets/diagram-VSXAHHWV-CQRVEZR7.js +0 -3
  267. package/dist/client/assets/dist-73RPdcyU.js +0 -1
  268. package/dist/client/assets/dist-CH-sQu3r.js +0 -1
  269. package/dist/client/assets/drawio-editor-BjrxTe3l.js +0 -9
  270. package/dist/client/assets/drawioEditor-DUVZjSSr.js +0 -2
  271. package/dist/client/assets/ebnfDiagram-PWID7BFC-OXa8VEp1.js +0 -1
  272. package/dist/client/assets/editor-session-DfZuRgB_.js +0 -54
  273. package/dist/client/assets/embedded-editor-base-DvMynhKu.css +0 -1
  274. package/dist/client/assets/excalidraw-editor-D7pnUCLH.js +0 -9
  275. package/dist/client/assets/excalidraw-mermaid-stub-BNckbX2n.js +0 -1
  276. package/dist/client/assets/excalidraw-mermaid-stub-DE5FTiZB.js +0 -1
  277. package/dist/client/assets/excalidrawEditor-B0jOK3lv.js +0 -2
  278. package/dist/client/assets/export-page-Bs3xE1fg.js +0 -57
  279. package/dist/client/assets/exportDocument-Dg9MjkIk.js +0 -2
  280. package/dist/client/assets/exportDocument-PnYU3v1s.css +0 -1
  281. package/dist/client/assets/file-kind-BbqgGzpc.js +0 -1
  282. package/dist/client/assets/flowDiagram-A5DVABFB-CiW1eN8C.js +0 -1
  283. package/dist/client/assets/image-ZVKINSPA-0zXSnE7M.js +0 -1
  284. package/dist/client/assets/index-BIpgxyGZ.css +0 -1
  285. package/dist/client/assets/index-Z5sI0Bj-.js +0 -2
  286. package/dist/client/assets/main-Dwnj9Gaq.js +0 -903
  287. package/dist/client/assets/pegDiagram-XKGWAZYB-B31fKPR2.js +0 -1
  288. package/dist/client/assets/preview-render-compiler-BApvlLLo.js +0 -35
  289. package/dist/client/assets/preview-render-compiler-BQ_3h9vD.js +0 -1
  290. package/dist/client/assets/preview-render-profile-CE-5rVTC.js +0 -1
  291. package/dist/client/assets/prod-BiYPMR1i.js +0 -177
  292. package/dist/client/assets/prod-VxdGZ5Ly.js +0 -1
  293. package/dist/client/assets/quick-switcher-controller-ButWPmCI.js +0 -12
  294. package/dist/client/assets/railroadDiagram-O6MQD6OU-BPifP0MB.js +0 -1
  295. package/dist/client/assets/runtime-config-BLrEKVO1.js +0 -1
  296. package/dist/client/assets/stateDiagram-v2-4QOOHH4V-B--gjrit.js +0 -1
  297. package/dist/client/assets/swimlanesDiagram-VK2B7HYN-DO8XNXEg.js +0 -8
  298. package/dist/client/assets/vault-api-client-_LpV1aIn.js +0 -6
  299. package/dist/client/assets/vault-utils-wdQ0RNR9.js +0 -1
  300. package/src/client/app/drawio-editor-entry.js +0 -1
  301. package/src/client/app/excalidraw-editor-entry.js +0 -1
  302. package/src/client/excalidraw-mermaid-stub.js +0 -7
  303. package/src/client/main.js +0 -16
  304. /package/dist/client/assets/{drawio-editor-UQQ8XHou.css → drawioEditor-UQQ8XHou.css} +0 -0
  305. /package/dist/client/assets/{sizeCapture-X5ZJPWSS-B0uUizjq.js → sizeCapture-INFHLROL-B0uUizjq.js} +0 -0
@@ -0,0 +1,44 @@
1
+ var e=Object.defineProperty,t=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},n={};t(n,{languages:()=>Jp,options:()=>Kp,printers:()=>qp});var r=[{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`.split(`,`),filenames:[`Jakefile`,`start.frag`,`end.frag`],tmScope:`source.js`,aliases:[`js`,`node`],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,interpreters:[`bun`,`chakra`,`d8`,`deno`,`gjs`,`js`,`node`,`nodejs`,`qjs`,`rhino`,`v8`,`v8-shell`,`zx`],parsers:[`babel`,`acorn`,`espree`,`meriyah`,`babel-flow`,`babel-ts`,`flow`,`typescript`],vscodeLanguageIds:[`javascript`,`mongo`],linguistLanguageId:183},{name:`Flow`,type:`programming`,aceMode:`javascript`,extensions:[`.js.flow`],filenames:[],tmScope:`source.js`,aliases:[],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,interpreters:[`bun`,`chakra`,`d8`,`deno`,`gjs`,`js`,`node`,`nodejs`,`qjs`,`rhino`,`v8`,`v8-shell`],parsers:[`flow`,`babel-flow`],vscodeLanguageIds:[`javascript`],linguistLanguageId:183},{name:`JSX`,type:`programming`,aceMode:`javascript`,extensions:[`.jsx`],filenames:void 0,tmScope:`source.js.jsx`,aliases:void 0,codemirrorMode:`jsx`,codemirrorMimeType:`text/jsx`,interpreters:void 0,parsers:[`babel`,`babel-flow`,`babel-ts`,`flow`,`typescript`,`espree`,`meriyah`],vscodeLanguageIds:[`javascriptreact`],group:`JavaScript`,linguistLanguageId:183},{name:`TypeScript`,type:`programming`,aceMode:`typescript`,extensions:[`.ts`,`.cts`,`.mts`],tmScope:`source.ts`,aliases:[`ts`],codemirrorMode:`javascript`,codemirrorMimeType:`application/typescript`,interpreters:[`bun`,`deno`,`ts-node`,`tsx`],parsers:[`typescript`,`babel-ts`],vscodeLanguageIds:[`typescript`],linguistLanguageId:378},{name:`TSX`,type:`programming`,aceMode:`tsx`,extensions:[`.tsx`],tmScope:`source.tsx`,aliases:[`typescriptreact`],codemirrorMode:`jsx`,codemirrorMimeType:`text/typescript-jsx`,group:`TypeScript`,parsers:[`typescript`,`babel-ts`],vscodeLanguageIds:[`typescriptreact`],linguistLanguageId:94901924}],i={};t(i,{estree:()=>Pp});function a(e){return Array.isArray(e)&&e.length>0}var o=a,s=()=>{};function c(e){let t=new Set(e);return e=>t.has(e?.type)}var l=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i);function u(e){return this[e<0?this.length+e:e]}var d=l(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return u});function f(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function p(e){let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),t}var m=new WeakMap;function h(e){return f(m,e,p)}function g(e,t){let{node:n}=e,r=0,i=()=>t(e,r++);n.this&&e.call(i,`this`),e.each(i,`params`),n.rest&&e.call(i,`rest`)}function _(e){return e.rest?!0:d(0,h(e),-1)?.type===`RestElement`}var v=e=>e?.type===`TSAsExpression`&&e.typeAnnotation.type===`TSTypeReference`&&e.typeAnnotation.typeName.type===`Identifier`&&e.typeAnnotation.typeName.name===`const`;function y({node:e,parent:t}){return e?.type===`EmptyStatement`?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:!1}function ee(e){return e.method&&e.kind===`init`||e.kind===`get`||e.kind===`set`}var te=e=>Number.isSafeInteger(e)&&e>=0;function ne(e){return e.range?.[1]??e.end}function b(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(b(n),t):t}var re=5,ie=8,ae=8,oe=e=>t=>t.label?x(t.label):b(t)+e,se=e=>e.__contentEnd??ne(e),ce=[`ExpressionStatement`,`Directive`,`ImportDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`ReturnStatement`,`ThrowStatement`,`DoWhileStatement`],le=new Map([[`BreakStatement`,oe(re)],[`ContinueStatement`,oe(ie)],[`DebuggerStatement`,e=>b(e)+ae],[`VariableDeclaration`,e=>x(d(0,e.declarations,-1))],...ce.map(e=>[e,se])]),ue=c(ce),de=e=>{if(ue(e)&&e.__contentEnd)return!0;let{type:t}=e;return t===`BreakStatement`||t===`ContinueStatement`||t===`DebuggerStatement`||t===`VariableDeclaration`?!0:t===`IfStatement`?de(e.alternate??e.consequent):t===`ForInStatement`||t===`ForOfStatement`||t===`ForStatement`||t===`LabeledStatement`||t===`WithStatement`||t===`WhileStatement`?de(e.body):!1};function x(e){let{type:t}=e;return t===`IfStatement`?x(e.alternate??e.consequent):t===`ForInStatement`||t===`ForOfStatement`||t===`ForStatement`||t===`LabeledStatement`||t===`WithStatement`||t===`WhileStatement`?x(e.body):le.get(t)?.(e)??ne(e)}function fe(e,t){let n=b(e);return te(n)&&n===b(t)}function pe(e,t){let n=x(e);return te(n)&&n===x(t)}function me(e,t){return fe(e,t)&&pe(e,t)}function S(e){return e.extra?.raw??e.raw}function he(e){return e.type===`BigIntLiteral`||e.type===`Literal`&&!!e.bigint}function ge(e){return e.type===`BooleanLiteral`||e.type===`Literal`&&typeof e.value==`boolean`}function _e(e){return e.type===`NumericLiteral`||e.type===`Literal`&&typeof e.value==`number`}function ve(e){return e.type===`RegExpLiteral`||e.type===`Literal`&&!!e.regex}function C(e){return e?.type===`StringLiteral`||e?.type===`Literal`&&typeof e.value==`string`}var w=c([`TSAsExpression`,`TSSatisfiesExpression`,`AsExpression`,`AsConstExpression`,`SatisfiesExpression`]),ye=c([`SatisfiesExpression`,`TSSatisfiesExpression`]),T=c([`TSUnionType`,`UnionTypeAnnotation`]),be=c([`TSIntersectionType`,`IntersectionTypeAnnotation`]),xe=c([`TupleTypeAnnotation`,`TSTupleType`]),Se=c([`TSConditionalType`,`ConditionalTypeAnnotation`]),Ce=c([`TSTypeAliasDeclaration`,`TypeAlias`]),we=c([`ReturnStatement`,`ThrowStatement`]),Te=c([`ExportDefaultDeclaration`,`DeclareExportDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`DeclareExportAllDeclaration`]),E=c([`ArrayExpression`]),Ee=c([`ObjectExpression`]),De=c([`Literal`,`BooleanLiteral`,`BigIntLiteral`,`DirectiveLiteral`,`NullLiteral`,`NumericLiteral`,`RegExpLiteral`,`StringLiteral`]),Oe=c([`ObjectTypeAnnotation`,`TSTypeLiteral`,`TSMappedType`]),ke=c([`FunctionExpression`,`ArrowFunctionExpression`]),D=c([`JSXElement`,`JSXFragment`]),Ae=c([`BinaryExpression`,`LogicalExpression`,`NGPipeExpression`]),O=c([`CallExpression`,`OptionalCallExpression`]),k=c([`MemberExpression`,`OptionalMemberExpression`]),je=c([`CallExpression`,`OptionalCallExpression`,`NewExpression`]),Me=c([`CallExpression`,`OptionalCallExpression`,`NewExpression`,`ImportExpression`]),Ne=c([`ChainExpression`,`TSNonNullExpression`]),Pe=c([`TSArrayType`,`ArrayTypeAnnotation`]),Fe=c([`TSTypeParameterInstantiation`,`TypeParameterInstantiation`]);function Ie(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||!me(t,n)?!1:C(t)?t.value===n.value&&S(t)===S(n):t.type===`Identifier`&&t.name===n.name}var Le=c([`File`,`TemplateElement`,`TSEmptyBodyFunctionExpression`,`ChainExpression`]),Re=(e,[t])=>t?.type===`ComponentParameter`&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type===`MatchObjectPatternProperty`&&t.shorthand&&t.key===e||t?.type===`ObjectProperty`&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type===`Property`&&t.shorthand&&t.key===e&&!ee(t)&&t.value!==t.key||t?.type===`ImportSpecifier`&&Ie(t)&&t.local===e&&t.local!==t.imported||t?.type===`ExportSpecifier`&&Ie(t)&&t.exported===e&&t.local!==t.exported,ze=(e,[t])=>!!(e.type===`FunctionExpression`&&t.type===`MethodDefinition`&&t.value===e&&h(e).length===0&&!e.returnType&&!o(e.typeParameters)&&e.body),Be=(e,[t])=>t?.typeAnnotation===e&&v(t),Ve=(e,[t,...n])=>Be(e,[t])||t?.typeName===e&&Be(t,n);function He(e,t){return Le(e)||Re(e,t)||ze(e,t)?!1:e.type===`EmptyStatement`?y({node:e,parent:t[0]}):!(Ve(e,t)||e.type===`TSTypeAnnotation`&&t[0].type===`TSPropertySignature`)}var Ue=He;function We(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)+`…`),t+(n?` `+n:``)}function Ge(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=We(e)}function A(e,t){t.leading=!0,t.trailing=!1,Ge(e,t)}function j(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Ge(e,t)}function M(e,t){t.leading=!1,t.trailing=!0,Ge(e,t)}function Ke(e){return(t,n,r)=>{if(n===!1)return!1;let i=!!r?.backwards,{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var qe=Ke(` `),Je=Ke(`,; `),Ye=Ke(/[^\n\r]/);function Xe(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 Ze=Xe,Qe=e=>e===`
2
+ `||e===`\r`||e===`\u2028`||e===`\u2029`;function $e(e,t,n){if(t===!1)return!1;let r=!!n?.backwards,i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
3
+ `)return t-2;if(Qe(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
4
+ `)return t+2;if(Qe(i))return t+1}return t}var et=$e;function tt(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?Ye(e,t):t}var nt=tt;function rt(e,t){let n=null,r=t;for(;r!==n;)n=r,r=qe(e,r),r=Ze(e,r),r=nt(e,r),r=et(e,r);return r}var it=rt;function at(e,t){let n=it(e,t);return n===!1?``:e.charAt(n)}var ot=at;function st(e,t,n={}){let r=qe(e,n.backwards?t-1:t,n);return r!==et(e,r,n)}var N=st;function ct(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
5
+ `)return!0;return!1}var P=ct,lt=new WeakMap;function ut(e){let t;return e.type===`ImportExpression`||e.type===`TSImportType`?(t=[e.source],e.options&&t.push(e.options)):t=e.type===`TSExternalModuleReference`?[e.expression]:e.arguments,t}function dt(e){return f(lt,e,ut)}function ft(e,t){let{node:n}=e;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 pt(e,t){if(e.type===`ImportExpression`||e.type===`TSImportType`){if(t===0||t===(e.options?-2:-1))return[`source`];if(e.options&&(t===1||t===-1))return[`options`];throw RangeError(`Invalid argument index`)}if(e.type===`TSExternalModuleReference`){if(t===0||t===-1)return[`expression`]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[`arguments`,t];throw RangeError(`Invalid argument index`)}var mt=Symbol.for(`comments`),ht=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},F=l(`replaceAll`,function(){if(typeof this==`string`)return ht});function gt(e){return F(0,e,/[^\n]/g,` `)}var _t=gt;function vt(e,t){for(let n of t){let t=b(n),r=x(n);e=e.slice(0,t)+_t(e.slice(t,r))+e.slice(r)}return e}var yt=new WeakMap;function bt(e){let t=e[mt];return f(yt,t,t=>vt(e.originalText,t))}function xt(e,t){let n=x(e)-1;if(t.originalText[n]===`)`)return n}function St(e,t){if(xt(e,t)===void 0)return;let n=bt(t),r=x(e.typeArguments??e.callee),i=n.indexOf(`(`,r);if(i!==-1)return i}function Ct(e,t,n){let r=xt(e,n);if(r===void 0||x(t)>r)return!1;let i=St(e,n);return i!==void 0&&b(t)>i}var wt=c([`Block`,`CommentBlock`,`MultiLine`]),Tt=c([`Line`,`CommentLine`,`SingleLine`,`HashbangComment`,`HTMLOpen`,`HTMLClose`,`Hashbang`,`InterpreterDirective`]);function Et(e){return e?.type===`ObjectProperty`||e?.type===`Property`&&!ee(e)}function Dt(e){return e.value.trim()===`prettier-ignore`&&!e.unignore}var Ot=new WeakMap;function kt(e){return f(Ot,e,e=>wt(e)&&e.value[0]===`*`&&/@(?:type|satisfies)\b/.test(e.value))}function At({comment:e,enclosingNode:t,followingNode:n,options:r}){if((t?.type===`ForInStatement`||t?.type===`ForOfStatement`||t?.type===`ForStatement`)&&n&&n===t.body){let t=bt(r).lastIndexOf(`)`,b(n));if(b(e)>t)return A(n,e),!0}return!1}var jt=(e,t)=>wt(e)&&!P(t,b(e),x(e)),Mt=(e,t)=>Tt(e)||jt(e,t);function Nt(e,t){e.type===`BlockStatement`?Pt(e,t):A(e,t)}function Pt(e,t){let n=(e.body||e.properties).find(({type:e})=>e!==`EmptyStatement`);n?A(n,t):j(e,t)}function Ft({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i,options:a}){return n?.type!==`IfStatement`||!r?!1:ot(i,x(e))===`)`?(M(t,e),!0):r===n.consequent?(A(r,e),!0):t===n.consequent&&r===n.alternate&&It({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i,options:a})}function It({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i,options:a}){let o=bt(a).indexOf(`else`,x(n.consequent));return b(e)>=o?(A(r,e),!0):t.type!==`BlockStatement`&&Mt(e,i)&&!P(i,x(t),b(e))?(M(t,e),!0):(j(n,e),!0)}function Lt({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return n?.type===`SwitchStatement`&&n.cases.length===0&&!r&&t===n.discriminant&&ot(i,x(e))===`}`&&(j(n,e),!0)}function Rt({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return(n?.type===`WhileStatement`||n?.type===`WithStatement`)&&r?ot(i,x(e))===`)`?(M(t,e),!0):n.body===r&&(A(r,e),!0):!1}function zt(e,{comment:t,text:n,options:r}){if(T(e)&&jt(t,n)&&!Dt(t)){let n=bt(r).slice(x(t),b(e));return/^[ \t]*$/.test(n)}return!1}function Bt(e,t){return A(zt(e,t)?e.types[0]:e,t.comment),!0}function Vt(e){return[an,yn,Jt,on,Kt,Ft,Rt,Lt,Gt,Xt,At,ln,un,fn,pn,mn,Qt,sn,qt,wn,xn,Dn,jn].some(t=>t(e))}function Ht(e){return[an,Wt,on,Jt,pn,Ft,Rt,Lt,Gt,Xt,At,sn,cn,dn,fn,_n,Sn,Cn,Tn,xn,kn,An,En,Dn].some(t=>t(e))}function Ut(e){return[an,yn,Ft,Rt,Lt,At,Qt,fn,_n,xn,tn,en,vn,An,Dn,jn].some(t=>t(e))}function Wt({comment:e,followingNode:t}){return t&&kt(e)?(A(t,e),!0):!1}function Gt({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n?.type!==`TryStatement`&&n?.type!==`CatchClause`||!r?!1:n.type===`CatchClause`&&t?(M(t,e),!0):r.type===`BlockStatement`?(Pt(r,e),!0):r.type===`TryStatement`?(Nt(r.finalizer,e),!0):r.type===`CatchClause`&&(Nt(r.body,e),!0)}function Kt({comment:e,enclosingNode:t,followingNode:n}){return k(t)&&n?.type===`Identifier`?(A(t,e),!0):!1}function qt({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!(t?.type===`ConditionalExpression`||Se(t))?!1:n?.type===`ConditionalExpression`||Se(n)?(j(t,e),!0):!1}function Jt({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i,options:a}){let o=t&&!P(i,x(t),b(e));return(!t||!o)&&(n?.type===`ConditionalExpression`||Se(n))&&r?a.experimentalTernaries&&n.alternate===r&&!(wt(e)&&!P(a.originalText,b(e),x(e)))?(j(n,e),!0):(A(r,e),!0):!1}var Yt=c([`ClassDeclaration`,`ClassExpression`,`DeclareClass`,`DeclareInterface`,`InterfaceDeclaration`,`TSInterfaceDeclaration`]);function Xt({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(Yt(n)){let{decorators:i}=n;if(o(i)&&r?.type!==`Decorator`)return M(d(0,i,-1),e),!0;if(n.body&&r===n.body)return Pt(n.body,e),!0;if(r){let{superClass:i}=n;if(i&&r===i&&t&&(t===n.id||t===n.typeParameters))return M(t,e),!0;for(let a of[`implements`,`extends`,`mixins`])if(n[a]&&r===n[a][0])return t&&(t===n.id||t===n.typeParameters||t===i)?M(t,e):j(n,e,a),!0}}return!1}var Zt=c([`ClassMethod`,`ClassProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`,`MethodDefinition`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`,`TSParameterProperty`]);function Qt({placement:e,comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:a}){return r&&n&&ot(a,x(t))===`(`&&(r.type===`Property`||r.type===`TSDeclareMethod`||r.type===`TSAbstractMethodDefinition`)&&n.type===`Identifier`&&r.key===n&&ot(a,x(n))!==`:`?(M(n,t),!0):Zt(r)&&!i&&e===`remaining`?(M(ot(a,x(t))===`(`?n:r,t),!0):n?.type===`Decorator`&&Zt(r)&&(Tt(t)||e===`ownLine`)?(M(n,t),!0):!1}var $t=c([`FunctionDeclaration`,`FunctionExpression`,`ClassMethod`,`MethodDefinition`,`ObjectMethod`]);function en({comment:e,precedingNode:t,enclosingNode:n,text:r}){return ot(r,x(e))===`(`&&t&&$t(n)?(M(t,e),!0):!1}function tn({comment:e,enclosingNode:t,text:n}){if(t?.type!==`ArrowFunctionExpression`)return!1;let r=it(n,x(e));return r!==!1&&n.slice(r,r+2)===`=>`&&(j(t,e,`commentBeforeArrow`),!0)}function nn(e,t,n){if(b(t)>=x(e)||x(t)<=b(e))return!1;let r=bt(n);return r.slice(0,b(t)).trimEnd().endsWith(`(`)&&r.slice(x(t)).trimStart().startsWith(`)`)}var rn=c([`ComponentDeclaration`,`DeclareComponent`,`ComponentTypeAnnotation`]);function an({comment:e,enclosingNode:t,options:n}){if(!t)return!1;if(Me(t)&&dt(t).length===0&&nn(t,e,n))return j(t,e),!0;let r=Mn(t)||rn(t)||t.type===`HookTypeAnnotation`?t:t.type===`MethodDefinition`||t.type===`TSAbstractMethodDefinition`||t.type===`Property`&&ee(t)?t.value:void 0;return r&&h(r).length===0&&nn(r,e,n)?(j(r,e),!0):!1}function on({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return t?.type===`FunctionTypeParam`&&n?.type===`FunctionTypeAnnotation`&&r?.type!==`FunctionTypeParam`||t?.type===`ComponentTypeParameter`&&(n?.type===`DeclareComponent`||n?.type===`ComponentTypeAnnotation`)&&r?.type!==`ComponentTypeParameter`||(t?.type===`Identifier`||t?.type===`AssignmentPattern`||t?.type===`ObjectPattern`||t?.type===`ArrayPattern`||t?.type===`RestElement`||t?.type===`TSParameterProperty`)&&(Mn(n)||(n?.type===`TSAbstractMethodDefinition`||n?.type===`MethodDefinition`)&&n.value.type===`TSEmptyBodyFunctionExpression`)&&ot(i,x(e))===`)`||(t?.type===`ComponentParameter`||t?.type===`RestElement`)&&(n?.type===`ComponentDeclaration`||n?.type===`DeclareComponent`)&&ot(i,x(e))===`)`?(M(t,e),!0):!wt(e)&&r?.type===`BlockStatement`&&$t(n)&&(n.type===`MethodDefinition`?n.value.body:n.body)===r&&it(i,x(e))===b(r)?(Pt(r,e),!0):!1}function sn({comment:e,enclosingNode:t}){return t?.type===`LabeledStatement`&&(A(t,e),!0)}function cn({comment:e,precedingNode:t,enclosingNode:n,options:r}){return je(n)&&n.callee===t&&n.arguments.length>0&&Ct(n,e,r)?(A(n.arguments[0],e),!0):!1}function ln({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return T(n)?(Dt(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(M(t,e),!0):!1):(T(r)&&Dt(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function un({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n&&n.type===`MatchOrPattern`?(Dt(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(M(t,e),!0):!1):(r&&r.type===`MatchOrPattern`&&Dt(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function dn({comment:e,enclosingNode:t}){return Et(t)?(A(t,e),!0):!1}function fn({comment:e,enclosingNode:t,ast:n,isLastComment:r}){return n?.body?.length===0?(r?j(n,e):A(n,e),!0):t?.type===`Program`&&t.body.length===0&&!o(t.directives)&&(r?j(t,e):A(t,e),!0)}function pn({comment:e,precedingNode:t,enclosingNode:n,text:r}){if(n?.type===`ImportSpecifier`||n?.type===`ExportSpecifier`)return A(n,e),!0;let i=t?.type===`ImportSpecifier`&&n?.type===`ImportDeclaration`,a=t?.type===`ExportSpecifier`&&n?.type===`ExportNamedDeclaration`;return(i||a)&&N(r,x(e))?(M(t,e),!0):!1}function mn({comment:e,enclosingNode:t}){return t?.type===`AssignmentPattern`&&(A(t,e),!0)}var hn=c([`VariableDeclarator`,`AssignmentExpression`,`TypeAlias`,`TSTypeAliasDeclaration`]),gn=c([`ObjectExpression`,`ArrayExpression`,`TemplateLiteral`,`TaggedTemplateExpression`,`ObjectTypeAnnotation`,`TSTypeLiteral`]);function _n(e){let{comment:t,enclosingNode:n,followingNode:r,options:i,placement:a}=e;if(hn(n)&&r&&a===`endOfLine`&&(gn(r)||wt(t)))return Bt(r,e);if(Ce(n)&&r){let a=n.id,o=bt(i).indexOf(`=`,x(a));if(b(t)>=o)return Bt(r,e)}return!1}function vn({comment:e,enclosingNode:t,precedingNode:n,followingNode:r,text:i}){return!r&&(t?.type===`TSMethodSignature`||t?.type===`TSDeclareFunction`||t?.type===`TSAbstractMethodDefinition`)&&(!n||n!==t.returnType)&&ot(i,x(e))===`;`&&(M(t,e),!0)}function yn({comment:e,enclosingNode:t,followingNode:n}){if(Dt(e)&&t?.type===`TSMappedType`&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function bn(e,t,n){let r=bt(n).indexOf(`[`,b(e));return x(t)<r}function xn({comment:e,enclosingNode:t,options:n}){if(t?.type===`TSMappedType`&&bn(t,e,n))return j(t,e),!0}function Sn({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!==`SwitchCase`||t.test||!n||n!==t.consequent[0]?!1:(n.type===`BlockStatement`&&Tt(e)?Pt(n,e):j(t,e),!0)}function Cn({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return T(t)&&(Pe(n)&&!r||be(n)||T(n))?(M(d(0,t.types,-1),e),!0):!1}function wn({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if((t?.type===`ObjectPattern`||t?.type===`ArrayPattern`)&&r?.type===`TSTypeAnnotation`)return n?M(n,e):j(t,e),!0}function Tn({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return!r&&n?.type===`UnaryExpression`&&(t?.type===`LogicalExpression`||t?.type===`BinaryExpression`)&&P(i,b(n.argument),b(t.right))&&Mt(e,i)&&!P(i,b(t.right),b(e))?(M(t.right,e),!0):!1}function En({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type===`TSPropertySignature`||e.type===`ObjectTypeProperty`)&&(T(t)||be(t)))return A(t,n),!0}function Dn({enclosingNode:e,precedingNode:t,followingNode:n,comment:r,text:i}){if(w(e)&&t===e.expression&&!Mt(r,i))return n?A(n,r):M(e,r),!0}function On(e,t,n){let r=bt(n).lastIndexOf(`=>`,b(t.body));return x(e)<r}function kn({comment:e,enclosingNode:t,followingNode:n,precedingNode:r,options:i}){return t?.type!==`ArrowFunctionExpression`||!n||!r||On(e,t,i)?!1:(Nt(n,e),!0)}function An({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if(!r&&t&&n){if(t.type===`ExpressionStatement`&&t.expression===n)return M(t,e),!0;let r=n.type===`SequenceExpression`,i=n.type===`AssignmentExpression`;if((r||i)&&(t.type===`ArrowFunctionExpression`&&t.body===n||t.type===`VariableDeclarator`&&t.init===n||t.type===`ReturnStatement`&&t.argument===n||t.type===`AssignmentExpression`&&t.right===n))return M(r?d(0,n.expressions,-1):n.right,e),!0}return!1}function jn(e){let{followingNode:t,comment:n}=e;return zt(t,e)?(A(t.types[0],n),!0):!1}var Mn=c([`ArrowFunctionExpression`,`FunctionExpression`,`FunctionDeclaration`,`ObjectMethod`,`ClassMethod`,`TSDeclareFunction`,`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`,`TSMethodSignature`,`TSConstructorType`,`TSFunctionType`,`TSDeclareMethod`,`HookDeclaration`]),Nn={endOfLine:Ht,ownLine:Vt,remaining:Ut};function Pn(e,{parser:t}){if(t===`flow`||t===`hermes`||t===`babel-flow`)return e=F(0,e,/[\s(]/g,``),e===``||e===`/*`||e===`/*::`}var Fn=Pn,I={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},In=(e,t)=>{if(typeof e==`function`&&(t=e,e=0),e||t)return(n,r,i)=>!(e&I.Leading&&!n.leading||e&I.Trailing&&!n.trailing||e&I.Dangling&&(n.leading||n.trailing)||e&I.Block&&!wt(n)||e&I.Line&&!Tt(n)||e&I.First&&r!==0||e&I.Last&&r!==i.length-1||e&I.PrettierIgnore&&!Dt(n)||t&&!t(n))};function L(e,t,n){if(!o(e?.comments))return!1;let r=In(t,n);return!r||e.comments.some(r)}function Ln(e,t,n){if(!Array.isArray(e?.comments))return[];let r=In(t,n);return r?e.comments.filter(r):e.comments}function Rn(e){return e?.prettierIgnore||L(e,I.PrettierIgnore)}function zn(e){let{node:t}=e;return(t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`)&&(e.key===`callee`&&O(e.parent)||e.key===`tag`&&e.parent.type===`TaggedTemplateExpression`)}var Bn=new Map([[`|>`],[`??`],[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`],[`**`]].flatMap((e,t)=>e.map(e=>[e,t])));function Vn(e){return Bn.get(e)}var Hn={"==":!0,"!=":!0,"===":!0,"!==":!0},Un={"*":!0,"/":!0,"%":!0},Wn={">>":!0,">>>":!0,"<<":!0};function Gn(e,t){return!(Vn(t)!==Vn(e)||e===`**`||Hn[e]&&Hn[t]||t===`%`&&Un[e]||e===`%`&&Un[t]||t!==e&&Un[t]&&Un[e]||Wn[e]&&Wn[t])}function Kn(e){return!!Wn[e]||e===`|`||e===`^`||e===`&`}function qn(e){return e.type===`LogicalExpression`&&e.operator===`??`}function R(e,t){switch(e.type){case`BinaryExpression`:case`LogicalExpression`:case`AssignmentExpression`:case`NGPipeExpression`:return R(e.left,t);case`MemberExpression`:case`OptionalMemberExpression`:return R(e.object,t);case`TaggedTemplateExpression`:return e.tag.type!==`FunctionExpression`&&R(e.tag,t);case`CallExpression`:case`OptionalCallExpression`:return e.callee.type!==`FunctionExpression`&&R(e.callee,t);case`ConditionalExpression`:return R(e.test,t);case`UpdateExpression`:return!e.prefix&&R(e.argument,t);case`BindExpression`:return e.object&&R(e.object,t);case`SequenceExpression`:return R(e.expressions[0],t);case`ChainExpression`:case`TSNonNullExpression`:case`TSSatisfiesExpression`:case`TSAsExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return R(e.expression,t);default:return t(e)}}function Jn(e){let{key:t,parent:n}=e;return t===`expression`&&n.type===`TSNonNullExpression`||t===`object`&&n.type===`MemberExpression`&&!n.optional||t===`callee`&&n.type===`CallExpression`&&!n.optional||t===`callee`&&n.type===`NewExpression`||t===`tag`&&n.type===`TaggedTemplateExpression`}var Yn=e=>e.extra?.parenthesized,Xn=c([`OptionalCallExpression`,`OptionalMemberExpression`]);function Zn(e){let{node:t}=e,n=t;for(;n.type===`TSNonNullExpression`;)if(n=n.expression,Yn(n))return!1;return Xn(n)?Yn(t)?!0:e.key!==`expression`||e.parent.type!==`TSNonNullExpression`:!1}function Qn(e){return(e.node.type===`ChainExpression`||Zn(e))&&Jn(e)}function $n(e){let{node:t}=e;if(t.type!==`Identifier`)return!1;if(t.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.name))return!0;let{key:n,parent:r}=e;if(n===`left`&&(t.name===`async`&&!r.await||t.name===`let`)&&r.type===`ForOfStatement`)return!0;if(t.name===`let`){let n=e.findAncestor(e=>e.type===`ForOfStatement`||e.type===`ForInStatement`)?.left;if(n&&R(n,e=>e===t))return!0}if(n===`object`&&t.name===`let`&&r.type===`MemberExpression`&&r.computed&&!r.optional){let n=e.findAncestor(e=>e.type===`ExpressionStatement`||e.type===`ForStatement`||e.type===`ForInStatement`),r=n?n.type===`ExpressionStatement`?n.expression:n.type===`ForStatement`?n.init:n.left:void 0;if(r&&R(r,e=>e===t))return!0}if(n===`expression`)switch(t.name){case`await`:case`interface`:case`module`:case`using`:case`yield`:case`let`:case`component`:case`hook`:case`type`:{let t=e.findAncestor(e=>!w(e));if(t!==r&&t.type===`ExpressionStatement`)return!0}}return!1}function er(e){return typeof e==`object`&&!!e}var tr=er;function*nr(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>tr(e)&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)i(e)&&(yield e);else i(n)&&(yield n)}}function*rr(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of nr(r,t))yield e,n.push(e)}}function ir(e,{getVisitorKeys:t,predicate:n}){for(let r of rr(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var ar=null;function or(e){if(ar!==null&&typeof ar.property){let e=ar;return ar=or.prototype=null,e}return ar=or.prototype=e??Object.create(null),new or}var sr=10;for(let e=0;e<=sr;e++)or();function cr(e){return or(e)}function lr(e,t=`type`){cr(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var ur=lr,z=[[`elements`],[`left`,`right`],[`value`],[`directives`,`body`],[`label`],[`callee`,`typeArguments`,`arguments`],[`test`,`consequent`,`alternate`],[`body`,`test`],[`expression`],[`left`,`right`,`body`],[`id`,`typeParameters`,`params`,`predicate`,`returnType`,`body`],[`object`,`property`],[`properties`],[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],[`decorators`,`key`,`value`],[`argument`],[`expressions`],[`id`,`init`],[`body`],[`decorators`,`id`,`typeParameters`,`superClass`,`superTypeArguments`,`mixins`,`implements`,`body`],[`declaration`,`specifiers`,`source`,`attributes`],[`local`],[`exported`],[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],[`id`],[`key`,`value`],[`elementType`],[`id`,`typeParameters`],[`id`,`typeParameters`,`extends`,`body`],[`id`,`body`],[`typeAnnotation`],[`id`,`typeParameters`,`right`],[`name`,`typeAnnotation`],[`types`],[`qualification`,`id`],[`elementTypes`],[`expression`,`typeAnnotation`],[`params`],[`members`],[`objectType`,`indexType`],[`decorators`,`key`,`typeAnnotation`,`value`],[`id`,`typeParameters`,`params`,`returnType`,`body`],[`key`,`typeParameters`,`params`,`returnType`],[`typeParameters`,`params`,`returnType`],[`parameterName`,`typeAnnotation`],[`checkType`,`extendsType`,`trueType`,`falseType`],[`typeParameter`],[`literal`],[`expression`,`typeArguments`],[`decorators`,`key`,`typeAnnotation`],[`argument`,`cases`],[`pattern`,`body`,`guard`],[`properties`,`rest`],[`node`]],dr=ur({ArrayExpression:z[0],AssignmentExpression:z[1],BinaryExpression:z[1],InterpreterDirective:[],Directive:z[2],DirectiveLiteral:[],BlockStatement:z[3],BreakStatement:z[4],CallExpression:z[5],CatchClause:[`param`,`body`],ConditionalExpression:z[6],ContinueStatement:z[4],DebuggerStatement:[],DoWhileStatement:z[7],EmptyStatement:[],ExpressionStatement:z[8],File:[`program`],ForInStatement:z[9],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:z[10],FunctionExpression:z[10],Identifier:[`typeAnnotation`,`decorators`],IfStatement:z[6],LabeledStatement:[`label`,`body`],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:z[1],MemberExpression:z[11],NewExpression:z[5],Program:z[3],ObjectExpression:z[12],ObjectMethod:z[13],ObjectProperty:z[14],RestElement:[`argument`,`typeAnnotation`,`decorators`],ReturnStatement:z[15],SequenceExpression:z[16],ParenthesizedExpression:z[8],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],ThisExpression:[],ThrowStatement:z[15],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:z[15],UpdateExpression:z[15],VariableDeclaration:[`declarations`],VariableDeclarator:z[17],WhileStatement:z[7],WithStatement:[`object`,`body`],AssignmentPattern:[`left`,`right`,`decorators`,`typeAnnotation`],ArrayPattern:[`elements`,`typeAnnotation`,`decorators`],ArrowFunctionExpression:[`typeParameters`,`params`,`predicate`,`returnType`,`body`],ClassBody:z[18],ClassExpression:z[19],ClassDeclaration:z[19],ExportAllDeclaration:[`source`,`attributes`,`exported`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:z[20],ExportSpecifier:[`local`,`exported`],ForOfStatement:z[9],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:z[21],ImportNamespaceSpecifier:z[21],ImportSpecifier:[`imported`,`local`],MetaProperty:[`meta`,`property`],ClassMethod:z[13],ObjectPattern:[`decorators`,`properties`,`typeAnnotation`],SpreadElement:z[15],Super:[],TaggedTemplateExpression:[`tag`,`typeArguments`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],YieldExpression:z[15],AwaitExpression:z[15],ImportExpression:[`source`,`options`],BigIntLiteral:[],ExportNamespaceSpecifier:z[22],OptionalMemberExpression:z[11],OptionalCallExpression:z[5],ClassProperty:z[23],ClassPrivateProperty:z[23],ClassPrivateMethod:z[13],PrivateName:z[24],StaticBlock:z[18],ImportAttribute:z[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:z[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:z[27],DeclareClass:[`id`,`typeParameters`,`extends`,`mixins`,`implements`,`body`],DeclareFunction:[`id`,`predicate`],DeclareInterface:z[28],DeclareModule:z[29],DeclareModuleExports:z[30],DeclareTypeAlias:z[31],DeclareOpaqueType:[`id`,`typeParameters`,`supertype`,`lowerBound`,`upperBound`],DeclareVariable:[`id`,`declarations`],DeclareExportDeclaration:z[20],DeclareExportAllDeclaration:[`source`,`attributes`],DeclaredPredicate:z[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:[`typeParameters`,`this`,`params`,`rest`,`returnType`],FunctionTypeParam:z[32],GenericTypeAnnotation:z[27],InferredPredicate:[],InterfaceExtends:z[27],InterfaceDeclaration:z[28],InterfaceTypeAnnotation:[`extends`,`body`],IntersectionTypeAnnotation:z[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:z[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:[`properties`,`indexers`,`callProperties`,`internalSlots`],ObjectTypeInternalSlot:[`id`,`value`],ObjectTypeCallProperty:z[2],ObjectTypeIndexer:[`variance`,`id`,`key`,`value`],ObjectTypeProperty:[`key`,`value`,`variance`],ObjectTypeSpreadProperty:z[15],OpaqueType:[`id`,`typeParameters`,`supertype`,`impltype`,`lowerBound`,`upperBound`],QualifiedTypeIdentifier:z[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:z[35],TypeofTypeAnnotation:[`argument`,`typeArguments`],TypeAlias:z[31],TypeAnnotation:z[30],TypeCastExpression:z[36],TypeParameter:[`bound`,`default`,`variance`],TypeParameterDeclaration:z[37],TypeParameterInstantiation:z[37],UnionTypeAnnotation:z[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:z[29],EnumBooleanBody:z[38],EnumNumberBody:z[38],EnumStringBody:z[38],EnumSymbolBody:z[38],EnumBooleanMember:z[17],EnumNumberMember:z[17],EnumStringMember:z[17],EnumDefaultedMember:z[24],IndexedAccessType:z[39],OptionalIndexedAccessType:z[39],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:[],JSXExpressionContainer:z[8],JSXSpreadChild:z[8],JSXIdentifier:[],JSXMemberExpression:z[11],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`typeArguments`,`attributes`],JSXSpreadAttribute:z[15],JSXText:[],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:[`object`,`callee`],ClassAccessorProperty:z[40],Decorator:z[8],DoExpression:z[18],ExportDefaultSpecifier:z[22],ModuleExpression:z[18],TopicReference:[],VoidPattern:[],TSParameterProperty:[`parameter`,`decorators`],TSDeclareFunction:z[41],TSDeclareMethod:z[42],TSQualifiedName:z[1],TSCallSignatureDeclaration:z[43],TSConstructSignatureDeclaration:z[43],TSPropertySignature:[`key`,`typeAnnotation`],TSMethodSignature:z[42],TSIndexSignature:[`parameters`,`typeAnnotation`],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:z[43],TSConstructorType:z[43],TSTypeReference:[`typeName`,`typeArguments`],TSTypePredicate:z[44],TSTypeQuery:[`exprName`,`typeArguments`],TSTypeLiteral:z[38],TSArrayType:z[26],TSTupleType:z[35],TSOptionalType:z[30],TSRestType:z[30],TSNamedTupleMember:[`label`,`elementType`],TSUnionType:z[33],TSIntersectionType:z[33],TSConditionalType:z[45],TSInferType:z[46],TSParenthesizedType:z[30],TSTypeOperator:z[30],TSIndexedAccessType:z[39],TSMappedType:[`key`,`constraint`,`nameType`,`typeAnnotation`],TSTemplateLiteralType:[`quasis`,`types`],TSLiteralType:z[47],TSClassImplements:z[48],TSInterfaceHeritage:z[48],TSInterfaceDeclaration:z[28],TSInterfaceBody:z[18],TSTypeAliasDeclaration:[`id`,`typeParameters`,`typeAnnotation`],TSInstantiationExpression:z[48],TSAsExpression:z[36],TSSatisfiesExpression:z[36],TSTypeAssertion:z[36],TSEnumBody:z[38],TSEnumDeclaration:z[29],TSEnumMember:[`id`,`initializer`],TSModuleDeclaration:z[29],TSModuleBlock:z[18],TSImportType:[`source`,`options`,`qualifier`,`typeArguments`],TSImportEqualsDeclaration:[`id`,`moduleReference`],TSExternalModuleReference:z[8],TSNonNullExpression:z[8],TSExportAssignment:z[8],TSNamespaceExportDeclaration:z[24],TSTypeAnnotation:z[30],TSTypeParameterInstantiation:z[37],TSTypeParameterDeclaration:z[37],TSTypeParameter:[`name`,`constraint`,`default`],ChainExpression:z[8],Literal:[],MethodDefinition:z[14],PrivateIdentifier:[],Property:z[25],PropertyDefinition:z[23],AccessorProperty:z[40],TSAbstractAccessorProperty:z[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:z[25],TSAbstractPropertyDefinition:z[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:[`id`,`typeParameters`,`params`,`returnType`],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:z[8],AsExpression:z[36],BigIntTypeAnnotation:[],ComponentDeclaration:[`id`,`params`,`body`,`typeParameters`,`rendersType`],ComponentParameter:[`name`,`local`],ComponentTypeAnnotation:[`params`,`rest`,`typeParameters`,`rendersType`],ComponentTypeParameter:z[32],ConditionalTypeAnnotation:z[45],DeclareComponent:[`id`,`params`,`rest`,`typeParameters`,`rendersType`],DeclareEnum:z[29],DeclareHook:z[24],DeclareNamespace:z[29],EnumBigIntBody:z[38],EnumBigIntMember:z[17],EnumBody:z[38],HookDeclaration:z[41],HookTypeAnnotation:[`params`,`returnType`,`rest`,`typeParameters`],InferTypeAnnotation:z[46],KeyofTypeAnnotation:z[15],MatchArrayPattern:[`elements`,`rest`],MatchAsPattern:[`pattern`,`target`],MatchBindingPattern:z[24],MatchExpression:z[50],MatchExpressionCase:z[51],MatchIdentifierPattern:z[24],MatchInstanceObjectPattern:z[52],MatchInstancePattern:[`targetConstructor`,`properties`],MatchLiteralPattern:z[47],MatchMemberPattern:[`base`,`property`],MatchObjectPattern:z[52],MatchObjectPatternProperty:[`key`,`pattern`],MatchOrPattern:[`patterns`],MatchRestPattern:z[15],MatchStatement:z[50],MatchStatementCase:z[51],MatchUnaryPattern:z[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:[`keyTparam`,`propType`,`sourceType`,`variance`],QualifiedTypeofIdentifier:z[34],RecordDeclaration:[`id`,`typeParameters`,`implements`,`body`],RecordDeclarationBody:z[0],RecordDeclarationImplements:[`id`,`typeArguments`],RecordDeclarationProperty:[`key`,`typeAnnotation`,`defaultValue`],RecordDeclarationStaticProperty:[`key`,`typeAnnotation`,`value`],RecordExpression:[`recordConstructor`,`typeArguments`,`properties`],RecordExpressionProperties:z[12],SatisfiesExpression:z[36],TupleTypeLabeledElement:[`label`,`elementType`,`variance`],TupleTypeSpreadElement:[`label`,`typeAnnotation`],TypeOperator:z[30],TypePredicate:z[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:z[16],NGEmptyExpression:[],NGPipeExpression:[`left`,`right`,`arguments`],NGMicrosyntax:z[18],NGMicrosyntaxAs:[`key`,`alias`],NGMicrosyntaxExpression:[`expression`,`alias`],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:[`key`,`expression`],NGMicrosyntaxLet:z[25],NGRoot:z[53],JsExpressionRoot:z[53],JsonRoot:z[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:z[30],TSJSDocNonNullableType:z[30]});function fr(e,t){return t(e)||ir(e,{getVisitorKeys:dr,predicate:t})}function pr(e){return e.type===`AssignmentExpression`||e.type===`BinaryExpression`||e.type===`LogicalExpression`||e.type===`NGPipeExpression`||e.type===`ConditionalExpression`||O(e)||k(e)||e.type===`SequenceExpression`||e.type===`TaggedTemplateExpression`||e.type===`BindExpression`||e.type===`UpdateExpression`&&!e.prefix||w(e)||Ne(e)}function mr(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function hr(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 Error(`Unexpected node has no left side.`)}function gr(e,t){return D(t)?Rn(t):L(t,I.Leading,t=>N(e,x(t)))}function _r(e,t){if(gr(t.originalText,e)||L(e,I.Leading,e=>P(t.originalText,b(e),x(e)))&&!D(e))return!0;if(pr(e)){let n=e,r;for(;r=mr(n);)if(n=r,gr(t.originalText,n))return!0}return!1}var vr=new WeakMap;function yr(e,t){return f(vr,e,e=>_r(e,t))}function br(e){for(;Ne(e);)e=e.expression;return e}function xr(e,t,n){let{node:r,key:i,parent:a}=e;switch(a.type){case`ReturnStatement`:case`ThrowStatement`:if(Sr(e,t))return!1;break;case`ParenthesizedExpression`:return!1;case`ClassDeclaration`:case`ClassExpression`:if(i===`superClass`){let e=br(r);if(e.type===`ArrowFunctionExpression`||e.type===`AssignmentExpression`||e.type===`AwaitExpression`||e.type===`BinaryExpression`||e.type===`ConditionalExpression`||e.type===`LogicalExpression`||e.type===`NewExpression`||e.type===`ObjectExpression`||e.type===`SequenceExpression`||e.type===`TaggedTemplateExpression`||e.type===`UnaryExpression`||e.type===`UpdateExpression`||e.type===`YieldExpression`||e.type===`ClassExpression`&&o(e.decorators))return!0}break;case`ExportDefaultDeclaration`:if(Cr(e,t,n))return!0;break;case`Decorator`:if(i===`expression`&&!wr(r))return!0;break;case`TypeAnnotation`:if(e.match(void 0,void 0,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)&&!(r.type===`NullableTypeAnnotation`&&e.call(()=>n(e,t),`typeAnnotation`))&&Er(r))return!0;break;case`VariableDeclarator`:if(i===`init`&&e.match(void 0,void 0,(e,t)=>t===`declarations`&&e.type===`VariableDeclaration`,(e,t)=>t===`left`&&e.type===`ForInStatement`))return!0;break;case`TSInstantiationExpression`:if(i===`expression`&&(r.type===`AwaitExpression`||r.type===`YieldExpression`))return!0}}function Sr(e,t){let{key:n,parent:r}=e;if(!(n===`argument`&&we(r)))return!1;let{node:i}=e;return!!((i.type===`SequenceExpression`||i.type===`AssignmentExpression`)&&yr(i,t))}function Cr(e,t,n){let{node:r,parent:i}=e;return r.type===`FunctionExpression`||r.type===`ClassExpression`?i.type===`ExportDefaultDeclaration`||!n(e,t):!pr(r)||i.type!==`ExportDefaultDeclaration`&&n(e,t)?!1:e.call(()=>Cr(e,t,n),...hr(r))}function wr(e){return e.type===`ChainExpression`&&(e=e.expression),Tr(e)||O(e)&&!e.optional&&Tr(e.callee)}function Tr(e){return e.type===`Identifier`?!0:k(e)?!e.computed&&!e.optional&&e.property.type===`Identifier`&&Tr(e.object):!1}function Er(e){return fr(e,e=>e.type===`ObjectTypeAnnotation`&&fr(e,e=>e.type===`FunctionTypeAnnotation`))}function Dr(e,t){if(e.isRoot)return!1;let{node:n,key:r,parent:i}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Ar(n)&&jr(e))return!0;if(Or(n))return!1;if(n.type===`Identifier`)return $n(e);if(n.type===`ObjectExpression`||n.type===`FunctionExpression`||n.type===`ClassExpression`||n.type===`DoExpression`){let t=e.findAncestor(e=>e.type===`ExpressionStatement`)?.expression;if(t&&R(t,e=>e===n))return!0}if(n.type===`ObjectExpression`){let t=e.findAncestor(e=>e.type===`ArrowFunctionExpression`)?.body;if(t&&t.type!==`SequenceExpression`&&t.type!==`AssignmentExpression`&&R(t,e=>e===n))return!0}let a=xr(e,t,Dr);if(typeof a==`boolean`)return a;switch(n.type){case`UpdateExpression`:if(i.type===`UnaryExpression`)return n.prefix&&(n.operator===`++`&&i.operator===`+`||n.operator===`--`&&i.operator===`-`);case`UnaryExpression`:switch(i.type){case`UnaryExpression`:return n.operator===i.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`&&n.type===`UnaryExpression`&&(i.operator===`in`||i.operator===`instanceof`)||r===`left`&&i.operator===`**`;case`TSNonNullExpression`:return!0;default:return!1}case`BinaryExpression`:if(i.type===`UpdateExpression`||n.operator===`in`&&kr(e))return!0;if(n.operator===`|>`&&n.extra?.parenthesized){let t=e.grandparent;if(t.type===`BinaryExpression`&&t.operator===`|>`)return!0}case`TSTypeAssertion`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`LogicalExpression`:switch(i.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return!w(n);case`ConditionalExpression`:return w(n)||qn(n);case`CallExpression`:case`NewExpression`:case`OptionalCallExpression`:return r===`callee`;case`ClassExpression`:case`ClassDeclaration`:return r===`superClass`;case`TSTypeAssertion`:case`TaggedTemplateExpression`:case`JSXSpreadAttribute`:case`SpreadElement`:case`BindExpression`:case`AwaitExpression`:case`TSNonNullExpression`:case`UpdateExpression`:return!0;case`UnaryExpression`:if(!L(n))return!0;break;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;case`AssignmentExpression`:case`AssignmentPattern`:return r===`left`&&(n.type===`TSTypeAssertion`||w(n));case`LogicalExpression`:if(n.type===`LogicalExpression`)return i.operator!==n.operator;case`BinaryExpression`:{let{operator:e,type:t}=n;if(!e&&t!==`TSTypeAssertion`)return!0;let a=Vn(e),o=i.operator,s=Vn(o);return!!(s>a||r===`right`&&s===a||s===a&&!Gn(o,e)||s<a&&e===`%`&&(o===`+`||o===`-`)||Kn(o))}default:return!1}break;case`SequenceExpression`:return i.type!==`ForStatement`;case`YieldExpression`:if(i.type===`AwaitExpression`||i.type===`TSTypeAssertion`)return!0;case`AwaitExpression`:switch(i.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&&i.operator===`|>`);default:return!1}case`TSFunctionType`:if(e.match(e=>e.type===`TSFunctionType`,(e,t)=>t===`typeAnnotation`&&e.type===`TSTypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`))return!0;case`TSConditionalType`:case`TSConstructorType`:case`ConditionalTypeAnnotation`:if(r===`extendsType`&&Se(n)&&i.type===n.type||r===`constraint`&&n.type===`TSConditionalType`&&i.type===`TSTypeParameter`||r===`typeAnnotation`&&n.type===`ConditionalTypeAnnotation`&&i.type===`TypeAnnotation`&&e.grandparent.type===`TypeParameter`&&e.grandparent.bound===i&&e.grandparent.usesExtendsBound||r===`checkType`&&Se(i))return!0;if(r===`extendsType`&&i.type===`TSConditionalType`){let{typeAnnotation:e}=n.returnType||n.typeAnnotation;if(e.type===`TSTypePredicate`&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),e.type===`TSInferType`&&e.typeParameter.constraint)return!0}case`TSUnionType`:case`TSIntersectionType`:if(T(i)||be(i))return!0;case`TSInferType`:if(n.type===`TSInferType`){if(i.type===`TSRestType`)return!1;if(r===`types`&&(i.type===`TSUnionType`||i.type===`TSIntersectionType`)&&n.typeParameter.type===`TSTypeParameter`&&n.typeParameter.constraint)return!0}case`TSTypeOperator`:return i.type===`TSArrayType`||i.type===`TSOptionalType`||i.type===`TSRestType`||r===`objectType`&&i.type===`TSIndexedAccessType`||i.type===`TSTypeOperator`||i.type===`TSTypeAnnotation`&&e.grandparent.type.startsWith(`TSJSDoc`);case`TSTypeQuery`:return r===`objectType`&&i.type===`TSIndexedAccessType`||r===`elementType`&&i.type===`TSArrayType`;case`TypeOperator`:return i.type===`ArrayTypeAnnotation`||i.type===`NullableTypeAnnotation`||r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`)||i.type===`TypeOperator`;case`TypeofTypeAnnotation`:case`KeyofTypeAnnotation`:return r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`)||r===`elementType`&&i.type===`ArrayTypeAnnotation`;case`ArrayTypeAnnotation`:return i.type===`NullableTypeAnnotation`;case`IntersectionTypeAnnotation`:case`UnionTypeAnnotation`:return i.type===`TypeOperator`||i.type===`KeyofTypeAnnotation`||i.type===`ArrayTypeAnnotation`||i.type===`NullableTypeAnnotation`||i.type===`IntersectionTypeAnnotation`||i.type===`UnionTypeAnnotation`||r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`);case`InferTypeAnnotation`:case`NullableTypeAnnotation`:if(i.type===`ArrayTypeAnnotation`||r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`))return!0;break;case`ComponentTypeAnnotation`:case`FunctionTypeAnnotation`:{if(n.type===`ComponentTypeAnnotation`&&(n.rendersType===null||n.rendersType===void 0))return!1;if(e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`TypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)||e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`NullableTypeAnnotation`,(e,t)=>t===`typeAnnotation`&&e.type===`TypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)||e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`TypePredicate`,(e,t)=>t===`typeAnnotation`&&e.type===`TypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`))return!0;let t=i.type===`NullableTypeAnnotation`?e.grandparent:i;return t.type===`UnionTypeAnnotation`||t.type===`IntersectionTypeAnnotation`||t.type===`ArrayTypeAnnotation`||r===`objectType`&&(t.type===`IndexedAccessType`||t.type===`OptionalIndexedAccessType`)||r===`checkType`&&i.type===`ConditionalTypeAnnotation`||r===`extendsType`&&i.type===`ConditionalTypeAnnotation`&&n.returnType?.type===`InferTypeAnnotation`&&n.returnType.typeParameter.bound||t.type===`NullableTypeAnnotation`||i.type===`FunctionTypeParam`&&i.name===null&&h(n).some(e=>e.typeAnnotation?.type===`NullableTypeAnnotation`)}case`OptionalIndexedAccessType`:return r===`objectType`&&i.type===`IndexedAccessType`;case`StringLiteral`:case`NumericLiteral`:case`Literal`:if(typeof n.value==`string`&&i.type===`ExpressionStatement`&&typeof i.directive!=`string`){let t=e.grandparent;return t.type===`Program`||t.type===`BlockStatement`}return r===`object`&&k(i)&&_e(n);case`AssignmentExpression`:return!((r===`init`||r===`update`)&&i.type===`ForStatement`||r===`expression`&&n.left.type!==`ObjectPattern`&&i.type===`ExpressionStatement`||r===`key`&&i.type===`TSPropertySignature`||i.type===`AssignmentExpression`||r===`expressions`&&i.type===`SequenceExpression`&&e.match(void 0,void 0,(e,t)=>(t===`init`||t===`update`)&&e.type===`ForStatement`)||r===`value`&&i.type===`Property`&&e.match(void 0,void 0,(e,t)=>t===`properties`&&e.type===`ObjectPattern`)||i.type===`NGChainedExpression`||r===`node`&&i.type===`JsExpressionRoot`);case`ConditionalExpression`:switch(i.type){case`TaggedTemplateExpression`:case`UnaryExpression`:case`SpreadElement`:case`BinaryExpression`:case`LogicalExpression`:case`NGPipeExpression`:case`AwaitExpression`:case`JSXSpreadAttribute`:case`TSTypeAssertion`:case`TypeCastExpression`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`TSNonNullExpression`:return!0;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`ConditionalExpression`:return!t.experimentalTernaries&&r===`test`;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;default:return!1}case`FunctionExpression`:switch(i.type){case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`TaggedTemplateExpression`:return!0;case`ExportDefaultDeclaration`:return r===`declaration`;default:return!1}case`ArrowFunctionExpression`:switch(i.type){case`BinaryExpression`:return i.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`:switch(i.type){case`NewExpression`:return r===`callee`;case`ExportDefaultDeclaration`:return r===`declaration`;default:return!1}case`OptionalMemberExpression`:case`OptionalCallExpression`:case`ChainExpression`:case`TSNonNullExpression`:if(Qn(e))return!0;case`CallExpression`:case`MemberExpression`:case`TaggedTemplateExpression`:case`ImportExpression`:if(r===`callee`&&(i.type===`BindExpression`||i.type===`NewExpression`)){let e=n;for(;e;)switch(e.type){case`CallExpression`:case`ImportExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:case`BindExpression`:e=e.object;break;case`TaggedTemplateExpression`:e=e.tag;break;case`TSNonNullExpression`:e=e.expression;break;default:return!1}}return!1;case`BindExpression`:return r===`callee`&&(i.type===`BindExpression`||i.type===`NewExpression`)||r===`object`&&k(i);case`NGPipeExpression`:return!(i.type===`NGRoot`||i.type===`NGMicrosyntaxExpression`||i.type===`ObjectProperty`&&!n.extra?.parenthesized||E(i)||r===`arguments`&&O(i)||r===`right`&&i.type===`NGPipeExpression`||r===`property`&&i.type===`MemberExpression`||i.type===`AssignmentExpression`);case`JSXFragment`:case`JSXElement`:return r===`callee`||r===`left`&&i.type===`BinaryExpression`&&i.operator===`<`||!E(i)&&i.type!==`ArrowFunctionExpression`&&i.type!==`AssignmentExpression`&&i.type!==`AssignmentPattern`&&i.type!==`BinaryExpression`&&i.type!==`ConditionalExpression`&&i.type!==`ExpressionStatement`&&i.type!==`JsExpressionRoot`&&i.type!==`JSXAttribute`&&i.type!==`JSXElement`&&i.type!==`JSXExpressionContainer`&&i.type!==`JSXFragment`&&i.type!==`LogicalExpression`&&!je(i)&&!Et(i)&&!we(i)&&i.type!==`TypeCastExpression`&&i.type!==`VariableDeclarator`&&i.type!==`YieldExpression`&&i.type!==`MatchExpressionCase`&&(r!==`declaration`||i.type!==`ExportDefaultDeclaration`);case`TSInstantiationExpression`:return r===`object`&&k(i);case`MatchOrPattern`:return i.type===`MatchAsPattern`}return!1}var Or=c(`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`.split(`.`));function kr(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 Ar(e){return Ee(e)}function jr(e){let{parent:t,key:n}=e;switch(t.type){case`NGPipeExpression`:if(n===`arguments`&&e.isLast)return e.callParent(jr);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(jr);break;case`ConditionalExpression`:if(n===`alternate`)return e.callParent(jr);break;case`UnaryExpression`:if(t.prefix&&e.callParent(jr))return!0}return!1}var Mr=Dr,Nr=`string`,Pr=`array`,Fr=`cursor`,Ir=`indent`,Lr=`align`,Rr=`trim`,zr=`group`,Br=`fill`,Vr=`if-break`,Hr=`indent-if-break`,Ur=`line-suffix`,Wr=`line-suffix-boundary`,B=`line`,Gr=`label`,Kr=`break-parent`,qr=new Set([Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,B,Gr,Kr]);function Jr(e){if(typeof e==`string`)return Nr;if(Array.isArray(e))return Pr;if(!e)return;let{type:t}=e;if(qr.has(t))return t}var Yr=Jr,Xr=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Zr(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
6
+ Expected it to be 'string' or 'object'.`;if(Yr(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Xr([...qr].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
7
+ Expected it to be ${r}.`}var Qr=class extends Error{name=`InvalidDocError`;constructor(e){super(Zr(e)),this.doc=e}},$r={};function ei(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===$r){n(i.pop());continue}n&&i.push(e,$r);let a=Yr(e);if(!a)throw new Qr(e);if(t?.(e)!==!1)switch(a){case Pr:case Br:{let t=a===Pr?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case Vr:i.push(e.flatContents,e.breakContents);break;case zr:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);break;case Lr:case Ir:case Hr:case Gr:case Ur:i.push(e.contents);break;case Nr:case Fr:case Rr:case Wr:case B:case Kr:break;default:throw new Qr(e)}}}var ti=ei;function ni(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){return f(n,e,i)}function i(e){switch(Yr(e)){case Pr:return t(e.map(r));case Br:return t({...e,parts:e.parts.map(r)});case Vr:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case zr:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case Lr:case Ir:case Hr:case Gr:case Ur:return t({...e,contents:r(e.contents)});case Nr:case Fr:case Rr:case Wr:case B:case Kr:return t(e);default:throw new Qr(e)}}}function ri(e,t,n){let r=n,i=!1;function a(e){if(i)return!1;let n=t(e);n!==void 0&&(i=!0,r=n)}return ti(e,a),r}function ii(e){if(e.type===zr&&e.break||e.type===B&&e.hard||e.type===Kr)return!0}function V(e){return ri(e,ii,!1)}function ai(e){if(e.length>0){let t=d(0,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function oi(e){let t=new Set,n=[];function r(e){if(e.type===Kr&&ai(n),e.type===zr){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===zr&&n.pop().break&&ai(n)}ti(e,r,i,!0)}function si(e){return e.type===B&&!e.hard?e.soft?``:` `:e.type===Vr?e.flatContents:e}function ci(e){return ni(e,si)}function li(e){switch(Yr(e)){case Br:{let{parts:t}=e;if(t.every(e=>e===``))return``;if(t.length===1)return t[0];break}case zr:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===zr&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Lr:case Ir:case Hr:case Ur:if(!e.contents)return``;break;case Vr:if(!e.flatContents&&!e.breakContents)return``;break;case Pr:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof d(0,t,-1)==`string`?t[t.length-1]+=e:t.push(e),t.push(...r)}return t.length===0?``:t.length===1?t[0]:t}case Nr:case Fr:case Rr:case Wr:case B:case Gr:case Kr:break;default:throw new Qr(e)}return e}function ui(e){return ni(e,e=>li(e))}function di(e,t=Mi){return ni(e,e=>typeof e==`string`?G(t,e.split(`
8
+ `)):e)}function fi(e){if(e.type===B)return!0}function pi(e){return ri(e,fi,!1)}function mi(e,t){return e.type===Gr?{...e,contents:t(e.contents)}:t(e)}function hi(e){let t=!0;return ti(e,e=>{switch(Yr(e)){case Nr:if(e===``)break;case Rr:case Wr:case B:case Kr:return t=!1,!1}}),t}var gi=s,_i=s,vi=s,yi=s;function H(e){return gi(e),{type:Ir,contents:e}}function bi(e,t){return yi(e),gi(t),{type:Lr,contents:t,n:e}}function xi(e){return bi(-1/0,e)}function Si(e){return bi({type:`root`},e)}function Ci(e){return bi(-1,e)}function wi(e,t,n){gi(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=H(r);r=bi(t%n,r),r=bi(-1/0,r)}return r}var Ti={type:Kr},Ei={type:Fr};function Di(e){return vi(e),{type:Br,parts:e}}function U(e,t={}){return gi(e),_i(t.expandedStates,!0),{type:zr,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Oi(e,t){return U(e[0],{...t,expandedStates:e})}function W(e,t=``,n={}){return gi(e),t!==``&&gi(t),{type:Vr,breakContents:e,flatContents:t,groupId:n.groupId}}function ki(e,t){return gi(e),{type:Hr,contents:e,groupId:t.groupId,negate:t.negate}}function G(e,t){gi(e),_i(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Ai(e,t){return gi(t),e?{type:Gr,label:e,contents:t}:t}var K={type:B},q={type:B,soft:!0},ji={type:B,hard:!0},J=[ji,Ti],Mi=[{type:B,hard:!0,literal:!0},Ti];function Ni(e){return gi(e),{type:Ur,contents:e}}var Pi={type:Wr},Fi=`cr`,Ii=`crlf`,Li=`\r`,Ri=`\r
9
+ `,zi=`
10
+ `;function Bi(e){return e===Fi?Li:e===Ii?Ri:zi}var Vi=()=>/[#*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,Hi=12288,Ui=65510,Wi=[12288,12288,65281,65376,65504,65510],Gi=4352,Ki=262141,qi=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Ji=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},Yi=19968,[Xi,Zi]=Qi(qi);function Qi(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Yi>=i&&Yi<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}var $i=e=>e<Hi||e>Ui?!1:Ji(Wi,e),ea=e=>e>=Xi&&e<=Zi?!0:e<Gi||e>Ki?!1:Ji(qi,e),ta=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,na=e=>ta.test(e),ra=/[^\x20-\x7F]/;function ia(e){if(!e)return 0;if(!ra.test(e))return e.length;let t=0;e=e.replace(Vi(),e=>(t+=na(e)?1:2,``));for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||e>=65024&&e<=65039||(t+=$i(e)||ea(e)?2:1)}return t}var aa=ia,oa={type:0},sa={type:1},ca={value:``,length:0,queue:[],get root(){return ca}};function la(e,t,n){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],i=``,a=0,o=0,s=0;for(let e of r)switch(e.type){case 0:u(),n.useTabs?c(1):l(n.tabWidth);break;case 3:{let{string:t}=e;u(),i+=t,a+=t.length;break}case 2:{let{width:t}=e;o+=1,s+=t;break}default:throw Error(`Unexpected indent comment '${e.type}'.`)}return f(),{...e,value:i,length:a,queue:r};function c(e){i+=` `.repeat(e),a+=n.tabWidth*e}function l(e){i+=` `.repeat(e),a+=e}function u(){n.useTabs?d():f()}function d(){o>0&&c(o),p()}function f(){s>0&&l(s),p()}function p(){o=0,s=0}}function ua(e,t,n){if(!t)return e;if(t.type===`root`)return{...e,root:e};if(t===-1/0)return e.root;let r;return r=typeof t==`number`?t<0?sa:{type:2,width:t}:{type:3,string:t},la(e,r,n)}function da(e,t){return la(e,oa,t)}function fa(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 pa(e){let t=fa(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var ma=class{#e=[];#t=``;#n=0;#r=[];#i=[];#a(){let e=this.#t;e!==``&&(this.#e.push(e),this.#n+=e.length,this.#t=``);for(let e of this.#i)this.#r.push(Math.min(e,this.#n));this.#i.length=0}markPosition(){if(this.#r.length+this.#i.length>=2)throw Error(`There are too many 'cursor' in doc.`);this.#i.push(this.#n+this.#t.length)}write(e){this.#t+=e}trim(){let{text:e,count:t}=pa(this.#t);return this.#t=e,this.#a(),t}finish(){return this.#a(),{text:this.#e.join(``),positions:this.#r}}},ha=Symbol(`MODE_BREAK`),ga=Symbol(`MODE_FLAT`),_a=Symbol(`DOC_FILL_PRINTED_LENGTH`);function va(e,t,n,r,i,a){if(n===1/0)return!0;let o=t.length,s=!1,c=[e],l=``;for(;n>=0;){if(c.length===0){if(o===0)return!0;c.push(t[--o]);continue}let{mode:e,doc:u}=c.pop(),f=Yr(u);switch(f){case Nr:u&&(s&&=(l+=` `,--n,!1),l+=u,n-=aa(u));break;case Pr:case Br:{let t=f===Pr?u:u.parts,n=u[_a]??0;for(let r=t.length-1;r>=n;r--)c.push({mode:e,doc:t[r]});break}case Ir:case Lr:case Hr:case Gr:c.push({mode:e,doc:u.contents});break;case Rr:{let{text:e,count:t}=pa(l);l=e,n+=t;break}case zr:{if(a&&u.break)return!1;let t=u.break?ha:e,n=u.expandedStates&&t===ha?d(0,u.expandedStates,-1):u.contents;c.push({mode:t,doc:n});break}case Vr:{let t=(u.groupId?i[u.groupId]||ga:e)===ha?u.breakContents:u.flatContents;t&&c.push({mode:e,doc:t});break}case B:if(e===ha||u.hard)return!0;u.soft||(s=!0);break;case Ur:r=!0;break;case Wr:if(r)return!1}}return!1}function ya(e,t){let n=Object.create(null),r=t.printWidth,i=Bi(t.endOfLine),a=0,o=[{indent:ca,mode:ha,doc:e}],s=!1,c=[],l=new ma;for(oi(e);o.length>0;){let{indent:e,mode:u,doc:f}=o.pop();switch(Yr(f)){case Nr:{let e=i===`
11
+ `?f:F(0,f,`
12
+ `,i);e&&(l.write(e),o.length>0&&(a+=aa(e)));break}case Pr:for(let t=f.length-1;t>=0;t--)o.push({indent:e,mode:u,doc:f[t]});break;case Fr:l.markPosition();break;case Ir:o.push({indent:da(e,t),mode:u,doc:f.contents});break;case Lr:o.push({indent:ua(e,f.n,t),mode:u,doc:f.contents});break;case Rr:a-=l.trim();break;case zr:{let t=(function(){if(u===ga&&!s)return{indent:e,mode:f.break?ha:ga,doc:f.contents};s=!1;let t=r-a,i=c.length>0,l={indent:e,mode:ga,doc:f.contents};if(!f.break&&va(l,o,t,i,n))return l;if(!f.expandedStates)return{indent:e,mode:ha,doc:f.contents};if(!f.break)for(let r=1;r<f.expandedStates.length-1;r++){let a={indent:e,mode:ga,doc:f.expandedStates[r]};if(va(a,o,t,i,n))return a}return{indent:e,mode:ha,doc:d(0,f.expandedStates,-1)}})();o.push(t),f.id&&(n[f.id]=t.mode);break}case Br:{let t=r-a,i=f[_a]??0,{parts:s}=f,l=s.length-i;if(l===0)break;let d=s[i+0],p=s[i+1],m={indent:e,mode:ga,doc:d},h={indent:e,mode:ha,doc:d},g=va(m,[],t,c.length>0,n,!0);if(l===1){g?o.push(m):o.push(h);break}let _={indent:e,mode:ga,doc:p},v={indent:e,mode:ha,doc:p};if(l===2){g?o.push(_,m):o.push(v,h);break}let y=s[i+2],ee={indent:e,mode:u,doc:{...f,[_a]:i+2}},te=va({indent:e,mode:ga,doc:[d,p,y]},[],t,c.length>0,n,!0);o.push(ee),te?o.push(_,m):g?o.push(v,m):o.push(v,h);break}case Vr:case Hr:{let t=f.groupId?n[f.groupId]:u;if(t===ha){let t=f.type===Vr?f.breakContents:f.negate?f.contents:H(f.contents);t&&o.push({indent:e,mode:u,doc:t})}if(t===ga){let t=f.type===Vr?f.flatContents:f.negate?H(f.contents):f.contents;t&&o.push({indent:e,mode:u,doc:t})}break}case Ur:c.push({indent:e,mode:u,doc:f.contents});break;case Wr:c.length>0&&o.push({indent:e,mode:u,doc:ji});break;case B:switch(u){case ga:if(!f.hard){f.soft||(l.write(` `),a+=1);break}s=!0;case ha:if(c.length>0){o.push({indent:e,mode:u,doc:f},...c.reverse()),c.length=0;break}f.literal?(l.write(i),a=0,e.root&&(e.root.value&&l.write(e.root.value),a=e.root.length)):(l.trim(),l.write(i+e.value),a=e.length)}break;case Gr:o.push({indent:e,mode:u,doc:f.contents});break;case Kr:break;default:throw new Qr(f)}o.length===0&&c.length>0&&(o.push(...c.reverse()),c.length=0)}let{text:u,positions:f}=l.finish();if(f.length!==2)return{formatted:u};let[p,m]=f;return{formatted:u,cursorNodeStart:p,cursorNodeText:u.slice(p,m)}}var ba=class extends Error{name=`ArgExpansionBailout`};function xa(e){return(e.type===`ObjectTypeProperty`||e.type===`ObjectTypeInternalSlot`)&&!e.static&&!e.method&&e.kind!==`get`&&e.kind!==`set`&&e.value.type===`FunctionTypeAnnotation`}function Sa(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Je(e,r),r=Ze(e,r),r=qe(e,r);return r=nt(e,r),r=et(e,r),r!==!1&&N(e,r)}var Ca=Sa,wa=(e,{originalText:t})=>{let n=x(e);if(Ca(t,n))return!0;let r=ne(e);return r!==n&&Ca(t,r)},Ta=c([`AnyTypeAnnotation`,`ThisTypeAnnotation`,`NumberTypeAnnotation`,`VoidTypeAnnotation`,`BooleanTypeAnnotation`,`BigIntTypeAnnotation`,`SymbolTypeAnnotation`,`StringTypeAnnotation`,`NeverTypeAnnotation`,`UndefinedTypeAnnotation`,`UnknownTypeAnnotation`,`EmptyTypeAnnotation`,`MixedTypeAnnotation`]),Ea=c([`TSThisType`,`NullLiteralTypeAnnotation`,`BooleanLiteralTypeAnnotation`,`StringLiteralTypeAnnotation`,`BigIntLiteralTypeAnnotation`,`NumberLiteralTypeAnnotation`,`TSLiteralType`,`TSTemplateLiteralType`]);function Da({type:e}){return e.startsWith(`TS`)&&e.endsWith(`Keyword`)}var Oa=Da;function ka(e){return Oa(e)||Ta(e)||Ea(e)||e.type===`GenericTypeAnnotation`&&!e.typeParameters||e.type===`TSTypeReference`&&!e.typeArguments}function Aa(e){return(e.type===`TypeAnnotation`||e.type===`TSTypeAnnotation`)&&e.typeAnnotation.type===`FunctionTypeAnnotation`&&!e.static&&!fe(e,e.typeAnnotation)}function ja(e,t){let n=t.split(`.`);for(let t=n.length-1;t>=0;t--){let r=n[t];if(t===0)return e.type===`Identifier`&&e.name===r;if(t===1&&e.type===`MetaProperty`&&e.property.type===`Identifier`&&e.property.name===r){e=e.meta;continue}if(e.type===`MemberExpression`&&!e.optional&&!e.computed&&e.property.type===`Identifier`&&e.property.name===r){e=e.object;continue}return!1}}function Ma(e,t){return t.some(t=>ja(e,t))}var Na=`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`.split(`,`);function Pa(e){return Ma(e,Na)}function Fa(e){return e.type===`Identifier`&&(e.name===`beforeEach`||e.name===`beforeAll`||e.name===`afterEach`||e.name===`afterAll`)}function Ia(e){return O(e)&&e.callee.type===`Identifier`&&[`async`,`inject`,`fakeAsync`,`waitForAsync`].includes(e.callee.name)}function La(e){return e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`}function Ra(e,t){if(e?.type!==`CallExpression`||e.optional)return!1;let n=dt(e);if(n.length===1){if(Ia(e)&&Ra(t))return ke(n[0]);if(Fa(e.callee))return Ia(n[0])}else if((n.length===2||n.length===3)&&(n[0].type===`TemplateLiteral`||C(n[0]))&&Pa(e.callee))return n[2]&&!_e(n[2])?!1:(n.length===2?ke(n[1]):La(n[1])&&h(n[1]).length<=1)||Ia(n[1]);return!1}function za(e,t){let n=t-1;n=qe(e,n,{backwards:!0}),n=et(e,n,{backwards:!0}),n=qe(e,n,{backwards:!0});let r=et(e,n,{backwards:!0});return n!==r}var Ba=za,Va=()=>!0;function Ha(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function Ua(e,t){let n=e.node,r=[Ha(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.(n)){let e=` `;N(a,s(n))&&(e=N(a,o(n),{backwards:!0})?J:K),r.push(e)}else r.push(J);let c=et(a,qe(a,s(n)));return c!==!1&&N(a,c)&&r.push(J),r}function Wa(e,t,n){let r=e.node,i=Ha(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.(r);return n?.hasLineSuffix&&!n?.isBlock||N(o,s(r),{backwards:!0})?{doc:Ni([J,Ba(o,s(r))?J:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n?.hasLineSuffix?{doc:[Ni([` `,i]),Ti],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function Y(e,t,n={}){let{indent:r=!1,marker:i,filter:a=Va}=n,o=new Set(e.node?.comments?.filter(e=>!(e.leading||e.trailing||e.marker!==i||!a(e))));if(o.size===0)return``;let s=G(J,e.map(({node:n})=>o.has(n)?Ha(e,t):``,`comments`).filter(Boolean));return r?H([J,s]):s}function Ga(e,t,n){let r=t[Symbol.for(`printedComments`)],i=n?.filter??Va,a=new Set(e.node?.comments?.filter(e=>!r?.has(e)&&e.leading&&i(e)));return a.size===0?``:e.map(({node:n})=>a.has(n)?Ua(e,t):``,`comments`).filter(Boolean)}function Ka(e,t,n){let r=e.node?.comments,i=new Set(r?.filter(e=>e.trailing)),a=t[Symbol.for(`printedComments`)],o=n?.filter??Va,s=new Set(r?.filter(e=>i.has(e)&&!a?.has(e)&&o(e)));if(s.size===0)return``;let c=[],l;return e.each(({node:n})=>{i.has(n)&&(l=Wa(e,t,l),s.has(n)&&c.push(l.doc))},`comments`),c}function qa(e,t,n){return{leading:Ga(e,t,n),trailing:Ka(e,t,n)}}function X(e,t,n,r){let i=Ga(e,n,r),a=Ka(e,n,r);return i||a?mi(t,e=>[i,e,a]):t}function Ja(e,t=`es5`){return e.trailingComma===`es5`&&t===`es5`||e.trailingComma===`all`&&(t===`all`||t===`es5`)}function Z(e){let{node:t}=e;return!t.optional||t.type===`Identifier`&&t===e.parent.key?``:O(t)||k(t)&&t.computed||t.type===`OptionalIndexedAccessType`?`?.`:`?`}function Ya(e){return e.node.definite||e.match(void 0,(e,t)=>t===`id`&&e.type===`VariableDeclarator`&&e.definite)?`!`:``}var Xa=c([`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`DeclareVariable`,`DeclareExportDeclaration`,`DeclareExportAllDeclaration`,`DeclareOpaqueType`,`DeclareTypeAlias`,`DeclareEnum`,`DeclareInterface`]),Za=e=>{let{node:t}=e;return Xa(t)?e.parent.type!==`DeclareExportDeclaration`&&!t.implicitDeclare:t.declare};function Qa(e){return Za(e)?`declare `:``}var $a=c([`TSAbstractMethodDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]);function eo({node:e}){return e.abstract||$a(e)?`abstract `:``}function to(e){return e.accessibility?e.accessibility+` `:``}var no=e=>e.type===`UnaryExpression`&&e.operator===`!`;function ro(e){return L(e)||!no(e)?!1:(e=e.argument,e=no(e)?e.argument:e,e.type===`LogicalExpression`)}function io(e,t,n){let{node:r}=e,i=r.type===`WithStatement`?`object`:`test`,a=n(i);return ro(r[i])?a:U([H([q,a]),q])}function ao(e,t,n){let{node:r}=e;return L(r,I.Dangling,n)?[H([q,Y(e,t,{filter:n})]),L(r,I.Dangling|I.Line,n)?J:q]:``}function oo(e,t=`es5`){return Ja(e,t)?W(`,`):``}function Q(e){return e.semi?`;`:``}var so=e=>e.mark!==`commentBeforeArrow`;function co(e,t,n,r,i){let a=e.node,s=h(a),c=i&&a.typeParameters?n(`typeParameters`):``;if(s.length===0)return[c,`(`,ao(e,t,so),`)`];let{parent:l}=e,u=Ra(l),d=lo(a),f=[];if(g(e,(e,r)=>{let i=r===s.length-1;i&&a.rest&&f.push(`...`),f.push(n()),!i&&(f.push(`,`),u||d?f.push(` `):wa(s[r],t)?f.push(J,J):f.push(K))}),r&&!po(e)){if(V(c)||V(f))throw new ba;return U([ci(c),`(`,ci(f),`)`])}let p=s.every(e=>!o(e.decorators));return d&&p||u?[c,`(`,...f,`)`]:(xa(l)||Aa(l)||l.type===`TypeAlias`||l.type===`UnionTypeAnnotation`||l.type===`IntersectionTypeAnnotation`||l.type===`FunctionTypeAnnotation`&&l.returnType===a)&&s.length===1&&s[0].name===null&&a.this!==s[0]&&s[0].typeAnnotation&&a.typeParameters===null&&ka(s[0].typeAnnotation)&&!a.rest?t.arrowParens===`always`||a.type===`HookTypeAnnotation`?[`(`,...f,`)`]:f:[c,`(`,H([q,...f]),!_(a)&&e.root.type!==`NGRoot`?oo(t,`all`):``,q,`)`]}function lo(e){if(!e)return!1;let t=h(e);if(t.length!==1)return!1;let[n]=t;return!L(n)&&(n.type===`ObjectPattern`||n.type===`ArrayPattern`||n.type===`Identifier`&&n.typeAnnotation&&(n.typeAnnotation.type===`TypeAnnotation`||n.typeAnnotation.type===`TSTypeAnnotation`)&&Oe(n.typeAnnotation.typeAnnotation)||n.type===`FunctionTypeParam`&&Oe(n.typeAnnotation)&&n!==e.rest||n.type===`AssignmentPattern`&&(n.left.type===`ObjectPattern`||n.left.type===`ArrayPattern`)&&(n.right.type===`Identifier`||Ee(n.right)&&n.right.properties.length===0||E(n.right)&&n.right.elements.length===0))}function uo(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function fo(e,t){let n=uo(e);if(!n)return!1;let r=e.typeParameters?.params;if(r){if(r.length>1)return!1;if(r.length===1){let e=r[0];if(e.constraint||e.default)return!1}}return h(e).length===1&&(Oe(n)||V(t))}function po(e){return e.match(e=>e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`,(e,t)=>{if(e.type===`CallExpression`&&t===`arguments`&&e.arguments.length===1&&e.callee.type===`CallExpression`){let t=e.callee.callee;return t.type===`Identifier`||t.type===`MemberExpression`&&!t.computed&&t.object.type===`Identifier`&&t.property.type===`Identifier`}return!1},(e,t)=>e.type===`VariableDeclarator`&&t===`init`||e.type===`ExportDefaultDeclaration`&&t===`declaration`||e.type===`TSExportAssignment`&&t===`expression`||e.type===`AssignmentExpression`&&t===`right`&&e.left.type===`MemberExpression`&&e.left.object.type===`Identifier`&&e.left.object.name===`module`&&e.left.property.type===`Identifier`&&e.left.property.name===`exports`,e=>e.type!==`VariableDeclaration`||e.kind===`const`&&e.declarations.length===1)}function mo(e){let t=h(e);return t.length>1&&t.some(e=>e.type===`TSParameterProperty`)}function ho(e,t){return(t===`params`||t===`this`||t===`rest`)&&lo(e)}var go=/^[\$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]*$/,_o=e=>go.test(e);function vo(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,`$1$2`).replace(/^([+-]?[\d.]+)e[+-]?0+$/,`$1`).replace(/^([+-])?\./,`$10.`).replace(/(\.\d+?)0+(?=e|$)/,`$1`).replace(/\.(?=e|$)/,``)}var yo=vo,bo=Object.freeze({character:`'`,codePoint:39}),xo=Object.freeze({character:`"`,codePoint:34}),So=Object.freeze({preferred:bo,alternate:xo}),Co=Object.freeze({preferred:xo,alternate:bo});function wo(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?So:Co,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var To=/\\(["'\\])|(["'])/g;function Eo(e,t){let n=t===`"`?`'`:`"`;return t+F(0,e,To,(e,r,i)=>r?r===n?n:e:i===t?`\\`+i:i)+t}var Do=Eo;function Oo(e,t){/^(?<quote>["']).*\k<quote>$/s.test(e);let n=e.slice(1,-1),r;return r=t.parser===`json`||t.parser===`jsonc`||t.parser===`json-stringify`||t.parser===`json5`&&t.quoteProps===`preserve`&&!t.singleQuote?`"`:t.__isInHtmlAttribute?`'`:wo(n,t.singleQuote),e.charAt(0)===r?e:Do(n,r)}var ko=Oo,Ao=e=>e.type===`TSEnumMember`,jo=e=>Ao(e)?`id`:`key`,Mo=e=>e[jo(e)],No=e=>!Ao(e)&&e.computed;function Po(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}var Fo=({parser:e})=>e===`typescript`||e===`babel-ts`||e===`oxc-ts`||e===`yuku-ts`;function Io(e,t){let n=Mo(e);if(n.type===`Identifier`)return!0;if(!_e(n)||Fo(t))return!1;let r=yo(S(n));return String(n.value)===r&&Po(r)}function Lo(e,t){let{parser:n}=t;if(n===`json`||n===`jsonc`)return!1;let r=Mo(e);if(!C(r))return!1;let{value:i}=r;return ko(S(r),t).slice(1,-1)!==i||e.type===`TSMethodSignature`&&i===`new`?!1:!!(!(n===`babel-ts`&&e.type===`ClassProperty`||(n===`typescript`||n===`oxc-ts`||n===`yuku-ts`)&&e.type===`PropertyDefinition`)&&_o(i)||(n===`babel`||n===`acorn`||n===`oxc`||n===`yuku`||n===`espree`||n===`meriyah`||n===`__babel_estree`)&&e.type!==`ImportAttribute`&&Po(i)&&String(Number(i))===i)}var Ro=new WeakMap;function zo(e,t){return f(Ro,e.parent,()=>e.siblings.some(e=>!No(e)&&C(Mo(e))&&!Lo(e,t)))}function Bo(e,t){return(t.parser===`json`||t.parser===`jsonc`||t.quoteProps===`consistent`&&zo(e,t))&&Io(e.node,t)}function Vo(e,t){return(t.quoteProps===`as-needed`||t.quoteProps===`consistent`&&!zo(e,t))&&Lo(e.node,t)}function Ho(e,t,n){let{node:r}=e,i=jo(r);if(No(r))return[`[`,n(i),`]`];if(Bo(e,t)){let n=Mo(r),a=ko(JSON.stringify(n.type===`Identifier`?n.name:String(n.value)),t);return e.call(()=>X(e,a,t),i)}if(Vo(e,t)){let{value:n}=Mo(r),a=/^\d/.test(n)?yo(n):n;return e.call(()=>X(e,a,t),i)}return n(i)}var Uo=c([`VoidTypeAnnotation`,`TSVoidKeyword`,`NullLiteralTypeAnnotation`,`TSNullKeyword`]),Wo=c([`ObjectTypeAnnotation`,`TSTypeLiteral`,`GenericTypeAnnotation`,`TSTypeReference`]);function Go(e){return e.key===`elementTypes`&&xe(e.parent)&&e.parent.elementTypes.length>1}function Ko(e){let{types:t}=e;if(t.some(e=>L(e)))return!1;let n=t.find(e=>Wo(e));return n?t.every(e=>e===n||Uo(e)):!1}function qo(e){let{key:t,node:n,parent:r}=e;return!(Ko(n)||t===`types`&&T(r)||t===`types`&&be(r)||Go(e))}function Jo(e,t,n,r){let{node:i}=e;if(Ko(i))return G(` | `,e.map(n,`types`));let a=U(e.map(({isFirst:r})=>{let i=r?W(`| `):[K,`| `],a=n();return L(e.node,I.Leading)?[i,bi(2,X(e,a,t))]:[i,X(e,bi(2,a),t)]},`types`));return qo(e)&&(a=X(e,a,t)),Mr(e,t)?U([H([q,a]),q]):Go(e)?U([H([W([`(`,q]),a]),q,W(`)`)]):r?.assignmentLayout===`break-after-operator`||!Yo(e)?a:U(H([q,a]))}function Yo(e){let{key:t,parent:n}=e;return!(t===`typeAnnotation`&&n.type===`TSTypeAssertion`||t===`elementTypes`&&xe(n)||(t===`trueType`||t===`falseType`)&&Se(n)||t===`params`&&Fe(n)||t===`typeAnnotation`&&n.type===`FunctionTypeParam`&&!n.name&&e.grandparent.this!==n||e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`FunctionTypeParam`,(e,t)=>t===`params`&&e.type===`FunctionTypeAnnotation`,(e,t)=>t===`value`&&e.type===`ObjectTypeProperty`&&xa(e)))}function Xo(e){return ka(e)||Oe(e)?!0:T(e)?Ko(e):!1}var Zo=new WeakSet;function $(e,t,n=`typeAnnotation`){let{node:{[n]:r}}=e;if(!r)return``;let i=!1;if(r.type===`TSTypeAnnotation`||r.type===`TypeAnnotation`){let t=e.call(Qo,n);(t===`=>`||t===`:`&&L(r,I.Leading))&&(i=!0),Zo.add(r)}return i?[` `,t(n)]:t(n)}var Qo=e=>e.match(e=>e.type===`TSTypeAnnotation`,(e,t)=>(t===`returnType`||t===`typeAnnotation`)&&(e.type===`TSFunctionType`||e.type===`TSConstructorType`))?`=>`:e.match(e=>e.type===`TSTypeAnnotation`,(e,t)=>t===`typeAnnotation`&&(e.type===`TSJSDocNullableType`||e.type===`TSJSDocNonNullableType`||e.type===`TSTypePredicate`))||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`typeAnnotation`&&e.type===`Identifier`,(e,t)=>t===`id`&&e.type===`DeclareFunction`)||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`typeAnnotation`&&e.type===`Identifier`,(e,t)=>t===`id`&&e.type===`DeclareHook`)||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`bound`&&e.type===`TypeParameter`&&e.usesExtendsBound)?``:`:`;function $o(e,t,n){let r=Qo(e);return r?[r,` `,n(`typeAnnotation`)]:n(`typeAnnotation`)}var es=({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`&&ee(n));function ts(e,t,n,r){if(es(e))return rs(e,t,n);let{node:i}=e,a=!1;if(i.type===`FunctionExpression`&&r?.expandLastArg){let{parent:t}=e;O(t)&&(dt(t).length>1||h(i).every(e=>e.type===`Identifier`&&!e.typeAnnotation))&&(a=!0)}let o=co(e,t,n,a),s=os(e,n),c=fo(i,s),l=i.type===`HookDeclaration`?`hook`:`function`;return[Qa(e),i.async?`async `:``,l,i.generator?`*`:``,` `,i.id?n(`id`):``,n(`typeParameters`),U([c?U(o):o,s]),i.body?` `:``,n(`body`),i.declare||!i.body?Q(t):``]}function ns(e,t,n){let{node:r}=e,{kind:i}=r,a=r.value||r,o=[];return!i||i===`init`||i===`method`||i===`constructor`?a.async&&o.push(`async `):o.push(i,` `),a.generator&&o.push(`*`),o.push(Ho(e,t,n),r.optional?`?`:``,r===a?rs(e,t,n):n(`value`)),o}function rs(e,t,n){let{node:r}=e,i=co(e,t,n),a=os(e,n),o=mo(r),s=fo(r,a),c=[n(`typeParameters`),U([o?U(i,{shouldBreak:!0}):s?U(i):i,a])];return r.body?c.push(` `,n(`body`)):c.push(Q(t)),c}function is(e){let t=h(e);return t.length===1&&!e.typeParameters&&!L(e,I.Dangling)&&t[0].type===`Identifier`&&!t[0].typeAnnotation&&!L(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function as(e,t){if(t.arrowParens===`always`)return!1;if(t.arrowParens===`avoid`){let{node:t}=e;return is(t)}return!1}function os(e,t){let{node:n}=e,r=[$(e,t,`returnType`)];return n.predicate&&r.push(t(`predicate`)),r}function ss(e,t){if(t.semi)return!1;let{node:n}=e;if(n.type!==`ExpressionStatement`||us(e,t)||fs(e,t)||ds(e,t))return!1;let{key:r,parent:i}=e;return!!((r===`body`&&(i.type===`Program`||i.type===`BlockStatement`||i.type===`StaticBlock`||i.type===`TSModuleBlock`)||r===`consequent`&&i.type===`SwitchCase`)&&e.call(()=>cs(e,t),`expression`))}function cs(e,t){let{node:n}=e;switch(n.type){case`ParenthesizedExpression`:case`TypeCastExpression`:case`TSTypeAssertion`:case`ArrayExpression`:case`ArrayPattern`:case`TemplateLiteral`:case`TemplateElement`:case`RegExpLiteral`:return!0;case`ArrowFunctionExpression`:if(!as(e,t))return!0;break;case`UnaryExpression`:{let{prefix:e,operator:t}=n;if(e&&(t===`+`||t===`-`))return!0;break}case`BindExpression`:if(!n.object)return!0;break;case`Literal`:if(n.regex)return!0;break;default:if(D(n))return!0}return Mr(e,t)?!0:pr(n)?e.call(()=>cs(e,t),...hr(n)):!1}var ls=({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 us(e,t){return(t.parentParser===`markdown`||t.parentParser===`mdx`)&&ls(e)&&D(e.node.expression)}function ds(e,t){return t.__isHtmlInlineEventHandler&&ls(e)}function fs(e,t){return(t.parser===`__vue_event_binding`||t.parser===`__vue_ts_event_binding`)&&ls(e)}function ps(e,t){if(!ss(e,t))return!1;let n=d(0,Ln(e.node,I.Leading),-1);return!!(n&&kt(n))}var ms=c([`ClassDeclaration`,`ClassExpression`,`DeclareClass`,`DeclareInterface`,`InterfaceDeclaration`,`TSInterfaceDeclaration`]);function hs(e,t){let{key:n,parent:r}=e;if(n===`types`&&T(r)||n===`argument`&&r.type===`JSXSpreadAttribute`||n===`expression`&&r.type===`JSXSpreadChild`||n===`superClass`&&(r.type===`ClassDeclaration`||r.type===`ClassExpression`)||(n===`id`||n===`typeParameters`)&&ms(r)||n===`patterns`&&r.type===`MatchOrPattern`||zn(e))return!0;let{node:i}=e;return Rn(i)?!1:i.type===`ExpressionStatement`?ps(e,t):T(i)?qo(e):!!D(i)}var gs=hs;function _s(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===` `?r=r+t-r%t:r++;return r}var vs=_s;function ys(e,t){let n=e.lastIndexOf(`
13
+ `);return n===-1?0:vs(e.slice(n+1).match(/^[\t ]*/)[0],t)}var bs=ys;function xs(e,t,n){if(js(e)){let r=Cs(e,t,n);if(r)return r}let r=Ds(e,t,n);return[Pi,"`",...e.map(({isLast:e,index:t})=>[n(),e?``:r[t]],`quasis`),"`"]}function Ss(e,t,n){let r=n(`quasi`),{node:i}=e,a=``,o=Ln(i.quasi,I.Leading)[0];return o&&(a=P(t.originalText,x(i.typeArguments??i.tag),b(o))?q:` `),Ai(r.label&&{tagged:!0,...r.label},[n(`tag`),n(`typeArguments`),a,Pi,r])}function Cs(e,t,n){let{node:r}=e,i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(i.length>1||i.some(e=>e.length>0)){t.__inJestEach=!0;let a=Ds(e,t,n);t.__inJestEach=!1;let o=a.map(e=>ya(e,{...t,printWidth:1/0,endOfLine:`lf`}).formatted),s=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<r.quasis.length;e++){let t=d(0,s,-1),n=o[e-1];t.cells.push(n),n.includes(`
14
+ `)&&(t.hasLineBreak=!0),r.quasis[e].value.raw.includes(`
15
+ `)&&s.push({hasLineBreak:!1,cells:[]})}let c=Math.max(i.length,...s.map(e=>e.cells.length)),l=Array.from({length:c},()=>0),u=[{cells:i},...s.filter(e=>e.cells.length>0)];for(let e of u)if(!e.hasLineBreak)for(let[t,n]of e.cells.entries())l[t]=Math.max(l[t],aa(n));return[Pi,"`",H([J,G(J,u.map(e=>G(` | `,e.cells.map((t,n)=>e.hasLineBreak?t:t+` `.repeat(l[n]-aa(t))))))]),J,"`"]}}var ws=new WeakMap;function Ts(e,t){let{parent:n,index:r}=e;return f(ws,n,e=>{let{tabWidth:n}=t,r=0;return e.quasis.map(e=>{let t=e.value.raw,i=t.includes(`
16
+ `)?bs(t,n):r;return r=i,{indentSize:i,previousQuasiText:t}})})[r]}function Es(e,t,n){let{node:r,index:i}=e,a=n(),{quasis:o}=e.parent,s=x(o[i]),c=b(o[i+1]),l=P(t.originalText,s,c);if(!l){let e=ya(a,{...t,printWidth:1/0}).formatted;e.includes(`
17
+ `)?l=!0:a=e}l&&(L(r)||r.type===`Identifier`||k(br(r))||r.type===`ConditionalExpression`||r.type===`SequenceExpression`||w(r)||Ae(r))&&(a=[H([q,a]),q]);let{indentSize:u,previousQuasiText:d}=Ts(e,t);return t.__inJestEach&&(u=Math.max(u,t.tabWidth)),a=u===0&&d.endsWith(`
18
+ `)?bi(-1/0,a):wi(a,u,t.tabWidth),U(["${",a,Pi,`}`])}function Ds(e,t,n){return e.map(()=>Es(e,t,n),e.node.type===`TSTemplateLiteralType`?`types`:`expressions`)}function Os(e,t){return ni(e,e=>typeof e==`string`?t?F(0,e,/(\\*)`/g,"$1$1\\`"):ks(e):e)}function ks(e){return F(0,e,/([\\`]|\$\{)/g,`\\$1`)}var As=/^[fx]?(?:describe|it|test)$/;function js({node:e,parent:t}){return e.type===`TemplateLiteral`&&t.type===`TaggedTemplateExpression`&&t.quasi===e&&t.tag.type===`MemberExpression`&&t.tag.property.type===`Identifier`&&t.tag.property.name===`each`&&(t.tag.object.type===`Identifier`&&As.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`&&As.test(t.tag.object.object.name))}var Ms=[(e,t)=>t===`properties`&&e.type===`ObjectExpression`,(e,t)=>t===`arguments`&&e.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`Component`,(e,t)=>t===`expression`&&e.type===`Decorator`];function Ns(e){let t=e=>e.type===`TemplateLiteral`,n=(e,t)=>Et(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`styles`&&t===`value`;return e.match(t,(e,t)=>E(e)&&t===`elements`,n,...Ms)||e.match(t,n,...Ms)}function Ps(e){return e.match(e=>e.type===`TemplateLiteral`,(e,t)=>Et(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`template`&&t===`value`,...Ms)}function Fs(e,t){return L(e,I.Block|I.Leading,({value:e})=>e===` ${t} `)}function Is({node:e,parent:t},n){return Fs(e,n)||Ls(t)&&Fs(t,n)||t.type===`ExpressionStatement`&&Fs(t,n)}function Ls(e){return e.type===`AsConstExpression`||e.type===`TSAsExpression`&&e.typeAnnotation.type===`TSTypeReference`&&e.typeAnnotation.typeName.type===`Identifier`&&e.typeAnnotation.typeName.name===`const`}async function Rs(e,t,n,r){let{node:i}=n,a=``;for(let[e,t]of i.quasis.entries()){let{raw:n}=t.value;e>0&&(a+=`@prettier-placeholder-`+(e-1)+`-id`),a+=n}let o=zs(await e(a,{parser:`scss`}),Ds(n,r,t));if(!o)throw Error(`Couldn't insert all the expressions`);return["`",H([J,o]),q,"`"]}function zs(e,t){if(!o(t))return e;let n=0,r=ni(ui(e),e=>typeof e!=`string`||!e.includes(`@prettier-placeholder`)?e:e.split(/@prettier-placeholder-(\d+)-id/).map((e,r)=>r%2==0?di(e):(n++,t[e])));return t.length===n?r:null}function Bs(e){return e.match(void 0,(e,t)=>t===`quasi`&&e.type===`TaggedTemplateExpression`&&Ma(e.tag,[`css`,`css.global`,`css.resolve`]))||e.match(void 0,(e,t)=>t===`expression`&&e.type===`JSXExpressionContainer`,(e,t)=>t===`children`&&e.type===`JSXElement`&&e.openingElement.name.type===`JSXIdentifier`&&e.openingElement.name.name===`style`&&e.openingElement.attributes.some(e=>e.type===`JSXAttribute`&&e.name.type===`JSXIdentifier`&&e.name.name===`jsx`))}function Vs(e){return e.type===`Identifier`&&e.name===`styled`}function Hs(e){return/^[A-Z]/.test(e.object.name)&&e.property.name===`extend`}function Us({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 Vs(t.object)||Hs(t);case`CallExpression`:return Vs(t.callee)||t.callee.type===`MemberExpression`&&(t.callee.object.type===`MemberExpression`&&(Vs(t.callee.object.object)||Hs(t.callee.object))||t.callee.object.type===`CallExpression`&&Vs(t.callee.object.callee));case`Identifier`:return t.name===`css`;default:return!1}}function Ws({parent:e,grandparent:t}){return t?.type===`JSXAttribute`&&e.type===`JSXExpressionContainer`&&t.name.type===`JSXIdentifier`&&t.name.name===`css`}var Gs=e=>Bs(e)||Us(e)||Ws(e)||Ns(e);async function Ks(e,t,n,r){let{node:i}=n,a=i.quasis.length,o=Ds(n,r,t),s=[];for(let t=0;t<a;t++){let n=i.quasis[t],r=t===0,c=t===a-1,l=n.value.cooked,u=l.split(`
19
+ `),d=u.length;if(!c&&/#[^\n\r]*$/.test(u[d-1]))return null;let f=d>2&&u[0].trim()===``&&u[1].trim()===``,p=d>2&&u[d-1].trim()===``&&u[d-2].trim()===``,m=u.every(e=>/^\s*(?:#[^\n\r]*)?$/.test(e)),h;h=m?qs(u):await e(l,{parser:`graphql`}),h?(h=Os(h,!1),!r&&f&&s.push(``),s.push(h),!c&&p&&s.push(``)):!r&&!c&&f&&s.push(``),c||s.push(o[t])}return["`",H([J,G(J,s)]),J,"`"]}function qs(e){let t=[],n=!1,r=e.map(e=>e.trim());for(let[e,i]of r.entries())i!==``&&(r[e-1]===``&&n?t.push([J,i]):t.push(i),n=!0);return t.length===0?null:G(J,t)}function Js({node:e,parent:t}){return Is({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 Ys=0;async function Xs(e,t,n,r,i){let{node:a}=r,o=Ys;Ys=Ys+1>>>0;let s=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${o}_IN_JS`,c=a.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+s(t)).join(``),l=Ds(r,i,n),u=new RegExp(s(`(\\d+)`),`g`),d=0,f=ni(await t(c,{parser:e,__onHtmlRoot(e){d=e.children.length}}),e=>{if(typeof e!=`string`)return e;let t=[],n=e.split(u);for(let e=0;e<n.length;e++){let r=n[e];if(e%2==0){r&&(r=ks(r),i.__embeddedInHtml&&(r=F(0,r,/<\/(?=script\b)/gi,`<\\/`)),t.push(r));continue}let a=Number(r);t.push(l[a])}return t}),p=/^\s/.test(c)?` `:``,m=/\s$/.test(c)?` `:``,h=i.htmlWhitespaceSensitivity===`ignore`?J:p&&m?K:null;return h?U(["`",H([h,U(f)]),h,"`"]):Ai({hug:!1},U(["`",p,d>1?H(U(f)):U(f),m,"`"]))}function Zs(e){return Is(e,`HTML`)||e.match(e=>e.type===`TemplateLiteral`,(e,t)=>e.type===`TaggedTemplateExpression`&&e.tag.type===`Identifier`&&e.tag.name===`html`&&t===`quasi`)}var Qs=Xs.bind(void 0,`html`),$s=Xs.bind(void 0,`angular`);async function ec(e,t,n){let{node:r}=n,i=F(0,r.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(e,t)=>`\\`.repeat(t.length/2)+"`"),a=tc(i),o=a!==``;o&&(i=F(0,i,RegExp(`^${a}`,`gm`),``));let s=Os(await e(i,{parser:`markdown`,__inJsTemplate:!0}),!0);return["`",o?H([q,s]):[Mi,xi(s)],q,"`"]}function tc(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?``:t[1]}function nc({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 rc=[{test:Gs,print:Rs},{test:Js,print:Ks},{test:Zs,print:Qs},{test:Ps,print:$s},{test:nc,print:ec}].map(({test:e,print:t})=>({test:e,print:ac(t)}));function ic(e){let{node:t}=e;if(t.type!==`TemplateLiteral`||oc(t))return;let n=rc.find(({test:t})=>t(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===``?"``":n.print}function ac(e){return async(...t)=>{let n=await e(...t);return n&&Ai({embed:!0,...n.label},n)}}function oc({quasis:e}){return e.some(({value:{cooked:e}})=>e===null)}var sc=ic;function cc(e,t){e.type===`ChainExpression`?dc(t):(e.type===`OptionalMemberExpression`||e.type===`OptionalCallExpression`)&&fc(t)}function lc(e){if(k(e))return`object`;if(O(e))return`callee`;if(Ne(e))return`expression`}function uc(e){let t=lc(e);if(t)return e[t]}function dc(e){for(e=uc(e);e.type===`MemberExpression`||e.type===`CallExpression`||e.type===`TSNonNullExpression`;e=uc(e)){let t=lc(e),n=e[t];n.type===`ChainExpression`&&(e[t]=n.expression)}}function fc(e){for(e=uc(e);e.type===`MemberExpression`||e.type===`CallExpression`;e=uc(e))e.type=`Optional${e.type}`}function pc(e,t,n){let r=t[n];(C(r)||_e(r))&&(e[n]=String(r.value)),r.type===`Identifier`&&(e[n]=r.name)}function mc(e,t){(e.type===`Property`||e.type===`ObjectProperty`||e.type===`MethodDefinition`||e.type===`ClassProperty`||e.type===`ClassMethod`||e.type===`PropertyDefinition`||e.type===`TSDeclareMethod`||e.type===`TSPropertySignature`||e.type===`TSMethodSignature`||e.type===`ObjectTypeProperty`||e.type===`ImportAttribute`||e.type===`RecordDeclarationProperty`||e.type===`RecordDeclarationStaticProperty`)&&!e.computed&&pc(t,e,`key`),e.type===`TSEnumMember`&&pc(t,e,`id`)}function hc(e,t){e.type===`RegExpLiteral`&&(t.flags=[...e.flags].sort().join(``)),e.type===`Literal`&&`regex`in e&&(t.regex.flags=[...e.regex.flags].sort().join(``))}var gc=new Set([`range`,`raw`,`comments`,`extra`,`start`,`end`,`loc`,`errors`,`tokens`,`trailingComma`,`docblock`,`__contentEnd`]),_c=e=>{for(let t of e.quasis)delete t.value};function vc(e,t,n){if(e.type===`Program`&&delete t.sourceType,cc(e,t),mc(e,t),hc(e,t),(he(e)||e.type===`BigIntLiteralTypeAnnotation`)&&`bigint`in e&&(t.bigint=e.bigint.toLowerCase()),e.type===`EmptyStatement`&&!y({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===`JSXElement`&&e.openingElement.name.type===`JSXIdentifier`&&e.openingElement.name.name===`style`&&e.openingElement.attributes.some(e=>e.type===`JSXAttribute`&&e.name.name===`jsx`))for(let{type:e,expression:n}of t.children)e===`JSXExpressionContainer`&&n.type===`TemplateLiteral`&&_c(n);e.type===`JSXAttribute`&&e.name.name===`css`&&e.value.type===`JSXExpressionContainer`&&e.value.expression.type===`TemplateLiteral`&&_c(t.value.expression),e.type===`JSXAttribute`&&C(e.value)&&/["']|&quot;|&apos;/.test(e.value.value)&&(t.value.value=F(0,e.value.value,/["']|&quot;|&apos;/g,`"`));let r=e.expression||e.callee;if(e.type===`Decorator`&&r.type===`CallExpression`&&r.callee.name===`Component`&&r.arguments.length===1){let n=e.expression.arguments[0].properties;for(let[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case`styles`:E(r.value)&&_c(r.value.elements[0]);break;case`template`:r.value.type===`TemplateLiteral`&&_c(r.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`)&&_c(t.quasi),(e.type===`CallExpression`||e.type===`MemberExpression`)&&!e.optional&&delete t.optional,e.type===`TemplateLiteral`&&_c(t)}vc.ignoredProperties=gc;var yc=/\*\/$/,bc=/^\/\*\*?/,xc=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Sc=/(^|\s+)\/\/([^\n\r]*)/g,Cc=/^(\r?\n)+/,wc=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Tc=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ec=/(\r?\n|^) *\* ?/g,Dc=[];function Oc(e){let t=e.match(xc);return t?t[0].trimStart():``}function kc(e){let t=e.match(xc)?.[0];return t==null?e:e.slice(t.length)}function Ac(e){e=F(0,e.replace(bc,``).replace(yc,``),Ec,`$1`);let t=``;for(;t!==e;)t=e,e=F(0,e,wc,`
20
+ $1 $2
21
+ `);e=e.replace(Cc,``).trimEnd();let n=Object.create(null),r=F(0,e,Tc,``).replace(Cc,``).trimEnd(),i;for(;i=Tc.exec(e);){let e=F(0,i[2],Sc,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...Dc,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}function jc({comments:e=``,pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(e=>Mc(e,t[e])).map(e=>` * ${e}
22
+ `).join(``);if(!e){if(n.length===0)return``;if(n.length===1&&!Array.isArray(t[n[0]])){let e=t[n[0]];return`/** ${Mc(n[0],e)[0]} */`}}let i=e.split(`
23
+ `).map(e=>` * ${e}`).join(`
24
+ `)+`
25
+ `;return`/**
26
+ `+(e?i:``)+(e&&n.length>0?` *
27
+ `:``)+r+` */`}function Mc(e,t){return[...Dc,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var Nc=`format`;function Pc(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
28
+ `);return t===-1?e:e.slice(0,t)}var Fc=Pc;function Ic(e){let t=Fc(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=Ac(Oc(e));return{shebang:t,text:e,pragmas:n,comments:r}}function Lc(e){let{shebang:t,text:n,pragmas:r,comments:i}=Ic(e),a=kc(n),o=jc({pragmas:{[Nc]:``,...r},comments:i.trimStart()});return(t?`${t}
29
+ `:``)+o+(a.startsWith(`
30
+ `)?`
31
+ `:`
32
+
33
+ `)+a}function Rc(e){if(!wt(e)||!e.value.includes(`
34
+ `))return[];let t=[];for(let n of`*${e.value}*`.split(`
35
+ `)){if(n=n.trimStart(),!n.startsWith(`*`))return[];t.push(n)}return t}var zc=new WeakMap;function Bc(e){return f(zc,e,Rc)}function Vc(e){return Bc(e).length>0}function Hc(e,t){let n=e.node;if(Tt(n))return t.originalText.slice(b(n),x(n)).trimEnd();if(Vc(n))return Uc(n);if(wt(n))return[`/*`,di(n.value),`*/`];throw Error(`Not a comment: `+JSON.stringify(n))}function Uc(e){let t=Bc(e),n=e.value[0]===`*`&&e.value[1]!==`*`;return[`/`,t.map((e,r)=>{if(r===0)return[e.trimEnd(),J];if(r===t.length-1)return[` `,e];let i=e.trimEnd(),a=[` `,i];return n&&i!==`*`&&e.endsWith(` `)?[a,` `,Si(Mi)]:[a,J]}),`/`]}function Wc(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var Gc=new 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(d(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=`[${Wc([...this.#e].join(``))}]+`,r=new RegExp(t?`(${n})`:n);return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,e=>t.has(e))}#t(e){let t=1/0;for(let n of e.split(`
36
+ `)){if(n.length===0)continue;let e=this.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
37
+ `).map(e=>e.slice(t)).join(`
38
+ `)}}(`
39
+ \r `);function Kc(e){return e.type===`JSXText`&&(Gc.hasNonWhitespaceCharacter(S(e))||!/\n/.test(S(e)))}function qc(e){let{node:t,parent:n}=e;if(!D(t)||!D(n))return!1;let{index:r,siblings:i}=e,a;for(let e=r;e>0;e--){let t=i[e-1];if(!(t.type===`JSXText`&&!Kc(t))){a=t;break}}return a?.type===`JSXExpressionContainer`&&a.expression.type===`JSXEmptyExpression`&&Rn(a.expression)}function Jc(e){return Rn(e.node)||qc(e)}var Yc=Jc,Xc=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function Zc(e){return e.type===`CallExpression`&&!e.optional&&e.arguments.length===1&&e.callee.type===`Identifier`&&e.callee.name===`Boolean`}var Qc=0;function $c(e,t,n){let{node:r,parent:i,grandparent:a,key:o}=e,s=o!==`body`&&(i.type===`IfStatement`||i.type===`WhileStatement`||i.type===`SwitchStatement`||i.type===`DoWhileStatement`),c=r.operator===`|>`&&e.root.extra?.__isUsingHackPipeline,l=el(e,t,n,!1,s);if(s)return l;if(c)return U(l);if(o===`callee`&&je(i)||i.type===`UnaryExpression`&&!L(r)||k(i)&&!i.computed)return U([H([q,...l]),q]);let u=we(i)||i.type===`JSXExpressionContainer`&&a.type===`JSXAttribute`||r.operator!==`|`&&i.type===`JsExpressionRoot`||r.type!==`NGPipeExpression`&&(i.type===`NGRoot`&&t.parser===`__ng_binding`||i.type===`NGMicrosyntaxExpression`&&a.type===`NGMicrosyntax`&&a.body.length===1)||r===i.body&&i.type===`ArrowFunctionExpression`||r!==i.body&&i.type===`ForStatement`||i.type===`ConditionalExpression`&&!we(a)&&!je(a)||i.type===`TemplateLiteral`||o===`argument`&&i.type===`UnaryExpression`||o===`arguments`&&Zc(i),f=i.type===`AssignmentExpression`||i.type===`VariableDeclarator`||i.type===`ClassProperty`||i.type===`PropertyDefinition`||i.type===`TSAbstractPropertyDefinition`||i.type===`ClassPrivateProperty`||Et(i),p=Ae(r.left)&&Gn(r.operator,r.left.operator);if(u||tl(r)&&!p||!tl(r)&&f)return U(l);if(l.length===0)return``;let m=D(r.right),h=l.findIndex(e=>typeof e!=`string`&&!Array.isArray(e)&&e.type===zr),g=l.slice(0,h===-1?1:h+1),_=l.slice(g.length,m?-1:void 0),v=Symbol(`logicalChain-`+ ++Qc),y=U([...g,H(_)],{id:v});return m?U([y,ki(d(0,l,-1),{groupId:v})]):y}function el(e,t,n,r,i){let{node:a}=e;if(!Ae(a))return[U(n())];let o=[];Gn(a.operator,a.left.operator)?o=e.call(()=>el(e,t,n,!0,i),`left`):o.push(U(n(`left`)));let s=tl(a),c=a.right.type===`ChainExpression`?a.right.expression:a.right,l=(a.type===`NGPipeExpression`||a.operator===`|>`||rl(e,t))&&!gr(t.originalText,c),u=!L(c,I.Leading,kt)&&gr(t.originalText,c),d=a.type===`NGPipeExpression`?`|`:a.operator,f=a.type===`NGPipeExpression`&&a.arguments.length>0?U(H([q,`: `,G([K,`: `],e.map(()=>bi(2,U(n())),`arguments`))])):``,p;if(s)p=[d,gr(t.originalText,c)?H([K,n(`right`),f]):[` `,n(`right`),f]];else{let r=d===`|>`&&e.root.extra?.__isUsingHackPipeline?e.call(()=>el(e,t,n,!0,i),`right`):n(`right`);if(t.experimentalOperatorPosition===`start`){let e=``;if(u)switch(Yr(r)){case Pr:e=r[0],r.shift();break;case Gr:e=r.contents[0],r.contents.shift();break}p=[K,e,d,` `,r,f]}else p=[l?K:``,d,l?` `:K,r,f]}let{parent:m}=e,h=L(a.left,I.Trailing|I.Line);if((h||!(i&&a.type===`LogicalExpression`)&&m.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(p=U(p,{shouldBreak:h})),t.experimentalOperatorPosition===`start`?o.push(s||u?` `:``,p):o.push(l?``:` `,p),r&&L(a)){let n=ui(X(e,o,t));return n.type===Br?n.parts:Array.isArray(n)?n:[n]}return o}function tl(e){return e.type===`LogicalExpression`&&!!(Ee(e.right)&&e.right.properties.length>0||E(e.right)&&e.right.elements.length>0||D(e.right))}var nl=e=>e.type===`BinaryExpression`&&e.operator===`|`;function rl(e,t){return(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`)&&nl(e.node)&&!e.hasAncestor(e=>!nl(e)&&e.type!==`JsExpressionRoot`)}function il(e,t,n){let{node:r}=e;if(r.type.startsWith(`NG`))switch(r.type){case`NGRoot`:return n(`node`);case`NGPipeExpression`:return $c(e,t,n);case`NGChainedExpression`:return U(G([`;`,K],e.map(()=>cl(e)?n():[`(`,n(),`)`],`expressions`)));case`NGEmptyExpression`:return``;case`NGMicrosyntax`:return e.map(()=>[e.isFirst?``:al(e)?` `:[`;`,K],n()],`body`);case`NGMicrosyntaxKey`:return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case`NGMicrosyntaxExpression`:return[n(`expression`),r.alias===null?``:[` as `,n(`alias`)]];case`NGMicrosyntaxKeyedExpression`:{let{index:t,parent:i}=e,a=al(e)||ol(e)||(t===1&&(r.key.name===`then`||r.key.name===`else`||r.key.name===`as`)||t===2&&(r.key.name===`else`&&i.body[t-1].type===`NGMicrosyntaxKeyedExpression`&&i.body[t-1].key.name===`then`||r.key.name===`track`))&&i.body[0].type===`NGMicrosyntaxExpression`;return[n(`key`),a?` `:`: `,n(`expression`)]}case`NGMicrosyntaxLet`:return[`let `,n(`key`),r.value===null?``:[` = `,n(`value`)]];case`NGMicrosyntaxAs`:return[n(`key`),` as `,n(`alias`)];default:throw new Xc(r,`Angular`)}}function al({node:e,index:t}){return e.type===`NGMicrosyntaxKeyedExpression`&&e.key.name===`of`&&t===1}function ol(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 sl=c([`CallExpression`,`OptionalCallExpression`,`AssignmentExpression`]);function cl({node:e}){return fr(e,sl)}function ll(e,t,n){let{node:r}=e;return U([G(K,e.map(n,`decorators`)),fl(r,t)?J:K])}function ul(e,t,n){return pl(e.node)?[G(J,e.map(n,`declaration`,`decorators`)),J]:``}function dl(e,t,n){let{node:r,parent:i}=e,{decorators:a}=r;if(!o(a)||pl(i)||Yc(e))return``;let s=r.type===`ClassExpression`||r.type===`ClassDeclaration`||fl(r,t);return[e.key===`declaration`&&Te(i)?J:s?Ti:``,G(K,e.map(n,`decorators`)),K]}function fl(e,t){return e.decorators.some(e=>N(t.originalText,x(e)))}function pl(e){if(e.type!==`ExportDefaultDeclaration`&&e.type!==`ExportNamedDeclaration`&&e.type!==`DeclareExportDeclaration`)return!1;let t=e.declaration?.decorators;return o(t)&&fe(e,t[0])}function ml(e){return e.type===`UnaryExpression`&&(e.operator===`+`||e.operator===`-`)&&_e(e.argument)}function hl(e,t,n){let{node:r}=e,i=[],a=xe(r)?`elementTypes`:`elements`,o=r[a];if(o.length===0&&!r.inexact)i.push(U([`[`,ao(e,t),`]`]));else{let s=d(0,o,-1),c=s?.type!==`RestElement`&&!r.inexact,l=s===null,u=Symbol(`array`),f=!t.__inJestEach&&o.length>1&&o.every((e,t,n)=>{if(!E(e)&&!Ee(e))return!1;let r=e?.type,i=n[t+1];if(i&&r!==i.type)return!1;let a=E(e)?`elements`:`properties`;return e[a]&&e[a].length>1})||L(r,I.Dangling|I.Line),p=gl(r,t),m=c?l?`,`:Ja(t)?p?W(`,`,``,{groupId:u}):W(`,`):``:``;i.push(U([`[`,H([q,p?yl(e,t,n,m):[vl(e,t,n,a,r.inexact),m],Y(e,t)]),q,`]`],{shouldBreak:f,id:u}))}return i.push(Z(e),$(e,n)),i}function gl(e,t){return E(e)&&e.elements.length>0&&e.elements.every(e=>e&&(_e(e)||ml(e)&&!L(e.argument))&&!L(e,I.Trailing|I.Line,e=>!N(t.originalText,b(e),{backwards:!0})))}function _l({node:e},{originalText:t}){let n=x(e);if(n===b(e))return!1;let{length:r}=t;for(;n<r&&t[n]!==`,`;)n=Ze(t,nt(t,n+1));return Ca(t,n)}function vl(e,t,n,r,i){let a=[];return e.each(({node:r,isLast:o})=>{a.push(r?U(n()):``),(!o||i)&&a.push([`,`,K,r&&_l(e,t)?q:``])},r),i&&a.push(`...`),a}function yl(e,t,n,r){let i=[];return e.each(({isLast:a,next:o})=>{i.push([n(),a?r:`,`]),a||i.push(_l(e,t)?[J,J]:L(o,I.Leading|I.Line)?J:K)},`elements`),Di(i)}function bl(e){return e.quasis.some(e=>e.value.raw.includes(`
40
+ `))}function xl(e,t){return(e.type===`TemplateLiteral`&&bl(e)||e.type===`TaggedTemplateExpression`&&bl(e.quasi))&&!N(t,b(e),{backwards:!0})}var Sl=new WeakMap;function Cl(e){return f(Sl,e,e=>e.type===`ConditionalExpression`&&!R(e,e=>e.type===`ObjectExpression`))}var wl=e=>e.type===`SequenceExpression`;function Tl(e,t,n,r={}){let i=[],a,o=[],s=!1,c=!r.expandLastArg&&e.node.body.type===`ArrowFunctionExpression`,l;(function u(){let{node:d}=e,f=El(e,t,n,r);if(i.length===0)i.push(f);else{let{leading:n,trailing:r}=qa(e,t);i.push([n,f]),o.unshift(r)}c&&(s||=d.returnType&&h(d).length>0||d.typeParameters||h(d).some(e=>e.type!==`Identifier`)),!c||d.body.type!==`ArrowFunctionExpression`?(a=n(`body`,r),l=d.body):e.call(u,`body`)})();let u=!gr(t.originalText,l)&&(wl(l)||Dl(l,a,t)||!s&&Cl(l)),d=e.key===`callee`&&Me(e.parent),f=Symbol(`arrow-chain`),p=Ol(e,r,{signatureDocs:i,shouldBreak:s}),m=!1,g=!1,_=!1;return c&&(d||r.assignmentLayout)&&(g=!0,_=!L(e.node,I.Leading&I.Line),m=r.assignmentLayout===`chain-tail-arrow-chain`||d&&!u),a=kl(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:l,shouldPutBodyOnSameLine:u}),U([U(g?H([_?q:``,p]):p,{shouldBreak:m,id:f}),` =>`,c?ki(a,{groupId:f}):U(a),c&&d?W(q,``,{groupId:f}):``])}function El(e,t,n,r){let{node:i}=e,a=[];if(i.async&&a.push(`async `),as(e,t))a.push(n([`params`,0]));else{let i=r.expandLastArg||r.expandFirstArg,o=os(e,n);if(i){if(V(o))throw new ba;o=U(ci(o))}a.push(U([co(e,t,n,i,!0),o]))}let o=Y(e,t,{marker:`commentBeforeArrow`});return o&&a.push(` `,o),a}function Dl(e,t,n){return E(e)||Ee(e)||e.type===`ArrowFunctionExpression`||e.type===`DoExpression`||e.type===`BlockStatement`||D(e)||t.label?.hug!==!1&&(t.label?.embed||xl(e,n.originalText))}function Ol(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:i,key:a}=e;return a!==`callee`&&Me(i)||Ae(i)?U([n[0],` =>`,H([K,G([` =>`,K],n.slice(1))])],{shouldBreak:r}):a===`callee`&&Me(i)||t.assignmentLayout?U(G([` =>`,K],n),{shouldBreak:r}):U(H(G([` =>`,K],n)),{shouldBreak:r})}function kl(e,t,n,{bodyDoc:r,bodyComments:i,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:s,parent:c}=e,l=n.expandLastArg?oo(t,`all`):``,u=(n.expandLastArg||c.type===`JSXExpressionContainer`)&&!L(s)?q:``;return o&&Cl(a)?[` `,U([W(``,`(`),H([q,r]),W(``,`)`),l,u]),i]:o?[` `,r,i]:[H([K,r,i]),l,u]}var Al=.25;function jl(e,t){let{printWidth:n}=t;if(L(e))return!1;let r=n*Al;if(e.type===`ThisExpression`||e.type===`Identifier`&&e.name.length<=r||ml(e)&&!L(e.argument))return!0;let i=e.type===`Literal`&&`regex`in e&&e.regex.pattern||e.type===`RegExpLiteral`&&e.pattern;return i?i.length<=r:C(e)?ko(S(e),t).length<=r:e.type===`TemplateLiteral`?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
41
+ `):e.type===`UnaryExpression`?jl(e.argument,{printWidth:n}):e.type===`CallExpression`&&e.arguments.length===0&&e.callee.type===`Identifier`?e.callee.name.length<=r-2:De(e)}function Ml(e){return k(e)||e.type===`BindExpression`&&!!e.object}function Nl(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(ke(n)){if(t+=1,t>1)return!0}else if(n=br(n),O(n)){for(let e of dt(n))if(ke(e))return!0}return!1}function Pl(e){let{node:t,parent:n,key:r}=e;return r===`callee`&&O(t)&&O(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var Fl=new Set([`!`,`-`,`+`,`~`]),Il=c([`Identifier`,`ThisExpression`,`Super`,`PrivateName`,`PrivateIdentifier`]);function Ll(e,t=2){if(t<=0)return!1;let n=e=>Ll(e,t-1);if(e=br(e),ve(e))return aa(e.pattern??e.regex.pattern)<=5;if(De(e)||Il(e)||e.type===`ArgumentPlaceholder`)return!0;if(e.type===`TemplateLiteral`)return e.quasis.every(e=>!e.value.raw.includes(`
42
+ `))&&e.expressions.every(n);if(Ee(e))return e.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value)));if(E(e))return e.elements.every(e=>e===null||n(e));if(Me(e)){if(e.type===`ImportExpression`||Ll(e.callee,t)){let r=dt(e);return r.length<=t&&r.every(n)}return!1}return k(e)?Ll(e.object,t)&&Ll(e.property,t):e.type===`UnaryExpression`&&Fl.has(e.operator)||e.type===`UpdateExpression`?Ll(e.argument,t):!1}function Rl(e,t,n){let{node:r}=e,i=dt(r);if(i.length===0)return U([`(`,ao(e,t),`)`]);let a=i.length-1;if(Ul(i)){let t=[`(`];return ft(e,(e,r)=>{t.push(n()),r!==a&&t.push(`, `)}),t.push(`)`),t}let o=!1,s=[];ft(e,({node:e},r)=>{let i=n();r===a||(wa(e,t)?(o=!0,i=[i,`,`,J,J]):i=[i,`,`,K]),s.push(i)});let c=e.root.type!==`NGRoot`&&r.type!==`ImportExpression`&&r.type!==`TSImportType`&&r.type!==`TSExternalModuleReference`?oo(t,`all`):``;function l(){return U([`(`,H([K,...s]),c,K,`)`],{shouldBreak:!0})}if(o||e.parent.type!==`Decorator`&&Nl(i))return l();if(Vl(i)){let e=s.slice(1);if(e.some(V))return l();let t;try{t=n(pt(r,0),{expandFirstArg:!0})}catch(e){if(e instanceof ba)return l();throw e}return V(t)?[Ti,Oi([[`(`,U(t,{shouldBreak:!0}),`, `,...e,`)`],l()])]:Oi([[`(`,t,`, `,...e,`)`],[`(`,U(t,{shouldBreak:!0}),`, `,...e,`)`],l()])}if(Bl(i,s,t)){let e=s.slice(0,-1);if(e.some(V))return l();let t;try{t=n(pt(r,-1),{expandLastArg:!0})}catch(e){if(e instanceof ba)return l();throw e}return V(t)?[Ti,Oi([[`(`,...e,U(t,{shouldBreak:!0}),`)`],l()])]:Oi([[`(`,...e,t,`)`],[`(`,...e,U(t,{shouldBreak:!0}),`)`],l()])}let u=[`(`,H([q,...s]),c,q,`)`];return Pl(e)?u:U(u,{shouldBreak:s.some(V)||o})}function zl(e,t=!1){if(Ee(e)&&(e.properties.length>0||L(e))||E(e)&&(e.elements.length>0||L(e))||(w(e)||e.type===`TSTypeAssertion`)&&zl(e.expression)||e.type===`FunctionExpression`||e.type===`DoExpression`||e.type===`ModuleExpression`)return!0;if(e.type===`ArrowFunctionExpression`){let{body:n}=e;if(n.type===`BlockStatement`||D(n)||Ee(n)||E(n)||n.type===`ArrowFunctionExpression`&&zl(n,!0)||!t&&(n.type===`ConditionalExpression`||O(br(n))))return!0}return!1}function Bl(e,t,n){if(e.length===1){let e=d(0,t,-1);if(e.label?.embed&&e.label?.hug!==!1)return!0}let r=d(0,e,-1),i=d(0,e,-2);return!L(r,I.Leading)&&!L(r,I.Trailing)&&zl(r)&&(!i||i.type!==r.type)&&(e.length!==2||i.type!==`ArrowFunctionExpression`||!E(r))&&!(e.length>1&&gl(r,n))}function Vl(e){if(e.length!==2)return!1;let[t,n]=e;return t.type===`ModuleExpression`&&Gl(n)?!0:!L(t)&&(t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`&&t.body.type===`BlockStatement`)&&n.type!==`FunctionExpression`&&n.type!==`ArrowFunctionExpression`&&n.type!==`ConditionalExpression`&&Hl(n)&&!zl(n)}function Hl(e){if(e.type===`ParenthesizedExpression`)return Hl(e.expression);if(w(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 e=t.type===`GenericTypeAnnotation`?t.typeParameters:t.typeArguments;e?.params.length===1&&(t=e.params[0])}return ka(t)&&Ll(e.expression,1)}return Me(e)&&dt(e).length>1?!1:Ae(e)?Ll(e.left,1)&&Ll(e.right,1):ve(e)||Ll(e)}function Ul(e){return e.length===2?Wl(e,0):e.length===3&&e[0].type===`Identifier`&&Wl(e,1)}function Wl(e,t){let n=e[t],r=e[t+1];return n.type===`ArrowFunctionExpression`&&h(n).length===0&&n.body.type===`BlockStatement`&&r.type===`ArrayExpression`&&e.every(e=>!L(e))}function Gl(e){if(e.type!==`ObjectExpression`||e.properties.length!==1)return!1;let[t]=e.properties;return Et(t)?!t.computed&&(t.key.type===`Identifier`&&t.key.name===`type`||C(t.key)&&t.key.value===`type`)&&C(t.value)&&t.value.value===`module`:!1}var Kl=Rl;function ql(e,t,n){return[n(`object`),U(H([q,Jl(e,t,n)]))]}function Jl(e,t,n){return[`::`,n(`callee`)]}var Yl=e=>O(e)&&dt(e).length>0;function Xl(e){let{node:t,ancestors:n}=e;for(let e of n){if(!(k(e)&&e.object===t||e.type===`TSNonNullExpression`&&e.expression===t))return e.type===`NewExpression`&&e.callee===t;t=e}return!1}function Zl(e,t,n){let r=n(`object`),i=Ql(e,t,n),{node:a}=e,o=e.findAncestor(e=>!(k(e)||e.type===`TSNonNullExpression`)),s=e.findAncestor(e=>!Ne(e)),c=o.type===`BindExpression`||o.type===`AssignmentExpression`&&o.left.type!==`Identifier`||Xl(e)||a.computed||a.object.type===`Identifier`&&a.property.type===`Identifier`&&!k(s)||(s.type===`AssignmentExpression`||s.type===`VariableDeclarator`)&&(Yl(br(a.object))||r.label?.memberChain);return Ai(r.label,[r,Pi,c?i:U(H([q,i]))])}function Ql(e,t,n){let r=n(`property`),{node:i}=e,a=Z(e);return i.computed?!i.property||_e(i.property)?[a,`[`,r,`]`]:U([a,`[`,H([q,r]),q,`]`]):[a,`.`,r]}function $l(e,t,n){let r=(e.parent.type===`ChainExpression`?e.grandparent:e.parent).type===`ExpressionStatement`,i=[];function a(e){let{originalText:n}=t,r=it(n,x(e));return n.charAt(r)===`)`?r!==!1&&Ca(n,r+1):wa(e,t)}function o(){let{node:r}=e;if(O(r)&&(Ml(r.callee)||O(r.callee))&&!Mr(e,t)){let s=a(r);i.unshift({node:r,hasTrailingEmptyLine:s,printed:[X(e,[Z(e),n(`typeArguments`),Kl(e,t,n)],t),s?J:``]}),e.call(o,`callee`)}else Ml(r)&&!Mr(e,t)?(i.unshift({node:r,printed:X(e,k(r)?Ql(e,t,n):Jl(e,t,n),t)}),e.call(o,`object`)):r.type===`ChainExpression`&&!Mr(e,t)?e.call(o,`expression`):r.type===`TSNonNullExpression`&&!Mr(e,t)?(i.unshift({node:r,printed:X(e,`!`,t)}),e.call(o,`expression`)):i.unshift({node:r,printed:n()})}let{node:s}=e;i.unshift({node:s,printed:[Z(e),n(`typeArguments`),Kl(e,t,n)]}),s.callee&&e.call(o,`callee`);let c=[],l=[i[0]],u=1;for(;u<i.length&&(i[u].node.type===`TSNonNullExpression`||i[u].node.type===`ChainExpression`||O(i[u].node)||k(i[u].node)&&i[u].node.computed&&_e(i[u].node.property));++u)l.push(i[u]);if(!O(i[0].node))for(;u+1<i.length&&Ml(i[u].node)&&Ml(i[u+1].node);++u)l.push(i[u]);c.push(l),l=[];let f=!1;for(;u<i.length;++u){if(f&&Ml(i[u].node)){if(i[u].node.computed&&_e(i[u].node.property)){l.push(i[u]);continue}c.push(l),l=[],f=!1}(O(i[u].node)||i[u].node.type===`ImportExpression`)&&(f=!0),l.push(i[u]),L(i[u].node,I.Trailing)&&(c.push(l),l=[],f=!1)}l.length>0&&c.push(l);function p(e){return/^[A-Z]|^[$_]+$/.test(e)}function m(e){return e.length<=t.tabWidth}function h(e){let t=e[1][0]?.node.computed;if(e[0].length===1){let n=e[0][0].node;return n.type===`ThisExpression`||n.type===`Identifier`&&(p(n.name)||r&&m(n.name)||t)}let n=d(0,e[0],-1).node;return k(n)&&n.property.type===`Identifier`&&(p(n.property.name)||t)}let g=c.length>=2&&!L(c[1][0].node)&&h(c);function _(e){return e.map(e=>e.printed)}function v(e){return e.length===0?``:H([J,G(J,e.map(_))])}let y=c.map(_),ee=y,te=g?3:2,ne=c.flat(),b=ne.slice(1,-1).some(e=>L(e.node,I.Leading))||ne.slice(0,-1).some(e=>L(e.node,I.Trailing))||c[te]&&L(c[te][0].node,I.Leading);if(c.length<=te&&!b&&c.every(e=>!d(0,e,-1).hasTrailingEmptyLine))return Pl(e)?ee:U(ee);let re=d(0,c[+!!g],-1).node,ie=!O(re)&&a(re),ae=[_(c[0]),g?c.slice(1,2).map(_):``,ie?J:``,v(c.slice(g?2:1))],oe=i.map(({node:e})=>e).filter(O);function se(){let e=d(0,d(0,c,-1),-1).node,t=d(0,y,-1);return O(e)&&V(t)&&oe.slice(0,-1).some(e=>e.arguments.some(ke))}let ce;return ce=b||oe.length>2&&oe.some(e=>e.arguments.some(e=>!Ll(e)))||y.slice(0,-1).some(V)||se()?U(ae):[V(ee)||ie?Ti:``,Oi([ee,ae])],Ai({memberChain:!0},ce)}var eu=$l;function tu(e,t,n){let{node:r}=e,i=r.type===`NewExpression`,a=Z(e),o=dt(r),s=r.type!==`TSImportType`&&r.typeArguments?[n(`typeArguments`),Pi]:``,c=o.length===1&&xl(o[0],t.originalText);if(c||iu(e)||au(e)||Ra(r,e.parent)){let t=[];if(ft(e,()=>{t.push(n())}),!(c&&t[0].label?.embed))return[nu(e,n),a,s,`(`,G(`, `,t),`)`]}let l=r.type===`ImportExpression`||r.type===`TSImportType`||r.type===`TSExternalModuleReference`;if(!l&&!i&&Ml(r.callee)&&!e.call(()=>Mr(e,t),`callee`,...r.callee.type===`ChainExpression`?[`expression`]:[]))return eu(e,t,n);let u=[nu(e,n),a,s,Kl(e,t,n)];return l||O(r.callee)?U(u):u}function nu(e,t){let{node:n}=e;return n.type===`ImportExpression`?`import${n.phase?`.${n.phase}`:``}`:n.type===`TSImportType`?`import`:n.type===`TSExternalModuleReference`?`require`:[n.type===`NewExpression`?`new `:``,t(`callee`),Pi]}var ru=[`require`,`require.resolve`,`require.resolve.paths`,`import.meta.resolve`];function iu(e){let{node:t}=e;if(!(t.type===`ImportExpression`||t.type===`TSImportType`||t.type===`TSExternalModuleReference`||t.type===`CallExpression`&&!t.optional&&Ma(t.callee,ru)))return!1;let n=dt(t);return n.length===1&&C(n[0])&&!L(n[0])}function au(e){let{node:t}=e;if(t.type!==`CallExpression`||t.optional||t.callee.type!==`Identifier`)return!1;let n=dt(t);return t.callee.name===`require`?(n.length===1&&C(n[0])||n.length>1)&&!L(n[0]):t.callee.name===`define`&&e.parent.type===`ExpressionStatement`?n.length===1||n.length===2&&n[0].type===`ArrayExpression`||n.length===3&&C(n[0])&&n[1].type===`ArrayExpression`:!1}function ou(e,t,n,r,i,a){let o=lu(e,t,n,r,a),s=a?n(a,{assignmentLayout:o}):``;switch(o){case`break-after-operator`:return U([U(r),i,U(H([K,s]))]);case`never-break-after-operator`:return U([U(r),i,` `,s]);case`fluid`:{let e=Symbol(`assignment`);return U([U(r),i,U(H(K),{id:e}),Pi,ki(s,{groupId:e})])}case`break-lhs`:return U([r,i,` `,U(s)]);case`chain`:return[U(r),i,K,s];case`chain-tail`:return[U(r),i,H([K,s])];case`chain-tail-arrow-chain`:return[U(r),i,s];case`only-left`:return r}}function su(e,t,n){let{node:r}=e;return ou(e,t,n,n(`left`),[` `,r.operator],`right`)}function cu(e,t,n){return ou(e,t,n,n(`id`),` =`,`init`)}function lu(e,t,n,r,i){let{node:a}=e,o=a[i];if(!o)return`only-left`;let s=!fu(o);if(e.match(fu,pu,e=>!s||e.type!==`ExpressionStatement`&&e.type!==`VariableDeclaration`))return s?o.type===`ArrowFunctionExpression`&&o.body.type===`ArrowFunctionExpression`?`chain-tail-arrow-chain`:`chain-tail`:`chain`;if(!s&&fu(o.right)||T(o)&&!Ko(o)||gr(t.originalText,o)||L(o,I.Leading,Vc))return`break-after-operator`;if(a.type===`ImportAttribute`||o.type===`CallExpression`&&o.callee.name===`require`||e.root.type===`JsonRoot`)return`never-break-after-operator`;let c=pi(r);if(du(a)||gu(a)||_u(a)&&c)return`break-lhs`;let l=bu(a,r,t);return e.call(()=>uu(e,t,n,l),i)?`break-after-operator`:mu(a)?`break-lhs`:!c&&(l||o.type===`TemplateLiteral`||o.type===`TaggedTemplateExpression`||ge(o)||_e(o)||o.type===`ClassExpression`)?`never-break-after-operator`:`fluid`}function uu(e,t,n,r){let i=e.node;if(Ae(i)&&!tl(i))return!0;switch(i.type){case`StringLiteralTypeAnnotation`:case`SequenceExpression`:return!0;case`TSConditionalType`:case`ConditionalTypeAnnotation`:if(!t.experimentalTernaries&&!Cu(i))break;return!0;case`ConditionalExpression`:{if(!t.experimentalTernaries){let{test:e}=i;return Ae(e)&&!tl(e)}let{consequent:e,alternate:n}=i;return e.type===`ConditionalExpression`||n.type===`ConditionalExpression`}case`ClassExpression`:return o(i.decorators)}if(r)return!1;let a=i,s=[];for(;;)if(a.type===`UnaryExpression`||a.type===`AwaitExpression`||a.type===`YieldExpression`&&a.argument!==null)a=a.argument,s.push(`argument`);else if(a.type===`TSNonNullExpression`)a=a.expression,s.push(`expression`);else break;return!!(C(a)||e.call(()=>yu(e,t,n),...s))}function du(e){if(pu(e)){let t=e.left||e.id;return t.type===`ObjectPattern`&&t.properties.length>2&&t.properties.some(e=>Et(e)&&(!e.shorthand||e.value?.type===`AssignmentPattern`))}return!1}function fu(e){return e.type===`AssignmentExpression`}function pu(e){return fu(e)||e.type===`VariableDeclarator`}function mu(e){let t=hu(e);if(o(t)){let n=e.type===`TSTypeAliasDeclaration`?`constraint`:`bound`;if(t.length>1&&t.some(e=>e[n]||e.default))return!0}return!1}function hu(e){if(Ce(e))return e.typeParameters?.params}function gu(e){if(e.type!==`VariableDeclarator`)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=vu(t.typeAnnotation);return o(n)&&n.length>1&&n.some(e=>o(vu(e))||e.type===`TSConditionalType`)}function _u(e){return e.type===`VariableDeclarator`&&e.init?.type===`ArrowFunctionExpression`}function vu(e){let t;switch(e.type){case`GenericTypeAnnotation`:t=e.typeParameters;break;case`TSTypeReference`:t=e.typeArguments}return t?.params}function yu(e,t,n,r=!1){let{node:i}=e,a=()=>yu(e,t,n,!0);if(Ne(i))return e.call(a,`expression`);if(O(i)){if(tu(e,t,n).label?.memberChain)return!1;let r=dt(i);return!(r.length===0||r.length===1&&jl(r[0],t))||xu(i,n)?!1:e.call(a,`callee`)}return k(i)?e.call(a,`object`):r&&(i.type===`Identifier`||i.type===`ThisExpression`)}function bu(e,t,n){return Et(e)?(t=ui(t),typeof t==`string`&&aa(t)<n.tabWidth+3):!1}function xu(e,t){let n=e.typeArguments?.params;if(o(n)){if(n.length>1)return!0;if(n.length===1){let e=n[0];if(T(e)||be(e)||e.type===`TSTypeLiteral`||e.type===`ObjectTypeAnnotation`)return!0}if(V(t(`typeArguments`)))return!0}return!1}function Su(e){switch(e.type){case`FunctionTypeAnnotation`:case`GenericTypeAnnotation`:case`TSFunctionType`:return!!e.typeParameters;case`TSTypeReference`:return!!e.typeArguments;default:return!1}}function Cu(e){return Su(e.checkType)||Su(e.extendsType)}function wu(e,t,n){let{node:r}=e,i=[`await`];if(r.argument){i.push(` `,n(`argument`));let{parent:t}=e;if(O(t)&&t.callee===r||k(t)&&t.object===r){i=[H([q,...i]),q];let t=e.findAncestor(e=>e.type===`AwaitExpression`||e.type===`BlockStatement`);if(t?.type!==`AwaitExpression`||!R(t.argument,e=>e===r))return U(i)}}return i}var Tu=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}},Eu=l(`findLast`,function(){if(Array.isArray(this))return Tu});function Du(e,t,n,r){let{node:i}=e,a=[],o=Eu(0,i[r],e=>e.type!==`EmptyStatement`);return e.each(({node:e})=>{e.type!==`EmptyStatement`&&(a.push(n()),e!==o&&(a.push(J),wa(e,t)&&a.push(J)))},r),a}function Ou(e,t,n){let r=ku(e,t,n),{node:i,parent:a}=e;if(i.type===`Program`&&a?.type!==`ModuleExpression`)return r?[r,J]:``;let o=[];if(i.type===`StaticBlock`&&o.push(`static `),o.push(`{`),r)o.push(H([J,r]),J);else{let t=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`&&!t.finalizer||a.type===`TSModuleDeclaration`||a.type===`DeclareModule`||a.type===`MatchStatementCase`||i.type===`StaticBlock`||o.push(J)}return o.push(`}`),o}function ku(e,t,n){let{node:r}=e,i=o(r.directives),a=r.body.some(e=>e.type!==`EmptyStatement`),s=L(r,I.Dangling);if(!i&&!a&&!s)return``;let c=[];return i&&(c.push(Du(e,t,n,`directives`)),(a||s)&&(c.push(J),wa(d(0,r.directives,-1),t)&&c.push(J))),a&&c.push(Du(e,t,n,`body`)),s&&c.push(Y(e,t)),c}function Au(e){let t=new WeakMap;return n=>f(t,n,()=>Symbol(e))}var ju=Au,Mu=[`properties`,`indexers`,`callProperties`,`internalSlots`];function Nu(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===`RecordDeclarationBody`){e.each(t,`elements`);return}if(n.type===`ObjectTypeAnnotation`){let n=Mu.flatMap(t=>e.map(({node:e,index:n})=>({node:e,loc:b(e),selector:[t,n]}),t)).sort((e,t)=>e.loc-t.loc);for(let[r,{node:i,selector:a}]of n.entries())e.call(()=>t({node:i,next:n[r+1]?.node,isLast:r===n.length-1}),...a)}}function Pu(e){return e.type===`ObjectTypeAnnotation`?Mu.some(t=>o(e[t])):o(e.type===`RecordDeclarationBody`?e.elements:e.body)}function Fu(e,t,n){let{node:r}=e,i=[],a=r.type===`ObjectTypeAnnotation`,o=r.type===`RecordDeclarationBody`,s=!Iu(e),c=s?K:J,l=L(r,I.Dangling),[u,f]=a&&r.exact?[`{|`,`|}`]:`{}`,p=!0,m;if(Nu(e,({node:r,next:l,isLast:u})=>{if(m??=r,p&&=!1,i.push(n()),!o&&s&&a){let{parent:n}=e;n.inexact||!u?i.push(`,`):i.push(oo(t))}o&&r.type!==`MethodDefinition`&&i.push(`,`),!o&&!s&&(Bu({node:r,next:l},t)||Hu({node:r,next:l},t))&&i.push(`;`),u||(i.push(c),wa(r,t)&&i.push(J))}),l&&i.push(Y(e,t)),r.type===`ObjectTypeAnnotation`&&r.inexact){p&&=!1;let e;e=L(r,I.Dangling)?[L(r,I.Line)||N(t.originalText,x(d(0,Ln(r),-1)))?J:K,`...`]:[m?K:``,`...`],i.push(e)}if(s){let n=L(r,I.Dangling|I.Line)||t.objectWrap===`preserve`&&m&&P(t.originalText,b(r),b(m)),a;if(i.length===0)a=u+f;else{let e=!t.bracketSpacing||p&&!n?q:K;a=[u,H([e,...i]),e,f]}return e.match(void 0,(e,t)=>t===`typeAnnotation`,(e,t)=>t===`typeAnnotation`,ho)||e.match(void 0,(e,t)=>e.type===`FunctionTypeParam`&&t===`typeAnnotation`,ho)?a:U(a,{shouldBreak:n})}return[u,i.length>0?[H([J,i]),J]:``,f]}function Iu(e){let{node:t}=e;if(t.type===`ObjectTypeAnnotation`){let{key:t,parent:n}=e;return t===`body`&&(n.type===`InterfaceDeclaration`||n.type===`DeclareInterface`||n.type===`DeclareClass`)}return t.type===`ClassBody`||t.type===`TSInterfaceBody`||t.type===`RecordDeclarationBody`}function Lu(e,t){let{parent:n}=e;return e.callParent(Iu)?n.type===`ObjectTypeAnnotation`?`;`:Q(t):n.type===`TSTypeLiteral`?e.isLast?t.semi?W(`;`):``:t.semi||Hu({node:e.node,next:e.next},t)?`;`:W(``,`;`):``}var Ru=c([`ClassProperty`,`PropertyDefinition`,`ClassPrivateProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]),zu=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 Bu({node:e,next:t},n){if(n.semi||!Ru(e))return!1;if(!e.value&&zu(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let e=t.key?.name;if(e===`in`||e===`instanceof`)return!0}if(Ru(t)&&!t.static&&t.variance&&!t.declare)return!0;switch(t.type){case`ClassProperty`:case`PropertyDefinition`:case`TSAbstractPropertyDefinition`:return t.computed;case`MethodDefinition`:case`TSAbstractMethodDefinition`:case`ClassMethod`:case`ClassPrivateMethod`:{if((t.value?t.value.async:t.async)||t.kind===`get`||t.kind===`set`)return!1;let e=t.value?t.value.generator:t.generator;return!!(t.computed||e)}case`TSIndexSignature`:return!0}return!1}var Vu=c([`TSPropertySignature`]);function Hu({node:e,next:t},n){return n.semi||!Vu(e)?!1:zu(e)?!0:t&&t.type===`TSCallSignatureDeclaration`?!(e.type===`TSPropertySignature`&&e.typeAnnotation):!1}var Uu=ju(`heritageGroup`),Wu=c([`TSInterfaceDeclaration`,`DeclareInterface`,`InterfaceDeclaration`,`InterfaceTypeAnnotation`]);function Gu(e,t,n){let r=Ku(e,t,n),{node:i}=e;if(i.type===`ClassExpression`&&o(i.decorators)){let i=dl(e,t,n);return Mr(e,t)?[H([q,i,r]),q]:[i,r]}return r}function Ku(e,t,n){let{node:r}=e,i=Wu(r),a=r.type===`RecordDeclaration`,o=i?`interface`:a?`record`:`class`,s=[Qa(e),eo(e),o],c=Xu(e),l=[],u=[];if(r.type!==`InterfaceTypeAnnotation`){r.id&&l.push(` `);for(let i of[`id`,`typeParameters`])if(r[i]){let{leading:r,trailing:a}=e.call(()=>qa(e,t),i);l.push(r,n(i),H(a))}}if(r.superClass){let r=[Qu(e,t,n),n(`superTypeArguments`)],i=e.call(()=>[`extends `,X(e,r,t)],`superClass`);c?u.push(K,U(i)):u.push(` `,i)}else u.push(Zu(e,t,n,`extends`));u.push(Zu(e,t,n,`mixins`),Zu(e,t,n,`implements`));let d;return c?(d=Uu(r),s.push(U([...l,H(u)],{id:d}))):s.push(...l,...u),!i&&c&&Pu(r.body)?s.push(W(J,` `,{groupId:d})):s.push(` `),s.push(n(`body`)),s}function qu(e){let t=+!!e.superClass;for(let n of[`extends`,`mixins`,`implements`])if(Array.isArray(e[n])&&(t+=e[n].length),t>1)return!0;return t>1}function Ju(e){let{node:t}=e;if(L(t.id,I.Trailing)||L(t.typeParameters,I.Trailing)||L(t.superClass)||qu(t))return!0;if(t.superClass)return e.parent.type!==`AssignmentExpression`&&!t.superTypeArguments&&k(br(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`)&&k(n.expression)&&!n.typeArguments:!1}var Yu=new WeakMap;function Xu(e){return f(Yu,e.node,()=>Ju(e))}function Zu(e,t,n,r){let{node:i}=e;if(!o(i[r]))return``;let a=Y(e,t,{marker:r}),s=G([`,`,K],e.map(n,r));if(!qu(i)){let t=[`${r} `,a,s];return Xu(e)?[K,U(t)]:[` `,t]}return[K,a,a&&J,r,U(H([K,s]))]}function Qu(e,t,n){let r=n(`superClass`),{parent:i}=e;return i.type===`AssignmentExpression`?U(W([`(`,H([q,r]),q,`)`],r)):r}function $u(e,t,n){let{node:r}=e,i=[];return o(r.decorators)&&i.push(ll(e,t,n)),i.push(to(r)),r.static&&i.push(`static `),i.push(eo(e)),r.override&&i.push(`override `),i.push(ns(e,t,n)),i}function ed(e,t,n){let{node:r}=e,i=[];return o(r.decorators)&&i.push(ll(e,t,n)),i.push(Qa(e),to(r)),r.static&&i.push(`static `),i.push(eo(e)),r.override&&i.push(`override `),r.readonly&&i.push(`readonly `),r.variance&&i.push(n(`variance`)),(r.type===`ClassAccessorProperty`||r.type===`AccessorProperty`||r.type===`TSAbstractAccessorProperty`)&&i.push(`accessor `),i.push(Ho(e,t,n),Z(e),Ya(e),$(e,n)),[ou(e,t,n,i,` =`,r.type===`TSAbstractPropertyDefinition`||r.type===`TSAbstractAccessorProperty`?void 0:`value`),Q(t)]}function td(e,t){let n=Ln(e,I.Leading);if(n.length===0)return!1;let[r]=n,i=t.originalText,a=b(r);return P(i,a,x(r))||N(i,a,{backwards:!0})}function nd(e,t,n,r=`body`){return e.call(({node:r})=>{let i=n();if(r.type===`EmptyStatement`)return L(r,I.Leading)?[` `,i]:i;let a=r.type===`BlockStatement`;return td(r,t)?a?[J,i]:H([J,i]):a||r.type===`IfStatement`&&e.parent.type===`IfStatement`&&e.key===`alternate`?[` `,i]:H([K,i])},r)}var rd=(e,t,n)=>nd(e,t,n,`consequent`),id=(e,t,n)=>nd(e,t,n,`alternate`);function ad(e,t,n){return[U([`do`,nd(e,t,n)]),e.node.body.type===`BlockStatement`?` `:J,`while (`,io(e,t,n),`)`,Q(t)]}var od=c([`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`]);function sd(e){return od(e)?sd(e.expression):e}var cd=c([`FunctionExpression`,`ArrowFunctionExpression`]);function ld(e){return e.type===`MemberExpression`||e.type===`OptionalMemberExpression`||e.type===`Identifier`&&e.name!==`undefined`}function ud(e,t){if(fs(e,t)){let t=sd(e.node.expression);return cd(t)||ld(t)}return!(!t.semi||us(e,t)||ds(e,t))}function dd(e,t,n){let r=[n(`expression`)];if(ss(e,t)){if(ps(e,t)){let{node:n}=e,i=d(0,Ln(n,I.Leading),-1);return X(e,[`;`,Ga(e,t,{filter:e=>e===i}),...r],t,{filter:e=>e!==i})}r.unshift(`;`)}else ud(e,t)&&r.push(`;`);return r}function fd(e,t,n){let{node:r}=e,i=nd(e,t,n),a=Y(e,t),o=a?[a,q]:``;return!r.init&&!r.test&&!r.update?[o,U([`for (;;)`,i])]:[o,U([`for (`,U([H([q,n(`init`),`;`,K,n(`test`),`;`,r.update?[K,n(`update`)]:``]),q]),`)`,i])]}function pd(e,t,n){let{node:r}=e,i=r.type===`ForOfStatement`;return U([`for`,i&&r.await?` await`:``,` (`,n(`left`),` `,i?`of`:`in`,` `,n(`right`),`)`,nd(e,t,n)])}function md(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 i=G([`,`,K],r);return t.__isVueForBindingLeft?[`(`,H([q,U(i)]),q,`)`]:i}if(t.__isEmbeddedTypescriptGenericParameters){let t=e.map(n,`program`,`body`,0,`typeParameters`,`params`);return G([`,`,K],t)}}var hd=(e,{originalText:t})=>Ba(t,b(e));function gd(e){return Tt(d(0,Ln(e,I.Dangling),-1))}function _d(e,t,n){let{node:r}=e,i=U([`if (`,io(e,t,n),`)`,rd(e,t,n)]);if(!r.alternate)return i;let{consequent:a}=r,o=a.type===`BlockStatement`,s=[i],c=o;o||(s.push(J),c=!1);let l=Ln(r,I.Dangling);if(l.length>0){let[n]=l;hd(n,t)?s.push(o?[J,J]:J):N(t.originalText,b(n),{backwards:!0})?s.push(o?J:``):s.push(` `),s.push(Y(e,t),gd(r)||N(t.originalText,x(d(0,l,-1)))?J:` `),c=!1}return s.push(c?` `:``,`else`,U(id(e,t,n))),s}function vd(e,t){let{node:n}=e;switch(n.type){case`RegExpLiteral`:return xd(n);case`BigIntLiteral`:return bd(n.extra.raw);case`NumericLiteral`:return yo(n.extra.raw);case`StringLiteral`:return di(ko(n.extra.raw,t));case`NullLiteral`:return`null`;case`BooleanLiteral`:return String(n.value);case`DirectiveLiteral`:return Cd(n.extra.raw,t);case`Literal`:{if(n.regex)return xd(n.regex);if(n.bigint)return bd(n.raw);let{value:r}=n;return typeof r==`number`?yo(n.raw):typeof r==`string`?yd(e)?Cd(n.raw,t):di(ko(n.raw,t)):String(r)}}}function yd(e){if(e.key!==`expression`)return;let{parent:t}=e;return t.type===`ExpressionStatement`&&typeof t.directive==`string`}function bd(e){return e.toLowerCase()}function xd({pattern:e,flags:t}){return t=[...t].sort().join(``),`/${e}/${t}`}var Sd=`use strict`;function Cd(e,t){let n=e.slice(1,-1);if(n===Sd||!(n.includes(`"`)||n.includes(`'`))){let e=t.singleQuote?`'`:`"`;return e+n+e}return e}var wd=c([`ImportDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`DeclareExportDeclaration`,`DeclareExportAllDeclaration`]),Td=c([`EnumBody`,`EnumBooleanBody`,`EnumNumberBody`,`EnumBigIntBody`,`EnumStringBody`,`EnumSymbolBody`]);function Ed(e,t,n){let{node:r,parent:i}=e,a=Td(r),s=r.type===`TSEnumBody`||a,c=wd(r),l=a&&r.hasUnknownMembers,u=s?`members`:c?`attributes`:`properties`,f=r[u],p=s||r.type===`ObjectPattern`&&i.type!==`FunctionDeclaration`&&i.type!==`FunctionExpression`&&i.type!==`ArrowFunctionExpression`&&i.type!==`ObjectMethod`&&i.type!==`ClassMethod`&&i.type!==`ClassPrivateMethod`&&i.type!==`AssignmentPattern`&&i.type!==`CatchClause`&&r.properties.some(e=>e.value&&(e.value.type===`ObjectPattern`||e.value.type===`ArrayPattern`))||r.type!==`ObjectPattern`&&t.objectWrap===`preserve`&&f.length>0&&Dd(r,f[0],t),m=[],h=e.map(({node:e})=>{let r=[...m,n()];return m=[`,`,K],wa(e,t)&&m.push(J),r},u);if(l){let n;if(L(r,I.Dangling)){let i=L(r,I.Line);n=[Y(e,t),i||N(t.originalText,x(d(0,Ln(r),-1)))?J:K,`...`]}else n=[`...`];h.push([...m,...n])}let g=!(l||d(0,f,-1)?.type===`RestElement`),_;if(h.length===0)_=U([`{`,ao(e,t),`}`,Z(e),$(e,n)]);else{let r=t.bracketSpacing?K:q;_=[`{`,H([r,...h]),g?oo(t):``,r,`}`,Z(e),$(e,n)]}return e.match(e=>e.type===`ObjectPattern`&&!o(e.decorators),ho)||Oe(r)&&(e.match(void 0,(e,t)=>t===`typeAnnotation`,(e,t)=>t===`typeAnnotation`,ho)||e.match(void 0,(e,t)=>e.type===`FunctionTypeParam`&&t===`typeAnnotation`,ho))||!p&&e.match(e=>e.type===`ObjectPattern`,e=>e.type===`AssignmentExpression`||e.type===`VariableDeclarator`)?_:U(_,{shouldBreak:p})}function Dd(e,t,n){let r=n.originalText,i=b(t),a=b(e);return wd(e)&&(a=bt(n).lastIndexOf(`{`,i)),P(r,a,i)}function Od(e,t,n){let{node:r}=e;return[`import`,r.phase?` ${r.phase}`:``,Pd(r),Ld(e,t,n),Id(e,t,n),Vd(e,t,n),Q(t)]}var kd=e=>e.type===`ExportDefaultDeclaration`||e.type===`DeclareExportDeclaration`&&e.default;function Ad(e,t,n){let{node:r}=e,i=[ul(e,t,n),Qa(e),`export`,kd(r)?` default`:``],{declaration:a,exported:o}=r;return L(r,I.Dangling)&&(i.push(` `,Y(e,t)),gd(r)&&i.push(J)),a?i.push(` `,n(`declaration`)):(i.push(Fd(r)),r.type===`ExportAllDeclaration`||r.type===`DeclareExportAllDeclaration`?(i.push(` *`),o&&i.push(` as `,n(`exported`))):i.push(Ld(e,t,n)),i.push(Id(e,t,n),Vd(e,t,n))),i.push(Md(r,t)),i}var jd=c([`ClassDeclaration`,`ComponentDeclaration`,`FunctionDeclaration`,`TSInterfaceDeclaration`,`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`HookDeclaration`,`TSDeclareFunction`,`EnumDeclaration`]);function Md(e,t){return!e.declaration||kd(e)&&!jd(e.declaration)?Q(t):``}function Nd(e,t=!0){return e&&e!==`value`?`${t?` `:``}${e}${t?``:` `}`:``}function Pd(e,t){return Nd(e.importKind,t)}function Fd(e){return Nd(e.exportKind)}function Id(e,t,n){let{node:r}=e;return r.source?[Rd(r,t)?` from`:``,` `,n(`source`)]:``}function Ld(e,t,n){let{node:r}=e;if(!Rd(r,t))return``;let i=[` `];if(o(r.specifiers)){let a=[],o=[];e.each(()=>{let t=e.node.type;if(t===`ExportNamespaceSpecifier`||t===`ExportDefaultSpecifier`||t===`ImportNamespaceSpecifier`||t===`ImportDefaultSpecifier`)a.push(n());else if(t===`ExportSpecifier`||t===`ImportSpecifier`)o.push(n());else throw new Xc(r,`specifier`)},`specifiers`),i.push(G(`, `,a)),o.length>0&&(a.length>0&&i.push(`, `),o.length>1||a.length>0||r.specifiers.some(e=>L(e))?i.push(U([`{`,H([t.bracketSpacing?K:q,G([`,`,K],o)]),oo(t),t.bracketSpacing?K:q,`}`])):i.push([`{`,t.bracketSpacing?` `:``,...o,t.bracketSpacing?` `:``,`}`]))}else i.push(`{}`);return i}function Rd(e,t){return e.type!==`ImportDeclaration`||o(e.specifiers)||e.importKind===`type`?!0:bt(t).slice(b(e),b(e.source)).trimEnd().endsWith(`from`)}function zd(e,t){let n=bt(t).slice(x(e.source),e.attributes?.[0]?b(e.attributes[0]):x(e)).trimStart();return n.startsWith(`assert`)?`assert`:n.startsWith(`with`)||o(e.attributes)?`with`:void 0}var Bd=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[n]=t,{type:r,key:i,value:a}=n;return r===`ImportAttribute`&&(i.type===`Identifier`&&i.name===`type`||C(i)&&i.value===`type`)&&C(a)&&!L(n)&&!L(i)&&!L(a)};function Vd(e,t,n){let{node:r}=e;if(!r.source)return``;let i=zd(r,t);if(!i)return``;let a=Ed(e,t,n);return Bd(r)&&(a=ci(a)),[` ${i} `,a]}function Hd(e,t,n){let{node:r}=e,{type:i}=r,a=i.startsWith(`Import`),o=a?`imported`:`local`,s=a?`local`:`exported`,c=r[o],l=r[s],u=``,d=``;return i===`ExportNamespaceSpecifier`||i===`ImportNamespaceSpecifier`?u=`*`:c&&(u=n(o)),l&&!Ie(r)&&(d=n(s)),[Nd(i===`ImportSpecifier`?r.importKind:r.exportKind,!1),u,u&&d?` as `:``,d]}function Ud(e,t,n){let{node:r}=e;return r.shorthand?n(`value`):ou(e,t,n,Ho(e,t,n),`:`,`value`)}function Wd(e,t){return[`...`,t(`argument`),$(e,t)]}function Gd(e,t,n){let{node:r}=e,i=n();return yr(r,t)?[`(`,H([J,i]),J,`)`]:Ae(r)||t.experimentalTernaries&&r.type===`ConditionalExpression`&&(r.consequent.type===`ConditionalExpression`||r.alternate.type===`ConditionalExpression`)?U([W(`(`),H([q,i]),q,W(`)`)]):i}function Kd(e,t,n){let{node:r}=e;return[r.type===`ThrowStatement`?`throw`:`return`,r.argument?[` `,e.call(()=>Gd(e,t,n),`argument`)]:``,Q(t)]}function qd(e,t){let{key:n,parent:r}=e;return!!(n===`argument`&&we(r)&&Mr(e,t)||n===`body`&&r.type===`ArrowFunctionExpression`)}function Jd(e,t,n){let{parent:r}=e;if(r.type===`ExpressionStatement`||r.type===`ForStatement`){let t=[];return e.each(({isFirst:e})=>{e?t.push(n()):t.push(`,`,H([K,n()]))},`expressions`),U(t)}let i=G([`,`,K],e.map(n,`expressions`));return qd(e,t)?U(W([H([q,i]),q],i)):U(i)}function Yd(e,t,n){return[U([`switch (`,H([q,n(`discriminant`)]),q,`)`]),` {`,e.node.cases.length>0?H([J,G(J,e.map(({node:e,isLast:r})=>[n(),!r&&wa(e,t)?J:``],`cases`))]):Y(e,t,{indent:!0}),J,`}`]}function Xd(e,t,n){let{node:r}=e,i=[];r.test?i.push(`case `,n(`test`),`:`):i.push(`default:`),L(r,I.Dangling)&&i.push(` `,Y(e,t));let a=r.consequent.filter(e=>e.type!==`EmptyStatement`);if(a.length>0){let r=Du(e,t,n,`consequent`);i.push(a.length===1&&a[0].type===`BlockStatement`?[` `,r]:H([J,r]))}return i}function Zd(e,t){let n=0;for(let r in e){let i=e[r];if(tr(i)&&typeof i.type==`string`&&(n++,n+=Zd(i,t-n)),n>t)return n}return n}function Qd(e,t=5){return Zd(e,t)<=t}function $d(e){let t=[e];for(let e=0;e<t.length;e++){let n=t[e];for(let e of[`test`,`consequent`,`alternate`]){let r=n[e];if(D(r))return!0;r.type===`ConditionalExpression`&&t.push(r)}}return!1}function ef(e,t,n){let{node:r}=e,i=r.type===`ConditionalExpression`,a=i?`alternate`:`falseType`,{parent:o}=e,s=i?n(`test`):[n(`checkType`),` `,`extends`,` `,n(`extendsType`)];return o.type===r.type&&o[a]===r?bi(2,s):s}var tf=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function nf(e){let{node:t}=e;if(t.type!==`ConditionalExpression`)return!1;let n,r=t;for(let t=0;!n;t++){let i=e.getParentNode(t);if(Ne(i)&&i.expression===r||O(i)&&i.callee===r||k(i)&&i.object===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||w(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r!==t&&n[tf.get(n.type)]===r}function rf(e,t,n){let{node:r}=e,i=r.type===`ConditionalExpression`,a=i?`consequent`:`trueType`,o=i?`alternate`:`falseType`,s=i?[`test`]:[`checkType`,`extendsType`],c=r[a],l=r[o],u=[],d=!1,{parent:f}=e,p=f.type===r.type&&s.some(e=>f[e]===r),m=f.type===r.type&&!p,h,g,_=0;do g=h||r,h=e.getParentNode(_),_++;while(h&&h.type===r.type&&s.every(e=>h[e]!==g));let v=h||f,y=g;if(i&&(D(r[s[0]])||D(c)||D(l)||$d(y))){d=!0,m=!0;let e=e=>[W(`(`),H([q,e]),q,W(`)`)],t=e=>e.type===`NullLiteral`||e.type===`Literal`&&e.value===null||e.type===`Identifier`&&e.name===`undefined`;u.push(` ? `,t(c)?n(a):e(n(a)),` : `,l.type===r.type||t(l)?n(o):e(n(o)))}else{let e=e=>t.useTabs?H(n(e)):bi(2,n(e)),i=[K,`? `,c.type===r.type?W(``,`(`):``,e(a),c.type===r.type?W(``,`)`):``,K,`: `,e(o)];u.push(f.type!==r.type||f[o]===r||p?i:t.useTabs?Ci(H(i)):bi(Math.max(0,t.tabWidth-2),i))}let ee=e=>f===v?U(e):e,te=!d&&(k(f)||f.type===`NGPipeExpression`&&f.left===r)&&!f.computed,ne=nf(e),b=ee([ef(e,t,n),m?u:H(u),i&&te&&!ne?q:``]);return p||ne?U([H([q,b]),q]):b}function af(e,t){return(k(t)||t.type===`NGPipeExpression`&&t.left===e)&&!t.computed}function of(e,t,n,r){return[...e.map(e=>Ln(e)),Ln(t),Ln(n)].flat().some(e=>wt(e)&&P(r.originalText,b(e),x(e)))}var sf=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function cf(e){let{node:t}=e;if(t.type!==`ConditionalExpression`)return!1;let n,r=t;for(let t=0;!n;t++){let i=e.getParentNode(t);if(Ne(i)&&i.expression===r||O(i)&&i.callee===r||k(i)&&i.object===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||w(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r!==t&&n[sf.get(n.type)]===r}var lf=e=>[W(`(`),H([q,e]),q,W(`)`)];function uf(e,t,n,r){if(!t.experimentalTernaries)return rf(e,t,n);let{node:i}=e,a=i.type===`ConditionalExpression`,o=Se(i),s=a?`consequent`:`trueType`,c=a?`alternate`:`falseType`,l=a?[`test`]:[`checkType`,`extendsType`],u=i[s],d=i[c],f=l.map(e=>i[e]),{parent:p}=e,m=p.type===i.type,h=m&&l.some(e=>p[e]===i),g=m&&p[c]===i,_=u.type===i.type,v=d.type===i.type,y=v||g,ee=t.tabWidth>2||t.useTabs,te,ne,b=0;do ne=te||i,te=e.getParentNode(b),b++;while(te&&te.type===i.type&&l.every(e=>te[e]!==ne));let re=te||p,ie=r&&r.assignmentLayout&&r.assignmentLayout!==`break-after-operator`&&(p.type===`AssignmentExpression`||p.type===`VariableDeclarator`||p.type===`ClassProperty`||p.type===`PropertyDefinition`||p.type===`ClassPrivateProperty`||p.type===`ObjectProperty`||p.type===`Property`),ae=we(p)&&!(_||v),oe=a&&re.type===`JSXExpressionContainer`&&e.grandparent.type!==`JSXAttribute`,se=cf(e),ce=af(i,p),le=o&&Mr(e,t),ue=ee?t.useTabs?` `:` `.repeat(t.tabWidth-1):``,de=of(f,u,d,t)||_||v,x=!y&&!m&&!o&&(oe?u.type===`NullLiteral`||u.type===`Literal`&&u.value===null:jl(u,t)&&Qd(i.test,3)),fe=y||g||o&&!m||m&&a&&Qd(i.test,1)||x,pe=[];L(i.test,I.Dangling)&&e.call(()=>{pe.push(Y(e,t))},`test`),L(i,I.Dangling)&&pe.push(Y(e,t));let me=Symbol(`test`),S=Symbol(`consequent`),he=Symbol(`test-and-consequent`),ge=U([a?[lf(n(`test`)),i.test.type===`ConditionalExpression`?Ti:``]:[n(`checkType`),` `,`extends`,` `,Se(i.extendsType)||i.extendsType.type===`TSMappedType`?n(`extendsType`):U(lf(n(`extendsType`)))],` ?`],{id:me}),_e=n(s),ve=H([_||oe&&(D(u)||m||y)?J:K,_e]),C=fe?U([ge,y?ve:W(ve,U(ve,{id:S}),{groupId:me})],{id:he}):[ge,ve],w=n(c),ye=x?W(w,Ci(lf(w)),{groupId:he}):w,T=[C,pe.length>0?[H([J,pe]),J]:v?J:x?W(K,` `,{groupId:he}):K,`:`,v||!ee?` `:fe?W(ue,W(y||x?` `:ue,` `),{groupId:he}):W(ue,` `),v?ye:U([H(ye),oe&&!x?q:``]),ce&&!se?q:``,de?Ti:``];return ie&&!de?U(H([q,U(T)])):ie||ae?U(H(T)):se||o&&h?U([H([q,T]),le?q:``]):p===re?U(T):T}function df(e,t,n){let{node:r}=e;return[`try `,n(`block`),r.handler?[` `,n(`handler`)]:``,r.finalizer?[` finally `,n(`finalizer`)]:``]}function ff(e,t,n){let{node:r}=e;if(r.param){let e=L(r.param,e=>!wt(e)||e.leading&&N(t.originalText,x(e))||e.trailing&&N(t.originalText,b(e),{backwards:!0})),i=n(`param`);return[`catch `,e?[`(`,H([q,i]),q,`) `]:[`(`,i,`) `],n(`body`)]}return[`catch `,n(`body`)]}function pf(e,t,n){let{node:r}=e,i=e.map(n,`declarations`),a=e.key===`init`&&e.parent.type===`ForStatement`||e.key===`left`&&(e.parent.type===`ForInStatement`||e.parent.type===`ForOfStatement`),o=r.declarations.some(e=>e.init),s;return s=i.length===1&&!L(r.declarations[0])?i[0]:H(i[0]),U([Qa(e),r.kind,s?[` `,s]:``,H(i.slice(1).map(e=>[`,`,o&&!a?J:K,e])),a?``:Q(t)])}function mf(e,t,n){let{node:r}=e;return U([r.type===`WithStatement`?`with`:`while`,` (`,io(e,t,n),`)`,nd(e,t,n)])}function hf(e,t,n,r){let{node:i}=e;if(De(i))return vd(e,t);switch(i.type){case`JsExpressionRoot`:return n(`node`);case`JsonRoot`:return[Y(e,t),n(`node`),J];case`File`:return md(e,t,n)??n(`program`);case`ExpressionStatement`:return dd(e,t,n);case`ChainExpression`:return n(`expression`);case`ParenthesizedExpression`:return!L(i.expression)&&(Ee(i.expression)||E(i.expression))?[`(`,n(`expression`),`)`]:U([`(`,H([q,n(`expression`)]),q,`)`]);case`AssignmentExpression`:return su(e,t,n);case`VariableDeclarator`:return cu(e,t,n);case`BinaryExpression`:case`LogicalExpression`:return $c(e,t,n);case`AssignmentPattern`:return[n(`left`),` = `,n(`right`)];case`OptionalMemberExpression`:case`MemberExpression`:return Zl(e,t,n);case`MetaProperty`:return[n(`meta`),`.`,n(`property`)];case`BindExpression`:return ql(e,t,n);case`Identifier`:return[i.name,Z(e),Ya(e),$(e,n)];case`V8IntrinsicIdentifier`:return[`%`,i.name];case`SpreadElement`:return Wd(e,n);case`RestElement`:return Wd(e,n);case`FunctionDeclaration`:case`FunctionExpression`:return ts(e,t,n,r);case`ArrowFunctionExpression`:return Tl(e,t,n,r);case`YieldExpression`:return[`yield${i.delegate?`*`:``}`,i.argument?[` `,n(`argument`)]:``];case`AwaitExpression`:return wu(e,t,n);case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return Ad(e,t,n);case`ImportDeclaration`:return Od(e,t,n);case`ImportSpecifier`:case`ExportSpecifier`:case`ImportNamespaceSpecifier`:case`ExportNamespaceSpecifier`:case`ImportDefaultSpecifier`:case`ExportDefaultSpecifier`:return Hd(e,t,n);case`ImportAttribute`:return Ud(e,t,n);case`Program`:case`BlockStatement`:case`StaticBlock`:return Ou(e,t,n);case`ClassBody`:return Fu(e,t,n);case`ThrowStatement`:return Kd(e,t,n);case`ReturnStatement`:return Kd(e,t,n);case`NewExpression`:case`ImportExpression`:case`OptionalCallExpression`:case`CallExpression`:return tu(e,t,n);case`ObjectExpression`:case`ObjectPattern`:return Ed(e,t,n);case`Property`:return ee(i)?ns(e,t,n):Ud(e,t,n);case`ObjectProperty`:return Ud(e,t,n);case`ObjectMethod`:return ns(e,t,n);case`Decorator`:return[`@`,n(`expression`)];case`ArrayExpression`:case`ArrayPattern`:return hl(e,t,n);case`SequenceExpression`:return Jd(e,t,n);case`ThisExpression`:return`this`;case`Super`:return`super`;case`Directive`:return[n(`value`),Q(t)];case`UnaryExpression`:{let e=[i.operator];/[a-z]$/.test(i.operator)&&e.push(` `);let t=n(`argument`);return L(i.argument)?e.push(U([`(`,H([q,t]),q,`)`])):e.push(t),e}case`UpdateExpression`:return[i.prefix?i.operator:``,n(`argument`),i.prefix?``:i.operator];case`ConditionalExpression`:return uf(e,t,n,r);case`VariableDeclaration`:return pf(e,t,n);case`IfStatement`:return _d(e,t,n);case`ForStatement`:return fd(e,t,n);case`WithStatement`:case`WhileStatement`:return mf(e,t,n);case`DoWhileStatement`:return ad(e,t,n);case`ForInStatement`:case`ForOfStatement`:return pd(e,t,n);case`DoExpression`:return[i.async?`async `:``,`do `,n(`body`)];case`BreakStatement`:case`ContinueStatement`:return[i.type===`BreakStatement`?`break`:`continue`,i.label?[` `,n(`label`)]:``,Q(t)];case`LabeledStatement`:return[n(`label`),`:${i.body.type===`EmptyStatement`&&!L(i.body,I.Leading)?``:` `}`,n(`body`)];case`TryStatement`:return df(e,t,n);case`CatchClause`:return ff(e,t,n);case`SwitchStatement`:return Yd(e,t,n);case`SwitchCase`:return Xd(e,t,n);case`DebuggerStatement`:return[`debugger`,Q(t)];case`ClassDeclaration`:case`ClassExpression`:return Gu(e,t,n);case`ClassMethod`:case`ClassPrivateMethod`:case`MethodDefinition`:return $u(e,t,n);case`ClassProperty`:case`PropertyDefinition`:case`ClassPrivateProperty`:case`ClassAccessorProperty`:case`AccessorProperty`:return ed(e,t,n);case`TemplateElement`:return di(i.value.raw);case`TemplateLiteral`:return xs(e,t,n);case`TaggedTemplateExpression`:return Ss(e,t,n);case`PrivateIdentifier`:return[`#`,i.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(y(e))return`;`;default:throw new Xc(i,`ESTree`)}}function gf(e){return[e(`elementType`),`[]`]}function _f(e,t,n){let{parent:r,node:i,key:a}=e,o=i.type===`AsConstExpression`?`const`:n(`typeAnnotation`),s=[n(`expression`),` `,ye(i)?`satisfies`:`as`,` `,o];return a===`callee`&&je(r)||a===`object`&&k(r)?U([H([q,...s]),q]):s}function vf(e,t,n){let{node:r}=e,i=[Qa(e),r.async?`async `:``,`component`];r.id&&i.push(` `,n(`id`)),i.push(n(`typeParameters`));let a=co(e,t,n);return r.rendersType?i.push(U([a,` `,n(`rendersType`)])):i.push(U([a])),r.body&&i.push(` `,n(`body`)),r.type===`DeclareComponent`&&i.push(Q(t)),i}function yf(e,t,n){let{node:r}=e;return r.shorthand?n(`local`):[n(`name`),` as `,n(`local`)]}function bf(e,t,n){let{node:r}=e,i=[];return r.name&&i.push(n(`name`),r.optional?`?: `:`: `),i.push(n(`typeAnnotation`)),i}function xf(e,t,n){let{node:r}=e;return[r.explicitType?`of ${r.explicitType} `:``,Ed(e,t,n)]}function Sf(e,t,n){let{node:r}=e;return[r.type===`EnumSymbolBody`||r.explicitType?`of ${r.type.slice(4,-4).toLowerCase()} `:``,Ed(e,t,n)]}function Cf(e,t,n){let{node:r}=e,i=r.type===`TSEnumMember`,a=i?Ho(e,t,n):n(`id`),o=i?`initializer`:`init`;return r[o]?[a,` = `,n(o)]:a}function wf(e,t){let{node:n}=e;return[Qa(e),n.const?`const `:``,`enum `,t(`id`),` `,t(`body`)]}function Tf(e,t,n){let{node:r}=e,i=[eo(e)];(r.type===`TSConstructorType`||r.type===`TSConstructSignatureDeclaration`)&&i.push(`new `);let a=co(e,t,n,!1,!0),o=[];return r.type===`FunctionTypeAnnotation`?o.push(Ef(e)?` => `:`: `,n(`returnType`)):o.push($(e,n,`returnType`)),fo(r,o)&&(a=U(a)),i.push(a,o),[U(i),r.type===`TSConstructSignatureDeclaration`||r.type===`TSCallSignatureDeclaration`?Lu(e,t):``]}function Ef(e){let{node:t,parent:n}=e;return t.type===`FunctionTypeAnnotation`&&(xa(n)||!((n.type===`ObjectTypeProperty`||n.type===`ObjectTypeInternalSlot`)&&!n.variance&&!n.optional&&fe(n,t)||n.type===`ObjectTypeCallProperty`||e.getParentNode(2)?.type===`DeclareFunction`))}function Df(e,t,n){return[Qa(e),`hook`,e.node.id?[` `,n(`id`)]:``,Q(t)]}function Of(e){let{node:t}=e;return t.type===`HookTypeAnnotation`&&e.getParentNode(2)?.type===`DeclareHook`}function kf(e,t,n){let{node:r}=e,i=co(e,t,n,!1,!0),a=[Of(e)?`: `:` => `,n(`returnType`)];return U([Of(e)?``:`hook `,fo(r,a)?U(i):i,a])}function Af(e,t,n){return[n(`objectType`),Z(e),`[`,n(`indexType`),`]`]}function jf(e,t,n){return[`infer `,n(`typeParameter`)]}function Mf(e,t,n){let r=!1;return U(e.map(({isFirst:e,previous:i,node:a,index:o})=>{let s=n();if(e)return s;let c=Oe(a),l=Oe(i);return l&&c?[` & `,r?H(s):s]:!l&&!c||gr(t.originalText,a)?t.experimentalOperatorPosition===`start`?H([K,`& `,s]):H([` &`,K,s]):(o>1&&(r=!0),[` & `,o>1?H(s):s])},`types`))}function Nf(e){switch(e){case null:return``;case`PlusOptional`:return`+?`;case`MinusOptional`:return`-?`;case`Optional`:return`?`}}function Pf(e,t,n){let{node:r}=e;return[U([r.variance?n(`variance`):``,U([`[`,H([q,n(`keyTparam`),` in `,n(`sourceType`)]),q,`]`]),Nf(r.optional),`: `,n(`propType`)]),Lu(e,t)]}function Ff(e,t){return e===`+`||e===`-`?e+t:t}function If(e,t,n){let{node:r}=e,i=!1;if(t.objectWrap===`preserve`){let e=bt(t),n=b(r)+1,a=n+e.slice(n).search(/\S/);P(t.originalText,n,a)&&(i=!0)}let a=[],o=Ln(r,I.Dangling);if(o.length>0){let n=d(0,o,-1),r=Y(e,t);a.push(...r.slice(0,-1),U([d(0,r,-1),Tt(n)||N(t.originalText,x(n))?J:K]))}return U([`{`,H([t.bracketSpacing?K:q,...a,r.readonly?[Ff(r.readonly,`readonly`),` `]:``,U([`[`,H([q,n(`key`),` in `,n(`constraint`),r.nameType?[` as `,n(`nameType`)]:``]),q,`]`]),r.optional?Ff(r.optional,`?`):``,r.typeAnnotation?`: `:``,n(`typeAnnotation`),t.semi?W(`;`):``]),t.bracketSpacing?K:q,`}`],{shouldBreak:i})}function Lf(e,t,n){let{node:r}=e;return[U([`match (`,H([q,n(`argument`)]),q,`)`]),` {`,r.cases.length>0?H([J,G(J,e.map(({node:e,isLast:r})=>[n(),!r&&wa(e,t)?J:``],`cases`))]):``,J,`}`]}function Rf(e,t,n){let{node:r}=e,i=L(r,I.Dangling)?[` `,Y(e,t)]:[],a=r.type===`MatchStatementCase`?[` `,n(`body`)]:H([K,n(`body`),`,`]);return[n(`pattern`),r.guard?U([H([K,`if (`,n(`guard`),`)`])]):``,U([` =>`,i,a])]}function zf(e,t,n){let{node:r}=e;switch(r.type){case`MatchOrPattern`:return Wf(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 e=r.property.type===`Identifier`?[`.`,n(`property`)]:[`[`,H([q,n(`property`)]),q,`]`];return U([n(`base`),e])}case`MatchBindingPattern`:return[r.kind,` `,n(`id`)];case`MatchObjectPattern`:case`MatchInstanceObjectPattern`:return Bf(e,t,n);case`MatchInstancePattern`:return U([n(`targetConstructor`),` `,n(`properties`)]);case`MatchArrayPattern`:{let t=e.map(n,`elements`);return r.rest&&t.push(n(`rest`)),U([`[`,H([q,G([`,`,K],t)]),r.rest?``:W(`,`),q,`]`])}case`MatchObjectPatternProperty`:return r.shorthand?n(`pattern`):U([n(`key`),`:`,H([K,n(`pattern`)])]);case`MatchRestPattern`:{let e=[`...`];return r.argument&&e.push(n(`argument`)),e}}}function Bf(e,t,n){let{node:r}=e,i=e.map(n,`properties`);return r.rest&&i.push(n(`rest`)),U([`{`,H([q,G([`,`,K],i)]),r.rest?``:W(`,`),q,`}`])}var Vf=c([`MatchWildcardPattern`,`MatchLiteralPattern`,`MatchUnaryPattern`,`MatchIdentifierPattern`]);function Hf(e){let{patterns:t}=e;if(t.some(e=>L(e)))return!1;let n=t.find(e=>e.type===`MatchObjectPattern`);return n?t.every(e=>e===n||Vf(e)):!1}function Uf(e){return Vf(e)||e.type===`MatchObjectPattern`?!0:e.type===`MatchOrPattern`&&Hf(e)}function Wf(e,t,n){let{node:r}=e,{parent:i}=e,a=i.type!==`MatchStatementCase`&&i.type!==`MatchExpressionCase`&&i.type!==`MatchArrayPattern`&&i.type!==`MatchObjectPatternProperty`&&!gr(t.originalText,r),o=Uf(r),s=e.map(()=>{let r=n();return o||(r=bi(2,r)),X(e,r,t)},`patterns`);if(o)return G(` | `,s);let c=[W([`| `]),G([K,`| `],s)];return Mr(e,t)?U([H([W([q]),c]),q]):i.type===`MatchArrayPattern`&&i.elements.length>1?U([H([W([`(`,q]),c]),q,W(`)`)]):U(a?H(c):c)}function Gf(e,t,n){let{node:r}=e,i=[Qa(e),`opaque type `,n(`id`),n(`typeParameters`)];if(r.supertype&&i.push(`: `,n(`supertype`)),r.lowerBound||r.upperBound){let e=[];r.lowerBound&&e.push(H([K,`super `,n(`lowerBound`)])),r.upperBound&&e.push(H([K,`extends `,n(`upperBound`)])),i.push(U(e))}return r.impltype&&i.push(` = `,n(`impltype`)),i.push(Q(t)),i}function Kf(e,t,n){let{node:r}=e;return[`...`,...r.type===`TupleTypeSpreadElement`&&r.label?[n(`label`),`: `]:[],n(`typeAnnotation`)]}function qf(e,t,n){let{node:r}=e;return[r.variance?n(`variance`):``,n(`label`),r.optional?`?`:``,`: `,n(`elementType`)]}function Jf(e,t,n){let{node:r}=e;return[ou(e,t,n,[Qa(e),`type `,n(`id`),n(`typeParameters`)],` =`,r.type===`TSTypeAliasDeclaration`?`typeAnnotation`:`right`),Q(t)]}function Yf(e,t,n){let{node:r}=e;return h(r).length===1&&r.type.startsWith(`TS`)&&!r[n][0].constraint&&e.parent.type===`ArrowFunctionExpression`&&!(t.filepath&&/\.ts$/.test(t.filepath))}function Xf(e,t,n,r){let{node:i}=e,a=i[r];if(!a)return``;if(!Array.isArray(a))return n(r);let o=Ra(e.grandparent),s=e.match(e=>!(e[r].length===1&&Oe(e[r][0])),void 0,(e,t)=>t===`typeAnnotation`,e=>e.type===`Identifier`,_u);if(a.length===0||!s&&(o||a.length===1&&(a[0].type===`NullableTypeAnnotation`||Xo(a[0])))&&!a.some(e=>{let n=Ln(e,e=>e.leading||e.trailing);return n.length>0&&(n.some(e=>Tt(e))||N(t.originalText,x(d(0,n,-1))))}))return[`<`,G(`, `,e.map(n,r)),Zf(e,t),`>`];let c=i.type===`TSTypeParameterInstantiation`?``:Yf(e,t,r)?`,`:oo(t);return U([`<`,H([q,G([`,`,K],e.map(n,r))]),c,q,`>`])}function Zf(e,t){let{node:n}=e;if(!L(n,I.Dangling))return``;let r=!L(n,I.Line),i=Y(e,t,{indent:!r});return r?i:[i,J]}function Qf(e,t,n){let{node:r}=e,i=[r.const?`const `:``],a=r.type===`TSTypeParameter`?n(`name`):r.name;if(r.variance&&i.push(n(`variance`)),r.in&&i.push(`in `),r.out&&i.push(`out `),i.push(a),r.bound&&(r.usesExtendsBound&&i.push(` extends `),i.push($(e,n,`bound`))),r.constraint){let e=Symbol(`constraint`);i.push(` extends`,U(H(K),{id:e}),Pi,ki(n(`constraint`),{groupId:e}))}if(r.default){let e=Symbol(`default`);i.push(` =`,U(H(K),{id:e}),Pi,ki(n(`default`),{groupId:e}))}return U(i)}function $f(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 `,$(e,t)]:``]}function ep({node:e},t){return[`typeof `,t(e.type===`TSTypeQuery`?`exprName`:`argument`),t(`typeArguments`)]}function tp(e,t,n,r){let{node:i}=e;if(Ta(i))return i.type.slice(0,-14).toLowerCase();switch(i.type){case`ComponentDeclaration`:case`DeclareComponent`:case`ComponentTypeAnnotation`:return vf(e,t,n);case`ComponentParameter`:return yf(e,t,n);case`ComponentTypeParameter`:return bf(e,t,n);case`HookDeclaration`:return ts(e,t,n);case`DeclareHook`:return Df(e,t,n);case`HookTypeAnnotation`:return kf(e,t,n);case`DeclareFunction`:return[Qa(e),`function `,n(`id`),n(`predicate`),Q(t)];case`DeclareModule`:return[`declare module `,n(`id`),` `,n(`body`)];case`DeclareModuleExports`:return[`declare module.exports`,$(e,n),Q(t)];case`DeclareNamespace`:return[`declare namespace `,n(`id`),` `,n(`body`)];case`DeclareVariable`:return Array.isArray(i.declarations)?pf(e,t,n):[Qa(e),i.kind??`var`,` `,n(`id`),Q(t)];case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:return Ad(e,t,n);case`DeclareOpaqueType`:case`OpaqueType`:return Gf(e,t,n);case`DeclareTypeAlias`:case`TypeAlias`:return Jf(e,t,n);case`IntersectionTypeAnnotation`:return Mf(e,t,n);case`UnionTypeAnnotation`:return Jo(e,t,n,r);case`ConditionalTypeAnnotation`:return uf(e,t,n);case`InferTypeAnnotation`:return jf(e,t,n);case`FunctionTypeAnnotation`:return Tf(e,t,n);case`TupleTypeAnnotation`:return hl(e,t,n);case`TupleTypeLabeledElement`:return qf(e,t,n);case`TupleTypeSpreadElement`:return Kf(e,t,n);case`GenericTypeAnnotation`:return[n(`id`),Xf(e,t,n,`typeParameters`)];case`IndexedAccessType`:case`OptionalIndexedAccessType`:return Af(e,t,n);case`TypeAnnotation`:return $o(e,t,n);case`TypeParameter`:return Qf(e,t,n);case`TypeofTypeAnnotation`:return ep(e,n);case`ExistsTypeAnnotation`:return`*`;case`ArrayTypeAnnotation`:return gf(n);case`DeclareEnum`:case`EnumDeclaration`:return wf(e,n);case`EnumBody`:return xf(e,t,n);case`EnumBooleanBody`:case`EnumNumberBody`:case`EnumBigIntBody`:case`EnumStringBody`:case`EnumSymbolBody`:return Sf(e,t,n);case`EnumBooleanMember`:case`EnumNumberMember`:case`EnumBigIntMember`:case`EnumStringMember`:case`EnumDefaultedMember`:return Cf(e,t,n);case`FunctionTypeParam`:{let t=i.name?n(`name`):e.parent.this===i?`this`:``;return[t,Z(e),t?`: `:``,n(`typeAnnotation`)]}case`DeclareClass`:case`DeclareInterface`:case`InterfaceDeclaration`:case`InterfaceTypeAnnotation`:case`RecordDeclaration`:return Gu(e,t,n);case`ObjectTypeAnnotation`:case`RecordDeclarationBody`:return Fu(e,t,n);case`ClassImplements`:case`InterfaceExtends`:return[n(`id`),n(`typeParameters`)];case`RecordDeclarationImplements`:return[n(`id`),n(`typeArguments`)];case`NullableTypeAnnotation`:return[`?`,n(`typeAnnotation`)];case`Variance`:{let{kind:e}=i;return e===`plus`?`+`:e===`minus`?`-`:`${e} `}case`KeyofTypeAnnotation`:return[`keyof `,n(`argument`)];case`ObjectTypeCallProperty`:return[i.static?`static `:``,n(`value`),Lu(e,t)];case`ObjectTypeMappedTypeProperty`:return Pf(e,t,n);case`ObjectTypeIndexer`:return[i.static?`static `:``,i.variance?n(`variance`):``,`[`,n(`id`),i.id?`: `:``,n(`key`),`]: `,n(`value`),Lu(e,t)];case`ObjectTypeProperty`:{let r=``;return i.proto?r=`proto `:i.static&&(r=`static `),[r,i.kind===`init`?``:i.kind+` `,i.variance?n(`variance`):``,Ho(e,t,n),Z(e),ee(i)?``:`: `,n(`value`),Lu(e,t)]}case`ObjectTypeInternalSlot`:return[i.static?`static `:``,`[[`,n(`id`),`]]`,Z(e),i.method?``:`: `,n(`value`),Lu(e,t)];case`ObjectTypeSpreadProperty`:return Wd(e,n);case`QualifiedTypeofIdentifier`:case`QualifiedTypeIdentifier`:return[n(`qualification`),`.`,n(`id`)];case`NullLiteralTypeAnnotation`:return`null`;case`BooleanLiteralTypeAnnotation`:return String(i.value);case`StringLiteralTypeAnnotation`:return di(ko(S(i),t));case`NumberLiteralTypeAnnotation`:return yo(S(i));case`BigIntLiteralTypeAnnotation`:return bd(S(i));case`TypeCastExpression`:return[`(`,n(`expression`),$(e,n),`)`];case`TypePredicate`:return $f(e,n);case`TypeOperator`:return[i.operator,` `,n(`typeAnnotation`)];case`TypeParameterDeclaration`:case`TypeParameterInstantiation`:return Xf(e,t,n,`params`);case`InferredPredicate`:case`DeclaredPredicate`:return[e.key===`predicate`&&e.parent.type!==`DeclareFunction`&&!e.parent.returnType?`: `:` `,`%checks`,...i.type===`DeclaredPredicate`?[`(`,n(`value`),`)`]:[]];case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return _f(e,t,n);case`MatchExpression`:case`MatchStatement`:return Lf(e,t,n);case`MatchExpressionCase`:case`MatchStatementCase`:return Rf(e,t,n);case`MatchOrPattern`:case`MatchAsPattern`:case`MatchWildcardPattern`:case`MatchLiteralPattern`:case`MatchUnaryPattern`:case`MatchIdentifierPattern`:case`MatchInstancePattern`:case`MatchInstanceObjectPattern`:case`MatchMemberPattern`:case`MatchBindingPattern`:case`MatchObjectPattern`:case`MatchObjectPatternProperty`:case`MatchRestPattern`:case`MatchArrayPattern`:return zf(e,t,n);case`RecordExpression`:return[n(`recordConstructor`),n(`typeArguments`),` `,n(`properties`)];case`RecordExpressionProperties`:return Ed(e,t,n);case`RecordDeclarationProperty`:case`RecordDeclarationStaticProperty`:{let r=i.type===`RecordDeclarationStaticProperty`,a=r?`value`:`defaultValue`;return[r?`static `:``,Ho(e,t,n),$(e,n),i[a]?[` = `,n(a)]:``]}}}function np(e,t){let{node:n}=e,r=t.originalText.slice(b(n),x(n));return t.semi&&de(n)?r+=`;`:ss(e,t)&&(r=`;${r}`),n.type===`ClassExpression`&&o(n.decorators)?[H([q,r]),q]:r}var rp=e=>e===``||e===K||e===J||e===q;function ip(e,t,n){let{node:r}=e;if(r.type===`JSXElement`&&Sp(r))return[n(`openingElement`),n(`closingElement`)];let i=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[i,...e.map(n,`children`),a];r.children=r.children.map(e=>Cp(e)?{type:`JSXText`,value:` `,raw:` `}:e);let o=r.children.some(D),s=r.children.filter(e=>e.type===`JSXExpressionContainer`).length>1,c=r.type===`JSXElement`&&r.openingElement.attributes.length>1,l=V(i)||o||c||s,u=e.parent.rootMarker===`mdx`,f=t.singleQuote?`{' '}`:`{" "}`,p=u?K:W([f,q],` `),m=ap(e,t,n,p,r.openingElement?.name?.name===`fbt`),h=r.children.some(e=>Kc(e));for(let e=m.length-2;e>=0;e--){let t=m[e]===``&&m[e+1]===``,n=m[e]===J&&m[e+1]===``&&m[e+2]===J,r=(m[e]===q||m[e]===J)&&m[e+1]===``&&m[e+2]===p,i=m[e]===p&&m[e+1]===``&&(m[e+2]===q||m[e+2]===J),a=m[e]===p&&m[e+1]===``&&m[e+2]===p,o=m[e]===q&&m[e+1]===``&&m[e+2]===J||m[e]===J&&m[e+1]===``&&m[e+2]===q;n&&h||t||r||a||o?m.splice(e,2):i&&m.splice(e+1,2)}for(;m.length>0&&rp(d(0,m,-1));)m.pop();for(;m.length>1&&rp(m[0])&&rp(m[1]);)m.shift(),m.shift();let g=[``];for(let[e,t]of m.entries()){if(t===p){if(e===1&&hi(m[e-1])){if(m.length===2){g.push([g.pop(),f]);continue}g.push([f,J],``);continue}if(e===m.length-1){g.push([g.pop(),f]);continue}if(m[e-1]===``&&m[e-2]===J){g.push([g.pop(),f]);continue}}e%2==0?g.push([g.pop(),t]):g.push(t,``),V(t)&&(l=!0)}let _=h?Di(g):U(g,{shouldBreak:!0});if(t.cursorNode?.type===`JSXText`&&r.children.includes(t.cursorNode)?_=[Ei,_,Ei]:t.nodeBeforeCursor?.type===`JSXText`&&r.children.includes(t.nodeBeforeCursor)?_=[Ei,_]:t.nodeAfterCursor?.type===`JSXText`&&r.children.includes(t.nodeAfterCursor)&&(_=[_,Ei]),u)return _;let v=U([i,H([J,_]),J,a]);return l?v:Oi([U([i,...m,a]),v])}function ap(e,t,n,r,i){let a=``,o=[a];function s(e){a=e,o.push([o.pop(),e])}function c(e){e!==``&&(a=e,o.push(e,``))}return e.each(({node:e,next:t})=>{if(e.type===`JSXText`){let n=S(e);if(Kc(e)){let o=Gc.split(n,!0);o[0]===``&&(o.shift(),/\n/.test(o[0])?c(sp(i,o[1],e,t)):c(r),o.shift());let l;if(d(0,o,-1)===``&&(o.pop(),l=o.pop()),o.length===0)return;for(let[e,t]of o.entries())e%2==1?c(K):s(t);l===void 0?c(op(i,a,e,t)):/\n/.test(l)?c(sp(i,a,e,t)):c(r)}else/\n/.test(n)?n.match(/\n/g).length>1&&c(J):c(r)}else if(s(n()),t&&Kc(t)){let n=Gc.trim(S(t)),[r]=Gc.split(n);c(op(i,r,e,t))}else c(J)},`children`),o}function op(e,t,n,r){return e?``:n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?t.length===1?q:J:q}function sp(e,t,n,r){return e?J:t.length===1?n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?J:q:J}var cp=c([`ArrayExpression`,`JSXAttribute`,`JSXElement`,`JSXExpressionContainer`,`JSXFragment`,`ExpressionStatement`,`NewExpression`,`CallExpression`,`OptionalCallExpression`,`ConditionalExpression`,`JsExpressionRoot`,`MatchExpressionCase`]);function lp(e,t,n){let{parent:r}=e;if(cp(r))return t;let i=up(e),a=Mr(e,n);return U([a?``:W(`(`),H([q,t]),q,a?``:W(`)`)],{shouldBreak:i})}function up(e){return e.match(void 0,(e,t)=>t===`body`&&e.type===`ArrowFunctionExpression`,(e,t)=>t===`arguments`&&O(e))&&(e.match(void 0,void 0,void 0,(e,t)=>t===`expression`&&e.type===`JSXExpressionContainer`)||e.match(void 0,void 0,void 0,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`expression`&&e.type===`JSXExpressionContainer`))}function dp(e,t,n){let{node:r}=e,i=[n(`name`)];if(r.value){let a;if(C(r.value)){let n=F(0,F(0,S(r.value).slice(1,-1),`&apos;`,`'`),`&quot;`,`"`),i=wo(n,t.jsxSingleQuote);n=i===`"`?F(0,n,`"`,`&quot;`):F(0,n,`'`,`&apos;`),a=e.call(()=>X(e,di(i+n+i),t),`value`)}else a=n(`value`);i.push(`=`,a)}return i}function fp(e,t,n){let{node:r}=e,i=(e,t)=>e.type===`JSXEmptyExpression`||!L(e)&&(E(e)||Ee(e)||e.type===`ArrowFunctionExpression`||e.type===`AwaitExpression`&&(i(e.argument,e)||e.argument.type===`JSXElement`)||O(br(e))||e.type===`FunctionExpression`||e.type===`TemplateLiteral`||e.type===`TaggedTemplateExpression`||e.type===`DoExpression`||D(t)&&(e.type===`ConditionalExpression`||Ae(e)));return i(r.expression,e.parent)?U([`{`,n(`expression`),Pi,`}`]):U([`{`,H([q,n(`expression`)]),q,Pi,`}`])}function pp(e,t,n){let{node:r}=e,i=L(r.name)||L(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!i)return[`<`,n(`name`),n(`typeArguments`),` />`];if(r.attributes?.length===1&&C(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
43
+ `)&&!i&&!L(r.attributes[0]))return U([`<`,n(`name`),n(`typeArguments`),` `,...e.map(n,`attributes`),r.selfClosing?` />`:`>`]);let a=r.attributes?.some(e=>C(e.value)&&e.value.value.includes(`
44
+ `)),o=t.singleAttributePerLine&&r.attributes.length>1?J:K;return U([`<`,n(`name`),n(`typeArguments`),H(e.map(({isFirst:e,previous:r})=>[e?o:wa(r,t)?[J,J]:o,n()],`attributes`)),...mp(r,t,i)],{shouldBreak:a})}function mp(e,t,n){return e.selfClosing?[K,`/>`]:hp(e,t,n)?[`>`]:[q,`>`]}function hp(e,t,n){let r=e.attributes.length>0&&L(d(0,e.attributes,-1),I.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function gp(e,t,n){let{node:r}=e,i=[`</`],a=n(`name`);return L(r.name,I.Leading|I.Line)?i.push(H([J,a]),J):L(r.name,I.Leading|I.Block)?i.push(` `,a):i.push(a),i.push(`>`),i}function _p(e,t){let{node:n}=e,r=L(n),i=L(n,I.Line),a=n.type===`JSXOpeningFragment`;return[a?`<`:`</`,H([i?J:r&&!a?` `:``,Y(e,t)]),i?J:``,`>`]}function vp(e,t,n){return lp(e,X(e,ip(e,t,n),t),t)}function yp(e,t){let{node:n}=e,r=L(n,I.Line);return[Y(e,t,{indent:r}),r?J:``]}function bp(e,t,n){let{node:r}=e;return[`{`,e.call(({node:r})=>{let i=[`...`,n()];return L(r)?[H([q,X(e,i,t)]),q]:i},r.type===`JSXSpreadAttribute`?`argument`:`expression`),`}`]}function xp(e,t,n){let{node:r}=e;if(r.type.startsWith(`JSX`))switch(r.type){case`JSXAttribute`:return dp(e,t,n);case`JSXIdentifier`:return r.name;case`JSXNamespacedName`:return G(`:`,[n(`namespace`),n(`name`)]);case`JSXMemberExpression`:return G(`.`,[n(`object`),n(`property`)]);case`JSXSpreadAttribute`:case`JSXSpreadChild`:return bp(e,t,n);case`JSXExpressionContainer`:return fp(e,t,n);case`JSXFragment`:case`JSXElement`:return vp(e,t,n);case`JSXOpeningElement`:return pp(e,t,n);case`JSXClosingElement`:return gp(e,t,n);case`JSXOpeningFragment`:case`JSXClosingFragment`:return _p(e,t);case`JSXEmptyExpression`:return yp(e,t);case`JSXText`:throw Error(`JSXText should be handled by JSXElement`);default:throw new Xc(r,`JSX`)}}function Sp(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type===`JSXText`&&!Kc(t)}function Cp(e){return e.type===`JSXExpressionContainer`&&C(e.expression)&&e.expression.value===` `&&!L(e.expression)}function wp(e,t,n){let{node:r}=e,i=r.parameters.length>1?oo(t):``,a=U([H([q,G([`, `,q],e.map(n,`parameters`))]),i,q]);return[e.key===`body`&&e.parent.type===`ClassBody`&&r.static?`static `:``,r.readonly?`readonly `:``,`[`,r.parameters?a:``,`]`,$(e,n),Lu(e,t)]}function Tp(e,t,n){let{node:r}=e;return[r.postfix?``:n,$(e,t),r.postfix?n:``]}function Ep(e,t,n){let{node:r}=e,i=[],a=r.kind&&r.kind!==`method`?`${r.kind} `:``;i.push(to(r),a,Ho(e,t,n),Z(e));let o=co(e,t,n,!1,!0),s=$(e,n,`returnType`),c=fo(r,s);return i.push(c?U(o):o),r.returnType&&i.push(U(s)),[U(i),Lu(e,t)]}function Dp(e,t,n){let{node:r}=e;return[Qa(e),r.kind===`global`?``:`${r.kind} `,n(`id`),r.body?[` `,U(n(`body`))]:Q(t)]}function Op(e,t,n){let{node:r}=e,i=!(E(r.expression)||Ee(r.expression)),a=U([`<`,H([q,n(`typeAnnotation`)]),q,`>`]),o=[W(`(`),H([q,n(`expression`)]),q,W(`)`)];return i?Oi([[a,n(`expression`)],[a,U(o,{shouldBreak:!0})],[a,n(`expression`)]]):U([a,n(`expression`)])}function kp(e,t,n,r){let{node:i}=e;if(i.type.startsWith(`TS`)){if(Oa(i))return i.type.slice(2,-7).toLowerCase();switch(i.type){case`TSThisType`:return`this`;case`TSTypeAssertion`:return Op(e,t,n);case`TSDeclareFunction`:return ts(e,t,n);case`TSExportAssignment`:return[`export = `,n(`expression`),Q(t)];case`TSModuleBlock`:return Ou(e,t,n);case`TSInterfaceBody`:case`TSTypeLiteral`:return Fu(e,t,n);case`TSTypeAliasDeclaration`:return Jf(e,t,n);case`TSQualifiedName`:return[n(`left`),`.`,n(`right`)];case`TSAbstractMethodDefinition`:case`TSDeclareMethod`:return $u(e,t,n);case`TSAbstractAccessorProperty`:case`TSAbstractPropertyDefinition`:return ed(e,t,n);case`TSInterfaceHeritage`:case`TSClassImplements`:case`TSInstantiationExpression`:return[n(`expression`),n(`typeArguments`)];case`TSTemplateLiteralType`:return xs(e,t,n);case`TSNamedTupleMember`:return qf(e,t,n);case`TSRestType`:return Kf(e,t,n);case`TSOptionalType`:return[n(`typeAnnotation`),`?`];case`TSInterfaceDeclaration`:return Gu(e,t,n);case`TSTypeParameterDeclaration`:case`TSTypeParameterInstantiation`:return Xf(e,t,n,`params`);case`TSTypeParameter`:return Qf(e,t,n);case`TSAsExpression`:case`TSSatisfiesExpression`:return _f(e,t,n);case`TSArrayType`:return gf(n);case`TSPropertySignature`:return[i.readonly?`readonly `:``,Ho(e,t,n),Z(e),$(e,n),Lu(e,t)];case`TSParameterProperty`:return[to(i),i.static?`static `:``,i.override?`override `:``,i.readonly?`readonly `:``,n(`parameter`)];case`TSTypeQuery`:return ep(e,n);case`TSIndexSignature`:return wp(e,t,n);case`TSTypePredicate`:return $f(e,n);case`TSNonNullExpression`:return[n(`expression`),`!`];case`TSImportType`:return[tu(e,t,n),i.qualifier?[`.`,n(`qualifier`)]:``,Xf(e,t,n,`typeArguments`)];case`TSLiteralType`:return n(`literal`);case`TSIndexedAccessType`:return Af(e,t,n);case`TSTypeOperator`:return[i.operator,` `,n(`typeAnnotation`)];case`TSMappedType`:return If(e,t,n);case`TSMethodSignature`:return Ep(e,t,n);case`TSNamespaceExportDeclaration`:return[`export as namespace `,n(`id`),Q(t)];case`TSEnumDeclaration`:return wf(e,n);case`TSEnumBody`:return Ed(e,t,n);case`TSEnumMember`:return Cf(e,t,n);case`TSImportEqualsDeclaration`:return[`import `,Pd(i,!1),n(`id`),` = `,n(`moduleReference`),Q(t)];case`TSExternalModuleReference`:return tu(e,t,n);case`TSModuleDeclaration`:return Dp(e,t,n);case`TSConditionalType`:return uf(e,t,n);case`TSInferType`:return jf(e,t,n);case`TSIntersectionType`:return Mf(e,t,n);case`TSUnionType`:return Jo(e,t,n,r);case`TSFunctionType`:case`TSCallSignatureDeclaration`:case`TSConstructorType`:case`TSConstructSignatureDeclaration`:return Tf(e,t,n);case`TSTupleType`:return hl(e,t,n);case`TSTypeReference`:return[n(`typeName`),Xf(e,t,n,`typeArguments`)];case`TSTypeAnnotation`:return $o(e,t,n);case`TSEmptyBodyFunctionExpression`:return rs(e,t,n);case`TSJSDocAllType`:return`*`;case`TSJSDocUnknownType`:return`?`;case`TSJSDocNullableType`:return Tp(e,n,`?`);case`TSJSDocNonNullableType`:return Tp(e,n,`!`);default:throw new Xc(i,`TypeScript`)}}}function Ap(e,t,n,r){for(let i of[il,xp,tp,kp,hf]){let a=i(e,t,n,r);if(a!==void 0)return a}}var jp=c([`ClassMethod`,`ClassPrivateMethod`,`ClassProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`ClassPrivateProperty`,`MethodDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`]);function Mp(e,t,n,r){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:i}=e,a=Yc(e)?np(e,t):Ap(e,t,n,r);if(!a)return``;if(jp(i))return a;a=Np(e,t,a);let s=i.type!==`ClassExpression`&&o(i.decorators)?dl(e,t,n):``,c=Mr(e,t);return!s&&!c?a:mi(a,e=>[c?`(`:``,s?U([s,e]):e,c?`)`:``])}function Np(e,t,n){let{node:r}=e;return(L(r,I.Leading)||L(r,I.Trailing))&&zn(e)?[H([q,X(e,n,t)]),q]:n}var Pp={features:{experimental_avoidAstMutation:!0,experimental_locForRangeFormat:{locStart:b,locEnd:ne}},massageAstNode:vc,canAttachComment:Ue,handleComments:Nn,isGap:Fn,willPrintOwnComments:gs,embed:sc,insertPragma:Lc,printComment:Hc,printPrettierIgnored:Mp,print:Mp,getVisitorKeys:dr,isBlockComment:wt,hasPrettierIgnore:Yc},Fp=[{name:`JSON.stringify`,type:`data`,aceMode:`json`,extensions:[`.importmap`],filenames:[`package.json`,`package-lock.json`,`composer.json`],tmScope:`source.json`,aliases:[`geojson`,`jsonl`,`sarif`,`topojson`],codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json-stringify`],vscodeLanguageIds:[`json`],linguistLanguageId:174},{name:`JSON`,type:`data`,aceMode:`json`,extensions:[`.json`,`.4DForm`,`.4DProject`,`.avsc`,`.geojson`,`.gltf`,`.har`,`.ice`,`.JSON-tmLanguage`,`.json.example`,`.mcmeta`,`.sarif`,`.slnlaunch`,`.tact`,`.tfstate`,`.tfstate.backup`,`.topojson`,`.webapp`,`.webmanifest`,`.yy`,`.yyp`],filenames:[`.all-contributorsrc`,`.arcconfig`,`.auto-changelog`,`.c8rc`,`.htmlhintrc`,`.imgbotconfig`,`.nycrc`,`.tern-config`,`.tern-project`,`.watchmanconfig`,`.babelrc`,`.jscsrc`,`.jshintrc`,`.jslintrc`,`.swcrc`],tmScope:`source.json`,aliases:[`geojson`,`jsonl`,`sarif`,`topojson`],codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json`],vscodeLanguageIds:[`json`],linguistLanguageId:174},{name:`JSON with Comments`,type:`data`,aceMode:`javascript`,extensions:[`.jsonc`,`.code-snippets`,`.code-workspace`,`.sublime-build`,`.sublime-color-scheme`,`.sublime-commands`,`.sublime-completions`,`.sublime-keymap`,`.sublime-macro`,`.sublime-menu`,`.sublime-mousemap`,`.sublime-project`,`.sublime-settings`,`.sublime-theme`,`.sublime-workspace`,`.sublime_metrics`,`.sublime_session`],filenames:[],tmScope:`source.json.comments`,aliases:[`jsonc`],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,group:`JSON`,parsers:[`jsonc`],vscodeLanguageIds:[`jsonc`],linguistLanguageId:423},{name:`JSON5`,type:`data`,aceMode:`json5`,extensions:[`.json5`],tmScope:`source.js`,codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json5`],vscodeLanguageIds:[`json5`],linguistLanguageId:175}],Ip={};t(Ip,{estree:()=>Pp,"estree-json":()=>Up});var Lp=ur({JsonRoot:[`node`],ArrayExpression:[`elements`],ObjectExpression:[`properties`],ObjectProperty:[`key`,`value`],UnaryExpression:[`argument`],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:[`quasis`],TemplateElement:[]});function Rp(e){return e.extra.raw}var zp=new Set([`start`,`end`,`loc`,`comments`,`leadingComments`,`trailingComments`,`innerComments`,`errors`,`range`,`tokens`]);function Bp(e,t){let{type:n}=e;if(n===`ObjectProperty`){let{key:n}=e;if(n.type===`Identifier`){let{name:e}=n;t.key={type:`StringLiteral`,value:e,extra:{rawValue:e}}}else if(n.type===`NumericLiteral`){let e=Rp(n);String(Number(e))===e&&(t.key={type:`StringLiteral`,value:e,extra:{rawValue:e}})}}if(n===`StringLiteral`&&delete t.extra.raw,n===`UnaryExpression`&&e.operator===`+`)return t.argument;if((n===`ArrayExpression`||n===`ObjectExpression`)&&(t.extra??={},e.extra?.trailingComma&&delete t.extra.trailingComma),n===`ArrayExpression`){for(let[n,r]of e.elements.entries())r===null&&t.elements.splice(n,0,{type:`NullLiteral`});return}if(n===`TemplateLiteral`){let t=e.quasis[0].value.cooked;return{type:`StringLiteral`,value:t,extra:{rawValue:t}}}}Bp.ignoredProperties=zp;function Vp(e,t,n){let{node:r}=e;switch(r.type){case`JsonRoot`:return[n(`node`),J];case`ArrayExpression`:{if(r.elements.length===0)return`[]`;let t=e.map(()=>e.node===null?`null`:n(),`elements`);return[`[`,H([J,G([`,`,J],t)]),J,`]`]}case`ObjectExpression`:return r.properties.length===0?`{}`:[`{`,H([J,G([`,`,J],e.map(n,`properties`))]),J,`}`];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 ko(Rp(r),t);case`NumericLiteral`:{let t=Rp(r);return Hp(e)&&String(Number(t))===t?`"${t}"`:t}case`Identifier`:return Hp(e)?JSON.stringify(r.name):r.name;case`TemplateLiteral`:return n([`quasis`,0]);case`TemplateElement`:return JSON.stringify(r.value.cooked);default:throw new Xc(r,`JSON`)}}function Hp(e){return e.key===`key`&&e.parent.type===`ObjectProperty`}var Up={massageAstNode:Bp,print:Vp,getVisitorKeys:Lp},Wp={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.`}},Gp=`JavaScript`,Kp={arrowParens:{category:Gp,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:Wp.bracketSameLine,objectWrap:Wp.objectWrap,bracketSpacing:Wp.bracketSpacing,jsxBracketSameLine:{category:Gp,type:`boolean`,description:`Put > on the last line instead of at a new line.`,deprecated:`2.4.0`},semi:{category:Gp,type:`boolean`,default:!0,description:`Print semicolons.`,oppositeDescription:`Do not print semicolons, except at the beginning of lines which may need them.`},experimentalOperatorPosition:{category:Gp,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:Gp,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:Wp.singleQuote,jsxSingleQuote:{category:Gp,type:`boolean`,default:!1,description:`Use single quotes in JSX.`},quoteProps:{category:Gp,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:Gp,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:Wp.singleAttributePerLine},qp={...i,...Ip},Jp=[...r,...Fp];export{n as default,Jp as languages,Kp as options,qp as printers};
@@ -0,0 +1,7 @@
1
+ import{f as e}from"./vault-api-client-iZLhMJKe.js";import{h as t,m as n}from"./runtime-config-DcmnGcXU.js";import{o as r,s as i}from"./comment-threads-BnRwo5B9.js";import{i as a,n as o,t as s}from"./es-Bfdp096f.js";function c(e,t,n,r,i,a){return e?.(t,n,r,i,a)??a.renderToken(t,n,r)}function l(e=``){return`<p>${a(String(e??``)).replace(/\n/g,`<br>`)}</p>`}function u(){let e=o({breaks:!0,highlight(e,t){try{return t&&s.getLanguage(t)?s.highlight(e,{ignoreIllegals:!0,language:t}).value:s.highlightAuto(e).value}catch{return a(e)}},html:!1,linkify:!0,typographer:!0}),t=e.renderer.rules.link_open,n=e.renderer.rules.table_open,r=e.renderer.rules.table_close;return e.renderer.rules.link_open=(e,n,r,i,a)=>(e[n].attrSet(`target`,`_blank`),e[n].attrSet(`rel`,`noopener noreferrer`),c(t,e,n,r,i,a)),e.renderer.rules.table_open=(e,t,r,i,a)=>`<div class="comment-markdown-table">${c(n,e,t,r,i,a)}`,e.renderer.rules.table_close=(e,t,n,i,a)=>`${c(r,e,t,n,i,a)}</div>`,e}var d=u();function f(e=``){let t=String(e??``);try{return d.render(t)}catch{return l(t)}}var p=Object.freeze([`👍`,`❤️`,`🎉`,`👀`,`🚀`]),m=Object.freeze([`😂`,`🔥`,`✅`,`🙏`,`💡`,`🤔`,`👏`,`😄`,`🎯`,`🙌`]);function h(e=[]){return[...e].sort((e,t)=>(e.anchor?.startLine??0)-(t.anchor?.startLine??0)||e.createdAt-t.createdAt)}function g(e){return e?.anchorKind||e?.kind||`line`}function _(e){return g(e)===`text`&&Number.isFinite(e?.startIndex)&&Number.isFinite(e?.endIndex)&&e.endIndex>e.startIndex}function v(e,t){return e===t?!0:!e||!t?!1:g(e)===g(t)&&(e.startIndex??null)===(t.startIndex??null)&&(e.endIndex??null)===(t.endIndex??null)&&(e.startLine??null)===(t.startLine??null)&&(e.endLine??null)===(t.endLine??null)&&(e.anchorQuote??e.quote??``)===(t.anchorQuote??t.quote??``)}function y(e){if(g(e)===`diagram-element`)return`Diagram element`;let t=Number(e?.startLine||0),n=Number(e?.endLine||t);return!Number.isFinite(t)||t<=0?`No source anchor`:t===n?`Line ${t}`:`Lines ${t}-${n}`}function b(e={}){return[e.kind||e.anchorKind||`line`,e.startLine??0,e.endLine??0,e.quote||``].join(`::`)}function x(e){return e&&!e.querySelector(`[data-source-line]`)}function S(e){let t=Number.parseInt(e||``,10);return Number.isFinite(t)?t:null}function C(e=[]){return e.reduce((e,t)=>e?(t?.createdAt??0)>=(e?.createdAt??0)?t:e:t,null)}function w(e){return e?.threads?.reduce((e,t)=>{let n=C(t?.messages??[]);return n&&(n.createdAt??0)>=(e?.createdAt??0)?n:e},null)}function T(e,t=`comment-markdown`){let n=document.createElement(`div`);return n.className=t,n.innerHTML=f(e),n}function E({authorName:e=`Anonymous`,buttonClassName:t=`comment-overview-thread`,footerClassName:n=`comment-overview-thread-footer`,headerClassName:r=`comment-overview-thread-header`,lineClassName:i=`comment-overview-thread-line`,lineLabel:a=``,messageCount:o=0,previewBody:s=``,previewClassName:c=`comment-markdown comment-overview-thread-preview`,quote:l=`Source anchored comment`,quoteClassName:u=`comment-overview-thread-quote`,timestamp:d=``}={}){let f=document.createElement(`button`);f.type=`button`,f.className=t;let p=document.createElement(`div`);p.className=r;let m=document.createElement(`span`);m.className=i,m.textContent=a;let h=document.createElement(`span`);h.className=`comment-overview-thread-meta`,h.textContent=d,p.append(m,h);let g=document.createElement(`div`);g.className=`comment-overview-thread-body`;let _=T(s,c),v=document.createElement(`div`);v.className=`comment-overview-thread-section comment-overview-thread-reference`;let y=document.createElement(`span`);y.className=`comment-overview-thread-section-label`,y.textContent=`Reference`;let b=document.createElement(`span`);b.className=u,b.textContent=l,v.append(y,b),g.append(_,v);let x=document.createElement(`div`);x.className=n;let S=document.createElement(`span`);S.className=`comment-overview-thread-author`,S.textContent=e;let C=document.createElement(`span`);return C.className=`comment-overview-thread-message-count`,C.textContent=`${o} message${o===1?``:`s`}`,x.append(S,C),f.append(p,g,x),f}function D(e,t){return!!(t&&e?.users?.some(e=>e?.userId===t))}function O(e){return String(Array.isArray(e?.users)?e.users.length:0)}function k(e,t,n){return e?.threadId===t&&e?.messageId===n}function A(e){let t=e?.querySelector?.(`.comment-reaction-picker`),n=t?.closest?.(`.comment-reaction-picker-wrap`),r=e?.querySelector?.(`.comment-card-scroll`);return!(t instanceof HTMLElement)||!(n instanceof HTMLElement)||!(r instanceof HTMLElement)?null:{picker:t,scroll:r,wrap:n}}function j(e,t){let n=S(e?.getAttribute?.(`data-source-line`)),r=S(e?.getAttribute?.(`data-source-line-end`))??n;return!n||!r||!t?!1:t.startLine<=r&&t.endLine>=n}function M(e,t,n=``){if(!e||e.isCollapsed||e.rangeCount===0||!t?.contains(e.anchorNode)||!t.contains(e.focusNode))return null;let i=e.getRangeAt(0),a=String(e.toString()).trim(),o=r(a),s=i.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?i.commonAncestorContainer:i.commonAncestorContainer.parentElement;if(!o||s?.closest?.(`.diagram-preview-shell`))return null;let c=Array.from(t.querySelectorAll(`[data-source-line]`)).filter(e=>x(e)&&i.intersectsNode(e));if(c.length===0)return null;let l=String(n).split(`
2
+ `),u=Math.min(Math.max(Math.min(...c.map(e=>S(e.getAttribute(`data-source-line`))??l.length)),1),l.length),d=Math.min(Math.max(...c.map(e=>S(e.getAttribute(`data-source-line-end`))??S(e.getAttribute(`data-source-line`))??1)),l.length),f=l.slice(0,u-1).reduce((e,t)=>e+t.length+1,0),p=l.slice(u-1,d).reduce((e,t,n)=>e+t.length+(n===0?0:1),f),m=`line`,h=f,g=p,_=!0;if(c.length===1){let e=String(n).slice(f,p),t=e.indexOf(a);t>=0&&t===e.lastIndexOf(a)&&(m=`text`,h=f+t,g=h+a.length,_=!1)}let v=e=>String(n).slice(0,e).split(`
3
+ `).length,y=_?u:v(h),b=_?d:v(Math.max(g-1,h)),C=I(Array.from(i.getClientRects()))||I(c.map(e=>e.getBoundingClientRect()));return{anchor:{anchorKind:m,anchorQuote:o,endIndex:g,endLine:b,fallbackToLines:_,kind:m,quote:o,startIndex:h,startLine:y},range:i.cloneRange(),rect:C}}function N(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=``,r=[],i=!0;for(;t.nextNode();){let e=t.currentNode,a=e.textContent||``;for(let t=0;t<a.length;t+=1){let o=a[t];if(/\s/.test(o)){if(i)continue;n+=` `,r.push({node:e,offset:t}),i=!0;continue}n+=o,r.push({node:e,offset:t}),i=!1}}for(;n.endsWith(` `);)n=n.slice(0,-1),r.pop();return{map:r,normalized:n}}function P(e,t){let n=i(t);if(!e||!n)return null;let r=N(e);if(!r.normalized)return null;let a=r.normalized.indexOf(n);if(a<0||r.normalized.indexOf(n,a+1)>=0)return null;let o=r.map[a],s=r.map[a+n.length-1];if(!o||!s)return null;let c=document.createRange();return c.setStart(o.node,o.offset),c.setEnd(s.node,s.offset+1),c}function F(e,t){return{bottom:e.bottom-t.top,height:e.height,left:e.left-t.left,right:e.right-t.left,top:e.top-t.top,width:e.width}}function I(e=[]){if(!Array.isArray(e)||e.length===0)return null;let t=Math.min(...e.map(e=>e.left)),n=Math.min(...e.map(e=>e.top)),r=Math.max(...e.map(e=>e.right)),i=Math.max(...e.map(e=>e.bottom));return{bottom:i,height:i-n,left:t,right:r,top:n,width:r-t}}function L(e,t,n){return n?e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom:!1}function R(e=[]){return[...new Set(e.filter(Boolean))].sort()}function z(e=[]){return R(e).join(` `)}function B(e){let t=document.createDocumentFragment(),n=document.createElement(`span`);if(n.className=`comment-marker-icon`,n.setAttribute(`aria-hidden`,`true`),n.innerHTML=`
4
+ <svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path d="M3 4.75A1.75 1.75 0 0 1 4.75 3h6.5A1.75 1.75 0 0 1 13 4.75v4.5A1.75 1.75 0 0 1 11.25 11H8.9L6.5 13v-2H4.75A1.75 1.75 0 0 1 3 9.25v-4.5Z" stroke="currentColor" stroke-width="1.35" stroke-linejoin="round"/>
6
+ </svg>
7
+ `,t.appendChild(n),e>1){let n=document.createElement(`span`);n.className=`comment-marker-count`,n.textContent=String(e),t.appendChild(n)}return t}var V=256,H=/^[A-Za-z0-9_-]+$/u;function U(e){let t=String(e??``).trim();return t.length<=V&&H.test(t)?t:``}function W(e){return String(e??``).trim().replace(/\/+$/u,``)||`/`}function G(t,r,{appUrl:i,elementType:a=`element`}={}){let o=e(t),s=U(r);if(!o||!s||!i)return``;let c;try{c=new URL(i)}catch{return``}return c.hash=n(o,{elementId:s,elementType:a}),c.toString()}function K(n,{appPath:r=`/`,origin:i=``}={}){let a;try{a=new URL(String(n??``),i||`http://collabmd.invalid`)}catch{return null}if(i&&a.origin!==i||W(a.pathname)!==W(r))return null;let o=t(a.hash),s=e(o.get(`file`)),c=U(o.get(`element`));return!s||!c?null:{elementId:c,elementType:o.get(`elementType`)===`group`?`group`:`element`,filePath:s}}export{j as C,F as D,h as E,R as S,z as T,A as _,v as a,k as b,M as c,P as d,y as f,C as g,w as h,p as i,I as l,b as m,K as n,B as o,O as p,m as r,E as s,G as t,T as u,D as v,L as w,_ as x,x as y};
@@ -1 +1 @@
1
- function e(e){return e===`preview`?`preview`:`edit`}function t(){return{type:`excalidraw`,version:2,source:`collabmd`,elements:[],appState:{gridSize:null,viewBackgroundColor:`#ffffff`},files:{}}}function n(e){return!e||typeof e!=`object`?t():{type:`excalidraw`,version:2,source:`collabmd`,elements:Array.isArray(e.elements)?e.elements:[],appState:{gridSize:e.appState?.gridSize??null,viewBackgroundColor:e.appState?.viewBackgroundColor??`#ffffff`},files:e.files&&typeof e.files==`object`?e.files:{}}}function r(e){return i(e)||t()}function i(e){if(!e)return null;try{return n(JSON.parse(e))}catch{return null}}function a(e,{theme:t=`dark`}={}){return{elements:e.elements||[],appState:{theme:t,viewBackgroundColor:e.appState?.viewBackgroundColor??`#ffffff`,gridSize:e.appState?.gridSize??null},files:e.files||{}}}function o(e,t,r){return n({elements:Array.isArray(e)?e:[],appState:{gridSize:t?.gridSize??null,viewBackgroundColor:t?.viewBackgroundColor??`#ffffff`},files:r||{}})}export{r as a,n as i,t as n,a as o,e as r,i as s,o as t};
1
+ function e(e){return e===`preview`?`preview`:`edit`}function t(){return{type:`excalidraw`,version:2,source:`collabmd`,elements:[],appState:{gridSize:null,viewBackgroundColor:`#ffffff`},files:{}}}function n(e){return!e||typeof e!=`object`?t():{type:`excalidraw`,version:2,source:`collabmd`,elements:Array.isArray(e.elements)?e.elements:[],appState:{gridSize:e.appState?.gridSize??null,viewBackgroundColor:e.appState?.viewBackgroundColor??`#ffffff`},files:e.files&&typeof e.files==`object`?e.files:{}}}function r(e){return i(e)||t()}function i(e){if(!e)return null;try{return n(JSON.parse(e))}catch{return null}}function a(e,{theme:t=`dark`}={}){return{elements:e.elements||[],appState:{theme:t,viewBackgroundColor:e.appState?.viewBackgroundColor??`#ffffff`,gridSize:e.appState?.gridSize??null},files:e.files||{}}}function o(e,{padding:t=24,scale:n=1}={}){return{appState:{exportBackground:!0,exportScale:n,exportWithDarkMode:!1,gridSize:e.appState?.gridSize??null,theme:`light`,viewBackgroundColor:e.appState?.viewBackgroundColor??`#ffffff`},elements:Array.isArray(e.elements)?e.elements.filter(e=>e&&!e.isDeleted):[],exportPadding:t,files:e.files||null}}function s(e,t,r){return n({elements:Array.isArray(e)?e:[],appState:{gridSize:t?.gridSize??null,viewBackgroundColor:t?.viewBackgroundColor??`#ffffff`},files:r||{}})}export{n as a,i as c,e as i,t as n,r as o,o as r,a as s,s as t};